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

import android.os.Bundle;

/* JADX INFO: loaded from: classes2.dex */
public final class rv0 implements wf0, xe0 {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final Object f16229c = new Object();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static int f16230d;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final p7.n0 f16231a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final uv0 f16232b;

    public rv0(uv0 uv0Var, p7.o0 o0Var) {
        this.f16232b = uv0Var;
        this.f16231a = o0Var;
    }

    public final void a(boolean z10) {
        int i10;
        int iIntValue;
        tn tnVar = ao.W6;
        n7.y yVar = n7.y.f31093e;
        if (((Boolean) yVar.f31096c.b(tnVar)).booleanValue() && !((p7.o0) this.f16231a).C()) {
            Object obj = f16229c;
            synchronized (obj) {
                i10 = f16230d;
                iIntValue = ((Integer) yVar.f31096c.b(ao.X6)).intValue();
            }
            if (i10 < iIntValue) {
                uv0 uv0Var = this.f16232b;
                uv0Var.getClass();
                ih1.z1(uv0Var.f17395d.a(new Bundle()), new e.t0(uv0Var, z10), b30.f9365g);
                synchronized (obj) {
                    f16230d++;
                }
            }
        }
    }

    @Override // com.google.android.gms.internal.ads.xe0
    public final void q(n7.l2 l2Var) {
        a(false);
    }

    @Override // com.google.android.gms.internal.ads.wf0
    public final void zzg() {
        a(true);
    }
}
