package e8;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import com.google.android.gms.common.internal.j1;
import com.google.android.gms.common.internal.k1;
import com.google.android.gms.common.internal.l1;
import n7.c4;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f25567d;

    public v(String str, IBinder iBinder, boolean z10, boolean z11) {
        this.f25564a = str;
        o oVar = null;
        if (iBinder != null) {
            try {
                int i10 = k1.f8378b;
                IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ICertData");
                k8.a aVarZzd = (iInterfaceQueryLocalInterface instanceof l1 ? (l1) iInterfaceQueryLocalInterface : new j1(iBinder, "com.google.android.gms.common.internal.ICertData", 2)).zzd();
                byte[] bArr = aVarZzd == null ? null : (byte[]) k8.b.O(aVarZzd);
                if (bArr != null) {
                    oVar = new o(bArr);
                }
            } catch (RemoteException unused) {
            }
        }
        this.f25565b = oVar;
        this.f25566c = z10;
        this.f25567d = z11;
    }

    @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.r(parcel, 1, this.f25564a);
        n nVar = this.f25565b;
        if (nVar == null) {
            nVar = null;
        }
        com.bumptech.glide.g.p(parcel, 2, nVar);
        com.bumptech.glide.g.C(parcel, 3, 4);
        parcel.writeInt(this.f25566c ? 1 : 0);
        com.bumptech.glide.g.C(parcel, 4, 4);
        parcel.writeInt(this.f25567d ? 1 : 0);
        com.bumptech.glide.g.N(I, parcel);
    }

    public v(String str, n nVar, boolean z10, boolean z11) {
        this.f25564a = str;
        this.f25565b = nVar;
        this.f25566c = z10;
        this.f25567d = z11;
    }
}
