126 lines
3.2 KiB
Smali
126 lines
3.2 KiB
Smali
.class public final Lkotlinx/coroutines/a/b;
|
|
.super Ljava/lang/Object;
|
|
.source "Undispatched.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Lkotlinx/coroutines/a;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/a<",
|
|
"-TT;>;TR;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-TR;-",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TT;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$startUndispatchedOrReturn"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "block"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/a;->EG()V
|
|
|
|
:try_start_0
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lkotlin/coroutines/Continuation;
|
|
|
|
invoke-static {p2}, Lkotlin/jvm/internal/aa;->bi(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p2, p1, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
new-instance p2, Lkotlinx/coroutines/t;
|
|
|
|
invoke-direct {p2, p1}, Lkotlinx/coroutines/t;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
move-object p1, p2
|
|
|
|
:goto_0
|
|
sget-object p2, Lkotlin/coroutines/a/a;->bmX:Lkotlin/coroutines/a/a;
|
|
|
|
if-eq p1, p2, :cond_2
|
|
|
|
const/4 p2, 0x4
|
|
|
|
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/a;->k(Ljava/lang/Object;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/a;->Fw()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
instance-of p2, p1, Lkotlinx/coroutines/t;
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
check-cast p1, Lkotlinx/coroutines/t;
|
|
|
|
iget-object p1, p1, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
const-string p2, "$this$tryRecover"
|
|
|
|
invoke-static {p0, p2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p2, "exception"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Lkotlinx/coroutines/internal/t;
|
|
|
|
iget-object p0, p0, Lkotlinx/coroutines/internal/t;->brk:Lkotlin/coroutines/Continuation;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-static {p1, p0}, Lkotlinx/coroutines/internal/u;->a(Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
throw p1
|
|
|
|
:cond_1
|
|
invoke-static {p1}, Lkotlinx/coroutines/bo;->bx(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
sget-object p0, Lkotlin/coroutines/a/a;->bmX:Lkotlin/coroutines/a/a;
|
|
|
|
return-object p0
|
|
.end method
|