package n7;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.internal.ads.aj;
import com.google.android.gms.internal.ads.gu;
import com.google.android.gms.internal.ads.ir;
import com.google.android.gms.internal.ads.jr;
import com.google.android.gms.internal.ads.kq;
import com.google.android.gms.internal.ads.kr;
import com.google.android.gms.internal.ads.ku;
import com.google.android.gms.internal.ads.lr;
import com.google.android.gms.internal.ads.mr;
import com.google.android.gms.internal.ads.mu;
import com.google.android.gms.internal.ads.or;
import com.google.android.gms.internal.ads.pr;
import com.google.android.gms.internal.ads.rr;
import com.google.android.gms.internal.ads.ur;
import com.google.android.gms.internal.ads.vr;
import com.google.android.gms.internal.ads.wr;
import com.google.android.gms.internal.ads.yr;
import com.google.android.gms.internal.ads.zi;

/* JADX INFO: loaded from: classes2.dex */
public abstract class m0 extends zi implements n0 {
    public m0() {
        super("com.google.android.gms.ads.internal.client.IAdLoaderBuilder");
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        rr prVar;
        e0 c0Var = null;
        mu kuVar = null;
        yr wrVar = null;
        vr urVar = null;
        k1 k1Var = null;
        or mrVar = null;
        lr krVar = null;
        jr irVar = null;
        switch (i10) {
            case 1:
                k0 k0VarZze = zze();
                parcel2.writeNoException();
                aj.d(parcel2, k0VarZze);
                return true;
            case 2:
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder != null) {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdListener");
                    c0Var = iInterfaceQueryLocalInterface instanceof e0 ? (e0) iInterfaceQueryLocalInterface : new c0(strongBinder);
                }
                aj.e(parcel);
                T(c0Var);
                parcel2.writeNoException();
                return true;
            case 3:
                IBinder strongBinder2 = parcel.readStrongBinder();
                if (strongBinder2 != null) {
                    IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnAppInstallAdLoadedListener");
                    irVar = iInterfaceQueryLocalInterface2 instanceof jr ? (jr) iInterfaceQueryLocalInterface2 : new ir(strongBinder2, "com.google.android.gms.ads.internal.formats.client.IOnAppInstallAdLoadedListener", 0);
                }
                aj.e(parcel);
                t0(irVar);
                parcel2.writeNoException();
                return true;
            case 4:
                IBinder strongBinder3 = parcel.readStrongBinder();
                if (strongBinder3 != null) {
                    IInterface iInterfaceQueryLocalInterface3 = strongBinder3.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnContentAdLoadedListener");
                    krVar = iInterfaceQueryLocalInterface3 instanceof lr ? (lr) iInterfaceQueryLocalInterface3 : new kr(strongBinder3, "com.google.android.gms.ads.internal.formats.client.IOnContentAdLoadedListener", 0);
                }
                aj.e(parcel);
                L1(krVar);
                parcel2.writeNoException();
                return true;
            case 5:
                String string = parcel.readString();
                IBinder strongBinder4 = parcel.readStrongBinder();
                if (strongBinder4 == null) {
                    prVar = null;
                } else {
                    IInterface iInterfaceQueryLocalInterface4 = strongBinder4.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnCustomTemplateAdLoadedListener");
                    prVar = iInterfaceQueryLocalInterface4 instanceof rr ? (rr) iInterfaceQueryLocalInterface4 : new pr(strongBinder4, "com.google.android.gms.ads.internal.formats.client.IOnCustomTemplateAdLoadedListener", 0);
                }
                IBinder strongBinder5 = parcel.readStrongBinder();
                if (strongBinder5 != null) {
                    IInterface iInterfaceQueryLocalInterface5 = strongBinder5.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnCustomClickListener");
                    mrVar = iInterfaceQueryLocalInterface5 instanceof or ? (or) iInterfaceQueryLocalInterface5 : new mr(strongBinder5, "com.google.android.gms.ads.internal.formats.client.IOnCustomClickListener", 0);
                }
                aj.e(parcel);
                zzi(string, prVar, mrVar);
                parcel2.writeNoException();
                return true;
            case 6:
                kq kqVar = (kq) aj.a(parcel, kq.CREATOR);
                aj.e(parcel);
                z1(kqVar);
                parcel2.writeNoException();
                return true;
            case 7:
                IBinder strongBinder6 = parcel.readStrongBinder();
                if (strongBinder6 != null) {
                    IInterface iInterfaceQueryLocalInterface6 = strongBinder6.queryLocalInterface("com.google.android.gms.ads.internal.client.ICorrelationIdProvider");
                    k1Var = iInterfaceQueryLocalInterface6 instanceof k1 ? (k1) iInterfaceQueryLocalInterface6 : new k1(strongBinder6);
                }
                aj.e(parcel);
                j0(k1Var);
                parcel2.writeNoException();
                return true;
            case 8:
                IBinder strongBinder7 = parcel.readStrongBinder();
                if (strongBinder7 != null) {
                    IInterface iInterfaceQueryLocalInterface7 = strongBinder7.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnPublisherAdViewLoadedListener");
                    urVar = iInterfaceQueryLocalInterface7 instanceof vr ? (vr) iInterfaceQueryLocalInterface7 : new ur(strongBinder7, "com.google.android.gms.ads.internal.formats.client.IOnPublisherAdViewLoadedListener", 0);
                }
                f4 f4Var = (f4) aj.a(parcel, f4.CREATOR);
                aj.e(parcel);
                f0(urVar, f4Var);
                parcel2.writeNoException();
                return true;
            case 9:
                j7.d dVar = (j7.d) aj.a(parcel, j7.d.CREATOR);
                aj.e(parcel);
                w2(dVar);
                parcel2.writeNoException();
                return true;
            case 10:
                IBinder strongBinder8 = parcel.readStrongBinder();
                if (strongBinder8 != null) {
                    IInterface iInterfaceQueryLocalInterface8 = strongBinder8.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnUnifiedNativeAdLoadedListener");
                    wrVar = iInterfaceQueryLocalInterface8 instanceof yr ? (yr) iInterfaceQueryLocalInterface8 : new wr(strongBinder8, "com.google.android.gms.ads.internal.formats.client.IOnUnifiedNativeAdLoadedListener", 0);
                }
                aj.e(parcel);
                V(wrVar);
                parcel2.writeNoException();
                return true;
            case 11:
            case 12:
            default:
                return false;
            case 13:
                gu guVar = (gu) aj.a(parcel, gu.CREATOR);
                aj.e(parcel);
                A2(guVar);
                parcel2.writeNoException();
                return true;
            case 14:
                IBinder strongBinder9 = parcel.readStrongBinder();
                if (strongBinder9 != null) {
                    IInterface iInterfaceQueryLocalInterface9 = strongBinder9.queryLocalInterface("com.google.android.gms.ads.internal.instream.client.IInstreamAdLoadCallback");
                    kuVar = iInterfaceQueryLocalInterface9 instanceof mu ? (mu) iInterfaceQueryLocalInterface9 : new ku(strongBinder9, "com.google.android.gms.ads.internal.instream.client.IInstreamAdLoadCallback", 0);
                }
                aj.e(parcel);
                s0(kuVar);
                parcel2.writeNoException();
                return true;
            case 15:
                j7.a aVar = (j7.a) aj.a(parcel, j7.a.CREATOR);
                aj.e(parcel);
                f2(aVar);
                parcel2.writeNoException();
                return true;
        }
    }

    public abstract /* synthetic */ void zzi(String str, rr rrVar, @Nullable or orVar) throws RemoteException;
}
