.class public final Lt9/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/util/concurrent/Executor;
.implements Ljava/io/Closeable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lt9/a$a;,
        Lt9/a$b;
    }
.end annotation


# static fields
.field public static final synthetic A:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

.field public static final B:Lf/o;

.field public static final synthetic y:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

.field public static final synthetic z:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;


# instance fields
.field private volatile synthetic _isTerminated:I

.field public volatile synthetic controlState:J

.field private volatile synthetic parkedWorkersStack:J

.field public final r:I

.field public final s:I

.field public final t:J

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

.field public final v:Lt9/d;

.field public final w:Lt9/d;

.field public final x:Ljava/util/concurrent/atomic/AtomicReferenceArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/atomic/AtomicReferenceArray<",
            "Lt9/a$a;",
            ">;"
        }
    .end annotation
.end field


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

    new-instance v0, Lf/o;

    const-string v1, "NOT_IN_STACK"

    invoke-direct {v0, v1}, Lf/o;-><init>(Ljava/lang/String;)V

    sput-object v0, Lt9/a;->B:Lf/o;

    const-class v0, Lt9/a;

    const-string v1, "parkedWorkersStack"

    invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    move-result-object v0

    sput-object v0, Lt9/a;->y:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    const-class v0, Lt9/a;

    const-string v1, "controlState"

    invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    move-result-object v0

    sput-object v0, Lt9/a;->z:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    const-class v0, Lt9/a;

    const-string v1, "_isTerminated"

    invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    move-result-object v0

    sput-object v0, Lt9/a;->A:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    return-void
.end method

