.class public final Lj6/b4;
.super Ljava/util/concurrent/FutureTask;
.source ""

# interfaces
.implements Ljava/lang/Comparable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<V:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/util/concurrent/FutureTask<",
        "TV;>;",
        "Ljava/lang/Comparable<",
        "Lj6/b4<",
        "TV;>;>;"
    }
.end annotation


# instance fields
.field public final r:J

.field public final s:Z

.field public final t:Ljava/lang/String;

.field public final synthetic u:Lj6/d4;


# direct methods
.method public constructor <init>(Lj6/d4;Ljava/lang/Runnable;ZLjava/lang/String;)V
    .registers 7

    iput-object p1, p0, Lj6/b4;->u:Lj6/d4;

    const/4 v0, 0x0

    invoke-direct {p0, p2, v0}, Ljava/util/concurrent/FutureTask;-><init>(Ljava/lang/Runnable;Ljava/lang/Object;)V

    .line 1
    sget-object p2, Lj6/d4;->k:Ljava/util/concurrent/atomic/AtomicLong;

    .line 2
    invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J

    move-result-wide v0

    iput-wide v0, p0, Lj6/b4;->r:J

    iput-object p4, p0, Lj6/b4;->t:Ljava/lang/String;

    iput-boolean p3, p0, Lj6/b4;->s:Z

    const-wide p2, 0x7fffffffffffffffL

    cmp-long p2, v0, p2

    if-nez p2, :cond_28

    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 3
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string p2, "Tasks index overflow"

    .line 4
    invoke-virtual {p1, p2}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_28
    return-void
.end method

.method public constructor <init>(Lj6/d4;Ljava/util/concurrent/Callable;Z)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/concurrent/Callable<",
            "TV;>;Z",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    iput-object p1, p0, Lj6/b4;->u:Lj6/d4;

    invoke-direct {p0, p2}, Ljava/util/concurrent/FutureTask;-><init>(Ljava/util/concurrent/Callable;)V

    .line 5
    sget-object p2, Lj6/d4;->k:Ljava/util/concurrent/atomic/AtomicLong;

    .line 6
    invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J

    move-result-wide v0

    iput-wide v0, p0, Lj6/b4;->r:J

    const-string p2, "Task exception on worker thread"

    iput-object p2, p0, Lj6/b4;->t:Ljava/lang/String;

    iput-boolean p3, p0, Lj6/b4;->s:Z

    const-wide p2, 0x7fffffffffffffffL

    cmp-long p2, v0, p2

    if-nez p2, :cond_29

    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 7
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string p2, "Tasks index overflow"

    .line 8
    invoke-virtual {p1, p2}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_29
    return-void
.end method


# virtual methods
.method public final compareTo(Ljava/lang/Object;)I
    .registers 8

    check-cast p1, Lj6/b4;

    iget-boolean v0, p0, Lj6/b4;->s:Z

    iget-boolean v1, p1, Lj6/b4;->s:Z

    const/4 v2, 0x1

    const/4 v3, -0x1

    if-eq v0, v1, :cond_e

    if-nez v0, :cond_d

    goto :goto_1a

    :cond_d
    return v3

    :cond_e
    iget-wide v0, p0, Lj6/b4;->r:J

    iget-wide v4, p1, Lj6/b4;->r:J

    cmp-long p1, v0, v4

    if-gez p1, :cond_18

    move v2, v3

    goto :goto_1a

    :cond_18
    if-lez p1, :cond_1b

    :goto_1a
    return v2

    :cond_1b
    iget-object p1, p0, Lj6/b4;->u:Lj6/d4;

    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 1
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->g:Lj6/e3;

    .line 2
    iget-wide v0, p0, Lj6/b4;->r:J

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

    move-result-object v0

    const-string v1, "Two tasks share the same index. index"

    invoke-virtual {p1, v1, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 p1, 0x0

    return p1
.end method

.method public final setException(Ljava/lang/Throwable;)V
    .registers 4

    iget-object v0, p0, Lj6/b4;->u:Lj6/d4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    .line 2
    iget-object v1, p0, Lj6/b4;->t:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-super {p0, p1}, Ljava/util/concurrent/FutureTask;->setException(Ljava/lang/Throwable;)V

    return-void
.end method
