.class public final Lcom/google/android/gms/common/api/internal/d;
.super Ljava/lang/Object;
.source ""

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


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<O::",
        "Ln5/a$d;",
        ">",
        "Ljava/lang/Object;",
        "Ln5/d$a;",
        "Ln5/d$b;"
    }
.end annotation


# instance fields
.field public final A:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lo5/r;",
            ">;"
        }
    .end annotation
.end field

.field public B:Lm5/b;

.field public C:I

.field public final synthetic D:Lcom/google/android/gms/common/api/internal/b;

.field public final r:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue<",
            "Lo5/g0;",
            ">;"
        }
    .end annotation
.end field

.field public final s:Ln5/a$f;
    .annotation runtime Lorg/checkerframework/checker/initialization/qual/NotOnlyInitialized;
    .end annotation
.end field

.field public final t:Lo5/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lo5/b<",
            "TO;>;"
        }
    .end annotation
.end field

.field public final u:Lo5/k;

.field public final v:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Lo5/h0;",
            ">;"
        }
    .end annotation
.end field

.field public final w:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lo5/f<",
            "*>;",
            "Lo5/z;",
            ">;"
        }
    .end annotation
.end field

.field public final x:I

.field public final y:Lo5/b0;

.field public z:Z


# direct methods
.method public constructor <init>(Lcom/google/android/gms/common/api/internal/b;Ln5/c;)V
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ln5/c<",
            "TO;>;)V"
        }
    .end annotation

    iput-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

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

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->v:Ljava/util/Set;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->w:Ljava/util/Map;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->A:Ljava/util/List;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->B:Lm5/b;

    const/4 v1, 0x0

    iput v1, p0, Lcom/google/android/gms/common/api/internal/d;->C:I

    .line 1
    iget-object v1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v4

    .line 3
    invoke-virtual {p2}, Ln5/c;->b()Lcom/google/android/gms/common/internal/b$a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/b$a;->a()Lcom/google/android/gms/common/internal/b;

    move-result-object v5

    iget-object v1, p2, Ln5/c;->c:Ln5/a;

    .line 4
    iget-object v2, v1, Ln5/a;->a:Ln5/a$a;

    const-string v1, "null reference"

    .line 5
    invoke-static {v2, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 6
    iget-object v3, p2, Ln5/c;->a:Landroid/content/Context;

    iget-object v6, p2, Ln5/c;->d:Ln5/a$d;

    move-object v7, p0

    move-object v8, p0

    invoke-virtual/range {v2 .. v8}, Ln5/a$a;->a(Landroid/content/Context;Landroid/os/Looper;Lcom/google/android/gms/common/internal/b;Ljava/lang/Object;Ln5/d$a;Ln5/d$b;)Ln5/a$f;

    move-result-object v1

    .line 7
    iget-object v2, p2, Ln5/c;->b:Ljava/lang/String;

    if-eqz v2, :cond_56

    .line 8
    instance-of v3, v1, Lcom/google/android/gms/common/internal/a;

    if-eqz v3, :cond_56

    move-object v3, v1

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

    invoke-virtual {v3, v2}, Lcom/google/android/gms/common/internal/a;->setAttributionTag(Ljava/lang/String;)V

    :cond_56
    if-eqz v2, :cond_62

    instance-of v2, v1, Lo5/g;

    if-eqz v2, :cond_62

    move-object v2, v1

    check-cast v2, Lo5/g;

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

    .line 9
    :cond_62
    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    .line 10
    iget-object v2, p2, Ln5/c;->e:Lo5/b;

    .line 11
    iput-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    new-instance v2, Lo5/k;

    invoke-direct {v2}, Lo5/k;-><init>()V

    iput-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->u:Lo5/k;

    .line 12
    iget v2, p2, Ln5/c;->f:I

    .line 13
    iput v2, p0, Lcom/google/android/gms/common/api/internal/d;->x:I

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

    move-result v1

    if-eqz v1, :cond_8d

    .line 14
    iget-object v0, p1, Lcom/google/android/gms/common/api/internal/b;->v:Landroid/content/Context;

    .line 15
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 16
    new-instance v1, Lo5/b0;

    invoke-virtual {p2}, Ln5/c;->b()Lcom/google/android/gms/common/internal/b$a;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/common/internal/b$a;->a()Lcom/google/android/gms/common/internal/b;

    move-result-object p2

    invoke-direct {v1, v0, p1, p2}, Lo5/b0;-><init>(Landroid/content/Context;Landroid/os/Handler;Lcom/google/android/gms/common/internal/b;)V

    .line 17
    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->y:Lo5/b0;

    return-void

    :cond_8d
    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->y:Lo5/b0;

    return-void
.end method


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

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object p1

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-virtual {v0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v0

    if-ne p1, v0, :cond_12

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->a()V

    return-void

    :cond_12
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 4
    new-instance v0, Ll5/x;

    invoke-direct {v0, p0}, Ll5/x;-><init>(Lcom/google/android/gms/common/api/internal/d;)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final a()V
    .registers 3

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->r()V

    sget-object v0, Lm5/b;->v:Lm5/b;

    invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/d;->k(Lm5/b;)V

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->h()V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->w:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_22

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->c()V

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->i()V

    return-void

    :cond_22
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lo5/z;

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

    const/4 v0, 0x0

    throw v0
.end method

.method public final b(I)V
    .registers 7

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->r()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/d;->z:Z

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->u:Lo5/k;

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v2}, Ln5/a$f;->getLastDisconnectMessage()Ljava/lang/String;

    move-result-object v2

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

    .line 1
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "The connection to Google Play services was lost"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-ne p1, v0, :cond_1d

    const-string p1, " due to service disconnection."

    goto :goto_22

    :cond_1d
    const/4 v4, 0x3

    if-ne p1, v4, :cond_25

    const-string p1, " due to dead object exception."

    :goto_22
    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_25
    if-eqz v2, :cond_2f

    const-string p1, " Last reason for disconnect: "

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2f
    new-instance p1, Lcom/google/android/gms/common/api/Status;

    const/16 v2, 0x14

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p1, v2, v3}, Lcom/google/android/gms/common/api/Status;-><init>(ILjava/lang/String;)V

    invoke-virtual {v1, v0, p1}, Lo5/k;->a(ZLcom/google/android/gms/common/api/Status;)V

    .line 2
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v0, 0x9

    .line 4
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-static {p1, v0, v1}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 5
    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-wide/16 v1, 0x1388

    .line 6
    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 7
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v0, 0xb

    .line 8
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-static {p1, v0, v1}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 9
    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-wide/32 v1, 0x1d4c0

    .line 10
    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 11
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->x:Lp5/r;

    .line 12
    iget-object p1, p1, Lp5/r;->a:Landroid/util/SparseIntArray;

    invoke-virtual {p1}, Landroid/util/SparseIntArray;->clear()V

    .line 13
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->w:Ljava/util/Map;

    invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_84

    return-void

    :cond_84
    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lo5/z;

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

    const/4 p1, 0x0

    throw p1
