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;

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

    public static s00 R2(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.rewarded.client.IRewardedAd");
        return iInterfaceQueryLocalInterface instanceof s00 ? (s00) iInterfaceQueryLocalInterface : new q00(iBinder);
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        boolean z10;
        z00 x00Var = null;
        z00 x00Var2 = null;
        n7.c2 b2Var = null;
        a10 a10Var = null;
        v00 t00Var = null;
        switch (i10) {
            case 1:
                n7.a4 a4Var = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder != null) {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.rewarded.client.IRewardedAdLoadCallback");
                    x00Var = iInterfaceQueryLocalInterface instanceof z00 ? (z00) iInterfaceQueryLocalInterface : new x00(strongBinder);
                }
                aj.e(parcel);
                O2(a4Var, x00Var);
                parcel2.writeNoException();
                return true;
            case 2:
                IBinder strongBinder2 = parcel.readStrongBinder();
                if (strongBinder2 != null) {
                    IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.ads.internal.rewarded.client.IRewardedAdCallback");
                    t00Var = iInterfaceQueryLocalInterface2 instanceof v00 ? (v00) iInterfaceQueryLocalInterface2 : new t00(strongBinder2, "com.google.android.gms.ads.internal.rewarded.client.IRewardedAdCallback", 0);
                }
                aj.e(parcel);
                T1(t00Var);
                parcel2.writeNoException();
                return true;
            case 3:
                boolean zZzi = zzi();
                parcel2.writeNoException();
                ClassLoader classLoader = aj.f8714a;
                parcel2.writeInt(zZzi ? 1 : 0);
                return true;
            case 4:
                String strZzj = zzj();
                parcel2.writeNoException();
                parcel2.writeString(strZzj);
                return true;
            case 5:
                k8.a aVarM = k8.b.M(parcel.readStrongBinder());
                aj.e(parcel);
                zzb(aVarM);
                parcel2.writeNoException();
                return true;
            case 6:
                IBinder strongBinder3 = parcel.readStrongBinder();
                if (strongBinder3 != null) {
                    IInterface iInterfaceQueryLocalInterface3 = strongBinder3.queryLocalInterface("com.google.android.gms.ads.internal.rewarded.client.IRewardedAdSkuListener");
                    a10Var = iInterfaceQueryLocalInterface3 instanceof a10 ? (a10) iInterfaceQueryLocalInterface3 : new a10(strongBinder3, "com.google.android.gms.ads.internal.rewarded.client.IRewardedAdSkuListener", 0);
                }
                aj.e(parcel);
                Y0(a10Var);
                parcel2.writeNoException();
                return true;
            case 7:
                f10 f10Var = (f10) aj.a(parcel, f10.CREATOR);
                aj.e(parcel);
                X(f10Var);
                parcel2.writeNoException();
                return true;
            case 8:
                IBinder strongBinder4 = parcel.readStrongBinder();
                if (strongBinder4 != null) {
                    IInterface iInterfaceQueryLocalInterface4 = strongBinder4.queryLocalInterface("com.google.android.gms.ads.internal.client.IOnAdMetadataChangedListener");
                    b2Var = iInterfaceQueryLocalInterface4 instanceof n7.c2 ? (n7.c2) iInterfaceQueryLocalInterface4 : new n7.b2(strongBinder4, "com.google.android.gms.ads.internal.client.IOnAdMetadataChangedListener", 0);
                }
                aj.e(parcel);
                Q(b2Var);
                parcel2.writeNoException();
                return true;
            case 9:
                Bundle bundleZzg = zzg();
                parcel2.writeNoException();
                aj.c(parcel2, bundleZzg);
                return true;
            case 10:
                k8.a aVarM2 = k8.b.M(parcel.readStrongBinder());
                ClassLoader classLoader2 = aj.f8714a;
                z10 = parcel.readInt() != 0;
                aj.e(parcel);
                n2(aVarM2, z10);
                parcel2.writeNoException();
                return true;
            case 11:
                p00 p00VarZzl = zzl();
                parcel2.writeNoException();
                aj.d(parcel2, p00VarZzl);
                return true;
            case 12:
                n7.m2 m2VarZzm = zzm();
                parcel2.writeNoException();
                aj.d(parcel2, m2VarZzm);
                return true;
            case 13:
                n7.e2 e2VarR2 = n7.o3.R2(parcel.readStrongBinder());
                aj.e(parcel);
                Q1(e2VarR2);
                parcel2.writeNoException();
                return true;
            case 14:
                n7.a4 a4Var2 = (n7.a4) aj.a(parcel, n7.a4.CREATOR);
                IBinder strongBinder5 = parcel.readStrongBinder();
                if (strongBinder5 != null) {
                    IInterface iInterfaceQueryLocalInterface5 = strongBinder5.queryLocalInterface("com.google.android.gms.ads.internal.rewarded.client.IRewardedAdLoadCallback");
                    x00Var2 = iInterfaceQueryLocalInterface5 instanceof z00 ? (z00) iInterfaceQueryLocalInterface5 : new x00(strongBinder5);
                }
                aj.e(parcel);
                x2(a4Var2, x00Var2);
                parcel2.writeNoException();
                return true;
            case 15:
                ClassLoader classLoader3 = aj.f8714a;
                z10 = parcel.readInt() != 0;
                aj.e(parcel);
                N2(z10);
                parcel2.writeNoException();
                return true;
            case 16:
                String strZzn = zzn();
                parcel2.writeNoException();
                parcel2.writeString(strZzn);
                return true;
            case 17:
                long jZzq = zzq();
                parcel2.writeNoException();
                parcel2.writeLong(jZzq);
                return true;
            case 18:
                long j10 = parcel.readLong();
                aj.e(parcel);
                M1(j10);
                parcel2.writeNoException();
                return true;
            default:
                return false;
        }
    }

    @Override // com.google.android.gms.internal.ads.s00
    @Nullable
    public abstract /* synthetic */ String zzn() throws RemoteException;
}
