2019-05-04 02:59:52 +00:00
|
|
|
.class public final Lkotlinx/coroutines/b/a$b;
|
|
|
|
.super Ljava/lang/Thread;
|
|
|
|
.source "CoroutineScheduler.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lkotlinx/coroutines/b/a;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x11
|
|
|
|
name = "b"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private static final bku:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-06-25 01:04:50 +00:00
|
|
|
.field final synthetic bkA:Lkotlinx/coroutines/b/a;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field final bkt:Lkotlinx/coroutines/b/o;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private bkw:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.field private bkz:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
.field volatile indexInArray:I
|
|
|
|
|
|
|
|
.field volatile nextParkedWorker:Ljava/lang/Object;
|
|
|
|
|
|
|
|
.field private volatile spins:I
|
|
|
|
|
|
|
|
.field volatile state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
.field private volatile terminationState:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-class v0, Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
const-string v1, "terminationState"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sput-object v0, Lkotlinx/coroutines/b/a$b;->bku:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>(Lkotlinx/coroutines/b/a;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/b/a$b;->setDaemon(Z)V
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/b/o;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/b/o;-><init>()V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/b/a$c;->bkE:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->terminationState:I
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->By()Lkotlinx/coroutines/internal/u;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/b/a$b;->nextParkedWorker:Ljava/lang/Object;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bx()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/b/a;->j(Lkotlinx/coroutines/b/a;)Ljava/util/Random;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/Random;->nextInt()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput p1, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lkotlinx/coroutines/b/a;I)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(I)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/b/a$b;-><init>(Lkotlinx/coroutines/b/a;)V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0, p2}, Lkotlinx/coroutines/b/a$b;->di(I)V
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method private final BC()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/b/l;->bkU:Lkotlinx/coroutines/b/l;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/b/e;->a(Lkotlinx/coroutines/b/l;)Lkotlinx/coroutines/b/i;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0, v2}, Lkotlinx/coroutines/b/o;->a(Lkotlinx/coroutines/b/i;Lkotlinx/coroutines/b/e;)Z
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method private final BF()Lkotlinx/coroutines/b/i;
|
2019-05-28 22:16:26 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->h(Lkotlinx/coroutines/b/a;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0, v0}, Lkotlinx/coroutines/b/a$b;->dj(I)I
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/l;->bkT:Lkotlinx/coroutines/b/l;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Lkotlinx/coroutines/b/e;->a(Lkotlinx/coroutines/b/l;)Lkotlinx/coroutines/b/i;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {v1}, Lkotlinx/coroutines/b/o;->BM()Lkotlinx/coroutines/b/i;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/b/e;->AW()Ljava/lang/Object;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/b/i;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_3
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/a$b;->BG()Lkotlinx/coroutines/b/i;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final BG()Lkotlinx/coroutines/b/i;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->g(Lkotlinx/coroutines/b/a;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-ge v0, v2, :cond_0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v2, p0, Lkotlinx/coroutines/b/a$b;->bkz:I
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlinx/coroutines/b/a$b;->dj(I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
|
|
|
|
if-le v2, v0, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iput v2, p0, Lkotlinx/coroutines/b/a$b;->bkz:I
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->f(Lkotlinx/coroutines/b/a;)[Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v0, v0, v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
|
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
|
|
|
|
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
|
|
|
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v3}, Lkotlinx/coroutines/b/o;->a(Lkotlinx/coroutines/b/o;Lkotlinx/coroutines/b/e;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/b/o;->BM()Lkotlinx/coroutines/b/i;
|
2019-05-28 22:16:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
2019-06-25 01:04:50 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-object v1
|
2019-05-28 22:16:26 +00:00
|
|
|
.end method
|
|
|
|
|
2019-06-04 23:20:38 +00:00
|
|
|
.method private final ap(J)Z
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v0, p0}, Lkotlinx/coroutines/b/a;->a(Lkotlinx/coroutines/b/a;Lkotlinx/coroutines/b/a$b;)V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/a$b;->BC()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1, p2}, Ljava/util/concurrent/locks/LockSupport;->parkNanos(J)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method private di(I)V
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlinx/coroutines/b/a;->a(Lkotlinx/coroutines/b/a;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "-worker-"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
const-string v1, "TERMINATED"
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/b/a$b;->setName(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput p1, p0, Lkotlinx/coroutines/b/a$b;->indexInArray:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method private dj(I)I
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
shl-int/lit8 v1, v0, 0xd
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
shr-int/lit8 v1, v0, 0x11
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
shl-int/lit8 v1, v0, 0x5
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
|
|
|
|
and-int v1, v0, p1
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget p1, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
and-int/2addr p1, v0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/b/a$b;->bky:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
|
|
|
|
rem-int/2addr v0, p1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-06-25 01:04:50 +00:00
|
|
|
.method public final BA()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget v0, p0, Lkotlinx/coroutines/b/a$b;->terminationState:I
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Invalid terminationState = "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/b/a$b;->bku:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method public final BB()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/b/a$c;->bkB:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->b(Lkotlinx/coroutines/b/a;)Ljava/util/concurrent/Semaphore;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/Semaphore;->tryAcquire()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/b/a$c;->bkB:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method public final BD()V
|
2019-05-04 02:59:52 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bx()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Lkotlinx/coroutines/b/a$b;->spins:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method public final BE()Lkotlinx/coroutines/b/i;
|
2019-05-24 03:06:45 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/b/a$b;->BB()Z
|
2019-05-24 03:06:45 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/a$b;->BF()Lkotlinx/coroutines/b/i;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkt:Lkotlinx/coroutines/b/o;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/b/o;->BM()Lkotlinx/coroutines/b/i;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/b/a;->i(Lkotlinx/coroutines/b/a;)Lkotlinx/coroutines/b/e;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/b/l;->bkU:Lkotlinx/coroutines/b/l;
|
2019-05-24 03:06:45 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/b/e;->a(Lkotlinx/coroutines/b/l;)Lkotlinx/coroutines/b/i;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
.method public final Bz()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
sget-object v1, Lkotlinx/coroutines/b/a$c;->bkD:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
.method public final a(Lkotlinx/coroutines/b/a$c;)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "newState"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/b/a$c;->bkB:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/b/a;->b(Lkotlinx/coroutines/b/a;)Ljava/util/concurrent/Semaphore;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/Semaphore;->release()V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eq v0, p1, :cond_2
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final run()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->c(Lkotlinx/coroutines/b/a;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_17
|
|
|
|
|
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a$c;->bkF:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eq v3, v4, :cond_17
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/b/a$b;->BE()Lkotlinx/coroutines/b/i;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
|
|
|
|
if-nez v3, :cond_c
|
|
|
|
|
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v3, Lkotlinx/coroutines/b/a$c;->bkB:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-ne v2, v3, :cond_3
|
|
|
|
|
|
|
|
iget v2, p0, Lkotlinx/coroutines/b/a$b;->spins:I
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bu()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-gt v2, v3, :cond_1
|
|
|
|
|
|
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
|
|
|
|
iput v3, p0, Lkotlinx/coroutines/b/a$b;->spins:I
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bv()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-lt v2, v3, :cond_b
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->yield()V
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v2, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bw()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-ge v2, v3, :cond_2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v2, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v2, v2, 0x3
|
|
|
|
|
|
|
|
ushr-int/2addr v2, v0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bw()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Lkotlin/ranges/b;->ac(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v2, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
:cond_2
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/a$c;->bkD:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v2}, Lkotlinx/coroutines/b/a$b;->a(Lkotlinx/coroutines/b/a$c;)Z
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget v2, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
int-to-long v2, v2
|
|
|
|
|
2019-06-04 23:20:38 +00:00
|
|
|
invoke-direct {p0, v2, v3}, Lkotlinx/coroutines/b/a$b;->ap(J)Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/a$c;->bkD:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v2}, Lkotlinx/coroutines/b/a$b;->a(Lkotlinx/coroutines/b/a$c;)Z
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/a$b;->BC()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
|
|
|
|
iput v1, p0, Lkotlinx/coroutines/b/a$b;->terminationState:I
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-wide v2, p0, Lkotlinx/coroutines/b/a$b;->bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-nez v6, :cond_4
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v6, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v6}, Lkotlinx/coroutines/b/a;->e(Lkotlinx/coroutines/b/a;)J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
add-long/2addr v2, v6
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-wide v2, p0, Lkotlinx/coroutines/b/a$b;->bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
:cond_4
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/b/a;->e(Lkotlinx/coroutines/b/a;)J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2019-06-04 23:20:38 +00:00
|
|
|
invoke-direct {p0, v2, v3}, Lkotlinx/coroutines/b/a$b;->ap(J)Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-wide v6, p0, Lkotlinx/coroutines/b/a$b;->bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
sub-long/2addr v2, v6
|
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-ltz v6, :cond_b
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-wide v4, p0, Lkotlinx/coroutines/b/a$b;->bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/b/a;->f(Lkotlinx/coroutines/b/a;)[Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
monitor-enter v2
|
|
|
|
|
|
|
|
:try_start_0
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->c(Lkotlinx/coroutines/b/a;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:try_start_1
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->g(Lkotlinx/coroutines/b/a;)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lkotlinx/coroutines/b/a;->h(Lkotlinx/coroutines/b/a;)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
if-gt v3, v4, :cond_6
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
:try_start_2
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/a$b;->BC()Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
if-nez v3, :cond_7
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:try_start_3
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v3, Lkotlinx/coroutines/b/a$b;->bku:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, p0, v1, v0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
if-nez v3, :cond_8
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:try_start_4
|
|
|
|
iget v3, p0, Lkotlinx/coroutines/b/a$b;->indexInArray:I
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {p0, v1}, Lkotlinx/coroutines/b/a$b;->di(I)V
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v4, p0, v3, v1}, Lkotlinx/coroutines/b/a;->a(Lkotlinx/coroutines/b/a;Lkotlinx/coroutines/b/a$b;II)V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v5, Lkotlinx/coroutines/b/a;->bkh:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v4}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->getAndDecrement(Ljava/lang/Object;)J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
const-wide/32 v6, 0x1fffff
|
|
|
|
|
|
|
|
and-long/2addr v4, v6
|
|
|
|
|
|
|
|
long-to-int v5, v4
|
|
|
|
|
|
|
|
if-eq v5, v3, :cond_a
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lkotlinx/coroutines/b/a;->f(Lkotlinx/coroutines/b/a;)[Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
aget-object v4, v4, v5
|
|
|
|
|
|
|
|
if-nez v4, :cond_9
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlin/jvm/internal/k;->zN()V
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
:cond_9
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v6, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v6}, Lkotlinx/coroutines/b/a;->f(Lkotlinx/coroutines/b/a;)[Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v4, v6, v3
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-direct {v4, v3}, Lkotlinx/coroutines/b/a$b;->di(I)V
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v6, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v6, v4, v5, v3}, Lkotlinx/coroutines/b/a;->a(Lkotlinx/coroutines/b/a;Lkotlinx/coroutines/b/a$b;II)V
|
|
|
|
|
|
|
|
:cond_a
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->f(Lkotlinx/coroutines/b/a;)[Lkotlinx/coroutines/b/a$b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v3, Lkotlin/Unit;->bfg:Lkotlin/Unit;
|
2019-05-04 02:59:52 +00:00
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/a$c;->bkF:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iput-object v2, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
:goto_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_c
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-virtual {v3}, Lkotlinx/coroutines/b/i;->BK()Lkotlinx/coroutines/b/l;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-eqz v2, :cond_11
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-wide v4, p0, Lkotlinx/coroutines/b/a$b;->bkv:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v1, p0, Lkotlinx/coroutines/b/a$b;->bkz:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a$c;->bkD:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-ne v2, v4, :cond_10
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/l;->bkU:Lkotlinx/coroutines/b/l;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-ne v6, v2, :cond_d
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-boolean v4, Lkotlin/v;->bfh:Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_f
|
|
|
|
|
|
|
|
if-eqz v2, :cond_e
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string v1, "Assertion failed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
:goto_3
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/b/a$c;->bkC:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iput-object v2, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b/a;->Bx()I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput v2, p0, Lkotlinx/coroutines/b/a$b;->bkx:I
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
:cond_10
|
|
|
|
iput v1, p0, Lkotlinx/coroutines/b/a$b;->spins:I
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:cond_11
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-wide v4, v3, Lkotlinx/coroutines/b/i;->bkQ:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v7, Lkotlinx/coroutines/b/l;->bkT:Lkotlinx/coroutines/b/l;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eq v6, v7, :cond_12
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v5, Lkotlinx/coroutines/b/a;->bkh:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const-wide/32 v7, 0x200000
|
|
|
|
|
|
|
|
invoke-virtual {v5, v4, v7, v8}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->addAndGet(Ljava/lang/Object;J)J
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a$c;->bkC:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v4}, Lkotlinx/coroutines/b/a$b;->a(Lkotlinx/coroutines/b/a$c;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_13
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lkotlinx/coroutines/b/a;->d(Lkotlinx/coroutines/b/a;)V
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_12
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v7, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v7}, Lkotlinx/coroutines/b/a;->b(Lkotlinx/coroutines/b/a;)Ljava/util/concurrent/Semaphore;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Ljava/util/concurrent/Semaphore;->availablePermits()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_13
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v7, Lkotlinx/coroutines/b/m;->bla:Lkotlinx/coroutines/b/n;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Lkotlinx/coroutines/b/n;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
sub-long v4, v7, v4
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-wide v9, Lkotlinx/coroutines/b/m;->bkW:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
cmp-long v11, v4, v9
|
|
|
|
|
|
|
|
if-ltz v11, :cond_13
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-wide v4, p0, Lkotlinx/coroutines/b/a$b;->bkw:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
sub-long v4, v7, v4
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-wide v9, Lkotlinx/coroutines/b/m;->bkW:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const-wide/16 v11, 0x5
|
|
|
|
|
|
|
|
mul-long v9, v9, v11
|
|
|
|
|
|
|
|
cmp-long v11, v4, v9
|
|
|
|
|
|
|
|
if-ltz v11, :cond_13
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iput-wide v7, p0, Lkotlinx/coroutines/b/a$b;->bkw:J
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v4, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lkotlinx/coroutines/b/a;->d(Lkotlinx/coroutines/b/a;)V
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
:goto_4
|
|
|
|
invoke-static {v3}, Lkotlinx/coroutines/b/a;->b(Lkotlinx/coroutines/b/i;)V
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v3, Lkotlinx/coroutines/b/l;->bkT:Lkotlinx/coroutines/b/l;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eq v6, v3, :cond_0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->bkA:Lkotlinx/coroutines/b/a;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a;->bkh:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
const-wide/32 v5, -0x200000
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3, v5, v6}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->addAndGet(Ljava/lang/Object;J)J
|
|
|
|
|
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a$c;->bkF:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/b/a$c;->bkC:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-ne v3, v4, :cond_14
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-boolean v5, Lkotlin/v;->bfh:Z
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_16
|
|
|
|
|
|
|
|
if-eqz v4, :cond_15
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Expected BLOCKING state, but has "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
:goto_6
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v3, Lkotlinx/coroutines/b/a$c;->bkE:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
iput-object v3, p0, Lkotlinx/coroutines/b/a$b;->state:Lkotlinx/coroutines/b/a$c;
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_17
|
2019-06-25 01:04:50 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/b/a$c;->bkF:Lkotlinx/coroutines/b/a$c;
|
2019-05-04 02:59:52 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/b/a$b;->a(Lkotlinx/coroutines/b/a$c;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|