.class public final Lo5/b0;
.super Ll6/d;
.source ""

# interfaces
.implements Ln5/d$a;
.implements Ln5/d$b;


# static fields
.field public static final y:Ln5/a$a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln5/a$a<",
            "+",
            "Lk6/d;",
            "Lk6/a;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public final r:Landroid/content/Context;

.field public final s:Landroid/os/Handler;

.field public final t:Ln5/a$a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln5/a$a<",
            "+",
            "Lk6/d;",
            "Lk6/a;",
            ">;"
        }
    .end annotation
.end field

.field public final u:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Lcom/google/android/gms/common/api/Scope;",
            ">;"
        }
    .end annotation
.end field

.field public final v:Lcom/google/android/gms/common/internal/b;

.field public w:Lk6/d;

.field public x:Lo5/a0;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    sget-object v0, Lk6/c;->a:Ln5/a$a;

    sput-object v0, Lo5/b0;->y:Ln5/a$a;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/os/Handler;Lcom/google/android/gms/common/internal/b;)V
    .registers 5

    sget-object v0, Lo5/b0;->y:Ln5/a$a;

    invoke-direct {p0}, Ll6/d;-><init>()V

    iput-object p1, p0, Lo5/b0;->r:Landroid/content/Context;

    iput-object p2, p0, Lo5/b0;->s:Landroid/os/Handler;

    iput-object p3, p0, Lo5/b0;->v:Lcom/google/android/gms/common/internal/b;

    .line 1
    iget-object p1, p3, Lcom/google/android/gms/common/internal/b;->b:Ljava/util/Set;

    .line 2
    iput-object p1, p0, Lo5/b0;->u:Ljava/util/Set;

    iput-object v0, p0, Lo5/b0;->t:Ln5/a$a;

    return-void
.end method


# virtual methods
.method public final D(Landroid/os/Bundle;)V
    .registers 9

    iget-object p1, p0, Lo5/b0;->w:Lk6/d;

    check-cast p1, Ll6/a;

    invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "Expecting a valid ISignInCallbacks"

    .line 1
    invoke-static {p0, v0}, Lcom/google/android/gms/common/internal/d;->i(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_e
    iget-object v2, p1, Ll6/a;->u:Lcom/google/android/gms/common/internal/b;

    .line 2
    iget-object v2, v2, Lcom/google/android/gms/common/internal/b;->a:Landroid/accounts/Account;
    :try_end_12
    .catch Landroid/os/RemoteException; {:try_start_e .. :try_end_12} :catch_53

    const-string v3, "<<default account>>"

    if-eqz v2, :cond_17

    goto :goto_1e

    :cond_17
    :try_start_17
    new-instance v2, Landroid/accounts/Account;

    const-string v4, "com.google"

    invoke-direct {v2, v3, v4}, Landroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    :goto_1e
    iget-object v4, v2, Landroid/accounts/Account;->name:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_33

    invoke-virtual {p1}, Lcom/google/android/gms/common/internal/a;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lk5/a;->a(Landroid/content/Context;)Lk5/a;

    move-result-object v3

    invoke-virtual {v3}, Lk5/a;->b()Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;

    move-result-object v3

    goto :goto_34

    :cond_33
    move-object v3, v1

    :goto_34
    new-instance v4, Lp5/t;

    iget-object v5, p1, Ll6/a;->w:Ljava/lang/Integer;

    const-string v6, "null reference"

    .line 4
    invoke-static {v5, v6}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 5
    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    invoke-direct {v4, v2, v5, v3}, Lp5/t;-><init>(Landroid/accounts/Account;ILcom/google/android/gms/auth/api/signin/GoogleSignInAccount;)V

    invoke-virtual {p1}, Lcom/google/android/gms/common/internal/a;->getService()Landroid/os/IInterface;

    move-result-object p1

    check-cast p1, Ll6/g;

    new-instance v2, Ll6/j;

    invoke-direct {v2, v0, v4}, Ll6/j;-><init>(ILp5/t;)V

    invoke-virtual {p1, v2, p0}, Ll6/g;->b1(Ll6/j;Ll6/f;)V
    :try_end_52
    .catch Landroid/os/RemoteException; {:try_start_17 .. :try_end_52} :catch_53

    goto :goto_77

    :catch_53
    move-exception p1

    const-string v2, "SignInClientImpl"

    const-string v3, "Remote service probably died when signIn is called"

    invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :try_start_5b
    new-instance v3, Ll6/l;

    new-instance v4, Lm5/b;

    const/16 v5, 0x8

    invoke-direct {v4, v5, v1}, Lm5/b;-><init>(ILandroid/app/PendingIntent;)V

    invoke-direct {v3, v0, v4, v1}, Ll6/l;-><init>(ILm5/b;Lp5/v;)V

    .line 6
    iget-object v0, p0, Lo5/b0;->s:Landroid/os/Handler;

    new-instance v1, Ll5/m;

    invoke-direct {v1, p0, v3}, Ll5/m;-><init>(Lo5/b0;Ll6/l;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_71
    .catch Landroid/os/RemoteException; {:try_start_5b .. :try_end_71} :catch_72

    goto :goto_77

    :catch_72
    const-string v0, "ISignInCallbacks#onSignInComplete should be executed from the same process, unexpected RemoteException."

    .line 7
    invoke-static {v2, v0, p1}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_77
    return-void
.end method

.method public final l(Lm5/b;)V
    .registers 3

    iget-object v0, p0, Lo5/b0;->x:Lo5/a0;

    check-cast v0, Lo5/t;

    invoke-virtual {v0, p1}, Lo5/t;->b(Lm5/b;)V

    return-void
.end method

.method public final p(I)V
    .registers 2

    iget-object p1, p0, Lo5/b0;->w:Lk6/d;

    check-cast p1, Lcom/google/android/gms/common/internal/a;

    invoke-virtual {p1}, Lcom/google/android/gms/common/internal/a;->disconnect()V

    return-void
.end method
