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 f00 extends zi implements g00 {
    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        n7.v0 t0Var;
        if (i10 != 1) {
            IInterface e00Var = null;
            if (i10 == 2) {
                ua1 ua1Var = (ua1) this;
                synchronized (ua1Var) {
                    ua1Var.zzp(null);
                }
                parcel2.writeNoException();
            } else if (i10 != 3) {
                if (i10 != 34) {
                    switch (i10) {
                        case 5:
                            com.google.android.gms.common.internal.w.d("isLoaded must be called on the main UI thread.");
                            boolean zX2 = ((ua1) this).X2();
                            parcel2.writeNoException();
                            ClassLoader classLoader = aj.f8714a;
                            parcel2.writeInt(zX2 ? 1 : 0);
                            break;
                        case 6:
                            ((ua1) this).zzi(null);
                            parcel2.writeNoException();
                            break;
                        case 7:
                            ((ua1) this).I0(null);
                            parcel2.writeNoException();
                            break;
                        case 8:
                            ((ua1) this).S2(null);
                            parcel2.writeNoException();
                            break;
                        case 9:
                            ((ua1) this).zzi(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                            parcel2.writeNoException();
                            break;
                        case 10:
                            ((ua1) this).I0(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                            parcel2.writeNoException();
                            break;
                        case 11:
                            ((ua1) this).S2(com.google.android.gms.measurement.internal.u1.r(parcel, parcel));
                            parcel2.writeNoException();
                            break;
                        case 12:
                            String strZzl = ((ua1) this).zzl();
                            parcel2.writeNoException();
                            parcel2.writeString(strZzl);
                            break;
                        case 13:
                            String string = parcel.readString();
                            aj.e(parcel);
                            ua1 ua1Var2 = (ua1) this;
                            synchronized (ua1Var2) {
                                com.google.android.gms.common.internal.w.d("setUserId must be called on the main UI thread.");
                                ua1Var2.f17193c.f11167a = string;
                            }
                            parcel2.writeNoException();
                            break;
                        case 14:
                            IBinder strongBinder = parcel.readStrongBinder();
                            if (strongBinder == null) {
                                t0Var = null;
                            } else {
                                IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdMetadataListener");
                                t0Var = iInterfaceQueryLocalInterface instanceof n7.v0 ? (n7.v0) iInterfaceQueryLocalInterface : new n7.t0(strongBinder);
                            }
                            aj.e(parcel);
                            ua1 ua1Var3 = (ua1) this;
                            com.google.android.gms.common.internal.w.d("setAdMetadataListener can only be called from the UI thread.");
                            la1 la1Var = ua1Var3.f17192b;
                            if (t0Var == null) {
                                la1Var.f13570b.set(null);
                            } else {
                                la1Var.f13570b.set(new ra1(ua1Var3, t0Var));
                            }
                            parcel2.writeNoException();
                            break;
                        case 15:
                            Bundle bundleT2 = ((ua1) this).T2();
                            parcel2.writeNoException();
                            aj.c(parcel2, bundleT2);
                            break;
                        case 16:
                            IBinder strongBinder2 = parcel.readStrongBinder();
                            if (strongBinder2 != null) {
                                IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.ads.internal.reward.client.IRewardedAdSkuListener");
                                e00Var = iInterfaceQueryLocalInterface2 instanceof e00 ? (e00) iInterfaceQueryLocalInterface2 : new e00(strongBinder2, "com.google.android.gms.ads.internal.reward.client.IRewardedAdSkuListener", 0);
                            }
                            aj.e(parcel);
                            com.google.android.gms.common.internal.w.d("#008 Must be called on the main UI thread.: setRewardedAdSkuListener");
                            ((ua1) this).f17192b.f13575g.set(e00Var);
                            parcel2.writeNoException();
                            break;
                        case 17:
                            parcel.readString();
                            aj.e(parcel);
                            parcel2.writeNoException();
                            break;
                        case 18:
                            k8.a aVarM = k8.b.M(parcel.readStrongBinder());
                            aj.e(parcel);
                            zzp(aVarM);
                            parcel2.writeNoException();
                            break;
                        case 19:
                            String string2 = parcel.readString();
                            aj.e(parcel);
                            ua1 ua1Var4 = (ua1) this;
                            synchronized (ua1Var4) {
                                com.google.android.gms.common.internal.w.d("#008 Must be called on the main UI thread.: setCustomData");
                                ua1Var4.f17193c.f11168b = string2;
                            }
                            parcel2.writeNoException();
                            break;
                        case 20:
                            boolean zU2 = ((ua1) this).U2();
                            parcel2.writeNoException();
                            ClassLoader classLoader2 = aj.f8714a;
                            parcel2.writeInt(zU2 ? 1 : 0);
                            break;
                        case 21:
                            n7.m2 m2VarZzt = ((ua1) this).zzt();
                            parcel2.writeNoException();
                            aj.d(parcel2, m2VarZzt);
                            break;
                        default:
                            return false;
                    }
                } else {
                    ClassLoader classLoader3 = aj.f8714a;
                    boolean z10 = parcel.readInt() != 0;
                    aj.e(parcel);
                    ua1 ua1Var5 = (ua1) this;
                    synchronized (ua1Var5) {
                        com.google.android.gms.common.internal.w.d("setImmersiveMode must be called on the main UI thread.");
                        ua1Var5.f17194d = z10;
                    }
                    parcel2.writeNoException();
                }
            } else {
                IBinder strongBinder3 = parcel.readStrongBinder();
                if (strongBinder3 != null) {
                    IInterface iInterfaceQueryLocalInterface3 = strongBinder3.queryLocalInterface("com.google.android.gms.ads.internal.reward.client.IRewardedVideoAdListener");
                    e00Var = iInterfaceQueryLocalInterface3 instanceof i00 ? (i00) iInterfaceQueryLocalInterface3 : new h00(strongBinder3);
                }
                aj.e(parcel);
                com.google.android.gms.common.internal.w.d("setRewardedVideoAdListener can only be called from the UI thread.");
                ((ua1) this).f17192b.f13573e.set(e00Var);
                parcel2.writeNoException();
            }
        } else {
            j00 j00Var = (j00) aj.a(parcel, j00.CREATOR);
            aj.e(parcel);
            ((ua1) this).R2(j00Var);
            parcel2.writeNoException();
        }
        return true;
    }

    @Override // com.google.android.gms.internal.ads.g00
    public abstract /* synthetic */ void zzp(@Nullable k8.a aVar) throws RemoteException;
}
