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

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.view.View;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class mx0 extends zi implements ww {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final yw0 f14372a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ nx0 f14373b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public mx0(nx0 nx0Var, yw0 yw0Var) {
        super("com.google.android.gms.ads.internal.mediation.client.rtb.IBannerCallback");
        Objects.requireNonNull(nx0Var);
        this.f14373b = nx0Var;
        this.f14372a = yw0Var;
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) {
        ew dwVar;
        yw0 yw0Var = this.f14372a;
        nx0 nx0Var = this.f14373b;
        if (i10 == 1) {
            k8.a aVarM = k8.b.M(parcel.readStrongBinder());
            aj.e(parcel);
            nx0Var.f14758c = (View) k8.b.O(aVarM);
            ((sx0) yw0Var.f18991c).zzj();
        } else if (i10 == 2) {
            String string = parcel.readString();
            aj.e(parcel);
            a(string);
        } else if (i10 == 3) {
            n7.l2 l2Var = (n7.l2) aj.a(parcel, n7.l2.CREATOR);
            aj.e(parcel);
            b(l2Var);
        } else {
            if (i10 != 4) {
                return false;
            }
            IBinder strongBinder = parcel.readStrongBinder();
            if (strongBinder == null) {
                dwVar = null;
            } else {
                IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationInterscrollerAd");
                dwVar = iInterfaceQueryLocalInterface instanceof ew ? (ew) iInterfaceQueryLocalInterface : new dw(strongBinder);
            }
            aj.e(parcel);
            nx0Var.f14759d = dwVar;
            ((sx0) yw0Var.f18991c).zzj();
        }
        parcel2.writeNoException();
        return true;
    }

    @Override // com.google.android.gms.internal.ads.ww
    public final void a(String str) {
        ((sx0) this.f14372a.f18991c).M2(0, str);
    }

    @Override // com.google.android.gms.internal.ads.ww
    public final void b(n7.l2 l2Var) {
        ((sx0) this.f14372a.f18991c).x0(l2Var);
    }
}