.end method

.method public final c()V
    .registers 6

    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_c
    if-ge v2, v1, :cond_2b

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lo5/g0;

    iget-object v4, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v4}, Ln5/a$f;->isConnected()Z

    move-result v4

    if-nez v4, :cond_1d

    goto :goto_2b

    :cond_1d
    invoke-virtual {p0, v3}, Lcom/google/android/gms/common/api/internal/d;->d(Lo5/g0;)Z

    move-result v4

    if-eqz v4, :cond_28

    iget-object v4, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {v4, v3}, Ljava/util/Queue;->remove(Ljava/lang/Object;)Z

    :cond_28
    add-int/lit8 v2, v2, 0x1

    goto :goto_c

    :cond_2b
    :goto_2b
    return-void
.end method

.method public final d(Lo5/g0;)Z
    .registers 11

    instance-of v0, p1, Lo5/x;

    const/4 v1, 0x1

    if-nez v0, :cond_9

    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->e(Lo5/g0;)V

    return v1

    :cond_9
    move-object v0, p1

    check-cast v0, Lo5/x;

    invoke-virtual {v0, p0}, Lo5/x;->f(Lcom/google/android/gms/common/api/internal/d;)[Lm5/d;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/google/android/gms/common/api/internal/d;->m([Lm5/d;)Lm5/d;

    move-result-object v2

    if-nez v2, :cond_1a

    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->e(Lo5/g0;)V

    return v1

    :cond_1a
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object p1

    .line 1
    iget-object v3, v2, Lm5/d;->r:Ljava/lang/String;

    .line 2
    invoke-virtual {v2}, Lm5/d;->c()J

    move-result-wide v4

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    new-instance v8, Ljava/lang/StringBuilder;

    add-int/lit8 v6, v6, 0x4d

    add-int/2addr v6, v7

    invoke-direct {v8, v6}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v6, " could not execute call because it requires feature ("

    const-string v7, ", "

    invoke-static {v8, p1, v6, v3, v7}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v8, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p1, ")."

    invoke-virtual {v8, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "GoogleApiManager"

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

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

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-boolean p1, p1, Lcom/google/android/gms/common/api/internal/b;->E:Z

    if-eqz p1, :cond_db

    .line 4
    invoke-virtual {v0, p0}, Lo5/x;->g(Lcom/google/android/gms/common/api/internal/d;)Z

    move-result p1

    if-eqz p1, :cond_db

    new-instance p1, Lo5/r;

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

    invoke-direct {p1, v0, v2}, Lo5/r;-><init>(Lo5/b;Lm5/d;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->A:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v0

    const-wide/16 v1, 0x1388

    const/16 v3, 0xf

    if-ltz v0, :cond_95

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->A:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lo5/r;

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 5
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 6
    invoke-virtual {v0, v3, p1}, Landroid/os/Handler;->removeMessages(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 7
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 8
    invoke-static {v0, v3, p1}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    iget-object v3, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 9
    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 10
    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto :goto_d6

    :cond_95
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->A:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 11
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 12
    invoke-static {v0, v3, p1}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v3

    iget-object v4, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 13
    invoke-static {v4}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 14
    invoke-virtual {v0, v3, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 15
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v1, 0x10

    .line 16
    invoke-static {v0, v1, p1}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 17
    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-wide/32 v1, 0x1d4c0

    .line 18
    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    new-instance p1, Lm5/b;

    const/4 v0, 0x2

    const/4 v1, 0x0

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

    .line 19
    sget-object v3, Lcom/google/android/gms/common/api/internal/b;->H:Ljava/lang/Object;

    .line 20
    monitor-enter v3

    :try_start_c9
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 21
    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 22
    monitor-exit v3
    :try_end_cf
    .catchall {:try_start_c9 .. :try_end_cf} :catchall_d8

    .line 23
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    iget v1, p0, Lcom/google/android/gms/common/api/internal/d;->x:I

    invoke-virtual {v0, p1, v1}, Lcom/google/android/gms/common/api/internal/b;->f(Lm5/b;I)Z

    :goto_d6
    const/4 p1, 0x0

    return p1

    :catchall_d8
    move-exception p1

    .line 24
    :try_start_d9
    monitor-exit v3
    :try_end_da
    .catchall {:try_start_d9 .. :try_end_da} :catchall_d8

    throw p1

    .line 25
    :cond_db
    new-instance p1, Ln5/j;

    invoke-direct {p1, v2}, Ln5/j;-><init>(Lm5/d;)V

    invoke-virtual {v0, p1}, Lo5/g0;->b(Ljava/lang/Exception;)V

    return v1
.end method

.method public final e(Lo5/g0;)V
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->u:Lo5/k;

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->t()Z

    move-result v1

    invoke-virtual {p1, v0, v1}, Lo5/g0;->c(Lo5/k;Z)V

    const/4 v0, 0x1

    :try_start_a
    invoke-virtual {p1, p0}, Lo5/g0;->d(Lcom/google/android/gms/common/api/internal/d;)V
    :try_end_d
    .catch Landroid/os/DeadObjectException; {:try_start_a .. :try_end_d} :catch_2a
    .catchall {:try_start_a .. :try_end_d} :catchall_e

    return-void

    :catchall_e
    move-exception p1

    new-array v0, v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v0, v1

    const-string v1, "Error in GoogleApi implementation for client %s."

    invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-direct {v1, v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1

    :catch_2a
    invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/d;->p(I)V

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    const-string v0, "DeadObjectException thrown while running ApiCallRunner."

    invoke-interface {p1, v0}, Ln5/a$f;->disconnect(Ljava/lang/String;)V

    return-void
.end method

.method public final f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V
    .registers 8

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    const/4 v0, 0x0

    const/4 v1, 0x1

    if-eqz p1, :cond_d

    move v2, v0

    goto :goto_e

    :cond_d
    move v2, v1

    :goto_e
    if-eqz p2, :cond_11

    goto :goto_12

    :cond_11
    move v0, v1

    :goto_12
    if-eq v2, v0, :cond_3b

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {v0}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1a
    :goto_1a
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3a

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lo5/g0;

    if-eqz p3, :cond_2d

    iget v2, v1, Lo5/g0;->a:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1a

    :cond_2d
    if-eqz p1, :cond_33

    invoke-virtual {v1, p1}, Lo5/g0;->a(Lcom/google/android/gms/common/api/Status;)V

    goto :goto_36

    :cond_33
    invoke-virtual {v1, p2}, Lo5/g0;->b(Ljava/lang/Exception;)V

    :goto_36
    invoke-interface {v0}, Ljava/util/Iterator;->remove()V

    goto :goto_1a

    :cond_3a
    return-void

    :cond_3b
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "Status XOR exception should be null"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final g(Lcom/google/android/gms/common/api/Status;)V
    .registers 4

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {p0, p1, v0, v1}, Lcom/google/android/gms/common/api/internal/d;->f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V

    return-void
.end method

.method public final h()V
    .registers 4

    iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/d;->z:Z

    if-eqz v0, :cond_1d

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v1, 0xb

    .line 2
    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-virtual {v0, v1, v2}, Landroid/os/Handler;->removeMessages(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v1, 0x9

    .line 4
    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-virtual {v0, v1, v2}, Landroid/os/Handler;->removeMessages(ILjava/lang/Object;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/d;->z:Z

    :cond_1d
    return-void
.end method

.method public final i()V
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    const/16 v2, 0xc

    invoke-virtual {v0, v2, v1}, Landroid/os/Handler;->removeMessages(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 4
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-virtual {v0, v2, v1}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v1

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 5
    iget-wide v2, v2, Lcom/google/android/gms/common/api/internal/b;->r:J

    .line 6
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method public final j(Z)Z
    .registers 6

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->isConnected()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_3f

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->w:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-nez v0, :cond_3f

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->u:Lo5/k;

    .line 3
    iget-object v2, v0, Lo5/k;->a:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->isEmpty()Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_2e

    iget-object v0, v0, Lo5/k;->b:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2c

    goto :goto_2e

    :cond_2c
    move v0, v1

    goto :goto_2f

    :cond_2e
    :goto_2e
    move v0, v3

    :goto_2f
    if-eqz v0, :cond_37

    if-eqz p1, :cond_36

    .line 4
    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->i()V

    :cond_36
    return v1

    :cond_37
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    const-string v0, "Timing out service connection."

    invoke-interface {p1, v0}, Ln5/a$f;->disconnect(Ljava/lang/String;)V

    return v3

    :cond_3f
    return v1
.end method

.method public final k(Lm5/b;)V
    .registers 4

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->v:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_24

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lo5/h0;

    sget-object v1, Lm5/b;->v:Lm5/b;

    invoke-static {p1, v1}, Lp5/i;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1f

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {p1}, Ln5/a$f;->getEndpointPackageName()Ljava/lang/String;

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

    const/4 p1, 0x0

    .line 1
    throw p1

    .line 2
    :cond_24
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->v:Ljava/util/Set;

    invoke-interface {p1}, Ljava/util/Set;->clear()V

    return-void
.end method

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

    const/4 v0, 0x0

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

    return-void
.end method

.method public final m([Lm5/d;)Lm5/d;
    .registers 12

    const/4 v0, 0x0

    if-eqz p1, :cond_4d

    array-length v1, p1

    if-nez v1, :cond_7

    goto :goto_4d

    :cond_7
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v1}, Ln5/a$f;->getAvailableFeatures()[Lm5/d;

    move-result-object v1

    const/4 v2, 0x0

    if-nez v1, :cond_12

    new-array v1, v2, [Lm5/d;

    :cond_12
    array-length v3, v1

    new-instance v4, Lr/a;

    invoke-direct {v4, v3}, Lr/a;-><init>(I)V

    move v5, v2

    :goto_19
    if-ge v5, v3, :cond_2d

    aget-object v6, v1, v5

    .line 1
    iget-object v7, v6, Lm5/d;->r:Ljava/lang/String;

    .line 2
    invoke-virtual {v6}, Lm5/d;->c()J

    move-result-wide v8

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    invoke-virtual {v4, v7, v6}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v5, v5, 0x1

    goto :goto_19

    :cond_2d
    array-length v1, p1

    :goto_2e
    if-ge v2, v1, :cond_4d

    aget-object v3, p1, v2

    .line 3
    iget-object v5, v3, Lm5/d;->r:Ljava/lang/String;

    .line 4
    invoke-virtual {v4, v5}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Long;

    if-eqz v5, :cond_4c

    invoke-virtual {v5}, Ljava/lang/Long;->longValue()J

    move-result-wide v5

    invoke-virtual {v3}, Lm5/d;->c()J

    move-result-wide v7

    cmp-long v5, v5, v7

    if-gez v5, :cond_49

    goto :goto_4c

    :cond_49
    add-int/lit8 v2, v2, 0x1

    goto :goto_2e

    :cond_4c
    :goto_4c
    return-object v3

    :cond_4d
    :goto_4d
    return-object v0
.end method

.method public final n(Lm5/b;Ljava/lang/Exception;)V
    .registers 8

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->y:Lo5/b0;

    if-eqz v0, :cond_14

    .line 3
    iget-object v0, v0, Lo5/b0;->w:Lk6/d;

    if-eqz v0, :cond_14

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

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

    .line 4
    :cond_14
    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->r()V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 5
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->x:Lp5/r;

    .line 6
    iget-object v0, v0, Lp5/r;->a:Landroid/util/SparseIntArray;

    invoke-virtual {v0}, Landroid/util/SparseIntArray;->clear()V

    .line 7
    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->k(Lm5/b;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    instance-of v0, v0, Lr5/d;

    const/4 v1, 0x1

    if-eqz v0, :cond_42

    .line 8
    iget v0, p1, Lm5/b;->s:I

    const/16 v2, 0x18

    if-eq v0, v2, :cond_42

    .line 9
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 10
    iput-boolean v1, v0, Lcom/google/android/gms/common/api/internal/b;->s:Z

    .line 11
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 v2, 0x13

    .line 12
    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v2

    const-wide/32 v3, 0x493e0

    invoke-virtual {v0, v2, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    .line 13
    :cond_42
    iget v0, p1, Lm5/b;->s:I

    const/4 v2, 0x4

    if-ne v0, v2, :cond_4d

    .line 14
    sget-object p1, Lcom/google/android/gms/common/api/internal/b;->G:Lcom/google/android/gms/common/api/Status;

    .line 15
    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->g(Lcom/google/android/gms/common/api/Status;)V

    return-void

    :cond_4d
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_58

    iput-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->B:Lm5/b;

    return-void

    :cond_58
    const/4 v0, 0x0

    const/4 v2, 0x0

    if-eqz p2, :cond_67

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 16
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 17
    invoke-static {p1}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    invoke-virtual {p0, v2, p2, v0}, Lcom/google/android/gms/common/api/internal/d;->f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V

    return-void

    :cond_67
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 18
    iget-boolean p2, p2, Lcom/google/android/gms/common/api/internal/b;->E:Z

    if-eqz p2, :cond_c9

    .line 19
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    .line 20
    invoke-static {p2, p1}, Lcom/google/android/gms/common/api/internal/b;->b(Lo5/b;Lm5/b;)Lcom/google/android/gms/common/api/Status;

    move-result-object p2

    .line 21
    invoke-virtual {p0, p2, v2, v1}, Lcom/google/android/gms/common/api/internal/d;->f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V

    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {p2}, Ljava/util/Queue;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_7f

    return-void

    .line 22
    :cond_7f
    sget-object p2, Lcom/google/android/gms/common/api/internal/b;->H:Ljava/lang/Object;

    .line 23
    monitor-enter p2

    :try_start_82
    iget-object v3, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 24
    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 25
    monitor-exit p2
    :try_end_88
    .catchall {:try_start_82 .. :try_end_88} :catchall_c6

    .line 26
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    iget v3, p0, Lcom/google/android/gms/common/api/internal/d;->x:I

    invoke-virtual {p2, p1, v3}, Lcom/google/android/gms/common/api/internal/b;->f(Lm5/b;I)Z

    move-result p2

    if-nez p2, :cond_c5

    .line 27
    iget p2, p1, Lm5/b;->s:I

    const/16 v3, 0x12

    if-ne p2, v3, :cond_9a

    .line 28
    iput-boolean v1, p0, Lcom/google/android/gms/common/api/internal/d;->z:Z

    :cond_9a
    iget-boolean p2, p0, Lcom/google/android/gms/common/api/internal/d;->z:Z

    if-eqz p2, :cond_b5

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 29
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    const/16 p2, 0x9

    .line 30
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-static {p1, p2, v0}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p2

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 31
    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-wide/16 v0, 0x1388

    .line 32
    invoke-virtual {p1, p2, v0, v1}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void

    :cond_b5
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    .line 33
    invoke-static {p2, p1}, Lcom/google/android/gms/common/api/internal/b;->b(Lo5/b;Lm5/b;)Lcom/google/android/gms/common/api/Status;

    move-result-object p1

    .line 34
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 35
    iget-object p2, p2, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 36
    invoke-static {p2}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    invoke-virtual {p0, p1, v2, v0}, Lcom/google/android/gms/common/api/internal/d;->f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V

    :cond_c5
    return-void

    :catchall_c6
    move-exception p1

    .line 37
    :try_start_c7
    monitor-exit p2
    :try_end_c8
    .catchall {:try_start_c7 .. :try_end_c8} :catchall_c6

    throw p1

    .line 38
    :cond_c9
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    .line 39
    invoke-static {p2, p1}, Lcom/google/android/gms/common/api/internal/b;->b(Lo5/b;Lm5/b;)Lcom/google/android/gms/common/api/Status;

    move-result-object p1

    .line 40
    iget-object p2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 41
    iget-object p2, p2, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 42
    invoke-static {p2}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    invoke-virtual {p0, p1, v2, v0}, Lcom/google/android/gms/common/api/internal/d;->f(Lcom/google/android/gms/common/api/Status;Ljava/lang/Exception;Z)V

    return-void
.end method

.method public final o(Lo5/g0;)V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->isConnected()Z

    move-result v0

    if-eqz v0, :cond_1f

    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->d(Lo5/g0;)Z

    move-result v0

    if-eqz v0, :cond_19

    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->i()V

    return-void

    :cond_19
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z

    return-void

    :cond_1f
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->r:Ljava/util/Queue;

    invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/d;->B:Lm5/b;

    if-eqz p1, :cond_3a

    .line 3
    iget v0, p1, Lm5/b;->s:I

    if-eqz v0, :cond_32

    iget-object v0, p1, Lm5/b;->t:Landroid/app/PendingIntent;

    if-eqz v0, :cond_32

    const/4 v0, 0x1

    goto :goto_33

    :cond_32
    const/4 v0, 0x0

    :goto_33
    if-eqz v0, :cond_3a

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, p1, v0}, Lcom/google/android/gms/common/api/internal/d;->n(Lm5/b;Ljava/lang/Exception;)V

    return-void

    :cond_3a
    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/d;->s()V

    return-void
.end method

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

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v1, v1, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_12

    invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/d;->b(I)V

    return-void

    :cond_12
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 4
    new-instance v1, Lo5/o;

    invoke-direct {v1, p0, p1}, Lo5/o;-><init>(Lcom/google/android/gms/common/api/internal/d;I)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final q()V
    .registers 7

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    sget-object v0, Lcom/google/android/gms/common/api/internal/b;->F:Lcom/google/android/gms/common/api/Status;

    invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/d;->g(Lcom/google/android/gms/common/api/Status;)V

    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->u:Lo5/k;

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

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v1, v2, v0}, Lo5/k;->a(ZLcom/google/android/gms/common/api/Status;)V

    .line 4
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->w:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    new-array v1, v2, [Lo5/f;

    invoke-interface {v0, v1}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lo5/f;

    array-length v1, v0

    :goto_24
    if-ge v2, v1, :cond_38

    aget-object v3, v0, v2

    new-instance v4, Lo5/f0;

    new-instance v5, Ln6/j;

    invoke-direct {v5}, Ln6/j;-><init>()V

    invoke-direct {v4, v3, v5}, Lo5/f0;-><init>(Lo5/f;Ln6/j;)V

    invoke-virtual {p0, v4}, Lcom/google/android/gms/common/api/internal/d;->o(Lo5/g0;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_24

    :cond_38
    new-instance v0, Lm5/b;

    const/4 v1, 0x4

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

    invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/d;->k(Lm5/b;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->isConnected()Z

    move-result v0

    if-eqz v0, :cond_53

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    new-instance v1, Lo5/q;

    invoke-direct {v1, p0}, Lo5/q;-><init>(Lcom/google/android/gms/common/api/internal/d;)V

    invoke-interface {v0, v1}, Ln5/a$f;->onUserSignOut(Lcom/google/android/gms/common/internal/a$e;)V

    :cond_53
    return-void
.end method

.method public final r()V
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->B:Lm5/b;

    return-void
.end method

.method public final s()V
    .registers 11

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    .line 2
    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->c(Landroid/os/Handler;)V

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->isConnected()Z

    move-result v0

    if-nez v0, :cond_e8

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->isConnecting()Z

    move-result v0

    if-eqz v0, :cond_19

    goto/16 :goto_e8

    :cond_19
    const/16 v0, 0xa

    :try_start_1b
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    .line 3
    iget-object v2, v1, Lcom/google/android/gms/common/api/internal/b;->x:Lp5/r;

    .line 4
    iget-object v1, v1, Lcom/google/android/gms/common/api/internal/b;->v:Landroid/content/Context;

    .line 5
    iget-object v3, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-virtual {v2, v1, v3}, Lp5/r;->a(Landroid/content/Context;Ln5/a$f;)I

    move-result v1

    if-eqz v1, :cond_6a

    new-instance v2, Lm5/b;

    const/4 v3, 0x0

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

    const-string v1, "GoogleApiManager"

    iget-object v4, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v6

    add-int/lit8 v6, v6, 0x23

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v7

    add-int/2addr v6, v7

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7, v6}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v6, "The service for "

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " is not available: "

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

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

    invoke-virtual {p0, v2, v3}, Lcom/google/android/gms/common/api/internal/d;->n(Lm5/b;Ljava/lang/Exception;)V
    :try_end_69
    .catch Ljava/lang/IllegalStateException; {:try_start_1b .. :try_end_69} :catch_e1

    return-void

    :cond_6a
    new-instance v1, Lo5/t;

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

    iget-object v3, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    iget-object v4, p0, Lcom/google/android/gms/common/api/internal/d;->t:Lo5/b;

    invoke-direct {v1, v2, v3, v4}, Lo5/t;-><init>(Lcom/google/android/gms/common/api/internal/b;Ln5/a$f;Lo5/b;)V

    invoke-interface {v3}, Ln5/a$f;->requiresSignIn()Z

    move-result v2

    if-eqz v2, :cond_d1

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->y:Lo5/b0;

    const-string v3, "null reference"

    .line 6
    invoke-static {v2, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 7
    iget-object v3, v2, Lo5/b0;->w:Lk6/d;

    if-eqz v3, :cond_8b

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

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

    :cond_8b
    iget-object v3, v2, Lo5/b0;->v:Lcom/google/android/gms/common/internal/b;

    invoke-static {v2}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    .line 8
    iput-object v4, v3, Lcom/google/android/gms/common/internal/b;->i:Ljava/lang/Integer;

    .line 9
    iget-object v3, v2, Lo5/b0;->t:Ln5/a$a;

    iget-object v4, v2, Lo5/b0;->r:Landroid/content/Context;

    iget-object v5, v2, Lo5/b0;->s:Landroid/os/Handler;

    invoke-virtual {v5}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v5

    iget-object v6, v2, Lo5/b0;->v:Lcom/google/android/gms/common/internal/b;

    .line 10
    iget-object v7, v6, Lcom/google/android/gms/common/internal/b;->h:Lk6/a;

    move-object v8, v2

    move-object v9, v2

    .line 11
    invoke-virtual/range {v3 .. v9}, Ln5/a$a;->a(Landroid/content/Context;Landroid/os/Looper;Lcom/google/android/gms/common/internal/b;Ljava/lang/Object;Ln5/d$a;Ln5/d$b;)Ln5/a$f;

    move-result-object v3

    iput-object v3, v2, Lo5/b0;->w:Lk6/d;

    iput-object v1, v2, Lo5/b0;->x:Lo5/a0;

    iget-object v3, v2, Lo5/b0;->u:Ljava/util/Set;

    if-eqz v3, :cond_c7

    invoke-interface {v3}, Ljava/util/Set;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_ba

    goto :goto_c7

    :cond_ba
    iget-object v2, v2, Lo5/b0;->w:Lk6/d;

    check-cast v2, Ll6/a;

    .line 12
    new-instance v3, Lcom/google/android/gms/common/internal/a$d;

    invoke-direct {v3, v2}, Lcom/google/android/gms/common/internal/a$d;-><init>(Lcom/google/android/gms/common/internal/a;)V

    invoke-virtual {v2, v3}, Lcom/google/android/gms/common/internal/a;->connect(Lcom/google/android/gms/common/internal/a$c;)V

    goto :goto_d1

    .line 13
    :cond_c7
    :goto_c7
    iget-object v3, v2, Lo5/b0;->s:Landroid/os/Handler;

    new-instance v4, Ll5/x;

    invoke-direct {v4, v2}, Ll5/x;-><init>(Lo5/b0;)V

    invoke-virtual {v3, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 14
    :cond_d1
    :goto_d1
    :try_start_d1
    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v2, v1}, Ln5/a$f;->connect(Lcom/google/android/gms/common/internal/a$c;)V
    :try_end_d6
    .catch Ljava/lang/SecurityException; {:try_start_d1 .. :try_end_d6} :catch_d7

    return-void

    :catch_d7
    move-exception v1

    new-instance v2, Lm5/b;

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

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

    return-void

    :catch_e1
    move-exception v1

    new-instance v2, Lm5/b;

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

    goto :goto_dd

    :cond_e8
    :goto_e8
    return-void
.end method

.method public final t()Z
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/d;->s:Ln5/a$f;

    invoke-interface {v0}, Ln5/a$f;->requiresSignIn()Z

    move-result v0

    return v0
.end method
