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

import android.content.Context;
import java.lang.ref.WeakReference;
import java.math.BigInteger;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledExecutorService;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class zo implements kg2 {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final og2 f19356c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final og2 f19357d;

    public /* synthetic */ zo(kg2 kg2Var, og2 og2Var, og2 og2Var2, int i10) {
        this.f19354a = i10;
        this.f19355b = kg2Var;
        this.f19356c = og2Var;
        this.f19357d = og2Var2;
    }

    public static zo a(og2 og2Var, pg2 pg2Var, og2 og2Var2) {
        return new zo(og2Var, pg2Var, og2Var2, 15);
    }

    public static zo b(og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new zo(og2Var, og2Var2, og2Var3, 24);
    }

    public static zo c(og2 og2Var, v70 v70Var, og2 og2Var2) {
        return new zo(og2Var, v70Var, og2Var2, 3);
    }

    public static zo d(pg2 pg2Var, wc0 wc0Var, zc0 zc0Var) {
        return new zo((og2) pg2Var, (og2) wc0Var, (og2) zc0Var, 7);
    }

    public static zo e(o70 o70Var, og2 og2Var, og2 og2Var2) {
        return new zo(o70Var, og2Var, og2Var2, 25, 0);
    }

    public static zo f(og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new zo(og2Var, og2Var2, og2Var3, 14);
    }

    @Override // com.google.android.gms.internal.ads.rg2
    public final Object zzb() {
        String string;
        Set setEmptySet;
        int i10 = 1;
        switch (this.f19354a) {
            case 0:
                ((o70) this.f19355b).a();
                ScheduledExecutorService scheduledExecutorService = (ScheduledExecutorService) this.f19356c.zzb();
                return new yo(scheduledExecutorService);
            case 1:
                p7.n0 n0Var = (p7.n0) this.f19356c.zzb();
                return new s10(n0Var);
            case 2:
                q7.a aVarA = ((u70) this.f19355b).a();
                JSONObject jSONObject = (JSONObject) this.f19356c.zzb();
                String str = (String) this.f19357d.zzb();
                boolean zEquals = "native".equals(str);
                p7.r0 r0Var = m7.n.C.f30464c;
                return new ij(UUID.randomUUID().toString(), aVarA, str, jSONObject, false, zEquals);
            case 3:
                i8.c cVar = (i8.c) this.f19355b.zzb();
                v20 v20VarA = ((v70) this.f19356c).zzb();
                String str2 = ((me0) this.f19357d).a().f12455d;
                u20 u20Var = v20VarA.f17481c;
                synchronized (u20Var) {
                    string = u20Var.f17065a.toString();
                    u20Var.f17065a = u20Var.f17065a.add(BigInteger.ONE);
                    u20Var.f17066b = string;
                }
                return new o20(cVar, v20VarA, string, str2);
            case 4:
                Context contextA = ((o70) this.f19355b).a();
                nd1 nd1Var = (nd1) this.f19356c.zzb();
                q7.a aVarA2 = ((u70) this.f19357d).a();
                a30 a30Var = b30.f9359a;
                vj1.i(a30Var);
                return new md0(contextA, nd1Var, aVarA2, a30Var);
            case 5:
                return new rd0((Context) this.f19355b.zzb(), ((u70) this.f19356c).a(), ((me0) this.f19357d).a());
            case 6:
                bf0 bf0Var = new bf0(((pg2) ((df0) this.f19355b).f10387a).zzb());
                Set setZzb = ((pg2) this.f19356c).zzb();
                a30 a30Var2 = b30.f9359a;
                vj1.i(a30Var2);
                return new cf0(bf0Var, setZzb, a30Var2, (ScheduledExecutorService) this.f19357d.zzb());
            case 7:
                return new rg0(((pg2) this.f19355b).zzb(), ((wc0) this.f19356c).a(), ((zc0) this.f19357d).a());
            case 8:
                return new bk0((Context) this.f19355b.zzb(), ((pg2) this.f19356c).zzb(), ((wc0) this.f19357d).a());
            case 9:
                pm0 pm0VarA = ym0.a(((ym0) this.f19355b).f18888a);
                qm0 qm0Var = (qm0) ((zl0) this.f19356c).f19298a.zzb();
                vj1.i(qm0Var);
                Executor executor = (Executor) this.f19357d.zzb();
                a30 a30Var3 = b30.f9359a;
                vj1.i(a30Var3);
                return new qn0(pm0VarA, qm0Var, executor, a30Var3);
            case 10:
                return new zo0(((xc0) this.f19355b).f18406a.f17597c, (lm0) this.f19356c.zzb(), ym0.a(((ym0) this.f19357d).f18888a));
            case 11:
                return new ap0(((xc0) this.f19355b).f18406a.f17597c, (lm0) this.f19356c.zzb(), ym0.a(((ym0) this.f19357d).f18888a));
            case 12:
                int i11 = ((me0) this.f19357d).a().f12462k.f30185b;
                if (i11 != 0) {
                    return i11 + (-1) != 0 ? ((rz0) this.f19356c).zzb() : ((rz0) this.f19355b).zzb();
                }
                throw null;
            case 13:
                String str3 = ((a81) this.f19355b).f8572a.f17530a.f17037g;
                vj1.i(str3);
                Context contextA2 = ((o70) this.f19356c).a();
                a30 a30Var4 = b30.f9359a;
                vj1.i(a30Var4);
                Map mapZzb = ((mg2) this.f19357d).zzb();
                if (((Boolean) n7.y.f31093e.f31096c.b(ao.U5)).booleanValue()) {
                    il ilVar = new il(new n5.s(contextA2, 5));
                    ilVar.a(new y40(str3, 4));
                    setEmptySet = Collections.singleton(new ak0(new uq0(ilVar, mapZzb), a30Var4));
                } else {
                    setEmptySet = Collections.emptySet();
                }
                vj1.i(setEmptySet);
                return setEmptySet;
            case 14:
                return new xq0((zq0) this.f19355b.zzb(), (gr0) this.f19356c.zzb(), ((Integer) this.f19357d.zzb()).intValue());
            case 15:
                return new fr0((zq0) this.f19355b.zzb(), ((pg2) this.f19356c).zzb(), (i8.c) this.f19357d.zzb());
            case 16:
                return new ks0((ps0) this.f19355b.zzb(), ((me0) this.f19356c).a(), (String) this.f19357d.zzb());
            case 17:
                Context contextA3 = ((o70) this.f19355b).a();
                WeakReference weakReference = ((p70) this.f19356c).f15284a.f12752d;
                vj1.i(weakReference);
                ss0 ss0Var = (ss0) this.f19357d.zzb();
                a30 a30Var5 = b30.f9359a;
                vj1.i(a30Var5);
                return new zs0(contextA3, weakReference, ss0Var, a30Var5);
            case 18:
                return new fx0((Context) this.f19355b.zzb(), (xb0) this.f19356c.zzb(), (Executor) this.f19357d.zzb(), i10);
            case 19:
                Context context = (Context) this.f19355b.zzb();
                q7.a aVarA3 = ((u70) this.f19356c).a();
                o80 o80Var = (o80) this.f19357d.zzb();
                a30 a30Var6 = b30.f9359a;
                vj1.i(a30Var6);
                return new xx0(context, aVarA3, o80Var, a30Var6);
            case 20:
                return new fx0((Context) this.f19355b.zzb(), (y70) this.f19356c.zzb(), (Executor) this.f19357d.zzb(), 2);
            case 21:
                return new xx0((Context) this.f19355b.zzb(), (y70) this.f19356c.zzb(), ((u70) this.f19357d).a());
            case 22:
                return new yy0((Context) this.f19355b.zzb(), (Executor) this.f19356c.zzb(), (wp0) this.f19357d.zzb(), 0);
            case 23:
                return new yy0((Context) this.f19355b.zzb(), (Executor) this.f19356c.zzb(), (wp0) this.f19357d.zzb(), i10);
            case 24:
                return new w11((i8.c) this.f19355b.zzb(), ((me0) this.f19356c).a(), ((Long) this.f19357d.zzb()).longValue());
            case 25:
                Context contextA4 = ((o70) this.f19355b).a();
                r20 r20Var = (r20) this.f19356c.zzb();
                ScheduledExecutorService scheduledExecutorService2 = (ScheduledExecutorService) this.f19357d.zzb();
                a30 a30Var7 = b30.f9359a;
                vj1.i(a30Var7);
                return new a31(contextA4, r20Var, scheduledExecutorService2, a30Var7);
            case 26:
                p31 p31Var = (p31) this.f19355b;
                p31Var.getClass();
                a30 a30Var8 = b30.f9359a;
                vj1.i(a30Var8);
                n31 n31Var = new n31(((o70) p31Var.f15254a).a(), a30Var8);
                i8.c cVar2 = (i8.c) this.f19356c.zzb();
                vj1.i(a30Var8);
                return new v31(n31Var, ((Long) fp.f11333c.j()).longValue(), cVar2, a30Var8, (cr0) this.f19357d.zzb());
            case 27:
                Context contextA5 = ((o70) ((t61) this.f19355b).f16736a).a();
                a30 a30Var9 = b30.f9359a;
                vj1.i(a30Var9);
                r61 r61Var = new r61(contextA5, a30Var9);
                i8.c cVar3 = (i8.c) this.f19356c.zzb();
                vj1.i(a30Var9);
                return new v31(r61Var, 2147483647L, cVar3, a30Var9, (cr0) this.f19357d.zzb());
            case 28:
                w61 w61Var = (w61) this.f19355b;
                w61Var.getClass();
                a30 a30Var10 = b30.f9359a;
                vj1.i(a30Var10);
                v61 v61Var = new v61(a30Var10, ((o70) w61Var.f17876a).a(), (ft0) w61Var.f17877b.zzb());
                i8.c cVar4 = (i8.c) this.f19356c.zzb();
                vj1.i(a30Var10);
                return new v31(v61Var, ((Long) fp.f11334d.j()).longValue(), cVar4, a30Var10, (cr0) this.f19357d.zzb());
            default:
                q11 q11Var = new q11(((o70) ((s11) this.f19355b).f16275a).a());
                i8.c cVar5 = (i8.c) this.f19356c.zzb();
                a30 a30Var11 = b30.f9359a;
                vj1.i(a30Var11);
                return new v31(q11Var, 2147483647L, cVar5, a30Var11, (cr0) this.f19357d.zzb());
        }
    }

    public zo(og2 og2Var, p70 p70Var, og2 og2Var2) {
        this.f19354a = 17;
        this.f19355b = og2Var;
        this.f19356c = p70Var;
        this.f19357d = og2Var2;
    }

    public /* synthetic */ zo(og2 og2Var, og2 og2Var2, og2 og2Var3, int i10) {
        this.f19354a = i10;
        this.f19355b = og2Var;
        this.f19356c = og2Var2;
        this.f19357d = og2Var3;
    }

    public /* synthetic */ zo(og2 og2Var, og2 og2Var2, og2 og2Var3, int i10, int i11) {
        this.f19354a = i10;
        this.f19355b = og2Var;
        this.f19356c = og2Var2;
        this.f19357d = og2Var3;
    }
}
