2019-02-04 20:08:30 +00:00
|
|
|
.class public abstract Lkotlinx/coroutines/a;
|
2019-02-04 20:32:01 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AbstractContinuation.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/c/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
.implements Lkotlinx/coroutines/ag;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
2019-02-04 20:32:01 +00:00
|
|
|
"Ljava/lang/Object;",
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lkotlin/c/c<",
|
|
|
|
"TT;>;",
|
2019-02-04 20:32:01 +00:00
|
|
|
"Lkotlinx/coroutines/ag<",
|
|
|
|
"TT;>;"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
# static fields
|
2019-02-27 00:16:35 +00:00
|
|
|
.field private static final bfk:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
.field private static final bfl:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
# instance fields
|
2019-02-04 20:32:01 +00:00
|
|
|
.field private volatile _decision:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.field private volatile _state:Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
.field final bfm:Lkotlin/c/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/c/c<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
.field private final bfn:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.field private volatile parentHandle:Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class v0, Lkotlinx/coroutines/a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "_decision"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sput-object v0, Lkotlinx/coroutines/a;->bfk:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class v0, Lkotlinx/coroutines/a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class v1, Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "_state"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sput-object v0, Lkotlinx/coroutines/a;->bfl:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:29:01 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public constructor <init>(Lkotlin/c/c;I)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/c/c<",
|
|
|
|
"-TT;>;I)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "delegate"
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->bfm:Lkotlin/c/c;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 p1, 0x1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
iput p1, p0, Lkotlinx/coroutines/a;->bfn:I
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 p1, 0x0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iput p1, p0, Lkotlinx/coroutines/a;->_decision:I
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/b;->yv()Lkotlinx/coroutines/d;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private a(Lkotlinx/coroutines/be;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "expect"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v0, p2, Lkotlinx/coroutines/be;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/a;->bfl:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez p1, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
iget-object p1, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/ai;->dispose()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bd;->bgr:Lkotlinx/coroutines/bd;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p1, Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
|
|
|
return v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "Failed requirement."
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private final a(Lkotlinx/coroutines/be;Ljava/lang/Object;I)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p0, p1, p2}, Lkotlinx/coroutines/a;->a(Lkotlinx/coroutines/be;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lkotlinx/coroutines/a;->b(Lkotlinx/coroutines/be;Ljava/lang/Object;I)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static b(Lkotlinx/coroutines/as;)Ljava/lang/Throwable;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "parent"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-interface {p0}, Lkotlinx/coroutines/as;->yS()Ljava/util/concurrent/CancellationException;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private b(Lkotlinx/coroutines/be;Ljava/lang/Object;I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "expect"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-direct {p0, p3}, Lkotlinx/coroutines/a;->cN(I)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method private final cN(I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
|
|
|
iget v0, p0, Lkotlinx/coroutines/a;->_decision:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
packed-switch v0, :pswitch_data_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "Already resumed"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:pswitch_0
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/a;->bfk:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v2, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:pswitch_1
|
|
|
|
if-eqz v1, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/af;->a(Lkotlinx/coroutines/ag;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_0
|
|
|
|
:pswitch_1
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method private final yr()Z
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:32:01 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/a;->_decision:I
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
|
|
|
|
return v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "Already suspended"
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/a;->bfk:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
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-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return v2
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lkotlinx/coroutines/as;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 4
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bd;->bgr:Lkotlinx/coroutines/bd;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/ai;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/as;->start()Z
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/h;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1, p0}, Lkotlinx/coroutines/h;-><init>(Lkotlinx/coroutines/as;Lkotlinx/coroutines/a;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v2, v0, v3}, Lkotlinx/coroutines/as$a;->a(Lkotlinx/coroutines/as;ZZLkotlin/jvm/functions/Function1;I)Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v0, v0, Lkotlinx/coroutines/be;
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/ai;->dispose()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bd;->bgr:Lkotlinx/coroutines/bd;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p1, Lkotlinx/coroutines/ai;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/a;->parentHandle:Lkotlinx/coroutines/ai;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "Check failed."
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:32:01 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bc(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
")TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final bd(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/ag$a;->bi(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getResult()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/a;->yr()Z
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlin/c/a/a;->bdu:Lkotlin/c/a/a;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/m;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/a;->bc(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/m;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lkotlinx/coroutines/m;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final p(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/a;->q(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final q(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/be;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v1, Lkotlinx/coroutines/g;
|
|
|
|
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
check-cast v3, Lkotlin/c/c;
|
|
|
|
|
|
|
|
invoke-direct {v1, v3, p1}, Lkotlinx/coroutines/g;-><init>(Lkotlin/c/c;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/be;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1, v2}, Lkotlinx/coroutines/a;->a(Lkotlinx/coroutines/be;Ljava/lang/Object;I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public resumeWith(Ljava/lang/Object;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/n;->bf(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/a;->bfn:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
instance-of v2, v1, Lkotlinx/coroutines/be;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/be;
|
|
|
|
|
|
|
|
invoke-direct {p0, v1, p1, v0}, Lkotlinx/coroutines/a;->a(Lkotlinx/coroutines/be;Ljava/lang/Object;I)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
instance-of v0, v1, Lkotlinx/coroutines/g;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/m;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/m;
|
|
|
|
|
|
|
|
iget-object p1, p1, Lkotlinx/coroutines/m;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/a;->getContext()Lkotlin/c/e;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, p1, v1}, Lkotlinx/coroutines/u;->a(Lkotlin/c/e;Ljava/lang/Throwable;Lkotlinx/coroutines/as;)V
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:29:01 +00:00
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "Already resumed, but proposed with update "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public run()V
|
|
|
|
.locals 0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/ag$a;->a(Lkotlinx/coroutines/ag;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/a;->ys()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x7b
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iget-object v1, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v2, v1, Lkotlinx/coroutines/be;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
const-string v1, "Active"
|
|
|
|
|
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v2, v1, Lkotlinx/coroutines/g;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "Cancelled"
|
|
|
|
|
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v1, v1, Lkotlinx/coroutines/m;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "CompletedExceptionally"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string v1, "Completed"
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "}@"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aa;->bg(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method public final yq()Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method protected ys()Ljava/lang/String;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aa;->bh(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method public final yt()Lkotlin/c/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lkotlin/c/c<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/a;->bfm:Lkotlin/c/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.method public final yu()I
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
iget v0, p0, Lkotlinx/coroutines/a;->bfn:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|