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

import androidx.annotation.Nullable;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class oz0 implements sf0 {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ yw0 f15211b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ e30 f15212c;

    public oz0(qz0 qz0Var, yw0 yw0Var, e30 e30Var) {
        this.f15211b = yw0Var;
        this.f15212c = e30Var;
        Objects.requireNonNull(qz0Var);
        this.f15210a = false;
    }

    public final synchronized void a(int i10) {
        if (this.f15210a) {
            return;
        }
        this.f15210a = true;
        b(new n7.l2(i10, qz0.c(i10, this.f15211b.f18989a), "undefined", null, null));
    }

    public final synchronized void b(n7.l2 l2Var) {
        int i10 = 1;
        if (true == ((Boolean) n7.y.f31093e.f31096c.b(ao.f9017p6)).booleanValue()) {
            i10 = 3;
        }
        this.f15212c.a(new zzekk(i10, l2Var));
    }

    @Override // com.google.android.gms.internal.ads.sf0
    public final synchronized void zzc(int i10, @Nullable String str) {
        try {
            if (this.f15210a) {
                return;
            }
            this.f15210a = true;
            if (str == null) {
                str = qz0.c(i10, this.f15211b.f18989a);
            }
            b(new n7.l2(i10, str, "undefined", null, null));
        } catch (Throwable th) {
            throw th;
        }
    }
}
