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

import android.content.Context;
import android.os.IBinder;
import android.os.IInterface;
import android.view.View;
import com.google.android.gms.dynamic.RemoteCreator$RemoteCreatorException;

/* JADX INFO: loaded from: classes2.dex */
public final class o0 extends k8.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final o0 f8391a = new o0("com.google.android.gms.common.ui.SignInButtonCreatorImpl");

    public static View a(Context context, int i10, int i11) throws RemoteCreator$RemoteCreatorException {
        o0 o0Var = f8391a;
        try {
            n0 n0Var = new n0(1, i10, i11, null);
            return (View) k8.b.O(((k0) o0Var.getRemoteCreatorInstance(context)).w1(new k8.b(context), n0Var));
        } catch (Exception e10) {
            throw new RemoteCreator$RemoteCreatorException(defpackage.e.f("Could not get button with size ", i10, " and color ", i11), e10);
        }
    }

    @Override // k8.c
    public final Object getRemoteCreator(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ISignInButtonCreator");
        return iInterfaceQueryLocalInterface instanceof k0 ? (k0) iInterfaceQueryLocalInterface : new k0(iBinder, "com.google.android.gms.common.internal.ISignInButtonCreator", 1);
    }
}
