.class public final Lo5/s;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field public final synthetic r:Lm5/b;

.field public final synthetic s:Lo5/t;


# direct methods
.method public constructor <init>(Lo5/t;Lm5/b;)V
    .registers 3

    iput-object p1, p0, Lo5/s;->s:Lo5/t;

    iput-object p2, p0, Lo5/s;->r:Lm5/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 6

    iget-object v0, p0, Lo5/s;->s:Lo5/t;

    iget-object v1, v0, Lo5/t;->f:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v1, v1, Lcom/google/android/gms/common/api/internal/b;->A:Ljava/util/Map;

    .line 2
    iget-object v0, v0, Lo5/t;->b:Lo5/b;

    .line 3
    invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/android/gms/common/api/internal/d;

    if-nez v0, :cond_11

    return-void

    :cond_11
    iget-object v1, p0, Lo5/s;->r:Lm5/b;

    invoke-virtual {v1}, Lm5/b;->c()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_5e

    iget-object v1, p0, Lo5/s;->s:Lo5/t;

    const/4 v3, 0x1

    .line 4
    iput-boolean v3, v1, Lo5/t;->e:Z

    .line 5
    iget-object v1, v1, Lo5/t;->a:Ln5/a$f;

    .line 6
    invoke-interface {v1}, Ln5/a$f;->requiresSignIn()Z

    move-result v1

    if-eqz v1, :cond_39

    iget-object v0, p0, Lo5/s;->s:Lo5/t;

    .line 7
    iget-boolean v1, v0, Lo5/t;->e:Z

    if-eqz v1, :cond_38

    iget-object v1, v0, Lo5/t;->c:Lp5/e;

    if-eqz v1, :cond_38

    iget-object v2, v0, Lo5/t;->a:Ln5/a$f;

    iget-object v0, v0, Lo5/t;->d:Ljava/util/Set;

    invoke-interface {v2, v1, v0}, Ln5/a$f;->getRemoteService(Lp5/e;Ljava/util/Set;)V

    :cond_38
    return-void

    .line 8
    :cond_39
    :try_start_39
    iget-object v1, p0, Lo5/s;->s:Lo5/t;

    .line 9
    iget-object v1, v1, Lo5/t;->a:Ln5/a$f;

    .line 10
    invoke-interface {v1}, Ln5/a$f;->a()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Ln5/a$f;->getRemoteService(Lp5/e;Ljava/util/Set;)V
    :try_end_44
    .catch Ljava/lang/SecurityException; {:try_start_39 .. :try_end_44} :catch_45

    return-void

    :catch_45
    move-exception v1

    const-string v3, "GoogleApiManager"

    const-string v4, "Failed to get service from broker. "

    invoke-static {v3, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    iget-object v1, p0, Lo5/s;->s:Lo5/t;

    .line 11
    iget-object v1, v1, Lo5/t;->a:Ln5/a$f;

    const-string v3, "Failed to get service from broker."

    .line 12
    invoke-interface {v1, v3}, Ln5/a$f;->disconnect(Ljava/lang/String;)V

    new-instance v1, Lm5/b;

    const/16 v3, 0xa

    invoke-direct {v1, v3}, Lm5/b;-><init>(I)V

    goto :goto_60

    :cond_5e
    iget-object v1, p0, Lo5/s;->r:Lm5/b;

    :goto_60
    invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/common/api/internal/d;->n(Lm5/b;Ljava/lang/Exception;)V

    return-void
.end method
