278 lines
7.1 KiB
Smali
278 lines
7.1 KiB
Smali
.class public final Lkotlinx/coroutines/selects/WhileSelectKt;
|
|
.super Ljava/lang/Object;
|
|
.source "WhileSelect.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nWhileSelect.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WhileSelect.kt\nkotlinx/coroutines/selects/WhileSelectKt\n+ 2 Select.kt\nkotlinx/coroutines/selects/SelectKt\n*L\n1#1,33:1\n199#2,11:34\n*E\n*S KotlinDebug\n*F\n+ 1 WhileSelect.kt\nkotlinx/coroutines/selects/WhileSelectKt\n*L\n31#1,11:34\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u001a4\u0010\u0006\u001a\u00020\u00032\u001f\u0008\u0004\u0010\u0005\u001a\u0019\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00020\u0001\u0012\u0004\u0012\u00020\u00030\u0000\u00a2\u0006\u0002\u0008\u0004H\u0087H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0006\u0010\u0007\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0008"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/Function1;",
|
|
"Lkotlinx/coroutines/selects/a;",
|
|
"",
|
|
"Lkotlin/d1;",
|
|
"Lkotlin/ExtensionFunctionType;",
|
|
"builder",
|
|
"a",
|
|
"(Lej/l;Lkotlin/coroutines/c;)Ljava/lang/Object;",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Lej/l;Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
.locals 4
|
|
.param p0 # Lej/l;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkotlin/coroutines/c;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lej/l<",
|
|
"-",
|
|
"Lkotlinx/coroutines/selects/a<",
|
|
"-",
|
|
"Ljava/lang/Boolean;",
|
|
">;",
|
|
"Lkotlin/d1;",
|
|
">;",
|
|
"Lkotlin/coroutines/c<",
|
|
"-",
|
|
"Lkotlin/d1;",
|
|
">;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlinx/coroutines/ExperimentalCoroutinesApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;
|
|
|
|
iget v1, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->label:I
|
|
|
|
const/high16 v2, -0x80000000
|
|
|
|
and-int v3, v1, v2
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->label:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;
|
|
|
|
invoke-direct {v0, p1}, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;-><init>(Lkotlin/coroutines/c;)V
|
|
|
|
:goto_0
|
|
iget-object p1, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->result:Ljava/lang/Object;
|
|
|
|
invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1
|
|
iget v2, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->label:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
iget-object p0, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast p0, Lej/l;
|
|
|
|
invoke-static {p1}, Lkotlin/d0;->n(Ljava/lang/Object;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 2
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "call to \'resume\' before \'invoke\' with coroutine"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 3
|
|
:cond_2
|
|
invoke-static {p1}, Lkotlin/d0;->n(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
:goto_1
|
|
iput-object p0, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->L$0:Ljava/lang/Object;
|
|
|
|
iput v3, v0, Lkotlinx/coroutines/selects/WhileSelectKt$whileSelect$1;->label:I
|
|
|
|
.line 5
|
|
new-instance p1, Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-direct {p1, v0}, Lkotlinx/coroutines/selects/b;-><init>(Lkotlin/coroutines/c;)V
|
|
|
|
.line 6
|
|
:try_start_0
|
|
invoke-interface {p0, p1}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v2}, Lkotlinx/coroutines/selects/b;->o0(Ljava/lang/Throwable;)V
|
|
|
|
.line 8
|
|
:goto_2
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/selects/b;->n0()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
if-ne p1, v2, :cond_3
|
|
|
|
invoke-static {v0}, Lwi/e;->c(Lkotlin/coroutines/c;)V
|
|
|
|
:cond_3
|
|
if-ne p1, v1, :cond_4
|
|
|
|
return-object v1
|
|
|
|
:cond_4
|
|
:goto_3
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_5
|
|
sget-object p0, Lkotlin/d1;->a:Lkotlin/d1;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Lej/l;Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
.locals 2
|
|
.param p0 # Lej/l;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkotlin/coroutines/c;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlinx/coroutines/ExperimentalCoroutinesApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {v0}, Lkotlin/jvm/internal/c0;->e(I)V
|
|
|
|
.line 2
|
|
new-instance v0, Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-direct {v0, p1}, Lkotlinx/coroutines/selects/b;-><init>(Lkotlin/coroutines/c;)V
|
|
|
|
.line 3
|
|
:try_start_0
|
|
invoke-interface {p0, v0}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/selects/b;->o0(Ljava/lang/Throwable;)V
|
|
|
|
.line 5
|
|
:goto_1
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/selects/b;->n0()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 6
|
|
invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-static {p1}, Lwi/e;->c(Lkotlin/coroutines/c;)V
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/c0;->e(I)V
|
|
|
|
check-cast v0, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
sget-object p0, Lkotlin/d1;->a:Lkotlin/d1;
|
|
|
|
return-object p0
|
|
.end method
|