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

# interfaces
.implements Landroid/os/Handler$Callback;


# static fields
.field public static final F:Lcom/google/android/gms/common/api/Status;
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation
.end field

.field public static final G:Lcom/google/android/gms/common/api/Status;

.field public static final H:Ljava/lang/Object;

.field public static I:Lcom/google/android/gms/common/api/internal/b;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field


# instance fields
.field public final A:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lo5/b<",
            "*>;",
            "Lcom/google/android/gms/common/api/internal/d<",
            "*>;>;"
        }
    .end annotation
.end field

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

    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field

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

.field public final D:Landroid/os/Handler;
    .annotation runtime Lorg/checkerframework/checker/initialization/qual/NotOnlyInitialized;
    .end annotation
.end field

.field public volatile E:Z

.field public r:J

.field public s:Z

.field public t:Lcom/google/android/gms/common/internal/e;

.field public u:Lp5/l;

.field public final v:Landroid/content/Context;

.field public final w:Lm5/e;

.field public final x:Lp5/r;

.field public final y:Ljava/util/concurrent/atomic/AtomicInteger;

.field public final z:Ljava/util/concurrent/atomic/AtomicInteger;


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

    new-instance v0, Lcom/google/android/gms/common/api/Status;

    const/4 v1, 0x4

    const-string v2, "Sign-out occurred while this API call was in progress."

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

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

    new-instance v0, Lcom/google/android/gms/common/api/Status;

    const-string v2, "The user must be signed in to make this API call."

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

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

    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Lcom/google/android/gms/common/api/internal/b;->H:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/os/Looper;Lm5/e;)V
    .registers 9

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

    const-wide/16 v0, 0x2710

    iput-wide v0, p0, Lcom/google/android/gms/common/api/internal/b;->r:J

    const/4 v0, 0x0

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

    new-instance v1, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->y:Ljava/util/concurrent/atomic/AtomicInteger;

    new-instance v1, Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-direct {v1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->z:Ljava/util/concurrent/atomic/AtomicInteger;

    new-instance v1, Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v3, 0x5

    const/high16 v4, 0x3f400000    # 0.75f

    invoke-direct {v1, v3, v4, v2}, Ljava/util/concurrent/ConcurrentHashMap;-><init>(IFI)V

    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->A:Ljava/util/Map;

    new-instance v1, Lr/c;

    .line 1
    invoke-direct {v1, v0}, Lr/c;-><init>(I)V

    .line 2
    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->B:Ljava/util/Set;

    new-instance v1, Lr/c;

    .line 3
    invoke-direct {v1, v0}, Lr/c;-><init>(I)V

    .line 4
    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->C:Ljava/util/Set;

    iput-boolean v2, p0, Lcom/google/android/gms/common/api/internal/b;->E:Z

    iput-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->v:Landroid/content/Context;

    new-instance v1, Lc6/e;

    invoke-direct {v1, p2, p0}, Lc6/e;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V

    iput-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->D:Landroid/os/Handler;

    iput-object p3, p0, Lcom/google/android/gms/common/api/internal/b;->w:Lm5/e;

    new-instance p2, Lp5/r;

    invoke-direct {p2, p3}, Lp5/r;-><init>(Lm5/f;)V

    iput-object p2, p0, Lcom/google/android/gms/common/api/internal/b;->x:Lp5/r;

    .line 5
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    .line 6
    sget-object p2, Lu5/g;->e:Ljava/lang/Boolean;

    if-nez p2, :cond_63

    invoke-static {}, Lu5/j;->a()Z

    move-result p2

    if-eqz p2, :cond_5c

    const-string p2, "android.hardware.type.automotive"

    invoke-virtual {p1, p2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5c

    goto :goto_5d

    :cond_5c
    move v2, v0

    :goto_5d
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    sput-object p1, Lu5/g;->e:Ljava/lang/Boolean;

    :cond_63
    sget-object p1, Lu5/g;->e:Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_6d

    .line 7
    iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/b;->E:Z

    :cond_6d
    const/4 p1, 0x6

    invoke-virtual {v1, p1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public static b(Lo5/b;Lm5/b;)Lcom/google/android/gms/common/api/Status;
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lo5/b<",
            "*>;",
            "Lm5/b;",
            ")",
            "Lcom/google/android/gms/common/api/Status;"
        }
    .end annotation

    new-instance v6, Lcom/google/android/gms/common/api/Status;

    .line 1
    iget-object p0, p0, Lo5/b;->b:Ln5/a;

    .line 2
    iget-object p0, p0, Ln5/a;->b:Ljava/lang/String;

    .line 3
    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    move-result-object v1

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

    move-result v1

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

    move-result v2

    new-instance v3, Ljava/lang/StringBuilder;

    add-int/lit8 v1, v1, 0x3f

    add-int/2addr v1, v2

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

    const-string v1, "API: "

    const-string v2, " is not available on this device. Connection failed with: "

    invoke-static {v3, v1, p0, v2, v0}, Lb1/e;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 4
    iget-object v4, p1, Lm5/b;->t:Landroid/app/PendingIntent;

    const/4 v1, 0x1

    const/16 v2, 0x11

    move-object v0, v6

    move-object v5, p1

    .line 5
    invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/common/api/Status;-><init>(IILjava/lang/String;Landroid/app/PendingIntent;Lm5/b;)V

    return-object v6
.end method

.method public static d(Landroid/content/Context;)Lcom/google/android/gms/common/api/internal/b;
    .registers 5
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation

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

    monitor-enter v0

    :try_start_3
    sget-object v1, Lcom/google/android/gms/common/api/internal/b;->I:Lcom/google/android/gms/common/api/internal/b;

    if-nez v1, :cond_29

    new-instance v1, Landroid/os/HandlerThread;

    const-string v2, "GoogleApiHandler"

    const/16 v3, 0x9

    invoke-direct {v1, v2, v3}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;I)V

    invoke-virtual {v1}, Landroid/os/HandlerThread;->start()V

    invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v1

    new-instance v2, Lcom/google/android/gms/common/api/internal/b;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p0

    sget-object v3, Lm5/e;->c:Ljava/lang/Object;

    sget-object v3, Lm5/e;->d:Lm5/e;

    invoke-direct {v2, p0, v1, v3}, Lcom/google/android/gms/common/api/internal/b;-><init>(Landroid/content/Context;Landroid/os/Looper;Lm5/e;)V

    sput-object v2, Lcom/google/android/gms/common/api/internal/b;->I:Lcom/google/android/gms/common/api/internal/b;

    goto :goto_29

    :catchall_27
    move-exception p0

    goto :goto_2d

    :cond_29
    :goto_29
    sget-object p0, Lcom/google/android/gms/common/api/internal/b;->I:Lcom/google/android/gms/common/api/internal/b;

    monitor-exit v0

    return-object p0

    :goto_2d
    monitor-exit v0
    :try_end_2e
    .catchall {:try_start_3 .. :try_end_2e} :catchall_27

    throw p0
.end method


# virtual methods
.method public final a(Ln5/c;)Lcom/google/android/gms/common/api/internal/d;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ln5/c<",
            "*>;)",
            "Lcom/google/android/gms/common/api/internal/d<",
            "*>;"
        }
    .end annotation

    .line 1
    iget-object v0, p1, Ln5/c;->e:Lo5/b;

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

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

    move-result-object v1

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

    if-nez v1, :cond_16

    new-instance v1, Lcom/google/android/gms/common/api/internal/d;

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

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

    invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

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

    move-result p1

    if-eqz p1, :cond_21

    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->C:Ljava/util/Set;

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

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

    return-object v1
