package com.google.android.gms.internal.ads;

import android.os.SystemClock;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class h51 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f12031a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f12032b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f12033c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f12034d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ e6.a f12035e;

    public h51(e6.a aVar, int i10) {
        Objects.requireNonNull(aVar);
        this.f12035e = aVar;
        this.f12031a = i10;
    }

    public final void a() {
        e6.a aVar = this.f12035e;
        int iZzi = ((yh) aVar.f25486a).zzi();
        yh yhVar = (yh) aVar.f25486a;
        if (!yhVar.zzk() || yhVar.zzh() == 1 || yhVar.zzh() == 4 || iZzi == 0 || iZzi == 1) {
            if (this.f12033c) {
                ((h81) ((sq0) aVar.f25490e)).b(4);
            }
            this.f12033c = false;
            return;
        }
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        boolean z10 = this.f12033c;
        int i10 = this.f12031a;
        if (!z10 || this.f12032b != iZzi) {
            this.f12033c = true;
            this.f12034d = jElapsedRealtime;
            this.f12032b = iZzi;
            ((h81) ((sq0) aVar.f25490e)).b(4);
            ((h81) ((sq0) aVar.f25490e)).f12056a.sendEmptyMessageDelayed(4, i10);
            return;
        }
        if (jElapsedRealtime - this.f12034d >= i10) {
            lh2 lh2Var = (lh2) aVar.f25488c;
            zzfb zzfbVar = new zzfb(4, i10);
            lh2Var.getClass();
            lh2Var.f13699a.q(new zziw(2, zzfbVar, 1003));
        }
    }
}
