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

import android.content.Context;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;

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

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

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

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

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

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

    public xa0(og2 og2Var, o70 o70Var, og2 og2Var2, og2 og2Var3) {
        this.f18386a = 13;
        this.f18387b = og2Var;
        this.f18388c = o70Var;
        this.f18389d = og2Var2;
        this.f18390e = og2Var3;
    }

    public static xa0 a(x21 x21Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(x21Var, og2Var, og2Var2, og2Var3, 16);
    }

    public static xa0 b(g31 g31Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(g31Var, og2Var, og2Var2, og2Var3, 17);
    }

    public static xa0 c(j31 j31Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(j31Var, og2Var, og2Var2, og2Var3, 18);
    }

    public static xa0 d(w41 w41Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(w41Var, og2Var, og2Var2, og2Var3, 19);
    }

    public static xa0 e(i61 i61Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(i61Var, og2Var, og2Var2, og2Var3, 20);
    }

    public static xa0 f(a71 a71Var, og2 og2Var, og2 og2Var2, og2 og2Var3) {
        return new xa0(a71Var, og2Var, og2Var2, og2Var3, 21);
    }

    public static xa0 g(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4) {
        return new xa0(og2Var, og2Var2, og2Var3, og2Var4, 3);
    }

    /* JADX WARN: Removed duplicated region for block: B:61:0x039c  */
    @Override // com.google.android.gms.internal.ads.rg2
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object zzb() {
        com.google.common.util.concurrent.w wVarG;
        int i10 = this.f18386a;
        og2 og2Var = this.f18390e;
        og2 og2Var2 = this.f18389d;
        og2 og2Var3 = this.f18388c;
        og2 og2Var4 = this.f18387b;
        switch (i10) {
            case 0:
                ix0 ix0Var = (ix0) og2Var2;
                return new qz0((cd1) og2Var4.zzb(), (dv1) og2Var3.zzb(), ((lz0) og2Var).zzb(), new hx0((Context) ix0Var.f12642a.zzb(), (wa0) ix0Var.f12643b.zzb()));
            case 1:
                ox0 ox0Var = (ox0) og2Var2;
                return new qz0((cd1) og2Var4.zzb(), (dv1) og2Var3.zzb(), ((lz0) og2Var).zzb(), new nx0((Context) ox0Var.f15192a.zzb(), (xb0) ox0Var.f15193b.zzb()));
            case 2:
                return new bc0(((wc0) og2Var4).a(), (gf0) og2Var3.zzb(), (dg0) og2Var2.zzb(), (ug0) og2Var.zzb());
            case 3:
                return new id0((i8.c) og2Var4.zzb(), (jd0) og2Var3.zzb(), ((me0) og2Var2).a(), (String) og2Var.zzb());
            case 4:
                return new ak0(new jb0((Context) og2Var4.zzb(), ((u70) og2Var3).a(), ((wc0) og2Var2).a(), ((me0) og2Var).a(), 1), b30.f9365g);
            case 5:
                ay0 ay0Var = (ay0) og2Var2;
                return new qz0((cd1) og2Var4.zzb(), (dv1) og2Var3.zzb(), ((lz0) og2Var).zzb(), new zx0((Context) ay0Var.f9306a.zzb(), (o80) ay0Var.f9307b.zzb()));
            case 6:
                ij ijVar = (ij) og2Var4.zzb();
                return new qa0((Executor) og2Var3.zzb(), new ka0((Context) og2Var2.zzb(), ijVar), (i8.c) og2Var.zzb());
            case 7:
                bq0 bq0Var = (bq0) og2Var4.zzb();
                kp0 kp0Var = ((bm0) og2Var3).f9576a.f18114b;
                vj1.i(kp0Var);
                qa0 qa0Var = (qa0) og2Var2.zzb();
                ul0 ul0Var = (ul0) ((am0) og2Var).f8742a.zzb();
                vj1.i(ul0Var);
                return new jn0(bq0Var, kp0Var, qa0Var, ul0Var);
            case 8:
                return new bp0(((o70) og2Var4).a(), ym0.a(((ym0) og2Var3).f18888a), ((dn0) og2Var2).zzb(), (lm0) og2Var.zzb());
            case 9:
                return new cp0(((xc0) og2Var4).f18406a.f17597c, (lm0) og2Var3.zzb(), ym0.a(((ym0) og2Var2).f18888a), (cr0) og2Var.zzb());
            case 10:
                bz0 bz0Var = (bz0) og2Var2;
                return new qz0((cd1) og2Var4.zzb(), (dv1) og2Var3.zzb(), ((lz0) og2Var).zzb(), new az0((Context) bz0Var.f9682a.zzb(), (wp0) bz0Var.f9683b.zzb()));
            case 11:
                a30 a30Var = b30.f9359a;
                vj1.i(a30Var);
                q7.m mVar = (q7.m) og2Var4.zzb();
                u7.b bVar = (u7.b) og2Var3;
                u7.a aVar = new u7.a((Context) bVar.f33364a.zzb(), (q7.a) bVar.f33365b.zzb());
                ((u7.c) og2Var2).getClass();
                return new gr0(a30Var, mVar, aVar, new androidx.emoji2.text.b0(), ((o70) og2Var).a());
            case 12:
                return new et0((dt0) og2Var4.zzb(), (cr0) og2Var3.zzb(), ((o70) og2Var2).a(), ((k70) og2Var).zzb());
            case 13:
                final tg tgVar = (tg) og2Var4.zzb();
                final Context contextA = ((o70) og2Var3).a();
                ib1 ib1VarA = ((me0) og2Var2).a();
                long jLongValue = ((Long) og2Var.zzb()).longValue();
                a30 a30Var2 = b30.f9359a;
                vj1.i(a30Var2);
                int iIntValue = ((Integer) n7.y.f31093e.f31096c.b(ao.f8946l3)).intValue();
                if (iIntValue == -1 || Integer.toString(iIntValue).equals(com.google.android.gms.ads.nonagon.signalgeneration.b.zzb(com.google.android.gms.ads.nonagon.signalgeneration.b.zzc(ib1VarA.f12452a)))) {
                    m7.n.C.f30472k.getClass();
                    if (System.currentTimeMillis() - jLongValue < ((Integer) r7.f31096c.b(ao.f8980n3)).intValue()) {
                        final int i11 = 1;
                        wVarG = a30Var2.g(new Callable() { // from class: com.google.android.gms.internal.ads.nt0
                            @Override // java.util.concurrent.Callable
                            public final Object call() {
                                int i12 = i11;
                                Context context = contextA;
                                tg tgVar2 = tgVar;
                                switch (i12) {
                                    case 0:
                                        return tgVar2.f16877b.d(context);
                                    default:
                                        return tgVar2.f16877b.b(context);
                                }
                            }
                        });
                    } else {
                        final int i12 = 0;
                        wVarG = a30Var2.g(new Callable() { // from class: com.google.android.gms.internal.ads.nt0
                            @Override // java.util.concurrent.Callable
                            public final Object call() {
                                int i122 = i12;
                                Context context = contextA;
                                tg tgVar2 = tgVar;
                                switch (i122) {
                                    case 0:
                                        return tgVar2.f16877b.d(context);
                                    default:
                                        return tgVar2.f16877b.b(context);
                                }
                            }
                        });
                    }
                }
                vj1.i(wVarG);
                return wVarG;
            case 14:
                return new hw0(((o70) og2Var4).a(), (dw0) og2Var3.zzb(), (q7.m) og2Var2.zzb(), (cr0) og2Var.zzb());
            case 15:
                return new wz0((cd1) og2Var4.zzb(), (dv1) og2Var3.zzb(), ((yz0) og2Var2).zza(), new d01((o80) ((e01) og2Var).f10584a.zzb()));
            case 16:
                v21 v21VarA = ((x21) og2Var4).zzb();
                v31 v31Var = (v31) og2Var3.zzb();
                List list = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService = (ScheduledExecutorService) og2Var.zzb();
                if (list.contains("10")) {
                    return new w11(v31Var, ((Integer) n7.y.f31093e.f31096c.b(ao.rd)).intValue(), scheduledExecutorService);
                }
                return new w11(v21VarA, ((Integer) n7.y.f31093e.f31096c.b(ao.rd)).intValue(), scheduledExecutorService);
            case 17:
                e31 e31VarA = ((g31) og2Var4).zzb();
                v31 v31Var2 = (v31) og2Var3.zzb();
                List list2 = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService2 = (ScheduledExecutorService) og2Var.zzb();
                if (list2.contains("54")) {
                    return new w11(v31Var2, ((Integer) n7.y.f31093e.f31096c.b(ao.Bd)).intValue(), scheduledExecutorService2);
                }
                return new w11(e31VarA, ((Integer) n7.y.f31093e.f31096c.b(ao.Bd)).intValue(), scheduledExecutorService2);
            case 18:
                h31 h31VarA = ((j31) og2Var4).zzb();
                v31 v31Var3 = (v31) og2Var3.zzb();
                List list3 = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService3 = (ScheduledExecutorService) og2Var.zzb();
                if (list3.contains("13")) {
                    return new w11(v31Var3, ((Integer) n7.y.f31093e.f31096c.b(ao.Ad)).intValue(), scheduledExecutorService3);
                }
                return new w11(h31VarA, ((Integer) n7.y.f31093e.f31096c.b(ao.Ad)).intValue(), scheduledExecutorService3);
            case 19:
                u41 u41VarZzb = ((w41) og2Var4).zzb();
                v31 v31Var4 = (v31) og2Var3.zzb();
                List list4 = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService4 = (ScheduledExecutorService) og2Var.zzb();
                if (list4.contains("60")) {
                    return new w11(v31Var4, ((Integer) n7.y.f31093e.f31096c.b(ao.f8793be)).intValue(), scheduledExecutorService4);
                }
                return new w11(u41VarZzb, ((Integer) n7.y.f31093e.f31096c.b(ao.f8793be)).intValue(), scheduledExecutorService4);
            case 20:
                g61 g61VarA = ((i61) og2Var4).zzb();
                v31 v31Var5 = (v31) og2Var3.zzb();
                List list5 = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService5 = (ScheduledExecutorService) og2Var.zzb();
                if (list5.contains("35")) {
                    return new w11(v31Var5, ((Integer) n7.y.f31093e.f31096c.b(ao.f9007od)).intValue(), scheduledExecutorService5);
                }
                return new w11(g61VarA, ((Integer) n7.y.f31093e.f31096c.b(ao.f9007od)).intValue(), scheduledExecutorService5);
            case 21:
                z61 z61VarA = ((a71) og2Var4).zzb();
                v31 v31Var6 = (v31) og2Var3.zzb();
                List list6 = (List) og2Var2.zzb();
                ScheduledExecutorService scheduledExecutorService6 = (ScheduledExecutorService) og2Var.zzb();
                if (list6.contains("39")) {
                    return new w11(v31Var6, ((Integer) n7.y.f31093e.f31096c.b(ao.f8956ld)).intValue(), scheduledExecutorService6);
                }
                return new w11(z61VarA, ((Integer) n7.y.f31093e.f31096c.b(ao.f8956ld)).intValue(), scheduledExecutorService6);
            case 22:
                return new nd1(((o70) og2Var4).a(), ((u70) og2Var3).a(), (kq0) og2Var2.zzb(), new a00(), (e70) og2Var.zzb());
            case 23:
                return new ef1((mf1) og2Var4.zzb(), ((df1) og2Var3).zzb(), ((o70) og2Var2).a(), (i8.c) og2Var.zzb());
            case 24:
                return new el1(jg2.b(og2Var4), jg2.b(og2Var3), (ExecutorService) og2Var2.zzb(), jg2.b(og2Var));
            case 25:
                return new pm1((we) og2Var4.zzb(), (Map) og2Var3.zzb(), (bk1) og2Var2.zzb(), (jp1) og2Var.zzb());
            case 26:
                return new sm1((we) og2Var4.zzb(), (lm1) og2Var3.zzb(), (Context) og2Var2.zzb(), (jp1) og2Var.zzb(), 0);
            case 27:
                return new tm1((we) og2Var4.zzb(), (lm1) og2Var3.zzb(), (bk1) og2Var2.zzb(), (jp1) og2Var.zzb());
            case 28:
                return new tm1((we) og2Var4.zzb(), (lm1) og2Var3.zzb(), (Map) og2Var2.zzb(), (jp1) og2Var.zzb());
            default:
                return new sm1((we) og2Var4.zzb(), (lm1) og2Var3.zzb(), (Context) og2Var2.zzb(), (jp1) og2Var.zzb(), 1);
        }
    }

    public /* synthetic */ xa0(og2 og2Var, kg2 kg2Var, kg2 kg2Var2, kg2 kg2Var3, int i10) {
        this.f18386a = i10;
        this.f18387b = og2Var;
        this.f18388c = kg2Var;
        this.f18389d = kg2Var2;
        this.f18390e = kg2Var3;
    }

    public xa0(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4) {
        this.f18386a = 22;
        this.f18387b = og2Var;
        this.f18388c = og2Var2;
        this.f18389d = og2Var3;
        this.f18390e = og2Var4;
    }

    public /* synthetic */ xa0(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, int i10) {
        this.f18386a = i10;
        this.f18387b = og2Var;
        this.f18388c = og2Var2;
        this.f18389d = og2Var3;
        this.f18390e = og2Var4;
    }
}
