2019-10-03 02:31:26 +00:00
|
|
|
.class public Lkotlinx/coroutines/bn;
|
|
|
|
.super Ljava/lang/Object;
|
2019-08-17 08:22:04 +00:00
|
|
|
.source "JobSupport.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# interfaces
|
2019-10-03 02:31:26 +00:00
|
|
|
.implements Lkotlinx/coroutines/Job;
|
|
|
|
.implements Lkotlinx/coroutines/bu;
|
|
|
|
.implements Lkotlinx/coroutines/q;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lkotlinx/coroutines/bn$b;,
|
|
|
|
Lkotlinx/coroutines/bn$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-10-07 23:23:22 +00:00
|
|
|
.field static final bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private volatile _state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
.field private volatile parentHandle:Lkotlinx/coroutines/o;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-10-03 02:31:26 +00:00
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-class v0, Lkotlinx/coroutines/bn;
|
|
|
|
|
|
|
|
const-class v1, Ljava/lang/Object;
|
|
|
|
|
|
|
|
const-string v2, "_state"
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sput-object v0, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bo;->De()Lkotlinx/coroutines/av;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bo;->Df()Lkotlinx/coroutines/av;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/bn;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private final CZ()Lkotlinx/coroutines/bi;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/bi;
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
const-string v2, "Job was cancelled"
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v3, v1}, Lkotlinx/coroutines/bi;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lkotlinx/coroutines/Job;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bn$b;Ljava/util/List;)Ljava/lang/Throwable;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlinx/coroutines/bn$b;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/lang/Throwable;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/bn$b;->Db()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/bn;->CZ()Lkotlinx/coroutines/bi;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object p1, p2
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
instance-of v2, v2, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlin/jvm/functions/Function1;Z)Lkotlinx/coroutines/bm;
|
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;Z)",
|
|
|
|
"Lkotlinx/coroutines/bm<",
|
|
|
|
"*>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "Failed requirement."
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
instance-of p2, p1, Lkotlinx/coroutines/bj;
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bj;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
iget-object p2, v3, Lkotlinx/coroutines/bj;->job:Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
move-object v4, p0
|
|
|
|
|
|
|
|
check-cast v4, Lkotlinx/coroutines/bn;
|
|
|
|
|
|
|
|
if-ne p2, v4, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
return-object v3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p2, Lkotlinx/coroutines/bg;
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-direct {p2, v0, p1}, Lkotlinx/coroutines/bg;-><init>(Lkotlinx/coroutines/Job;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
check-cast p2, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
return-object p2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
instance-of p2, p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-nez p2, :cond_5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
|
|
|
|
iget-object p2, v3, Lkotlinx/coroutines/bm;->job:Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
move-object v4, p0
|
|
|
|
|
|
|
|
check-cast v4, Lkotlinx/coroutines/bn;
|
|
|
|
|
|
|
|
if-ne p2, v4, :cond_6
|
|
|
|
|
|
|
|
instance-of p2, v3, Lkotlinx/coroutines/bj;
|
|
|
|
|
|
|
|
if-nez p2, :cond_6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
if-nez v3, :cond_9
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_4
|
|
|
|
new-instance p2, Lkotlinx/coroutines/bh;
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-direct {p2, v0, p1}, Lkotlinx/coroutines/bh;-><init>(Lkotlinx/coroutines/Job;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
move-object v3, p2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
return-object v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bd;)Lkotlinx/coroutines/br;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/bd;->CK()Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/av;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Lkotlinx/coroutines/br;-><init>()V
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bm;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "State should have list: "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static a(Lkotlinx/coroutines/internal/k;)Lkotlinx/coroutines/p;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/internal/k;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v0, v0, Lkotlinx/coroutines/internal/s;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/internal/k;->Ds()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/internal/j;->bq(Ljava/lang/Object;)Lkotlinx/coroutines/internal/k;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/internal/k;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/internal/j;->bq(Ljava/lang/Object;)Lkotlinx/coroutines/internal/k;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/internal/k;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v0, v0, Lkotlinx/coroutines/internal/s;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p0, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static a(Ljava/lang/Throwable;Ljava/util/List;)V
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/internal/e;->db(I)Ljava/util/Set;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/internal/u;->z(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/internal/u;->z(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eq v2, p0, :cond_1
|
|
|
|
|
|
|
|
if-eq v2, v1, :cond_1
|
|
|
|
|
|
|
|
instance-of v3, v2, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
invoke-static {p0, v2}, Lkotlin/a;->b(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bm;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlinx/coroutines/bm<",
|
|
|
|
"*>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/br;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lkotlinx/coroutines/bm;->b(Lkotlinx/coroutines/internal/k;)Z
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/internal/k;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/internal/j;->bq(Ljava/lang/Object;)Lkotlinx/coroutines/internal/k;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, p0, p1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lkotlinx/coroutines/bn;Lkotlinx/coroutines/bn$b;Lkotlinx/coroutines/p;Ljava/lang/Object;)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
check-cast p2, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-static {p2}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/internal/k;)Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bn$b;Lkotlinx/coroutines/p;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-direct {p0, p1, p3, v1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bn$b;Ljava/lang/Object;I)Z
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p1, "Failed requirement."
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
.locals 7
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/internal/i;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/internal/i;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->k(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
instance-of v2, v0, Lkotlinx/coroutines/bj;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {v2, p2}, Lkotlinx/coroutines/bm;->invoke(Ljava/lang/Throwable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v3
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {v1, v3}, Lkotlin/a;->b(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/bn;
|
|
|
|
|
|
|
|
new-instance v4, Lkotlinx/coroutines/y;
|
|
|
|
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v6, "Exception in completion handler "
|
|
|
|
|
|
|
|
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, " for "
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v4, v1, v3}, Lkotlinx/coroutines/y;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
move-object v1, v4
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v2, Lkotlin/Unit;->bfB:Lkotlin/Unit;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_1
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/internal/k;->Dr()Lkotlinx/coroutines/internal/k;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Lkotlinx/coroutines/bn;->q(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-direct {p0, p2}, Lkotlinx/coroutines/bn;->u(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
goto :goto_2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Ljava/lang/Object;Lkotlinx/coroutines/br;Lkotlinx/coroutines/bm;)Z
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lkotlinx/coroutines/br;",
|
|
|
|
"Lkotlinx/coroutines/bm<",
|
|
|
|
"*>;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/bn$c;
|
|
|
|
|
|
|
|
check-cast p3, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-direct {v0, p3, p3, p0, p1}, Lkotlinx/coroutines/bn$c;-><init>(Lkotlinx/coroutines/internal/k;Lkotlinx/coroutines/internal/k;Lkotlinx/coroutines/bn;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/k$a;
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p2}, Lkotlinx/coroutines/internal/k;->Ds()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3, p2, v0}, Lkotlinx/coroutines/internal/k;->a(Lkotlinx/coroutines/internal/k;Lkotlinx/coroutines/internal/k;Lkotlinx/coroutines/internal/k$a;)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq p1, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bd;Ljava/lang/Object;I)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/av;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-string v3, "Check failed."
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
instance-of v0, p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p2}, Lkotlinx/coroutines/bo;->bo(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1, v3}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0, p2}, Lkotlinx/coroutines/bn;->aZ(Ljava/lang/Object;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lkotlinx/coroutines/bn;->b(Lkotlinx/coroutines/bd;Ljava/lang/Object;I)V
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bn$b;Ljava/lang/Object;I)Z
|
|
|
|
.locals 5
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_13
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/bn$b;->isSealed()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
|
|
|
|
iget-boolean v0, p1, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_11
|
|
|
|
|
|
|
|
instance-of v0, p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
move-object v0, v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v0, p2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
iget-object v3, v0, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
monitor-enter p1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p1, Lkotlinx/coroutines/bn$b;->_exceptionsHolder:Ljava/lang/Object;
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bn$b;->Dc()Ljava/util/ArrayList;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
instance-of v4, v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bn$b;->Dc()Ljava/util/ArrayList;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-object v0, v4
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
instance-of v4, v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_10
|
|
|
|
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
iget-object v4, p1, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v4}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/k;->k(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
xor-int/2addr v4, v2
|
|
|
|
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_6
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bo;->Dd()Lkotlinx/coroutines/internal/v;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iput-object v4, p1, Lkotlinx/coroutines/bn$b;->_exceptionsHolder:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bn$b;Ljava/util/List;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
|
|
|
|
invoke-static {v4, v0}, Lkotlinx/coroutines/bn;->a(Ljava/lang/Throwable;Ljava/util/List;)V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
monitor-exit p1
|
|
|
|
|
|
|
|
if-nez v4, :cond_8
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
if-ne v4, v3, :cond_9
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
new-instance p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
invoke-direct {p2, v4}, Lkotlinx/coroutines/t;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-eqz v4, :cond_d
|
|
|
|
|
|
|
|
invoke-direct {p0, v4}, Lkotlinx/coroutines/bn;->u(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
|
|
|
|
invoke-virtual {p0, v4}, Lkotlinx/coroutines/bn;->t(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
if-eqz v1, :cond_d
|
|
|
|
|
|
|
|
if-eqz p2, :cond_c
|
|
|
|
|
|
|
|
move-object v0, p2
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/t;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/t;->Cy()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlinx.coroutines.CompletedExceptionally"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
:goto_4
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0, p2}, Lkotlinx/coroutines/bn;->aZ(Ljava/lang/Object;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p2}, Lkotlinx/coroutines/bo;->bo(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lkotlinx/coroutines/bn;->b(Lkotlinx/coroutines/bd;Ljava/lang/Object;I)V
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, "Unexpected state: "
|
|
|
|
|
|
|
|
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/bn;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, ", expected: "
|
|
|
|
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, ", update: "
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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
|
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
:try_start_1
|
|
|
|
new-instance p2, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p3, "null cannot be cast to non-null type kotlin.collections.ArrayList<kotlin.Throwable> /* = java.util.ArrayList<kotlin.Throwable> */"
|
|
|
|
|
|
|
|
invoke-direct {p2, p3}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
const-string p2, "State is "
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-instance p3, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p3, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p3, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p3
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
monitor-exit p1
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Failed requirement."
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Failed requirement."
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Failed requirement."
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lkotlinx/coroutines/bn$b;Lkotlinx/coroutines/p;Ljava/lang/Object;)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, p2, Lkotlinx/coroutines/p;->bin:Lkotlinx/coroutines/q;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
new-instance v1, Lkotlinx/coroutines/bn$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lkotlinx/coroutines/bn$a;-><init>(Lkotlinx/coroutines/bn;Lkotlinx/coroutines/bn$b;Lkotlinx/coroutines/p;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/x;
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, v3, v3, v1, v2}, Lkotlinx/coroutines/Job$a;->a(Lkotlinx/coroutines/Job;ZZLkotlin/jvm/functions/Function1;I)Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p2, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-static {p2}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/internal/k;)Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private b(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "$this$toCancellationException"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v0, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/bi;
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/aj;->be(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, " was cancelled"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-direct {v0, p2, p1, v1}, Lkotlinx/coroutines/bi;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lkotlinx/coroutines/Job;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final b(Lkotlinx/coroutines/bd;Ljava/lang/Object;I)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/o;->dispose()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v0, p2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
iget-object v1, v0, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/bm;->invoke(Ljava/lang/Throwable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
new-instance v1, Lkotlinx/coroutines/y;
|
|
|
|
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v3, "Exception in completion handler "
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, " for "
|
|
|
|
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {v1, p1, v0}, Lkotlinx/coroutines/y;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Lkotlinx/coroutines/bn;->q(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/bd;->CK()Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v1}, Lkotlinx/coroutines/bn;->b(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p0, p2, p3}, Lkotlinx/coroutines/bn;->i(Ljava/lang/Object;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final b(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
.locals 7
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/internal/i;->Dq()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/internal/i;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->k(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
instance-of v2, v0, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {v2, p2}, Lkotlinx/coroutines/bm;->invoke(Ljava/lang/Throwable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v3
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {v1, v3}, Lkotlin/a;->b(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/bn;
|
|
|
|
|
|
|
|
new-instance v4, Lkotlinx/coroutines/y;
|
|
|
|
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v6, "Exception in completion handler "
|
|
|
|
|
|
|
|
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, " for "
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v4, v1, v3}, Lkotlinx/coroutines/y;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
move-object v1, v4
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v2, Lkotlin/Unit;->bfB:Lkotlin/Unit;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_1
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/internal/k;->Dr()Lkotlinx/coroutines/internal/k;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Lkotlinx/coroutines/bn;->q(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
goto :goto_2
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private final bh(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-boolean v1, v1, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v1, Lkotlinx/coroutines/t;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->bi(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-direct {v1, v3}, Lkotlinx/coroutines/t;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1, v2}, Lkotlinx/coroutines/bn;->d(Ljava/lang/Object;Ljava/lang/Object;I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "unexpected result"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private final bi(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/bn;->CZ()Lkotlinx/coroutines/bi;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bu;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/bu;->Da()Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.ParentJob"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private final bj(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 8
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
instance-of v3, v2, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
|
|
|
|
monitor-enter v2
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lkotlinx/coroutines/bn$b;->isSealed()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
return v4
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:try_start_1
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v3}, Lkotlinx/coroutines/bn$b;->Db()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->bi(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object p1, v2
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Lkotlinx/coroutines/bn$b;->v(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move-object p1, v2
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-object p1, p1, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
xor-int/lit8 v1, v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v2, Lkotlinx/coroutines/bn$b;->bjk:Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return v5
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
instance-of v3, v2, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_11
|
|
|
|
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->bi(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
invoke-interface {v3}, Lkotlinx/coroutines/bd;->isActive()Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_d
|
|
|
|
|
|
|
|
instance-of v2, v3, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
xor-int/2addr v2, v5
|
|
|
|
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v3}, Lkotlinx/coroutines/bd;->isActive()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
|
|
|
|
invoke-direct {p0, v3}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bd;)Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
new-instance v6, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
invoke-direct {v6, v2, v1}, Lkotlinx/coroutines/bn$b;-><init>(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v7, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7, p0, v3, v6}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_a
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
invoke-direct {p0, v2, v1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
return v5
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
new-instance v3, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1}, Lkotlinx/coroutines/t;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, v2, v3, v4}, Lkotlinx/coroutines/bn;->d(Ljava/lang/Object;Ljava/lang/Object;I)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_10
|
|
|
|
|
|
|
|
if-eq v3, v5, :cond_f
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-eq v3, v2, :cond_f
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
if-ne v3, v2, :cond_e
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "unexpected result"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
return v5
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "Cannot happen in "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
return v4
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private static bk(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
move-object p0, v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
iget-object p0, p0, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private static bl(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
const-string v1, "Active"
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
check-cast p0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn$b;->Db()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string p0, "Cancelling"
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-boolean p0, p0, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
const-string p0, "Completing"
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
check-cast p0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Lkotlinx/coroutines/bd;->isActive()Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p0, "New"
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
instance-of p0, p0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
|
|
|
|
const-string p0, "Cancelled"
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string p0, "Completed"
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final d(Ljava/lang/Object;Ljava/lang/Object;I)I
|
|
|
|
.locals 8
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/av;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
instance-of v0, p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bd;Ljava/lang/Object;I)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bd;)Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
instance-of v5, p1, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
|
|
|
|
move-object v5, v6
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object v5, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v5, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
if-nez v5, :cond_6
|
|
|
|
|
|
|
|
new-instance v5, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
invoke-direct {v5, v4, v6}, Lkotlinx/coroutines/bn$b;-><init>(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
monitor-enter v5
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-boolean v7, v5, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
|
|
|
|
monitor-exit v5
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:try_start_1
|
|
|
|
iput-boolean v3, v5, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
|
|
|
|
if-eq v5, p1, :cond_8
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, p0, p1, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
|
|
|
|
monitor-exit v5
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:try_start_2
|
|
|
|
invoke-virtual {v5}, Lkotlinx/coroutines/bn$b;->isSealed()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
xor-int/2addr p1, v3
|
|
|
|
|
|
|
|
if-eqz p1, :cond_11
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v5}, Lkotlinx/coroutines/bn$b;->Db()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
instance-of v1, p2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-nez v1, :cond_9
|
|
|
|
|
|
|
|
move-object v1, v6
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move-object v1, p2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
check-cast v1, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
|
|
|
|
iget-object v1, v1, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v1}, Lkotlinx/coroutines/bn$b;->v(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
iget-object v1, v5, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
xor-int/2addr p1, v3
|
|
|
|
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
move-object v1, v6
|
|
|
|
|
|
|
|
:goto_2
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->bfB:Lkotlin/Unit;
|
2019-10-03 02:31:26 +00:00
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v5
|
|
|
|
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
|
|
|
|
invoke-direct {p0, v4, v1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/br;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
instance-of p1, v0, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
if-nez p1, :cond_d
|
|
|
|
|
|
|
|
move-object p1, v6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
check-cast p1, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
if-nez p1, :cond_e
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/bd;->CK()Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/internal/k;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/internal/k;)Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
move-object v6, p1
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
:goto_4
|
|
|
|
if-eqz v6, :cond_10
|
|
|
|
|
|
|
|
invoke-direct {p0, v5, v6, p2}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bn$b;Lkotlinx/coroutines/p;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_10
|
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
invoke-direct {p0, v5, p2, p3}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bn$b;Ljava/lang/Object;I)Z
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
:try_start_3
|
|
|
|
const-string p1, "Failed requirement."
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v5
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final u(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->Cm()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Lkotlinx/coroutines/o;->s(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-ne p1, v1, :cond_2
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public final CV()Ljava/util/concurrent/CancellationException;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 4
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
const-string v2, "Job is still new or active: "
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aj;->be(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v3, " is cancelling"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Lkotlinx/coroutines/bn;->b(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v2, 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
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v2}, Lkotlinx/coroutines/bn;->b(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v0, Lkotlinx/coroutines/bi;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aj;->be(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v3, " has completed normally"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lkotlinx/coroutines/bi;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lkotlinx/coroutines/Job;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v2, 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
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public CW()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method protected CX()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public final CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/bn;->_state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/internal/r;
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/r;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, p0}, Lkotlinx/coroutines/internal/r;->bp(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public Cj()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public Cl()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aj;->be(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected Cm()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final Da()Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 5
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-object v1, v1, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
iget-object v1, v1, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CX()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
instance-of v2, v1, Ljava/util/concurrent/CancellationException;
|
|
|
|
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
new-instance v2, Lkotlinx/coroutines/bi;
|
|
|
|
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v4, "Parent job is "
|
|
|
|
|
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/bn;->bl(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object 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
|
|
|
|
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-direct {v2, v0, v1, v3}, Lkotlinx/coroutines/bi;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lkotlinx/coroutines/Job;)V
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Cannot be cancelling child in this state: "
|
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(ZZLkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/at;
|
|
|
|
.locals 7
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(ZZ",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)",
|
|
|
|
"Lkotlinx/coroutines/at;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "handler"
|
|
|
|
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
instance-of v3, v2, Lkotlinx/coroutines/av;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/av;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-boolean v4, v3, Lkotlinx/coroutines/av;->biX:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0, p3, p1}, Lkotlinx/coroutines/bn;->a(Lkotlin/jvm/functions/Function1;Z)Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v3, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v2, Lkotlinx/coroutines/br;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Lkotlinx/coroutines/br;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-boolean v4, v3, Lkotlinx/coroutines/av;->biX:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance v4, Lkotlinx/coroutines/bc;
|
|
|
|
|
|
|
|
invoke-direct {v4, v2}, Lkotlinx/coroutines/bc;-><init>(Lkotlinx/coroutines/br;)V
|
|
|
|
|
|
|
|
move-object v2, v4
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
:goto_1
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p0, v3, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
instance-of v3, v2, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_10
|
|
|
|
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lkotlinx/coroutines/bd;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {v3}, Lkotlinx/coroutines/bd;->CK()Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_6
|
|
|
|
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
invoke-direct {p0, v2}, Lkotlinx/coroutines/bn;->a(Lkotlinx/coroutines/bm;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlinx.coroutines.JobNode<*>"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_6
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v4, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v4, Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_c
|
|
|
|
|
|
|
|
instance-of v5, v2, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
|
|
|
|
monitor-enter v2
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
move-object v5, v2
|
|
|
|
|
|
|
|
check-cast v5, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-object v5, v5, Lkotlinx/coroutines/bn$b;->rootCause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
if-eqz v5, :cond_7
|
|
|
|
|
|
|
|
instance-of v6, p3, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
|
|
|
|
move-object v6, v2
|
|
|
|
|
|
|
|
check-cast v6, Lkotlinx/coroutines/bn$b;
|
|
|
|
|
|
|
|
iget-boolean v6, v6, Lkotlinx/coroutines/bn$b;->isCompleting:Z
|
|
|
|
|
|
|
|
if-nez v6, :cond_b
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
|
|
|
|
invoke-direct {p0, p3, p1}, Lkotlinx/coroutines/bn;->a(Lkotlin/jvm/functions/Function1;Z)Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-direct {p0, v2, v3, v1}, Lkotlinx/coroutines/bn;->a(Ljava/lang/Object;Lkotlinx/coroutines/br;Lkotlinx/coroutines/bm;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-nez v4, :cond_9
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
if-nez v5, :cond_a
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
check-cast v1, Lkotlinx/coroutines/at;
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
:try_start_2
|
|
|
|
move-object v4, v1
|
|
|
|
|
|
|
|
check-cast v4, Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
:cond_b
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v6, Lkotlin/Unit;->bfB:Lkotlin/Unit;
|
2019-10-03 02:31:26 +00:00
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v5, :cond_e
|
|
|
|
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
|
|
|
|
invoke-interface {p3, v5}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
return-object v4
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
if-nez v1, :cond_f
|
|
|
|
|
|
|
|
invoke-direct {p0, p3, p1}, Lkotlinx/coroutines/bn;->a(Lkotlin/jvm/functions/Function1;Z)Lkotlinx/coroutines/bm;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
invoke-direct {p0, v2, v3, v1}, Lkotlinx/coroutines/bn;->a(Ljava/lang/Object;Lkotlinx/coroutines/br;Lkotlinx/coroutines/bm;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
if-eqz p2, :cond_13
|
|
|
|
|
|
|
|
instance-of p1, v2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-nez p1, :cond_11
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
check-cast v2, Lkotlinx/coroutines/t;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_12
|
|
|
|
|
|
|
|
iget-object v0, v2, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
invoke-interface {p3, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_13
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lkotlinx/coroutines/q;)Lkotlinx/coroutines/o;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "child"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/p;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, p1}, Lkotlinx/coroutines/p;-><init>(Lkotlinx/coroutines/bn;Lkotlinx/coroutines/q;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/x;
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
invoke-static {p0, p1, v1, v0, v2}, Lkotlinx/coroutines/Job$a;->a(Lkotlinx/coroutines/Job;ZZLkotlin/jvm/functions/Function1;I)Lkotlinx/coroutines/at;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.ChildHandle"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Ljava/util/concurrent/CancellationException;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/bn;->bg(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lkotlinx/coroutines/bu;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "parentJob"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/bn;->bg(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method protected aZ(Ljava/lang/Object;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method final bg(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CW()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->bh(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/bn;->bj(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final c(Lkotlinx/coroutines/Job;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/Job;->start()Z
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/q;
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Lkotlinx/coroutines/Job;->a(Lkotlinx/coroutines/q;)Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->isCompleted()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/o;->dispose()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bs;->bjB:Lkotlinx/coroutines/bs;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/bn;->parentHandle:Lkotlinx/coroutines/o;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final synthetic cancel()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Lkotlinx/coroutines/Job;->a(Ljava/util/concurrent/CancellationException;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(TR;",
|
|
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
|
|
"-TR;-",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext$b;",
|
|
|
|
"+TR;>;)TR;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v0, "operation"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
|
|
|
|
invoke-static {v0, p1, p2}, Lkotlin/coroutines/CoroutineContext$b$a;->a(Lkotlin/coroutines/CoroutineContext$b;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public get(Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<E::",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext$b;",
|
|
|
|
">(",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext$c<",
|
|
|
|
"TE;>;)TE;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "key"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-object v0, p0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
check-cast v0, Lkotlin/coroutines/CoroutineContext$b;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {v0, p1}, Lkotlin/coroutines/CoroutineContext$b$a;->a(Lkotlin/coroutines/CoroutineContext$b;Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext$b;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object p1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final getKey()Lkotlin/coroutines/CoroutineContext$c;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext$c<",
|
|
|
|
"*>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/Job;->bjo:Lkotlinx/coroutines/Job$b;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
check-cast v0, Lkotlin/coroutines/CoroutineContext$c;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method protected i(Ljava/lang/Object;I)V
|
|
|
|
.locals 0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public isActive()Z
|
|
|
|
.locals 2
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object v0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bd;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz v1, :cond_0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
check-cast v0, Lkotlinx/coroutines/bd;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/bd;->isActive()Z
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result v0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const/4 v0, 0x1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return v0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final isCompleted()Z
|
|
|
|
.locals 1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v0, v0, Lkotlinx/coroutines/bd;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-10-03 02:31:26 +00:00
|
|
|
const/4 v0, 0x0
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final k(Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/at;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)",
|
|
|
|
"Lkotlinx/coroutines/at;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "handler"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0, v1, p1}, Lkotlinx/coroutines/bn;->a(ZZLkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/at;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final k(Ljava/lang/Object;I)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1, p2}, Lkotlinx/coroutines/bn;->d(Ljava/lang/Object;Ljava/lang/Object;I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "unexpected result"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
:cond_2
|
2019-10-03 02:31:26 +00:00
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "Job "
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, " is already complete or completing, but is being completed with "
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/bn;->bk(Ljava/lang/Object;)Ljava/lang/Throwable;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p2, v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public minusKey(Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext$c<",
|
|
|
|
"*>;)",
|
|
|
|
"Lkotlin/coroutines/CoroutineContext;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "key"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lkotlin/coroutines/CoroutineContext$b$a;->b(Lkotlin/coroutines/CoroutineContext$b;Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
move-result-object p1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
return-object p1
|
2019-10-03 02:31:26 +00:00
|
|
|
.end method
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.locals 1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v0, "context"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lkotlin/coroutines/CoroutineContext$b$a;->a(Lkotlin/coroutines/CoroutineContext$b;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public q(Ljava/lang/Throwable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "exception"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
throw p1
|
2019-10-03 02:31:26 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final s(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "cause"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/bn;->bg(Ljava/lang/Object;)Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CX()Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final start()Z
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/av;
|
|
|
|
|
|
|
|
const/4 v2, -0x1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/av;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-boolean v1, v1, Lkotlinx/coroutines/av;->biX:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bo;->De()Lkotlinx/coroutines/av;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0, v0, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->Cj()V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/bc;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bn;->bik:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
check-cast v5, Lkotlinx/coroutines/bc;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v5, v5, Lkotlinx/coroutines/bc;->bjk:Lkotlinx/coroutines/br;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, p0, v0, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->Cj()V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/4 v2, 0x1
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
if-eq v2, v4, :cond_4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return v4
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return v3
|
2019-08-17 08:22:04 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method protected t(Ljava/lang/Throwable;)Z
|
2019-08-17 08:22:04 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v0, "exception"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->Cl()Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v2, 0x7b
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/bn;->CY()Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object v2
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/bn;->bl(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v2, 0x7d
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x40
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/aj;->bd(Ljava/lang/Object;)Ljava/lang/String;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
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;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|