package p138.p176.p177.p242.p246;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.util.Log;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p242.p246.p249.C4296;
import p138.p176.p177.p242.p246.p249.InterfaceC4295;
import p138.p176.p177.p242.p256.BinderC4341;
import p138.p176.p177.p242.p256.InterfaceC4338;
import p138.p176.p177.p242.p258.p261.BinderC4358;
import p138.p176.p177.p242.p258.p261.C4359;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ހ.ޓ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractBinderC4327 extends BinderC4358 implements InterfaceC4295 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int f13630;

    public AbstractBinderC4327(byte[] bArr) {
        super("com.google.android.gms.common.internal.ICertData");
        C0567.m1920(bArr.length == 25);
        this.f13630 = Arrays.hashCode(bArr);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC4295 m7228(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ICertData");
        return iInterfaceQueryLocalInterface instanceof InterfaceC4295 ? (InterfaceC4295) iInterfaceQueryLocalInterface : new C4296(iBinder);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7229(String str) {
        try {
            return str.getBytes("ISO-8859-1");
        } catch (UnsupportedEncodingException e) {
            throw new AssertionError(e);
        }
    }

    public boolean equals(Object obj) {
        InterfaceC4338 interfaceC4338Mo6968;
        if (obj != null && (obj instanceof InterfaceC4295)) {
            try {
                InterfaceC4295 interfaceC4295 = (InterfaceC4295) obj;
                if (interfaceC4295.mo6969() == this.f13630 && (interfaceC4338Mo6968 = interfaceC4295.mo6968()) != null) {
                    return Arrays.equals(mo7230(), (byte[]) BinderC4341.m7237(interfaceC4338Mo6968));
                }
                return false;
            } catch (RemoteException e) {
                Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e);
            }
        }
        return false;
    }

    public int hashCode() {
        return this.f13630;
    }

    @Override // p138.p176.p177.p242.p258.p261.BinderC4358
    /* JADX INFO: renamed from: ֏ */
    public final boolean mo6960(int i, Parcel parcel, Parcel parcel2, int i2) {
        if (i == 1) {
            InterfaceC4338 interfaceC4338Mo6968 = mo6968();
            parcel2.writeNoException();
            C4359.m7253(parcel2, interfaceC4338Mo6968);
            return true;
        }
        if (i != 2) {
            return false;
        }
        int iMo6969 = mo6969();
        parcel2.writeNoException();
        parcel2.writeInt(iMo6969);
        return true;
    }

    @Override // p138.p176.p177.p242.p246.p249.InterfaceC4295
    /* JADX INFO: renamed from: ؠ */
    public final InterfaceC4338 mo6968() {
        return new BinderC4341(mo7230());
    }

    @Override // p138.p176.p177.p242.p246.p249.InterfaceC4295
    /* JADX INFO: renamed from: ހ */
    public final int mo6969() {
        return this.f13630;
    }

    /* JADX INFO: renamed from: ޜ, reason: contains not printable characters */
    public abstract byte[] mo7230();
}
