package com.google.android.gms.ads.nonagon.signalgeneration;

import android.content.Context;
import android.os.Bundle;
import com.google.android.gms.internal.ads.a30;
import com.google.android.gms.internal.ads.al1;
import com.google.android.gms.internal.ads.ao;
import com.google.android.gms.internal.ads.at;
import com.google.android.gms.internal.ads.b30;
import com.google.android.gms.internal.ads.be0;
import com.google.android.gms.internal.ads.bq0;
import com.google.android.gms.internal.ads.c31;
import com.google.android.gms.internal.ads.c61;
import com.google.android.gms.internal.ads.cd1;
import com.google.android.gms.internal.ads.ce0;
import com.google.android.gms.internal.ads.cr0;
import com.google.android.gms.internal.ads.cx0;
import com.google.android.gms.internal.ads.d11;
import com.google.android.gms.internal.ads.f01;
import com.google.android.gms.internal.ads.fd0;
import com.google.android.gms.internal.ads.fz0;
import com.google.android.gms.internal.ads.g11;
import com.google.android.gms.internal.ads.gb1;
import com.google.android.gms.internal.ads.gs0;
import com.google.android.gms.internal.ads.h01;
import com.google.android.gms.internal.ads.hs0;
import com.google.android.gms.internal.ads.hw0;
import com.google.android.gms.internal.ads.ib1;
import com.google.android.gms.internal.ads.ih1;
import com.google.android.gms.internal.ads.jd0;
import com.google.android.gms.internal.ads.jg2;
import com.google.android.gms.internal.ads.jp1;
import com.google.android.gms.internal.ads.jr0;
import com.google.android.gms.internal.ads.ke0;
import com.google.android.gms.internal.ads.kg2;
import com.google.android.gms.internal.ads.l20;
import com.google.android.gms.internal.ads.la1;
import com.google.android.gms.internal.ads.le0;
import com.google.android.gms.internal.ads.lj0;
import com.google.android.gms.internal.ads.lq0;
import com.google.android.gms.internal.ads.me0;
import com.google.android.gms.internal.ads.mj0;
import com.google.android.gms.internal.ads.nd1;
import com.google.android.gms.internal.ads.ni;
import com.google.android.gms.internal.ads.nk0;
import com.google.android.gms.internal.ads.o70;
import com.google.android.gms.internal.ads.o80;
import com.google.android.gms.internal.ads.og2;
import com.google.android.gms.internal.ads.oo1;
import com.google.android.gms.internal.ads.p70;
import com.google.android.gms.internal.ads.pg2;
import com.google.android.gms.internal.ads.qe1;
import com.google.android.gms.internal.ads.qy0;
import com.google.android.gms.internal.ads.st0;
import com.google.android.gms.internal.ads.tg;
import com.google.android.gms.internal.ads.u70;
import com.google.android.gms.internal.ads.ub1;
import com.google.android.gms.internal.ads.vc1;
import com.google.android.gms.internal.ads.vj1;
import com.google.android.gms.internal.ads.w91;
import com.google.android.gms.internal.ads.wa0;
import com.google.android.gms.internal.ads.wp0;
import com.google.android.gms.internal.ads.zq0;
import com.google.android.gms.internal.ads.zzdxh;
import com.google.android.gms.internal.ads.zzfno;
import java.io.File;
import java.lang.ref.WeakReference;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import n7.f4;

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

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

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

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

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

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

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

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

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

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

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

    public /* synthetic */ z(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, og2 og2Var5, og2 og2Var6, og2 og2Var7, og2 og2Var8, og2 og2Var9, int i10) {
        this.f8156a = i10;
        this.f8157b = og2Var;
        this.f8158c = og2Var2;
        this.f8159d = og2Var3;
        this.f8160e = og2Var4;
        this.f8161f = og2Var5;
        this.f8162g = og2Var6;
        this.f8163h = og2Var7;
        this.f8164i = og2Var8;
        this.f8165j = og2Var9;
    }

    public static z a(o70 o70Var, ke0 ke0Var, og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, og2 og2Var5, og2 og2Var6, og2 og2Var7) {
        return new z(o70Var, ke0Var, og2Var, og2Var2, og2Var3, og2Var4, og2Var5, og2Var6, og2Var7, 6);
    }

    public static z b(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, og2 og2Var5, og2 og2Var6, og2 og2Var7, og2 og2Var8, og2 og2Var9) {
        return new z(ni.X, og2Var, og2Var2, og2Var3, og2Var4, og2Var5, og2Var6, og2Var7, og2Var8, og2Var9, 7);
    }

    @Override // com.google.android.gms.internal.ads.rg2
    public final Object zzb() {
        int i10 = this.f8156a;
        og2 og2Var = this.f8165j;
        og2 og2Var2 = this.f8164i;
        og2 og2Var3 = this.f8163h;
        og2 og2Var4 = this.f8162g;
        og2 og2Var5 = this.f8161f;
        og2 og2Var6 = this.f8160e;
        og2 og2Var7 = this.f8159d;
        og2 og2Var8 = this.f8158c;
        og2 og2Var9 = this.f8157b;
        switch (i10) {
            case 0:
                p pVar = (p) og2Var9.zzb();
                cd1 cd1Var = (cd1) og2Var8.zzb();
                b0 b0Var = (b0) og2Var7;
                b0Var.getClass();
                a30 a30Var = b30.f9359a;
                vj1.i(a30Var);
                a0 a0Var = new a0(a30Var, ((st0) b0Var.f8003a).zzb());
                be0 be0VarA = ((ce0) og2Var6).zzb();
                nk0 nk0Var = (nk0) og2Var5.zzb();
                v vVar = (v) og2Var4.zzb();
                l20 l20Var = (l20) og2Var3.zzb();
                int iIntValue = ((Integer) og2Var2.zzb()).intValue();
                ib1 ib1VarA = ((me0) og2Var).a();
                c0 c0VarZzb = null;
                if (iIntValue == 1 && l20Var != null) {
                    String strA = zzdxh.READ_FROM_DISK_START.a();
                    m7.n nVar = m7.n.C;
                    nVar.f30472k.getClass();
                    long jCurrentTimeMillis = System.currentTimeMillis();
                    Bundle bundle = ib1VarA.f12466o;
                    bundle.putLong(strA, jCurrentTimeMillis);
                    c0VarZzb = vVar.zzb(l20Var, pVar, bundle);
                    com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.n(nVar.f30472k, bundle, zzdxh.READ_FROM_DISK_END.a());
                }
                if (c0VarZzb != null) {
                    nk0Var.zza(c0VarZzb);
                    return ih1.k(c0VarZzb);
                }
                vc1 vc1VarF = cd1Var.a(be0VarA.b(), zzfno.GENERATE_SIGNALS).b(a0Var).e(((Integer) n7.y.f31093e.f31096c.b(ao.f9083t6)).intValue(), TimeUnit.SECONDS).f();
                ih1.z1(vc1VarF, new r(nk0Var), a30Var);
                return vc1VarF;
            case 1:
                Executor executor = (Executor) og2Var9.zzb();
                Context contextA = ((o70) og2Var8).a();
                WeakReference weakReference = ((p70) og2Var7).f15284a.f12752d;
                vj1.i(weakReference);
                a30 a30Var2 = b30.f9359a;
                vj1.i(a30Var2);
                return new gs0(executor, contextA, weakReference, a30Var2, (lq0) og2Var6.zzb(), (ScheduledExecutorService) og2Var5.zzb(), (jr0) og2Var4.zzb(), ((u70) og2Var3).a(), new lj0(((pg2) ((mj0) og2Var2).f14239a).zzb()), (nd1) og2Var.zzb());
            case 2:
                wa0 wa0Var = (wa0) og2Var9.zzb();
                return new cx0(wa0Var, (Executor) og2Var7.zzb(), (bq0) og2Var6.zzb(), ((me0) og2Var5).a(), ((u70) og2Var4).a(), new at(), (hw0) og2Var3.zzb(), (zq0) og2Var2.zzb(), (cr0) og2Var.zzb());
            case 3:
                return new fz0((Context) og2Var9.zzb(), ((u70) og2Var8).a(), ((me0) og2Var7).a(), (Executor) og2Var6.zzb(), (o80) og2Var5.zzb(), (bq0) og2Var4.zzb(), new at(), (hw0) og2Var3.zzb(), (zq0) og2Var2.zzb(), (cr0) og2Var.zzb());
            case 4:
                return new fz0((Context) og2Var9.zzb(), ((u70) og2Var8).a(), ((me0) og2Var7).a(), (Executor) og2Var6.zzb(), (wp0) og2Var5.zzb(), (bq0) og2Var4.zzb(), new at(), (hw0) og2Var3.zzb(), (zq0) og2Var2.zzb(), (cr0) og2Var.zzb());
            case 5:
                return new g11((Context) og2Var9.zzb(), (f4) og2Var8.zzb(), (String) og2Var7.zzb(), (w91) og2Var6.zzb(), (d11) og2Var5.zzb(), (la1) og2Var4.zzb(), ((u70) og2Var3).a(), (tg) og2Var2.zzb(), (cr0) og2Var.zzb());
            case 6:
                Context contextA2 = ((o70) og2Var9).a();
                String str = ((fd0) ((ke0) og2Var8).f13244a.zzb()).f11180b.f14813e;
                vj1.i(str);
                return new c31(contextA2, str, (String) og2Var7.zzb(), (fd0) og2Var6.zzb(), (ub1) og2Var5.zzb(), ((me0) og2Var4).a(), (zq0) og2Var3.zzb(), (jd0) og2Var2.zzb(), ((Long) og2Var.zzb()).longValue());
            case 7:
                a30 a30Var3 = b30.f9359a;
                vj1.i(a30Var3);
                return new c61(a30Var3, (ScheduledExecutorService) og2Var9.zzb(), (String) og2Var8.zzb(), (h01) og2Var7.zzb(), (Context) og2Var6.zzb(), ((me0) og2Var5).a(), (f01) og2Var4.zzb(), (lq0) og2Var3.zzb(), (hs0) og2Var2.zzb(), ((Integer) og2Var.zzb()).intValue());
            case 8:
                qy0 qy0Var = (qy0) og2Var9.zzb();
                q7.a aVarA = ((u70) og2Var8).a();
                String str2 = ((fd0) ((ke0) og2Var7).f13244a.zzb()).f11180b.f14813e;
                vj1.i(str2);
                return new qe1(qy0Var, aVarA, str2, (String) og2Var6.zzb(), ((o70) og2Var5).a(), ((le0) og2Var4).zza(), (gb1) og2Var3.zzb(), (i8.c) og2Var2.zzb(), (tg) og2Var.zzb());
            default:
                return new oo1((al1) og2Var9.zzb(), (al1) og2Var8.zzb(), jg2.b(og2Var7), (al1) og2Var6.zzb(), (al1) og2Var5.zzb(), jg2.b(og2Var4), (File) og2Var3.zzb(), (ExecutorService) og2Var2.zzb(), (jp1) og2Var.zzb());
        }
    }

    public /* synthetic */ z(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, og2 og2Var5, og2 og2Var6, og2 og2Var7, og2 og2Var8, og2 og2Var9, int i10, int i11) {
        this.f8156a = i10;
        this.f8157b = og2Var;
        this.f8158c = og2Var2;
        this.f8159d = og2Var3;
        this.f8160e = og2Var4;
        this.f8161f = og2Var5;
        this.f8162g = og2Var6;
        this.f8163h = og2Var7;
        this.f8164i = og2Var8;
        this.f8165j = og2Var9;
    }

    public z(og2 og2Var, og2 og2Var2, og2 og2Var3, og2 og2Var4, og2 og2Var5, og2 og2Var6, og2 og2Var7, og2 og2Var8, og2 og2Var9, og2 og2Var10, int i10) {
        this.f8156a = i10;
        if (i10 != 7) {
            this.f8157b = og2Var;
            this.f8158c = og2Var2;
            this.f8159d = og2Var3;
            this.f8160e = og2Var5;
            this.f8161f = og2Var6;
            this.f8162g = og2Var7;
            this.f8163h = og2Var8;
            this.f8164i = og2Var9;
            this.f8165j = og2Var10;
            return;
        }
        this.f8157b = og2Var2;
        this.f8158c = og2Var3;
        this.f8159d = og2Var4;
        this.f8160e = og2Var5;
        this.f8161f = og2Var6;
        this.f8162g = og2Var7;
        this.f8163h = og2Var8;
        this.f8164i = og2Var9;
        this.f8165j = og2Var10;
    }
}
