package n7;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable$Constructor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable$Field;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable$Param;

/* JADX INFO: loaded from: classes2.dex */
public final class l2 extends f8.a {
    public static final Parcelable.Creator<l2> CREATOR = new androidx.activity.result.a(24);

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f30998b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final String f30999c;

    @Nullable
    @SafeParcelable$Field(id = 4)
    public l2 zzd;

    @Nullable
    @SafeParcelable$Field(id = 5, type = "android.os.IBinder")
    public IBinder zze;

    @SafeParcelable$Constructor
    public l2(@SafeParcelable$Param(id = 1) int i10, @SafeParcelable$Param(id = 2) String str, @SafeParcelable$Param(id = 3) String str2, @Nullable @SafeParcelable$Param(id = 4) l2 l2Var, @Nullable @SafeParcelable$Param(id = 5) IBinder iBinder) {
        this.f30997a = i10;
        this.f30998b = str;
        this.f30999c = str2;
        this.zzd = l2Var;
        this.zze = iBinder;
    }

    public final g7.a w() {
        l2 l2Var = this.zzd;
        return new g7.a(this.f30997a, this.f30998b, this.f30999c, l2Var != null ? new g7.a(l2Var.f30997a, l2Var.f30998b, l2Var.f30999c, null) : null);
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.C(parcel, 1, 4);
        parcel.writeInt(this.f30997a);
        com.bumptech.glide.g.r(parcel, 2, this.f30998b);
        com.bumptech.glide.g.r(parcel, 3, this.f30999c);
        com.bumptech.glide.g.q(parcel, 4, this.zzd, i10);
        com.bumptech.glide.g.p(parcel, 5, this.zze);
        com.bumptech.glide.g.N(I, parcel);
    }

    public final g7.k x() {
        l2 l2Var = this.zzd;
        m2 j2Var = null;
        g7.a aVar = l2Var == null ? null : new g7.a(l2Var.f30997a, l2Var.f30998b, l2Var.f30999c, null);
        int i10 = this.f30997a;
        String str = this.f30998b;
        String str2 = this.f30999c;
        IBinder iBinder = this.zze;
        if (iBinder != null) {
            IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IResponseInfo");
            j2Var = iInterfaceQueryLocalInterface instanceof m2 ? (m2) iInterfaceQueryLocalInterface : new j2(iBinder);
        }
        return new g7.k(i10, str, str2, aVar, g7.u.zzb(j2Var));
    }
}