.end method

.method public final c()V
    .registers 5

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

    if-eqz v0, :cond_27

    .line 1
    iget v1, v0, Lcom/google/android/gms/common/internal/e;->r:I

    if-gtz v1, :cond_e

    .line 2
    invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/b;->e()Z

    move-result v1

    if-eqz v1, :cond_24

    .line 3
    :cond_e
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    if-nez v1, :cond_1d

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

    .line 4
    sget-object v2, Lp5/m;->c:Lp5/m;

    .line 5
    new-instance v3, Lr5/c;

    invoke-direct {v3, v1, v2}, Lr5/c;-><init>(Landroid/content/Context;Lp5/m;)V

    .line 6
    iput-object v3, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    :cond_1d
    iget-object v1, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    .line 7
    check-cast v1, Lr5/c;

    invoke-virtual {v1, v0}, Lr5/c;->d(Lcom/google/android/gms/common/internal/e;)Ln6/i;

    :cond_24
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/google/android/gms/common/api/internal/b;->t:Lcom/google/android/gms/common/internal/e;

    :cond_27
    return-void
.end method

.method public final e()Z
    .registers 5

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

    const/4 v1, 0x0

    if-eqz v0, :cond_6

    return v1

    :cond_6
    invoke-static {}, Lp5/j;->a()Lp5/j;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lp5/j;->a:Lp5/k;

    if-eqz v0, :cond_14

    .line 2
    iget-boolean v0, v0, Lp5/k;->s:Z

    if-eqz v0, :cond_13

    goto :goto_14

    :cond_13
    return v1

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

    const v2, 0xc1f7c30

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

    const/4 v3, -0x1

    invoke-virtual {v0, v2, v3}, Landroid/util/SparseIntArray;->get(II)I

    move-result v0

    if-eq v0, v3, :cond_26

    if-nez v0, :cond_25

    goto :goto_26

    :cond_25
    return v1

    :cond_26
    :goto_26
    const/4 v0, 0x1

    return v0
