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

# interfaces
.implements Ln6/d;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Ln6/d<",
        "TT;>;"
    }
.end annotation


# instance fields
.field public final r:Lcom/google/android/gms/common/api/internal/b;

.field public final s:I

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

.field public final u:J


# direct methods
.method public constructor <init>(Lcom/google/android/gms/common/api/internal/b;ILo5/b;J)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/gms/common/api/internal/b;",
            "I",
            "Lo5/b<",
            "*>;J",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

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

    iput-object p1, p0, Lo5/v;->r:Lcom/google/android/gms/common/api/internal/b;

    iput p2, p0, Lo5/v;->s:I

    iput-object p3, p0, Lo5/v;->t:Lo5/b;

    iput-wide p4, p0, Lo5/v;->u:J

    return-void
.end method

.method public static a(Lcom/google/android/gms/common/api/internal/d;Lcom/google/android/gms/common/internal/a;I)Lp5/b;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/gms/common/api/internal/d<",
            "*>;",
            "Lcom/google/android/gms/common/internal/a<",
            "*>;I)",
            "Lp5/b;"
        }
    .end annotation

    invoke-virtual {p1}, Lcom/google/android/gms/common/internal/a;->getTelemetryConfiguration()Lp5/b;

    move-result-object p1

    if-eqz p1, :cond_28

    .line 1
    iget-boolean v0, p1, Lp5/b;->s:Z

    if-eqz v0, :cond_28

    .line 2
    iget-object v0, p1, Lp5/b;->u:[I

    if-nez v0, :cond_1a

    .line 3
    iget-object v0, p1, Lp5/b;->w:[I

    if-nez v0, :cond_13

    goto :goto_21

    .line 4
    :cond_13
    invoke-static {v0, p2}, Lu5/b;->a([II)Z

    move-result p2

    if-eqz p2, :cond_21

    goto :goto_28

    :cond_1a
    invoke-static {v0, p2}, Lu5/b;->a([II)Z

    move-result p2

    if-nez p2, :cond_21

    goto :goto_28

    .line 5
    :cond_21
    :goto_21
    iget p0, p0, Lcom/google/android/gms/common/api/internal/d;->C:I

    .line 6
    iget p2, p1, Lp5/b;->v:I

    if-ge p0, p2, :cond_28

    return-object p1

    :cond_28
    :goto_28
    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public final i(Ln6/i;)V
    .registers 22
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ln6/i<",
            "TT;>;)V"
        }
    .end annotation

    move-object/from16 v0, p0

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

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

    move-result v1

    if-nez v1, :cond_b

    return-void

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

    move-result-object v1

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

    if-eqz v1, :cond_19

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

    if-eqz v2, :cond_18

    goto :goto_19

    :cond_18
    return-void

    .line 3
    :cond_19
    :goto_19
    iget-object v2, v0, Lo5/v;->r:Lcom/google/android/gms/common/api/internal/b;

    iget-object v3, v0, Lo5/v;->t:Lo5/b;

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

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

    move-result-object v2

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

    if-eqz v2, :cond_d8

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

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

    if-nez v4, :cond_2f

    goto/16 :goto_d8

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

    iget-wide v4, v0, Lo5/v;->u:J

    const-wide/16 v6, 0x0

    cmp-long v4, v4, v6

    const/4 v5, 0x1

    const/4 v8, 0x0

    if-lez v4, :cond_3d

    move v4, v5

    goto :goto_3e

    :cond_3d
    move v4, v8

    :goto_3e
    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->getGCoreServiceId()I

    move-result v19

    const/16 v9, 0x64

    if-eqz v1, :cond_76

    .line 7
    iget-boolean v10, v1, Lp5/k;->t:Z

    and-int/2addr v4, v10

    .line 8
    iget v10, v1, Lp5/k;->u:I

    .line 9
    iget v11, v1, Lp5/k;->v:I

    .line 10
    iget v1, v1, Lp5/k;->r:I

    .line 11
    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->hasConnectionInfo()Z

    move-result v12

    if-eqz v12, :cond_73

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

    move-result v12

    if-nez v12, :cond_73

    iget v4, v0, Lo5/v;->s:I

    invoke-static {v2, v3, v4}, Lo5/v;->a(Lcom/google/android/gms/common/api/internal/d;Lcom/google/android/gms/common/internal/a;I)Lp5/b;

    move-result-object v2

    if-nez v2, :cond_64

    return-void

    .line 12
    :cond_64
    iget-boolean v3, v2, Lp5/b;->t:Z

    if-eqz v3, :cond_6f

    .line 13
    iget-wide v3, v0, Lo5/v;->u:J

    cmp-long v3, v3, v6

    if-lez v3, :cond_6f

    goto :goto_70

    :cond_6f
    move v5, v8

    .line 14
    :goto_70
    iget v11, v2, Lp5/b;->v:I

    move v4, v5

    :cond_73
    move v2, v10

    move v3, v11

    goto :goto_7b

    :cond_76
    const/16 v10, 0x1388

    move v1, v8

    move v3, v9

    move v2, v10

    .line 15
    :goto_7b
    iget-object v5, v0, Lo5/v;->r:Lcom/google/android/gms/common/api/internal/b;

    invoke-virtual/range {p1 .. p1}, Ln6/i;->n()Z

    move-result v10

    const/4 v11, -0x1

    if-eqz v10, :cond_87

    move v11, v8

    move v12, v11

    goto :goto_a9

    :cond_87
    invoke-virtual/range {p1 .. p1}, Ln6/i;->l()Z

    move-result v8

    if-eqz v8, :cond_8f

    :goto_8d
    move v8, v9

    goto :goto_a7

    :cond_8f
    invoke-virtual/range {p1 .. p1}, Ln6/i;->i()Ljava/lang/Exception;

    move-result-object v8

    instance-of v9, v8, Ln5/b;

    if-eqz v9, :cond_a5

    check-cast v8, Ln5/b;

    .line 16
    iget-object v8, v8, Ln5/b;->r:Lcom/google/android/gms/common/api/Status;

    .line 17
    iget v9, v8, Lcom/google/android/gms/common/api/Status;->s:I

    .line 18
    iget-object v8, v8, Lcom/google/android/gms/common/api/Status;->v:Lm5/b;

    if-nez v8, :cond_a2

    goto :goto_8d

    .line 19
    :cond_a2
    iget v11, v8, Lm5/b;->s:I

    goto :goto_8d

    :cond_a5
    const/16 v8, 0x65

    :goto_a7
    move v12, v11

    move v11, v8

    :goto_a9
    if-eqz v4, :cond_b4

    .line 20
    iget-wide v6, v0, Lo5/v;->u:J

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    move-wide v13, v6

    move-wide v15, v8

    goto :goto_b6

    :cond_b4
    move-wide v13, v6

    move-wide v15, v13

    :goto_b6
    new-instance v4, Lp5/h;

    iget v10, v0, Lo5/v;->s:I

    const/16 v17, 0x0

    const/16 v18, 0x0

    move-object v9, v4

    invoke-direct/range {v9 .. v19}, Lp5/h;-><init>(IIIJJLjava/lang/String;Ljava/lang/String;I)V

    int-to-long v14, v2

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

    new-instance v5, Lo5/w;

    move-object v11, v5

    move-object v12, v4

    move v13, v1

    move/from16 v16, v3

    invoke-direct/range {v11 .. v16}, Lo5/w;-><init>(Lp5/h;IJI)V

    const/16 v1, 0x12

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

    move-result-object v1

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

    :cond_d8
    :goto_d8
    return-void
.end method