.method public constructor <init>(IIJLjava/lang/String;)V
    .registers 10

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

    iput p1, p0, Lt9/a;->r:I

    iput p2, p0, Lt9/a;->s:I

    iput-wide p3, p0, Lt9/a;->t:J

    iput-object p5, p0, Lt9/a;->u:Ljava/lang/String;

    const/4 p5, 0x0

    const/4 v0, 0x1

    if-lt p1, v0, :cond_11

    move v1, v0

    goto :goto_12

    :cond_11
    move v1, p5

    :goto_12
    if-eqz v1, :cond_a4

    if-lt p2, p1, :cond_18

    move v1, v0

    goto :goto_19

    :cond_18
    move v1, p5

    :goto_19
    const-string v2, "Max pool size "

    if-eqz v1, :cond_83

    const v1, 0x1ffffe

    if-gt p2, v1, :cond_24

    move v1, v0

    goto :goto_25

    :cond_24
    move v1, p5

    :goto_25
    if-eqz v1, :cond_73

    const-wide/16 v1, 0x0

    cmp-long v3, p3, v1

    if-lez v3, :cond_2f

    move v3, v0

    goto :goto_30

    :cond_2f
    move v3, p5

    :goto_30
    if-eqz v3, :cond_53

    new-instance p3, Lt9/d;

    invoke-direct {p3}, Lt9/d;-><init>()V

    iput-object p3, p0, Lt9/a;->v:Lt9/d;

    new-instance p3, Lt9/d;

    invoke-direct {p3}, Lt9/d;-><init>()V

    iput-object p3, p0, Lt9/a;->w:Lt9/d;

    iput-wide v1, p0, Lt9/a;->parkedWorkersStack:J

    new-instance p3, Ljava/util/concurrent/atomic/AtomicReferenceArray;

    add-int/2addr p2, v0

    invoke-direct {p3, p2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;-><init>(I)V

    iput-object p3, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    int-to-long p1, p1

    const/16 p3, 0x2a

    shl-long/2addr p1, p3

    iput-wide p1, p0, Lt9/a;->controlState:J

    iput p5, p0, Lt9/a;->_isTerminated:I

    return-void

    :cond_53
    new-instance p1, Ljava/lang/StringBuilder;

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

    const-string p2, "Idle worker keep alive time "

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

    invoke-virtual {p1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p2, " must be positive"

    invoke-virtual {p1, p2}, 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 p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2

    :cond_73
    const-string p1, " should not exceed maximal supported number of threads 2097150"

    invoke-static {v2, p2, p1}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2

    :cond_83
    new-instance p3, Ljava/lang/StringBuilder;

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

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

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

    const-string p2, " should be greater than or equals to core pool size "

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

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

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

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2

    :cond_a4
    const-string p2, "Core pool size "

    const-string p3, " should be at least 1"

    invoke-static {p2, p1, p3}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2
.end method


# virtual methods
.method public final H(Lt9/i;)V
    .registers 4

    :try_start_0
    invoke-interface {p1}, Ljava/lang/Runnable;->run()V
    :try_end_3
    .catchall {:try_start_0 .. :try_end_3} :catchall_4

    goto :goto_10

    :catchall_4
    move-exception p1

    :try_start_5
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;

    move-result-object v1

    invoke-interface {v1, v0, p1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
    :try_end_10
    .catchall {:try_start_5 .. :try_end_10} :catchall_11

    :goto_10
    return-void

    :catchall_11
    move-exception p1

    throw p1
.end method

.method public final I()V
    .registers 3

    invoke-virtual {p0}, Lt9/a;->L()Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    .line 1
    :cond_7
    iget-wide v0, p0, Lt9/a;->controlState:J

    invoke-virtual {p0, v0, v1}, Lt9/a;->K(J)Z

    move-result v0

    if-eqz v0, :cond_10

    return-void

    .line 2
    :cond_10
    invoke-virtual {p0}, Lt9/a;->L()Z

    return-void
.end method

.method public final K(J)Z
    .registers 6

    const-wide/32 v0, 0x1fffff

    and-long/2addr v0, p1

    long-to-int v0, v0

    const-wide v1, 0x3ffffe00000L

    and-long/2addr p1, v1

    const/16 v1, 0x15

    shr-long/2addr p1, v1

    long-to-int p1, p1

    sub-int/2addr v0, p1

    const/4 p1, 0x0

    if-gez v0, :cond_14

    move v0, p1

    :cond_14
    iget p2, p0, Lt9/a;->r:I

    if-ge v0, p2, :cond_29

    invoke-virtual {p0}, Lt9/a;->b()I

    move-result p2

    const/4 v0, 0x1

    if-ne p2, v0, :cond_26

    iget v1, p0, Lt9/a;->r:I

    if-le v1, v0, :cond_26

    invoke-virtual {p0}, Lt9/a;->b()I

    :cond_26
    if-lez p2, :cond_29

    return v0

    :cond_29
    return p1
.end method

.method public final L()Z
    .registers 10

    .line 1
    :cond_0
    :goto_0
    iget-wide v2, p0, Lt9/a;->parkedWorkersStack:J

    const-wide/32 v0, 0x1fffff

    and-long/2addr v0, v2

    long-to-int v0, v0

    iget-object v1, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lt9/a$a;

    if-nez v6, :cond_14

    const/4 v6, 0x0

    goto :goto_35

    :cond_14
    const-wide/32 v0, 0x200000

    add-long/2addr v0, v2

    const-wide/32 v4, -0x200000

    and-long/2addr v0, v4

    invoke-virtual {p0, v6}, Lt9/a;->o(Lt9/a$a;)I

    move-result v4

    if-gez v4, :cond_23

    goto :goto_0

    :cond_23
    sget-object v5, Lt9/a;->y:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    int-to-long v7, v4

    or-long/2addr v7, v0

    move-object v0, v5

    move-object v1, p0

    move-wide v4, v7

    invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lt9/a;->B:Lf/o;

    invoke-virtual {v6, v0}, Lt9/a$a;->g(Ljava/lang/Object;)V

    :goto_35
    const/4 v0, 0x0

    if-nez v6, :cond_39

    return v0

    .line 2
    :cond_39
    sget-object v1, Lt9/a$a;->y:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const/4 v2, -0x1

    invoke-virtual {v1, v6, v2, v0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {v6}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V

    const/4 v0, 0x1

    return v0
.end method

.method public final b()I
    .registers 11

    iget-object v0, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    monitor-enter v0

    .line 1
    :try_start_3
    iget v1, p0, Lt9/a;->_isTerminated:I
    :try_end_5
    .catchall {:try_start_3 .. :try_end_5} :catchall_77

    if-eqz v1, :cond_a

    const/4 v1, -0x1

    .line 2
    :goto_8
    monitor-exit v0

    return v1

    :cond_a
    :try_start_a
    iget-wide v1, p0, Lt9/a;->controlState:J

    const-wide/32 v3, 0x1fffff

    and-long v5, v1, v3

    long-to-int v5, v5

    const-wide v6, 0x3ffffe00000L

    and-long/2addr v1, v6

    const/16 v6, 0x15

    shr-long/2addr v1, v6

    long-to-int v1, v1

    sub-int v1, v5, v1

    const/4 v2, 0x0

    if-gez v1, :cond_22

    move v1, v2

    :cond_22
    iget v6, p0, Lt9/a;->r:I
    :try_end_24
    .catchall {:try_start_a .. :try_end_24} :catchall_77

    if-lt v1, v6, :cond_28

    monitor-exit v0

    return v2

    :cond_28
    :try_start_28
    iget v6, p0, Lt9/a;->s:I
    :try_end_2a
    .catchall {:try_start_28 .. :try_end_2a} :catchall_77

    if-lt v5, v6, :cond_2e

    monitor-exit v0

    return v2

    :cond_2e
    :try_start_2e
    iget-wide v5, p0, Lt9/a;->controlState:J

    and-long/2addr v5, v3

    long-to-int v5, v5

    const/4 v6, 0x1

    add-int/2addr v5, v6

    if-lez v5, :cond_40

    iget-object v7, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v7, v5}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;

    move-result-object v7

    if-nez v7, :cond_40

    move v7, v6

    goto :goto_41

    :cond_40
    move v7, v2

    :goto_41
    if-eqz v7, :cond_6b

    new-instance v7, Lt9/a$a;

    invoke-direct {v7, p0, v5}, Lt9/a$a;-><init>(Lt9/a;I)V

    iget-object v8, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v8, v5, v7}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V

    sget-object v8, Lt9/a;->z:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    invoke-virtual {v8, p0}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->incrementAndGet(Ljava/lang/Object;)J

    move-result-wide v8

    and-long/2addr v3, v8

    long-to-int v3, v3

    if-ne v5, v3, :cond_58

    move v2, v6

    :cond_58
    if-eqz v2, :cond_5f

    invoke-virtual {v7}, Ljava/lang/Thread;->start()V

    add-int/2addr v1, v6

    goto :goto_8

    :cond_5f
    const-string v1, "Failed requirement."

    new-instance v2, Ljava/lang/IllegalArgumentException;

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

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

    throw v2

    :cond_6b
    const-string v1, "Failed requirement."

    new-instance v2, Ljava/lang/IllegalArgumentException;

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

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

    throw v2
    :try_end_77
    .catchall {:try_start_2e .. :try_end_77} :catchall_77

    :catchall_77
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public close()V
    .registers 11

    .line 1
    sget-object v0, Lt9/a;->A:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z

    move-result v0

    if-nez v0, :cond_c

    goto/16 :goto_9c

    :cond_c
    invoke-virtual {p0}, Lt9/a;->g()Lt9/a$a;

    move-result-object v0

    iget-object v3, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    monitor-enter v3

    :try_start_13
    iget-wide v4, p0, Lt9/a;->controlState:J
    :try_end_15
    .catchall {:try_start_13 .. :try_end_15} :catchall_a1

    const-wide/32 v6, 0x1fffff

    and-long/2addr v4, v6

    long-to-int v4, v4

    monitor-exit v3

    const/4 v5, 0x0

    if-gt v2, v4, :cond_66

    move v3, v2

    :goto_1f
    add-int/lit8 v6, v3, 0x1

    iget-object v7, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v7, v3}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lt9/a$a;

    invoke-static {v7}, Lx/e;->d(Ljava/lang/Object;)V

    if-eq v7, v0, :cond_61

    :goto_2e
    invoke-virtual {v7}, Ljava/lang/Thread;->isAlive()Z

    move-result v8

    if-eqz v8, :cond_3d

    invoke-static {v7}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V

    const-wide/16 v8, 0x2710

    invoke-virtual {v7, v8, v9}, Ljava/lang/Thread;->join(J)V

    goto :goto_2e

    :cond_3d
    iget-object v7, v7, Lt9/a$a;->r:Lt9/m;

    iget-object v8, p0, Lt9/a;->w:Lt9/d;

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

    .line 2
    sget-object v9, Lt9/m;->b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v9, v7, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->getAndSet(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lt9/i;

    if-nez v9, :cond_4f

    goto :goto_52

    :cond_4f
    invoke-virtual {v8, v9}, Ls9/i;->a(Ljava/lang/Object;)Z

    .line 3
    :goto_52
    invoke-virtual {v7}, Lt9/m;->f()Lt9/i;

    move-result-object v9

    if-nez v9, :cond_5a

    move v9, v1

    goto :goto_5e

    :cond_5a
    invoke-virtual {v8, v9}, Ls9/i;->a(Ljava/lang/Object;)Z

    move v9, v2

    :goto_5e
    if-eqz v9, :cond_61

    goto :goto_52

    :cond_61
    if-ne v3, v4, :cond_64

    goto :goto_66

    :cond_64
    move v3, v6

    goto :goto_1f

    .line 4
    :cond_66
    :goto_66
    iget-object v1, p0, Lt9/a;->w:Lt9/d;

    invoke-virtual {v1}, Ls9/i;->b()V

    iget-object v1, p0, Lt9/a;->v:Lt9/d;

    invoke-virtual {v1}, Ls9/i;->b()V

    :goto_70
    if-nez v0, :cond_74

    move-object v1, v5

    goto :goto_78

    :cond_74
    invoke-virtual {v0, v2}, Lt9/a$a;->a(Z)Lt9/i;

    move-result-object v1

    :goto_78
    if-nez v1, :cond_82

    iget-object v1, p0, Lt9/a;->v:Lt9/d;

    invoke-virtual {v1}, Ls9/i;->d()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lt9/i;

    :cond_82
    if-nez v1, :cond_9d

    iget-object v1, p0, Lt9/a;->w:Lt9/d;

    invoke-virtual {v1}, Ls9/i;->d()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lt9/i;

    if-nez v1, :cond_9d

    if-nez v0, :cond_91

    goto :goto_96

    :cond_91
    sget-object v1, Lt9/a$b;->v:Lt9/a$b;

    invoke-virtual {v0, v1}, Lt9/a$a;->h(Lt9/a$b;)Z

    :goto_96
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lt9/a;->parkedWorkersStack:J

    iput-wide v0, p0, Lt9/a;->controlState:J

    :goto_9c
    return-void

    :cond_9d
    invoke-virtual {p0, v1}, Lt9/a;->H(Lt9/i;)V

    goto :goto_70

    :catchall_a1
    move-exception v0

    monitor-exit v3

    throw v0
.end method

.method public final e(Ljava/lang/Runnable;Lt9/j;)Lt9/i;
    .registers 6

    sget-object v0, Lt9/l;->e:Lt9/h;

    check-cast v0, Lt9/f;

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

    .line 1
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v0

    .line 2
    instance-of v2, p1, Lt9/i;

    if-eqz v2, :cond_16

    check-cast p1, Lt9/i;

    iput-wide v0, p1, Lt9/i;->r:J

    iput-object p2, p1, Lt9/i;->s:Lt9/j;

    return-object p1

    :cond_16
    new-instance v2, Lt9/k;

    invoke-direct {v2, p1, v0, v1, p2}, Lt9/k;-><init>(Ljava/lang/Runnable;JLt9/j;)V

    return-object v2
.end method

.method public execute(Ljava/lang/Runnable;)V
    .registers 4

    .line 1
    sget-object v0, Lt9/g;->r:Lt9/g;

    const/4 v1, 0x0

    invoke-virtual {p0, p1, v0, v1}, Lt9/a;->k(Ljava/lang/Runnable;Lt9/j;Z)V

    return-void
.end method

.method public final g()Lt9/a$a;
    .registers 4

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    instance-of v1, v0, Lt9/a$a;

    const/4 v2, 0x0

    if-eqz v1, :cond_c

    check-cast v0, Lt9/a$a;

    goto :goto_d

    :cond_c
    move-object v0, v2

    :goto_d
    if-nez v0, :cond_10

    goto :goto_19

    :cond_10
    iget-object v1, v0, Lt9/a$a;->x:Lt9/a;

    invoke-static {v1, p0}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_19

    move-object v2, v0

    :cond_19
    :goto_19
    return-object v2
.end method

.method public final isTerminated()Z
    .registers 2

    iget v0, p0, Lt9/a;->_isTerminated:I

    return v0
.end method

.method public final k(Ljava/lang/Runnable;Lt9/j;Z)V
    .registers 8

    invoke-virtual {p0, p1, p2}, Lt9/a;->e(Ljava/lang/Runnable;Lt9/j;)Lt9/i;

    move-result-object p1

    invoke-virtual {p0}, Lt9/a;->g()Lt9/a$a;

    move-result-object p2

    const/4 v0, 0x1

    if-nez p2, :cond_d

    :goto_b
    move-object v1, p1

    goto :goto_2b

    .line 1
    :cond_d
    iget-object v1, p2, Lt9/a$a;->s:Lt9/a$b;

    sget-object v2, Lt9/a$b;->v:Lt9/a$b;

    if-ne v1, v2, :cond_14

    goto :goto_b

    :cond_14
    iget-object v1, p1, Lt9/i;->s:Lt9/j;

    invoke-interface {v1}, Lt9/j;->T()I

    move-result v1

    if-nez v1, :cond_23

    iget-object v1, p2, Lt9/a$a;->s:Lt9/a$b;

    sget-object v2, Lt9/a$b;->s:Lt9/a$b;

    if-ne v1, v2, :cond_23

    goto :goto_b

    :cond_23
    iput-boolean v0, p2, Lt9/a$a;->w:Z

    iget-object v1, p2, Lt9/a$a;->r:Lt9/m;

    invoke-virtual {v1, p1, p3}, Lt9/m;->a(Lt9/i;Z)Lt9/i;

    move-result-object v1

    :goto_2b
    const/4 v2, 0x0

    if-eqz v1, :cond_55

    .line 2
    iget-object v3, v1, Lt9/i;->s:Lt9/j;

    invoke-interface {v3}, Lt9/j;->T()I

    move-result v3

    if-ne v3, v0, :cond_38

    move v3, v0

    goto :goto_39

    :cond_38
    move v3, v2

    :goto_39
    if-eqz v3, :cond_3e

    iget-object v3, p0, Lt9/a;->w:Lt9/d;

    goto :goto_40

    :cond_3e
    iget-object v3, p0, Lt9/a;->v:Lt9/d;

    :goto_40
    invoke-virtual {v3, v1}, Ls9/i;->a(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_47

    goto :goto_55

    .line 3
    :cond_47
    new-instance p1, Ljava/util/concurrent/RejectedExecutionException;

    iget-object p2, p0, Lt9/a;->u:Ljava/lang/String;

    const-string p3, " was terminated"

    invoke-static {p2, p3}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

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

    throw p1

    :cond_55
    :goto_55
    if-eqz p3, :cond_5a

    if-eqz p2, :cond_5a

    goto :goto_5b

    :cond_5a
    move v0, v2

    :goto_5b
    iget-object p1, p1, Lt9/i;->s:Lt9/j;

    invoke-interface {p1}, Lt9/j;->T()I

    move-result p1

    if-nez p1, :cond_6a

    if-eqz v0, :cond_66

    return-void

    :cond_66
    invoke-virtual {p0}, Lt9/a;->I()V

    goto :goto_87

    .line 4
    :cond_6a
    sget-object p1, Lt9/a;->z:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    const-wide/32 p2, 0x200000

    invoke-virtual {p1, p0, p2, p3}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->addAndGet(Ljava/lang/Object;J)J

    move-result-wide p1

    if-eqz v0, :cond_76

    goto :goto_87

    :cond_76
    invoke-virtual {p0}, Lt9/a;->L()Z

    move-result p3

    if-eqz p3, :cond_7d

    goto :goto_87

    :cond_7d
    invoke-virtual {p0, p1, p2}, Lt9/a;->K(J)Z

    move-result p1

    if-eqz p1, :cond_84

    goto :goto_87

    :cond_84
    invoke-virtual {p0}, Lt9/a;->L()Z

    :goto_87
    return-void
.end method

.method public final o(Lt9/a$a;)I
    .registers 3

    :cond_0
    invoke-virtual {p1}, Lt9/a$a;->c()Ljava/lang/Object;

    move-result-object p1

    sget-object v0, Lt9/a;->B:Lf/o;

    if-ne p1, v0, :cond_a

    const/4 p1, -0x1

    return p1

    :cond_a
    if-nez p1, :cond_e

    const/4 p1, 0x0

    return p1

    :cond_e
    check-cast p1, Lt9/a$a;

    invoke-virtual {p1}, Lt9/a$a;->b()I

    move-result v0

    if-eqz v0, :cond_0

    return v0
.end method

.method public final p(Lt9/a$a;)Z
    .registers 10

    invoke-virtual {p1}, Lt9/a$a;->c()Ljava/lang/Object;

    move-result-object v0

    sget-object v1, Lt9/a;->B:Lf/o;

    if-eq v0, v1, :cond_a

    const/4 p1, 0x0

    return p1

    :cond_a
    iget-wide v2, p0, Lt9/a;->parkedWorkersStack:J

    const-wide/32 v0, 0x1fffff

    and-long/2addr v0, v2

    long-to-int v0, v0

    const-wide/32 v4, 0x200000

    add-long/2addr v4, v2

    const-wide/32 v6, -0x200000

    and-long/2addr v4, v6

    invoke-virtual {p1}, Lt9/a$a;->b()I

    move-result v1

    iget-object v6, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v6, v0}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p1, v0}, Lt9/a$a;->g(Ljava/lang/Object;)V

    sget-object v0, Lt9/a;->y:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    int-to-long v6, v1

    or-long/2addr v4, v6

    move-object v1, p0

    invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 p1, 0x1

    return p1
.end method

.method public final q(Lt9/a$a;II)V
    .registers 12

    :cond_0
    :goto_0
    iget-wide v2, p0, Lt9/a;->parkedWorkersStack:J

    const-wide/32 v0, 0x1fffff

    and-long/2addr v0, v2

    long-to-int v0, v0

    const-wide/32 v4, 0x200000

    add-long/2addr v4, v2

    const-wide/32 v6, -0x200000

    and-long/2addr v4, v6

    if-ne v0, p2, :cond_19

    if-nez p3, :cond_18

    invoke-virtual {p0, p1}, Lt9/a;->o(Lt9/a$a;)I

    move-result v0

    goto :goto_19

    :cond_18
    move v0, p3

    :cond_19
    :goto_19
    if-gez v0, :cond_1c

    goto :goto_0

    :cond_1c
    sget-object v1, Lt9/a;->y:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;

    int-to-long v6, v0

    or-long/2addr v4, v6

    move-object v0, v1

    move-object v1, p0

    invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 13

    new-instance v0, Ljava/util/ArrayList;

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

    iget-object v1, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->length()I

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-ge v3, v1, :cond_7b

    move v4, v2

    move v5, v4

    move v6, v5

    move v7, v6

    move v8, v3

    :goto_14
    add-int/lit8 v9, v8, 0x1

    iget-object v10, p0, Lt9/a;->x:Ljava/util/concurrent/atomic/AtomicReferenceArray;

    invoke-virtual {v10, v8}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lt9/a$a;

    if-nez v8, :cond_21

    goto :goto_74

    :cond_21
    iget-object v10, v8, Lt9/a$a;->r:Lt9/m;

    invoke-virtual {v10}, Lt9/m;->d()I

    move-result v10

    iget-object v8, v8, Lt9/a$a;->s:Lt9/a$b;

    invoke-virtual {v8}, Ljava/lang/Enum;->ordinal()I

    move-result v8

    if-eqz v8, :cond_67

    if-eq v8, v3, :cond_50

    const/4 v11, 0x2

    if-eq v8, v11, :cond_4d

    const/4 v11, 0x3

    if-eq v8, v11, :cond_3e

    const/4 v10, 0x4

    if-eq v8, v10, :cond_3b

    goto :goto_74

    :cond_3b
    add-int/lit8 v7, v7, 0x1

    goto :goto_74

    :cond_3e
    add-int/lit8 v6, v6, 0x1

    if-lez v10, :cond_74

    new-instance v8, Ljava/lang/StringBuilder;

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

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

    const/16 v10, 0x64

    goto :goto_5c

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

    goto :goto_74

    :cond_50
    add-int/lit8 v4, v4, 0x1

    new-instance v8, Ljava/lang/StringBuilder;

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

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

    const/16 v10, 0x62

    :goto_5c
    invoke-virtual {v8, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

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

    move-result-object v8

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

    goto :goto_74

    :cond_67
    add-int/lit8 v5, v5, 0x1

    new-instance v8, Ljava/lang/StringBuilder;

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

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

    const/16 v10, 0x63

    goto :goto_5c

    :cond_74
    :goto_74
    if-lt v9, v1, :cond_79

    move v1, v2

    move v2, v5

    goto :goto_7f

    :cond_79
    move v8, v9

    goto :goto_14

    :cond_7b
    move v1, v2

    move v4, v1

    move v6, v4

    move v7, v6

    :goto_7f
    iget-wide v8, p0, Lt9/a;->controlState:J

    new-instance v3, Ljava/lang/StringBuilder;

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

    iget-object v5, p0, Lt9/a;->u:Ljava/lang/String;

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

    const/16 v5, 0x40

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

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

    move-result-object v5

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

    const-string v5, "[Pool Size {core = "

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

    iget v5, p0, Lt9/a;->r:I

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

    const-string v5, ", max = "

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

    iget v5, p0, Lt9/a;->s:I

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

    const-string v5, "}, Worker States {CPU = "

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

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

    const-string v2, ", blocking = "

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

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

    const-string v2, ", parked = "

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

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

    const-string v1, ", dormant = "

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

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

    const-string v1, ", terminated = "

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

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

    const-string v1, "}, running workers queues = "

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

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

    const-string v0, ", global CPU queue size = "

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

    iget-object v0, p0, Lt9/a;->v:Lt9/d;

    invoke-virtual {v0}, Ls9/i;->c()I

    move-result v0

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

    const-string v0, ", global blocking queue size = "

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

    iget-object v0, p0, Lt9/a;->w:Lt9/d;

    invoke-virtual {v0}, Ls9/i;->c()I

    move-result v0

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

    const-string v0, ", Control State {created workers= "

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

    const-wide/32 v0, 0x1fffff

    and-long/2addr v0, v8

    long-to-int v0, v0

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

    const-string v0, ", blocking tasks = "

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

    const-wide v0, 0x3ffffe00000L

    and-long/2addr v0, v8

    const/16 v2, 0x15

    shr-long/2addr v0, v2

    long-to-int v0, v0

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

    const-string v0, ", CPUs acquired = "

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

    iget v0, p0, Lt9/a;->r:I

    const-wide v1, 0x7ffffc0000000000L

    and-long/2addr v1, v8

    const/16 v4, 0x2a

    shr-long/2addr v1, v4

    long-to-int v1, v1

    sub-int/2addr v0, v1

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

    const-string v0, "}]"

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

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

    move-result-object v0

    return-object v0
.end method
