package n7;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.ads.dynamite.ModuleDescriptor;
import com.google.android.gms.internal.ads.aj;
import com.google.android.gms.internal.ads.f20;
import com.google.android.gms.internal.ads.g20;
import com.google.android.gms.internal.ads.h20;
import com.google.android.gms.internal.ads.hw0;
import com.google.android.gms.internal.ads.hy;
import com.google.android.gms.internal.ads.iy;
import com.google.android.gms.internal.ads.ny;
import com.google.android.gms.internal.ads.oy;
import com.google.android.gms.internal.ads.py;
import com.google.android.gms.internal.ads.r00;
import com.google.android.gms.internal.ads.s00;
import com.google.android.gms.internal.ads.uq;
import com.google.android.gms.internal.ads.vq;
import com.google.android.gms.internal.ads.wq;
import com.google.android.gms.internal.ads.wv;
import com.google.android.gms.internal.ads.yi;

/* JADX INFO: loaded from: classes2.dex */
public final class h1 extends yi implements j1 {
    @Override // n7.j1
    public final s00 G1(k8.a aVar, String str, wv wvVar, int i10) {
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        parcelO.writeString(str);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(12, parcelO);
        s00 s00VarR2 = r00.R2(parcelB0.readStrongBinder());
        parcelB0.recycle();
        return s00VarR2;
    }

    @Override // n7.j1
    public final s1 I1(k8.a aVar, int i10) {
        s1 q1Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(9, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            q1Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IMobileAdsSettingManager");
            q1Var = iInterfaceQueryLocalInterface instanceof s1 ? (s1) iInterfaceQueryLocalInterface : new q1(strongBinder);
        }
        parcelB0.recycle();
        return q1Var;
    }

    @Override // n7.j1
    public final r0 L(k8.a aVar, f4 f4Var, String str, wv wvVar, int i10) {
        r0 p0Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.b(parcelO, f4Var);
        parcelO.writeString(str);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(13, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            p0Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdManager");
            p0Var = iInterfaceQueryLocalInterface instanceof r0 ? (r0) iInterfaceQueryLocalInterface : new p0(strongBinder);
        }
        parcelB0.recycle();
        return p0Var;
    }

    @Override // n7.j1
    public final h20 P2(k8.a aVar, wv wvVar, int i10) {
        h20 f20Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(14, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        int i11 = g20.f11471a;
        if (strongBinder == null) {
            f20Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.signals.ISignalGenerator");
            f20Var = iInterfaceQueryLocalInterface instanceof h20 ? (h20) iInterfaceQueryLocalInterface : new f20(strongBinder);
        }
        parcelB0.recycle();
        return f20Var;
    }

    @Override // n7.j1
    public final wq U0(k8.a aVar, k8.a aVar2) {
        wq uqVar;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.d(parcelO, aVar2);
        Parcel parcelB0 = B0(5, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        int i10 = vq.f17748a;
        if (strongBinder == null) {
            uqVar = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeAdViewDelegate");
            uqVar = iInterfaceQueryLocalInterface instanceof wq ? (wq) iInterfaceQueryLocalInterface : new uq(strongBinder);
        }
        parcelB0.recycle();
        return uqVar;
    }

    @Override // n7.j1
    public final n0 e1(k8.a aVar, String str, wv wvVar, int i10) {
        n0 l0Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        parcelO.writeString(str);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(3, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            l0Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdLoaderBuilder");
            l0Var = iInterfaceQueryLocalInterface instanceof n0 ? (n0) iInterfaceQueryLocalInterface : new l0(strongBinder);
        }
        parcelB0.recycle();
        return l0Var;
    }

    @Override // n7.j1
    public final r0 g1(k8.a aVar, f4 f4Var, String str, int i10) {
        r0 p0Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.b(parcelO, f4Var);
        parcelO.writeString(str);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(10, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            p0Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdManager");
            p0Var = iInterfaceQueryLocalInterface instanceof r0 ? (r0) iInterfaceQueryLocalInterface : new p0(strongBinder);
        }
        parcelB0.recycle();
        return p0Var;
    }

    @Override // n7.j1
    public final py j(k8.a aVar) {
        py nyVar;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        Parcel parcelB0 = B0(8, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        int i10 = oy.f15198a;
        if (strongBinder == null) {
            nyVar = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.overlay.client.IAdOverlay");
            nyVar = iInterfaceQueryLocalInterface instanceof py ? (py) iInterfaceQueryLocalInterface : new ny(strongBinder);
        }
        parcelB0.recycle();
        return nyVar;
    }

    @Override // n7.j1
    public final r0 q0(k8.a aVar, f4 f4Var, String str, wv wvVar, int i10) {
        r0 p0Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.b(parcelO, f4Var);
        parcelO.writeString(str);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(2, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            p0Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdManager");
            p0Var = iInterfaceQueryLocalInterface instanceof r0 ? (r0) iInterfaceQueryLocalInterface : new p0(strongBinder);
        }
        parcelB0.recycle();
        return p0Var;
    }

    @Override // n7.j1
    public final c1 r1(k8.a aVar, wv wvVar, int i10) {
        c1 a1Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(18, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            a1Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdPreloader");
            a1Var = iInterfaceQueryLocalInterface instanceof c1 ? (c1) iInterfaceQueryLocalInterface : new a1(strongBinder);
        }
        parcelB0.recycle();
        return a1Var;
    }

    @Override // n7.j1
    public final r0 r2(k8.a aVar, f4 f4Var, String str, wv wvVar, int i10) {
        r0 p0Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.b(parcelO, f4Var);
        parcelO.writeString(str);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(1, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            p0Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IAdManager");
            p0Var = iInterfaceQueryLocalInterface instanceof r0 ? (r0) iInterfaceQueryLocalInterface : new p0(strongBinder);
        }
        parcelB0.recycle();
        return p0Var;
    }

    @Override // n7.j1
    public final iy u2(k8.a aVar, wv wvVar, int i10) {
        iy hyVar;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(15, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        int i11 = hw0.f12265h;
        if (strongBinder == null) {
            hyVar = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.offline.IOfflineUtils");
            hyVar = iInterfaceQueryLocalInterface instanceof iy ? (iy) iInterfaceQueryLocalInterface : new hy(strongBinder);
        }
        parcelB0.recycle();
        return hyVar;
    }

    @Override // n7.j1
    public final h2 y1(k8.a aVar, wv wvVar, int i10) {
        h2 f2Var;
        Parcel parcelO = O();
        aj.d(parcelO, aVar);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(17, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            f2Var = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IOutOfContextTester");
            f2Var = iInterfaceQueryLocalInterface instanceof h2 ? (h2) iInterfaceQueryLocalInterface : new f2(strongBinder);
        }
        parcelB0.recycle();
        return f2Var;
    }
}
