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

import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;

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

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        cw awVar;
        m00 k00Var;
        cw awVar2 = null;
        cw awVar3 = null;
        cw awVar4 = null;
        cw awVar5 = null;
        bu auVar = null;
        cw awVar6 = null;
        m00 k00Var2 = null;
        cw awVar7 = null;
        cw awVar8 = null;
        cw awVar9 = null;
        switch (i10) {
            case 1:
                k8.a aVarM = k8.b.M(parcel.readStrongBinder());
                n7.f4 f4Var = (n7.f4) aj.a(parcel, n7.f4.CREATOR);
                n7.a4 a4Var = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string = parcel.readString();
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder != null) {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar2 = iInterfaceQueryLocalInterface instanceof cw ? (cw) iInterfaceQueryLocalInterface : new aw(strongBinder);
                }
                cw cwVar = awVar2;
                aj.e(parcel);
                ((ow) this).W0(aVarM, f4Var, a4Var, string, null, cwVar);
                parcel2.writeNoException();
                return true;
            case 2:
                k8.a aVarZzf = ((ow) this).zzf();
                parcel2.writeNoException();
                aj.d(parcel2, aVarZzf);
                return true;
            case 3:
                k8.a aVarM2 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var2 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string2 = parcel.readString();
                IBinder strongBinder2 = parcel.readStrongBinder();
                if (strongBinder2 != null) {
                    IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar9 = iInterfaceQueryLocalInterface2 instanceof cw ? (cw) iInterfaceQueryLocalInterface2 : new aw(strongBinder2);
                }
                cw cwVar2 = awVar9;
                aj.e(parcel);
                ((ow) this).J0(aVarM2, a4Var2, string2, null, cwVar2);
                parcel2.writeNoException();
                return true;
            case 4:
                ((ow) this).zzh();
                parcel2.writeNoException();
                return true;
            case 5:
                ((ow) this).zzi();
                parcel2.writeNoException();
                return true;
            case 6:
                k8.a aVarM3 = k8.b.M(parcel.readStrongBinder());
                n7.f4 f4Var2 = (n7.f4) aj.a(parcel, n7.f4.CREATOR);
                n7.a4 a4Var3 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string3 = parcel.readString();
                String string4 = parcel.readString();
                IBinder strongBinder3 = parcel.readStrongBinder();
                if (strongBinder3 != null) {
                    IInterface iInterfaceQueryLocalInterface3 = strongBinder3.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar8 = iInterfaceQueryLocalInterface3 instanceof cw ? (cw) iInterfaceQueryLocalInterface3 : new aw(strongBinder3);
                }
                cw cwVar3 = awVar8;
                aj.e(parcel);
                ((ow) this).W0(aVarM3, f4Var2, a4Var3, string3, string4, cwVar3);
                parcel2.writeNoException();
                return true;
            case 7:
                k8.a aVarM4 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var4 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string5 = parcel.readString();
                String string6 = parcel.readString();
                IBinder strongBinder4 = parcel.readStrongBinder();
                if (strongBinder4 != null) {
                    IInterface iInterfaceQueryLocalInterface4 = strongBinder4.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar7 = iInterfaceQueryLocalInterface4 instanceof cw ? (cw) iInterfaceQueryLocalInterface4 : new aw(strongBinder4);
                }
                cw cwVar4 = awVar7;
                aj.e(parcel);
                ((ow) this).J0(aVarM4, a4Var4, string5, string6, cwVar4);
                parcel2.writeNoException();
                return true;
            case 8:
                ((ow) this).zzl();
                parcel2.writeNoException();
                return true;
            case 9:
                ((ow) this).zzm();
                parcel2.writeNoException();
                return true;
            case 10:
                k8.a aVarM5 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var5 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string7 = parcel.readString();
                IBinder strongBinder5 = parcel.readStrongBinder();
                if (strongBinder5 != null) {
                    IInterface iInterfaceQueryLocalInterface5 = strongBinder5.queryLocalInterface("com.google.android.gms.ads.internal.reward.mediation.client.IMediationRewardedVideoAdListener");
                    k00Var2 = iInterfaceQueryLocalInterface5 instanceof m00 ? (m00) iInterfaceQueryLocalInterface5 : new k00(strongBinder5, "com.google.android.gms.ads.internal.reward.mediation.client.IMediationRewardedVideoAdListener", 0);
                }
                String string8 = parcel.readString();
                aj.e(parcel);
                zzn(aVarM5, a4Var5, string7, k00Var2, string8);
                parcel2.writeNoException();
                return true;
            case 11:
                n7.a4 a4Var6 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string9 = parcel.readString();
                aj.e(parcel);
                ((ow) this).U2(a4Var6, string9);
                parcel2.writeNoException();
                return true;
            case 12:
                ((ow) this).zzp();
                throw null;
            case 13:
                boolean zZzq = ((ow) this).zzq();
                parcel2.writeNoException();
                ClassLoader classLoader = aj.f8714a;
                parcel2.writeInt(zZzq ? 1 : 0);
                return true;
            case 14:
                k8.a aVarM6 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var7 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string10 = parcel.readString();
                String string11 = parcel.readString();
                IBinder strongBinder6 = parcel.readStrongBinder();
                if (strongBinder6 == null) {
                    awVar = null;
                } else {
                    IInterface iInterfaceQueryLocalInterface6 = strongBinder6.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar = iInterfaceQueryLocalInterface6 instanceof cw ? (cw) iInterfaceQueryLocalInterface6 : new aw(strongBinder6);
                }
                kq kqVar = (kq) aj.a(parcel, kq.CREATOR);
                ArrayList<String> arrayListCreateStringArrayList = parcel.createStringArrayList();
                aj.e(parcel);
                zzr(aVarM6, a4Var7, string10, string11, awVar, kqVar, arrayListCreateStringArrayList);
                parcel2.writeNoException();
                return true;
            case 15:
                parcel2.writeNoException();
                aj.d(parcel2, null);
                return true;
            case 16:
                parcel2.writeNoException();
                aj.d(parcel2, null);
                return true;
            case 17:
                Bundle bundle = new Bundle();
                parcel2.writeNoException();
                aj.c(parcel2, bundle);
                return true;
            case 18:
                Bundle bundle2 = new Bundle();
                parcel2.writeNoException();
                aj.c(parcel2, bundle2);
                return true;
            case 19:
                Bundle bundle3 = new Bundle();
                parcel2.writeNoException();
                aj.c(parcel2, bundle3);
                return true;
            case 20:
                n7.a4 a4Var8 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string12 = parcel.readString();
                parcel.readString();
                aj.e(parcel);
                ((ow) this).U2(a4Var8, string12);
                parcel2.writeNoException();
                return true;
            case 21:
                ((ow) this).J(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                parcel2.writeNoException();
                return true;
            case 22:
                parcel2.writeNoException();
                ClassLoader classLoader2 = aj.f8714a;
                parcel2.writeInt(0);
                return true;
            case 23:
                k8.a aVarM7 = k8.b.M(parcel.readStrongBinder());
                IBinder strongBinder7 = parcel.readStrongBinder();
                if (strongBinder7 != null) {
                    IInterface iInterfaceQueryLocalInterface7 = strongBinder7.queryLocalInterface("com.google.android.gms.ads.internal.reward.mediation.client.IMediationRewardedVideoAdListener");
                    k00Var = iInterfaceQueryLocalInterface7 instanceof m00 ? (m00) iInterfaceQueryLocalInterface7 : new k00(strongBinder7, "com.google.android.gms.ads.internal.reward.mediation.client.IMediationRewardedVideoAdListener", 0);
                } else {
                    k00Var = null;
                }
                ArrayList<String> arrayListCreateStringArrayList2 = parcel.createStringArrayList();
                aj.e(parcel);
                ((ow) this).X1(aVarM7, k00Var, arrayListCreateStringArrayList2);
                throw null;
            case 24:
                gr grVarZzz = ((ow) this).zzz();
                parcel2.writeNoException();
                aj.d(parcel2, grVarZzz);
                return true;
            case 25:
                ClassLoader classLoader3 = aj.f8714a;
                boolean z10 = parcel.readInt() != 0;
                aj.e(parcel);
                ((ow) this).h1(z10);
                parcel2.writeNoException();
                return true;
            case 26:
                n7.p2 p2VarZzB = ((ow) this).zzB();
                parcel2.writeNoException();
                aj.d(parcel2, p2VarZzB);
                return true;
            case 27:
                kw kwVarZzC = ((ow) this).zzC();
                parcel2.writeNoException();
                aj.d(parcel2, kwVarZzC);
                return true;
            case 28:
                k8.a aVarM8 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var9 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string13 = parcel.readString();
                IBinder strongBinder8 = parcel.readStrongBinder();
                if (strongBinder8 != null) {
                    IInterface iInterfaceQueryLocalInterface8 = strongBinder8.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar6 = iInterfaceQueryLocalInterface8 instanceof cw ? (cw) iInterfaceQueryLocalInterface8 : new aw(strongBinder8);
                }
                aj.e(parcel);
                ((ow) this).P0(aVarM8, a4Var9, string13, awVar6);
                parcel2.writeNoException();
                return true;
            case 29:
            default:
                return false;
            case 30:
                ((ow) this).E1(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                throw null;
            case 31:
                k8.a aVarM9 = k8.b.M(parcel.readStrongBinder());
                IBinder strongBinder9 = parcel.readStrongBinder();
                if (strongBinder9 != null) {
                    IInterface iInterfaceQueryLocalInterface9 = strongBinder9.queryLocalInterface("com.google.android.gms.ads.internal.initialization.IAdapterInitializationCallback");
                    auVar = iInterfaceQueryLocalInterface9 instanceof bu ? (bu) iInterfaceQueryLocalInterface9 : new au(strongBinder9, "com.google.android.gms.ads.internal.initialization.IAdapterInitializationCallback", 0);
                }
                ArrayList arrayListCreateTypedArrayList = parcel.createTypedArrayList(fu.CREATOR);
                aj.e(parcel);
                ((ow) this).l2(aVarM9, auVar, arrayListCreateTypedArrayList);
                parcel2.writeNoException();
                return true;
            case 32:
                k8.a aVarM10 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var10 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string14 = parcel.readString();
                IBinder strongBinder10 = parcel.readStrongBinder();
                if (strongBinder10 != null) {
                    IInterface iInterfaceQueryLocalInterface10 = strongBinder10.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar5 = iInterfaceQueryLocalInterface10 instanceof cw ? (cw) iInterfaceQueryLocalInterface10 : new aw(strongBinder10);
                }
                aj.e(parcel);
                ((ow) this).b2(aVarM10, a4Var10, string14, awVar5);
                parcel2.writeNoException();
                return true;
            case 33:
                px pxVarZzH = ((ow) this).zzH();
                parcel2.writeNoException();
                aj.c(parcel2, pxVarZzH);
                return true;
            case 34:
                px pxVarZzI = ((ow) this).zzI();
                parcel2.writeNoException();
                aj.c(parcel2, pxVarZzI);
                return true;
            case 35:
                k8.a aVarM11 = k8.b.M(parcel.readStrongBinder());
                n7.f4 f4Var3 = (n7.f4) aj.a(parcel, n7.f4.CREATOR);
                n7.a4 a4Var11 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string15 = parcel.readString();
                String string16 = parcel.readString();
                IBinder strongBinder11 = parcel.readStrongBinder();
                if (strongBinder11 != null) {
                    IInterface iInterfaceQueryLocalInterface11 = strongBinder11.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar4 = iInterfaceQueryLocalInterface11 instanceof cw ? (cw) iInterfaceQueryLocalInterface11 : new aw(strongBinder11);
                }
                cw cwVar5 = awVar4;
                aj.e(parcel);
                ((ow) this).Z(aVarM11, f4Var3, a4Var11, string15, string16, cwVar5);
                parcel2.writeNoException();
                return true;
            case 36:
                ew ewVarZzK = ((ow) this).zzK();
                parcel2.writeNoException();
                aj.d(parcel2, ewVarZzK);
                return true;
            case 37:
                ((ow) this).i2(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                parcel2.writeNoException();
                return true;
            case 38:
                k8.a aVarM12 = k8.b.M(parcel.readStrongBinder());
                n7.a4 a4Var12 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                String string17 = parcel.readString();
                IBinder strongBinder12 = parcel.readStrongBinder();
                if (strongBinder12 != null) {
                    IInterface iInterfaceQueryLocalInterface12 = strongBinder12.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener");
                    awVar3 = iInterfaceQueryLocalInterface12 instanceof cw ? (cw) iInterfaceQueryLocalInterface12 : new aw(strongBinder12);
                }
                aj.e(parcel);
                ((ow) this).A0(aVarM12, a4Var12, string17, awVar3);
                parcel2.writeNoException();
                return true;
            case 39:
                ((ow) this).u1(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                throw null;
        }
    }

    public abstract /* synthetic */ void zzn(k8.a aVar, n7.a4 a4Var, @Nullable String str, m00 m00Var, String str2) throws RemoteException;

    public abstract /* synthetic */ void zzr(k8.a aVar, n7.a4 a4Var, String str, String str2, cw cwVar, @Nullable kq kqVar, List list) throws RemoteException;
}
