425 lines
10 KiB
Smali
425 lines
10 KiB
Smali
.class public abstract Lkotlinx/coroutines/an;
|
|
.super Lkotlinx/coroutines/b/i;
|
|
.source "Dispatched.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lkotlinx/coroutines/b/i;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public biq:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/b/i;-><init>()V
|
|
|
|
iput p1, p0, Lkotlinx/coroutines/an;->biq:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static bl(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
.locals 2
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/q;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move-object p0, v1
|
|
|
|
:cond_0
|
|
check-cast p0, Lkotlinx/coroutines/q;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iget-object p0, p0, Lkotlinx/coroutines/q;->cause:Ljava/lang/Throwable;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract Ac()Ljava/lang/Object;
|
|
.end method
|
|
|
|
.method public abstract Ag()Lkotlin/coroutines/Continuation;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/Object;Ljava/lang/Throwable;)V
|
|
.locals 0
|
|
|
|
const-string p1, "cause"
|
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bh(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Object;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-static {p1, p2}, Lkotlin/a;->b(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
:cond_1
|
|
if-nez p1, :cond_2
|
|
|
|
move-object p1, p2
|
|
|
|
:cond_2
|
|
new-instance p2, Lkotlinx/coroutines/af;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Fatal exception in coroutines machinery for "
|
|
|
|
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, ". Please read KDoc to \'handleFatalException\' method and report this incident to maintainers"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/k;->zN()V
|
|
|
|
:cond_3
|
|
invoke-direct {p2, v0, p1}, Lkotlinx/coroutines/af;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/an;->Ag()Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
invoke-static {p1, p2}, Lkotlinx/coroutines/aa;->b(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final run()V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/an;->bkR:Lkotlinx/coroutines/b/j;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/an;->Ag()Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
check-cast v2, Lkotlinx/coroutines/al;
|
|
|
|
iget-object v3, v2, Lkotlinx/coroutines/al;->bio:Lkotlin/coroutines/Continuation;
|
|
|
|
invoke-interface {v3}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v4
|
|
|
|
iget v5, p0, Lkotlinx/coroutines/an;->biq:I
|
|
|
|
invoke-static {v5}, Lkotlinx/coroutines/bq;->dd(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
sget-object v5, Lkotlinx/coroutines/Job;->biM:Lkotlinx/coroutines/Job$b;
|
|
|
|
check-cast v5, Lkotlin/coroutines/CoroutineContext$c;
|
|
|
|
invoke-interface {v4, v5}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lkotlinx/coroutines/Job;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v5, v1
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/an;->Ac()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v2, v2, Lkotlinx/coroutines/al;->bim:Ljava/lang/Object;
|
|
|
|
invoke-static {v4, v2}, Lkotlinx/coroutines/internal/y;->b(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
:try_start_1
|
|
invoke-interface {v5}, Lkotlinx/coroutines/Job;->isActive()Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
invoke-interface {v5}, Lkotlinx/coroutines/Job;->AI()Ljava/util/concurrent/CancellationException;
|
|
|
|
move-result-object v5
|
|
|
|
move-object v7, v5
|
|
|
|
check-cast v7, Ljava/lang/Throwable;
|
|
|
|
invoke-virtual {p0, v6, v7}, Lkotlinx/coroutines/an;->a(Ljava/lang/Object;Ljava/lang/Throwable;)V
|
|
|
|
sget-object v6, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
check-cast v5, Ljava/lang/Throwable;
|
|
|
|
invoke-static {v5, v3}, Lkotlinx/coroutines/internal/t;->a(Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Lkotlin/n;->n(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-static {v6}, Lkotlinx/coroutines/an;->bl(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
sget-object v6, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-static {v5, v3}, Lkotlinx/coroutines/internal/t;->a(Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Lkotlin/n;->n(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p0, v6}, Lkotlinx/coroutines/an;->bh(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
sget-object v6, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-static {v5}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
:goto_1
|
|
sget-object v3, Lkotlin/Unit;->bfg:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
invoke-static {v4, v2}, Lkotlinx/coroutines/internal/y;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
|
|
:try_end_2
|
|
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:try_start_3
|
|
sget-object v2, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/b/j;->BI()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->bfg:Lkotlin/Unit;
|
|
|
|
invoke-static {v0}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
:try_end_3
|
|
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
:goto_2
|
|
sget-object v2, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-static {v0}, Lkotlin/n;->n(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
invoke-static {v0}, Lkotlin/m;->aV(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v1, v0}, Lkotlinx/coroutines/an;->d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v3
|
|
|
|
:try_start_4
|
|
invoke-static {v4, v2}, Lkotlinx/coroutines/internal/y;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
|
|
|
|
throw v3
|
|
|
|
:cond_3
|
|
new-instance v2, Lkotlin/r;
|
|
|
|
const-string v3, "null cannot be cast to non-null type kotlinx.coroutines.DispatchedContinuation<T>"
|
|
|
|
invoke-direct {v2, v3}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
:try_end_4
|
|
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_2
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v2
|
|
|
|
:try_start_5
|
|
sget-object v3, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/b/j;->BI()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->bfg:Lkotlin/Unit;
|
|
|
|
invoke-static {v0}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
:try_end_5
|
|
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_1
|
|
|
|
goto :goto_4
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
sget-object v3, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-static {v0}, Lkotlin/n;->n(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_4
|
|
invoke-static {v0}, Lkotlin/m;->aV(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v1, v0}, Lkotlinx/coroutines/an;->d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
throw v2
|
|
|
|
:catch_2
|
|
move-exception v1
|
|
|
|
:try_start_6
|
|
sget-object v2, Lkotlin/m;->bfd:Lkotlin/m$a;
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/b/j;->BI()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->bfg:Lkotlin/Unit;
|
|
|
|
invoke-static {v0}, Lkotlin/m;->aW(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
:try_end_6
|
|
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6} :catch_3
|
|
|
|
goto :goto_3
|
|
|
|
:catch_3
|
|
move-exception v0
|
|
|
|
goto :goto_2
|
|
.end method
|