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

import android.content.Context;
import android.os.IBinder;
import android.os.IInterface;
import android.view.View;
import o.AbstractC0126Ew;
import o.BinderC1385hT;
import o.U10;
import o.V10;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class zaz extends V10 {
    private static final zaz zaa = new zaz();

    private zaz() {
    }

    public static View zaa(Context context, int i, int i2) throws U10 {
        zaz zazVar = zaa;
        try {
            zax zaxVar = new zax(1, i, i2, null);
            return (View) BinderC1385hT.C(((zam) zazVar.getRemoteCreatorInstance(context)).zae(new BinderC1385hT(context), zaxVar));
        } catch (Exception e) {
            throw new U10(AbstractC0126Ew.i(i, i2, "Could not get button with size ", " and color "), e);
        }
    }

    @Override // o.V10
    public final /* synthetic */ Object getRemoteCreator(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ISignInButtonCreator");
        return iInterfaceQueryLocalInterface instanceof zam ? (zam) iInterfaceQueryLocalInterface : new zam(iBinder);
    }
}
