275 lines
6.7 KiB
Smali
275 lines
6.7 KiB
Smali
.class public final Lkotlinx/coroutines/y;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# static fields
|
|
.field private static final bSd:Lkotlinx/coroutines/a/o;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lkotlinx/coroutines/a/o;
|
|
|
|
const-string v1, "UNDEFINED"
|
|
|
|
invoke-direct {v0, v1}, Lkotlinx/coroutines/a/o;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lkotlinx/coroutines/y;->bSd:Lkotlinx/coroutines/a/o;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic FO()Lkotlinx/coroutines/a/o;
|
|
.locals 1
|
|
|
|
sget-object v0, Lkotlinx/coroutines/y;->bSd:Lkotlinx/coroutines/a/o;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/c/c;Ljava/lang/Object;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/c/c<",
|
|
"-TT;>;TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
instance-of v0, p0, Lkotlinx/coroutines/x;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
check-cast p0, Lkotlinx/coroutines/x;
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/x;->bSb:Lkotlinx/coroutines/k;
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/x;->getContext()Lkotlin/c/e;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/k;->b(Lkotlin/c/e;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/x;->bRY:Ljava/lang/Object;
|
|
|
|
iput v1, p0, Lkotlinx/coroutines/x;->bRZ:I
|
|
|
|
iget-object p1, p0, Lkotlinx/coroutines/x;->bSb:Lkotlinx/coroutines/k;
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/x;->getContext()Lkotlin/c/e;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast p0, Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p1, v0, p0}, Lkotlinx/coroutines/k;->a(Lkotlin/c/e;Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sget-object v0, Lkotlinx/coroutines/bd;->bSP:Lkotlinx/coroutines/bd;
|
|
|
|
sget-object v0, Lkotlinx/coroutines/bd;->bSO:Lkotlinx/coroutines/a/r;
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/a/r;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/bd$a;
|
|
|
|
iget-boolean v2, v0, Lkotlinx/coroutines/bd$a;->bSi:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/x;->bRY:Ljava/lang/Object;
|
|
|
|
iput v1, p0, Lkotlinx/coroutines/x;->bRZ:I
|
|
|
|
iget-object p1, v0, Lkotlinx/coroutines/bd$a;->bSQ:Lkotlinx/coroutines/a/b;
|
|
|
|
invoke-virtual {p1, p0}, Lkotlinx/coroutines/a/b;->addLast(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string v2, "eventLoop"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:try_start_0
|
|
iput-boolean v1, v0, Lkotlinx/coroutines/bd$a;->bSi:Z
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/x;->getContext()Lkotlin/c/e;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lkotlinx/coroutines/al;->bSt:Lkotlinx/coroutines/al$b;
|
|
|
|
check-cast v4, Lkotlin/c/e$c;
|
|
|
|
invoke-interface {v3, v4}, Lkotlin/c/e;->get(Lkotlin/c/e$c;)Lkotlin/c/e$b;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lkotlinx/coroutines/al;
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-interface {v3}, Lkotlinx/coroutines/al;->isActive()Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
invoke-interface {v3}, Lkotlinx/coroutines/al;->FV()Ljava/util/concurrent/CancellationException;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/Throwable;
|
|
|
|
sget-object v4, Lkotlin/m;->bPk:Lkotlin/m$a;
|
|
|
|
invoke-static {v3}, Lkotlin/n;->n(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lkotlin/m;->bx(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p0, v3}, Lkotlin/c/c;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-nez v1, :cond_3
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/x;->getContext()Lkotlin/c/e;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v3, p0, Lkotlinx/coroutines/x;->bSa:Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v3}, Lkotlinx/coroutines/a/q;->b(Lkotlin/c/e;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
iget-object p0, p0, Lkotlinx/coroutines/x;->bSc:Lkotlin/c/c;
|
|
|
|
sget-object v4, Lkotlin/m;->bPk:Lkotlin/m$a;
|
|
|
|
invoke-static {p1}, Lkotlin/m;->bx(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p0, p1}, Lkotlin/c/c;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
sget-object p0, Lkotlin/Unit;->bPn:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
invoke-static {v1, v3}, Lkotlinx/coroutines/a/q;->a(Lkotlin/c/e;Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
invoke-static {v1, v3}, Lkotlinx/coroutines/a/q;->a(Lkotlin/c/e;Ljava/lang/Object;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
iget-object p0, v0, Lkotlinx/coroutines/bd$a;->bSQ:Lkotlinx/coroutines/a/b;
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/a/b;->Gj()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Runnable;
|
|
:try_end_2
|
|
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
if-nez p0, :cond_4
|
|
|
|
iput-boolean v2, v0, Lkotlinx/coroutines/bd$a;->bSi:Z
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
:try_start_3
|
|
invoke-interface {p0}, Ljava/lang/Runnable;->run()V
|
|
:try_end_3
|
|
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
:try_start_4
|
|
iget-object p1, v0, Lkotlinx/coroutines/bd$a;->bSQ:Lkotlinx/coroutines/a/b;
|
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/a/b;->clear()V
|
|
|
|
new-instance p1, Lkotlinx/coroutines/w;
|
|
|
|
const-string v1, "Unexpected exception in undispatched event loop, clearing pending tasks"
|
|
|
|
invoke-direct {p1, v1, p0}, Lkotlinx/coroutines/w;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
:goto_2
|
|
iput-boolean v2, v0, Lkotlinx/coroutines/bd$a;->bSi:Z
|
|
|
|
throw p0
|
|
|
|
:cond_5
|
|
sget-object v0, Lkotlin/m;->bPk:Lkotlin/m$a;
|
|
|
|
invoke-static {p1}, Lkotlin/m;->bx(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p0, p1}, Lkotlin/c/c;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|