.end method

.method public final f(Lm5/b;I)Z
    .registers 12

    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/b;->w:Lm5/e;

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

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

    .line 1
    iget v2, p1, Lm5/b;->s:I

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v2, :cond_13

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

    if-eqz v5, :cond_13

    move v5, v3

    goto :goto_14

    :cond_13
    move v5, v4

    :goto_14
    const/high16 v6, 0x8000000

    const/4 v7, 0x0

    if-eqz v5, :cond_1c

    .line 2
    iget-object v2, p1, Lm5/b;->t:Landroid/app/PendingIntent;

    goto :goto_28

    .line 3
    :cond_1c
    invoke-virtual {v0, v1, v2, v7}, Lm5/e;->b(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;

    move-result-object v2

    if-nez v2, :cond_24

    move-object v2, v7

    goto :goto_28

    :cond_24
    invoke-static {v1, v4, v2, v6}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    :goto_28
    if-eqz v2, :cond_4c

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

    .line 5
    sget v5, Lcom/google/android/gms/common/api/GoogleApiActivity;->s:I

    .line 6
    new-instance v5, Landroid/content/Intent;

    const-class v8, Lcom/google/android/gms/common/api/GoogleApiActivity;

    invoke-direct {v5, v1, v8}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v8, "pending_intent"

    invoke-virtual {v5, v8, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const-string v2, "failing_client_id"

    invoke-virtual {v5, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string p2, "notify_manager"

    invoke-virtual {v5, p2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 7
    invoke-static {v1, v4, v5, v6}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p2

    invoke-virtual {v0, v1, p1, v7, p2}, Lm5/e;->f(Landroid/content/Context;ILjava/lang/String;Landroid/app/PendingIntent;)V

    goto :goto_4d

    :cond_4c
    move v3, v4

    :goto_4d
    return v3
.end method

.method public final handleMessage(Landroid/os/Message;)Z
    .registers 12
    .param p1    # Landroid/os/Message;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x1

    const-wide/32 v2, 0x493e0

    const/16 v4, 0x11

    const/4 v5, 0x0

    const/4 v6, 0x0

    packed-switch v0, :pswitch_data_3e6

    new-instance p1, Ljava/lang/StringBuilder;

    const/16 v1, 0x1f

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

    const-string v1, "Unknown message id: "

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

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

    const-string v0, "GoogleApiManager"

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

    move-result-object p1

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

    return v5

    :pswitch_26
    iput-boolean v5, p0, Lcom/google/android/gms/common/api/internal/b;->s:Z

    goto/16 :goto_3e5

    :pswitch_2a
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/w;

    iget-wide v2, p1, Lo5/w;->c:J

    const-wide/16 v6, 0x0

    cmp-long v0, v2, v6

    if-nez v0, :cond_5f

    new-instance v0, Lcom/google/android/gms/common/internal/e;

    iget v2, p1, Lo5/w;->b:I

    new-array v3, v1, [Lp5/h;

    iget-object p1, p1, Lo5/w;->a:Lp5/h;

    aput-object p1, v3, v5

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    invoke-direct {v0, v2, p1}, Lcom/google/android/gms/common/internal/e;-><init>(ILjava/util/List;)V

    .line 1
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    if-nez p1, :cond_56

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

    .line 2
    sget-object v2, Lp5/m;->c:Lp5/m;

    .line 3
    new-instance v3, Lr5/c;

    invoke-direct {v3, p1, v2}, Lr5/c;-><init>(Landroid/content/Context;Lp5/m;)V

    .line 4
    iput-object v3, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    :cond_56
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->u:Lp5/l;

    .line 5
    check-cast p1, Lr5/c;

    invoke-virtual {p1, v0}, Lr5/c;->d(Lcom/google/android/gms/common/internal/e;)Ln6/i;

    goto/16 :goto_3e5

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

    if-eqz v0, :cond_93

    .line 6
    iget-object v2, v0, Lcom/google/android/gms/common/internal/e;->s:Ljava/util/List;

    .line 7
    iget v0, v0, Lcom/google/android/gms/common/internal/e;->r:I

    .line 8
    iget v3, p1, Lo5/w;->b:I

    if-ne v0, v3, :cond_8b

    if-eqz v2, :cond_76

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    iget v2, p1, Lo5/w;->d:I

    if-lt v0, v2, :cond_76

    goto :goto_8b

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

    iget-object v2, p1, Lo5/w;->a:Lp5/h;

    .line 9
    iget-object v3, v0, Lcom/google/android/gms/common/internal/e;->s:Ljava/util/List;

    if-nez v3, :cond_85

    new-instance v3, Ljava/util/ArrayList;

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

    iput-object v3, v0, Lcom/google/android/gms/common/internal/e;->s:Ljava/util/List;

    :cond_85
    iget-object v0, v0, Lcom/google/android/gms/common/internal/e;->s:Ljava/util/List;

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

    goto :goto_93

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

    invoke-virtual {v0, v4}, Landroid/os/Handler;->removeMessages(I)V

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

    :cond_93
    :goto_93
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/b;->t:Lcom/google/android/gms/common/internal/e;

    if-nez v0, :cond_3e5

    new-instance v0, Ljava/util/ArrayList;

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

    iget-object v2, p1, Lo5/w;->a:Lp5/h;

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

    new-instance v2, Lcom/google/android/gms/common/internal/e;

    iget v3, p1, Lo5/w;->b:I

    invoke-direct {v2, v3, v0}, Lcom/google/android/gms/common/internal/e;-><init>(ILjava/util/List;)V

    iput-object v2, p0, Lcom/google/android/gms/common/api/internal/b;->t:Lcom/google/android/gms/common/internal/e;

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

    invoke-virtual {v0, v4}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v2

    iget-wide v3, p1, Lo5/w;->c:J

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

    goto/16 :goto_3e5

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

    goto/16 :goto_3e5

    :pswitch_bc
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/r;

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

    .line 11
    iget-object v2, p1, Lo5/r;->a:Lo5/b;

    .line 12
    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e5

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

    .line 13
    iget-object v2, p1, Lo5/r;->a:Lo5/b;

    .line 14
    invoke-interface {v0, v2}, 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;

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

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

    move-result v2

    if-eqz v2, :cond_3e5

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

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

    const/16 v3, 0xf

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

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

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

    const/16 v3, 0x10

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

    .line 20
    iget-object p1, p1, Lo5/r;->b:Lm5/d;

    .line 21
    new-instance v2, Ljava/util/ArrayList;

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

    invoke-interface {v3}, Ljava/util/Queue;->size()I

    move-result v3

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

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

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

    move-result-object v3

    :cond_101
    :goto_101
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_124

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

    move-result-object v4

    check-cast v4, Lo5/g0;

    instance-of v6, v4, Lo5/x;

    if-eqz v6, :cond_101

    move-object v6, v4

    check-cast v6, Lo5/x;

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

    move-result-object v6

    if-eqz v6, :cond_101

    invoke-static {v6, p1}, Lu5/b;->b([Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_101

    invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_101

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

    move-result v3

    :goto_128
    if-ge v5, v3, :cond_3e5

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

    move-result-object v4

    check-cast v4, Lo5/g0;

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

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

    new-instance v6, Ln5/j;

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

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

    add-int/lit8 v5, v5, 0x1

    goto :goto_128

    .line 22
    :pswitch_140
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/r;

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

    .line 23
    iget-object v2, p1, Lo5/r;->a:Lo5/b;

    .line 24
    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e5

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

    .line 25
    iget-object v2, p1, Lo5/r;->a:Lo5/b;

    .line 26
    invoke-interface {v0, v2}, 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;

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

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

    move-result p1

    if-nez p1, :cond_162

    goto/16 :goto_3e5

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

    if-nez p1, :cond_3e5

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

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

    move-result p1

    if-nez p1, :cond_173

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

    goto/16 :goto_3e5

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

    goto/16 :goto_3e5

    .line 28
    :pswitch_178
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/l;

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

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

    invoke-interface {p1, v6}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_188

    throw v6

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

    invoke-interface {p1, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

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

    .line 29
    invoke-virtual {p1, v5}, Lcom/google/android/gms/common/api/internal/d;->j(Z)Z

    .line 30
    throw v6

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

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e5

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

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

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

    move-result-object p1

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

    .line 31
    invoke-virtual {p1, v1}, Lcom/google/android/gms/common/api/internal/d;->j(Z)Z

    goto/16 :goto_3e5

    .line 32
    :pswitch_1ad
    iget-object v0, p0, Lcom/google/android/gms/common/api/internal/b;->A:Ljava/util/Map;

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e5

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

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

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

    move-result-object p1

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

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

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

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

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

    if-eqz v0, :cond_3e5

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

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

    .line 36
    iget-object v2, v0, Lcom/google/android/gms/common/api/internal/b;->w:Lm5/e;

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

    .line 38
    invoke-virtual {v2, v0}, Lm5/e;->d(Landroid/content/Context;)I

    move-result v0

    const/16 v2, 0x12

    if-ne v0, v2, :cond_1e7

    new-instance v0, Lcom/google/android/gms/common/api/Status;

    const/16 v2, 0x15

    const-string v3, "Connection timed out waiting for Google Play services update to complete."

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

    goto :goto_1f0

    :cond_1e7
    new-instance v0, Lcom/google/android/gms/common/api/Status;

    const/16 v2, 0x16

    const-string v3, "API failed to connect while resuming due to an unknown error."

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

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

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

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

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

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

    const-string v0, "Timing out connection while resuming."

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

    goto/16 :goto_3e5

    .line 43
    :pswitch_203
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->C:Ljava/util/Set;

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

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_223

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

    move-result-object v0

    check-cast v0, Lo5/b;

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/b;->A:Ljava/util/Map;

    invoke-interface {v2, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

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

    if-eqz v0, :cond_209

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

    goto :goto_209

    :cond_223
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->C:Ljava/util/Set;

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

    goto/16 :goto_3e5

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

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e5

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

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

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

    move-result-object p1

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

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

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

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

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

    if-eqz v0, :cond_3e5

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

    goto/16 :goto_3e5

    .line 47
    :pswitch_24e
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ln5/c;

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

    goto/16 :goto_3e5

    :pswitch_257
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->v:Landroid/content/Context;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    instance-of p1, p1, Landroid/app/Application;

    if-eqz p1, :cond_3e5

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

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    check-cast p1, Landroid/app/Application;

    invoke-static {p1}, Lcom/google/android/gms/common/api/internal/a;->a(Landroid/app/Application;)V

    .line 48
    sget-object p1, Lcom/google/android/gms/common/api/internal/a;->v:Lcom/google/android/gms/common/api/internal/a;

    .line 49
    new-instance v0, Lcom/google/android/gms/common/api/internal/c;

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

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

    .line 50
    monitor-enter p1

    :try_start_277
    iget-object v4, p1, Lcom/google/android/gms/common/api/internal/a;->t:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    monitor-exit p1
    :try_end_27d
    .catchall {:try_start_277 .. :try_end_27d} :catchall_2ac

    .line 51
    iget-object v0, p1, Lcom/google/android/gms/common/api/internal/a;->s:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v0

    if-nez v0, :cond_2a0

    new-instance v0, Landroid/app/ActivityManager$RunningAppProcessInfo;

    invoke-direct {v0}, Landroid/app/ActivityManager$RunningAppProcessInfo;-><init>()V

    invoke-static {v0}, Landroid/app/ActivityManager;->getMyMemoryState(Landroid/app/ActivityManager$RunningAppProcessInfo;)V

    iget-object v4, p1, Lcom/google/android/gms/common/api/internal/a;->s:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v4, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z

    move-result v4

    if-nez v4, :cond_2a0

    iget v0, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->importance:I

    const/16 v4, 0x64

    if-le v0, v4, :cond_2a0

    iget-object v0, p1, Lcom/google/android/gms/common/api/internal/a;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 52
    :cond_2a0
    iget-object p1, p1, Lcom/google/android/gms/common/api/internal/a;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result p1

    if-nez p1, :cond_3e5

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

    goto/16 :goto_3e5

    :catchall_2ac
    move-exception v0

    .line 54
    :try_start_2ad
    monitor-exit p1
    :try_end_2ae
    .catchall {:try_start_2ad .. :try_end_2ae} :catchall_2ac

    throw v0

    .line 55
    :pswitch_2af
    iget v0, p1, Landroid/os/Message;->arg1:I

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lm5/b;

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/b;->A:Ljava/util/Map;

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

    move-result-object v2

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

    move-result-object v2

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

    move-result v3

    if-eqz v3, :cond_2d0

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

    move-result-object v3

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

    .line 56
    iget v7, v3, Lcom/google/android/gms/common/api/internal/d;->x:I

    if-ne v7, v0, :cond_2bf

    goto :goto_2d1

    :cond_2d0
    move-object v3, v6

    :goto_2d1
    if-eqz v3, :cond_32b

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

    const/16 v2, 0xd

    if-ne v0, v2, :cond_319

    .line 58
    new-instance v0, Lcom/google/android/gms/common/api/Status;

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/b;->w:Lm5/e;

    .line 59
    iget v7, p1, Lm5/b;->s:I

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

    .line 61
    sget-object v2, Lm5/i;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 62
    invoke-static {v7}, Lm5/b;->h(I)Ljava/lang/String;

    move-result-object v2

    .line 63
    iget-object p1, p1, Lm5/b;->u:Ljava/lang/String;

    .line 64
    invoke-static {v2}, 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

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

    move-result-object v8

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

    move-result v8

    new-instance v9, Ljava/lang/StringBuilder;

    add-int/lit8 v7, v7, 0x45

    add-int/2addr v7, v8

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

    const-string v7, "Error resolution was canceled by the user, original error message: "

    const-string v8, ": "

    invoke-static {v9, v7, v2, v8, p1}, Lb1/e;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

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

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

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

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

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

    goto/16 :goto_3e5

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

    .line 69
    invoke-static {v0, 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 70
    iget-object v0, v3, Lcom/google/android/gms/common/api/internal/d;->D:Lcom/google/android/gms/common/api/internal/b;

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

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

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

    goto/16 :goto_3e5

    .line 73
    :cond_32b
    new-instance p1, Ljava/lang/StringBuilder;

    const/16 v2, 0x4c

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

    const-string v2, "Could not find API instance "

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

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

    const-string v0, " while trying to fail enqueued calls."

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

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

    move-result-object p1

    new-instance v0, Ljava/lang/Exception;

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

    const-string v2, "GoogleApiManager"

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

    goto/16 :goto_3e5

    :pswitch_34f
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/y;

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

    iget-object v2, p1, Lo5/y;->c:Ln5/c;

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

    .line 75
    invoke-interface {v0, v2}, 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_367

    iget-object v0, p1, Lo5/y;->c:Ln5/c;

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

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_382

    iget-object v2, p0, Lcom/google/android/gms/common/api/internal/b;->z:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result v2

    iget v3, p1, Lo5/y;->b:I

    if-eq v2, v3, :cond_382

    iget-object p1, p1, Lo5/y;->a:Lo5/g0;

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

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

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

    goto :goto_3e5

    :cond_382
    iget-object p1, p1, Lo5/y;->a:Lo5/g0;

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

    goto :goto_3e5

    :pswitch_388
    iget-object p1, p0, Lcom/google/android/gms/common/api/internal/b;->A: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

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

    move-result v0

    if-eqz v0, :cond_3e5

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

    move-result-object v0

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

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

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

    goto :goto_392

    :pswitch_3a5
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lo5/h0;

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

    .line 76
    throw v6

    .line 77
    :pswitch_3ad
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eq v1, p1, :cond_3b8

    goto :goto_3ba

    :cond_3b8
    const-wide/16 v2, 0x2710

    :goto_3ba
    iput-wide v2, p0, Lcom/google/android/gms/common/api/internal/b;->r:J

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

    const/16 v0, 0xc

    invoke-virtual {p1, v0}, Landroid/os/Handler;->removeMessages(I)V

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

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

    move-result-object p1

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

    move-result-object p1

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

    move-result v2

    if-eqz v2, :cond_3e5

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

    move-result-object v2

    check-cast v2, Lo5/b;

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

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

    move-result-object v2

    iget-wide v4, p0, Lcom/google/android/gms/common/api/internal/b;->r:J

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

    goto :goto_3cd

    :cond_3e5
    :goto_3e5
    return v1

    :pswitch_data_3e6
    .packed-switch 0x1
        :pswitch_3ad
        :pswitch_3a5
        :pswitch_388
        :pswitch_34f
        :pswitch_2af
        :pswitch_257
        :pswitch_24e
        :pswitch_34f
        :pswitch_22a
        :pswitch_203
        :pswitch_1ad
        :pswitch_194
        :pswitch_34f
        :pswitch_178
        :pswitch_140
        :pswitch_bc
        :pswitch_b7
        :pswitch_2a
        :pswitch_26
    .end packed-switch
.end method
