257 lines
7.6 KiB
Smali
257 lines
7.6 KiB
Smali
.class public Lkotlinx/coroutines/DeferredCoroutine;
|
|
.super Lkotlinx/coroutines/a;
|
|
.source "Builders.common.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/u0;
|
|
.implements Lkotlinx/coroutines/selects/d;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lkotlinx/coroutines/a<",
|
|
"TT;>;",
|
|
"Lkotlinx/coroutines/u0<",
|
|
"TT;>;",
|
|
"Lkotlinx/coroutines/selects/d<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000@\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0004\u0008\u0012\u0018\u0000*\u0004\u0008\u0000\u0010\u00012\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0008\u0012\u0004\u0012\u00028\u00000\u00032\u0008\u0012\u0004\u0012\u00028\u00000\u0004B\u0017\u0012\u0006\u0010\u0017\u001a\u00020\u0016\u0012\u0006\u0010\u0019\u001a\u00020\u0018\u00a2\u0006\u0004\u0008\u001a\u0010\u001bJ\u000f\u0010\u0005\u001a\u00028\u0000H\u0016\u00a2\u0006\u0004\u0008\u0005\u0010\u0006J\u0013\u0010\u0007\u001a\u00028\u0000H\u0096@\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0007\u0010\u0008JJ\u0010\u0011\u001a\u00020\u0010\"\u0004\u0008\u0001\u0010\t2\u000c\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00028\u00010\n2\"\u0010\u000f\u001a\u001e\u0008\u0001\u0012\u0004\u0012\u00028\u0000\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00010\r\u0012\u0006\u0012\u0004\u0018\u00010\u000e0\u000cH\u0016\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0011\u0010\u0012R\u001a\u0010\u0015\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00048VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0013\u0010\u0014\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u001c"
|
|
}
|
|
d2 = {
|
|
"Lkotlinx/coroutines/DeferredCoroutine;",
|
|
"T",
|
|
"Lkotlinx/coroutines/a;",
|
|
"Lkotlinx/coroutines/u0;",
|
|
"Lkotlinx/coroutines/selects/d;",
|
|
"k",
|
|
"()Ljava/lang/Object;",
|
|
"N",
|
|
"(Lkotlin/coroutines/c;)Ljava/lang/Object;",
|
|
"R",
|
|
"Lkotlinx/coroutines/selects/f;",
|
|
"select",
|
|
"Lkotlin/Function2;",
|
|
"Lkotlin/coroutines/c;",
|
|
"",
|
|
"block",
|
|
"Lkotlin/d1;",
|
|
"j",
|
|
"(Lkotlinx/coroutines/selects/f;Lej/p;)V",
|
|
"B0",
|
|
"()Lkotlinx/coroutines/selects/d;",
|
|
"onAwait",
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"parentContext",
|
|
"",
|
|
"active",
|
|
"<init>",
|
|
"(Lkotlin/coroutines/CoroutineContext;Z)V",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Z)V
|
|
.locals 0
|
|
.param p1 # Lkotlin/coroutines/CoroutineContext;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lkotlinx/coroutines/a;-><init>(Lkotlin/coroutines/CoroutineContext;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic s1(Lkotlinx/coroutines/DeferredCoroutine;Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/DeferredCoroutine$await$1;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;
|
|
|
|
iget v1, v0, Lkotlinx/coroutines/DeferredCoroutine$await$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/DeferredCoroutine$await$1;->label:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;
|
|
|
|
invoke-direct {v0, p0, p1}, Lkotlinx/coroutines/DeferredCoroutine$await$1;-><init>(Lkotlinx/coroutines/DeferredCoroutine;Lkotlin/coroutines/c;)V
|
|
|
|
:goto_0
|
|
iget-object p1, v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;->result:Ljava/lang/Object;
|
|
|
|
invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1
|
|
iget v2, v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;->label:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
iget-object p0, v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast p0, Lkotlinx/coroutines/DeferredCoroutine;
|
|
|
|
invoke-static {p1}, Lkotlin/d0;->n(Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
: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
|
|
|
|
:cond_2
|
|
invoke-static {p1}, Lkotlin/d0;->n(Ljava/lang/Object;)V
|
|
|
|
iput-object p0, v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;->L$0:Ljava/lang/Object;
|
|
|
|
iput v3, v0, Lkotlinx/coroutines/DeferredCoroutine$await$1;->label:I
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/JobSupport;->R(Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-ne p1, v1, :cond_3
|
|
|
|
return-object v1
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public B0()Lkotlinx/coroutines/selects/d;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlinx/coroutines/selects/d<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public N(Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
.locals 0
|
|
.param p1 # Lkotlin/coroutines/c;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TT;>;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/DeferredCoroutine;->s1(Lkotlinx/coroutines/DeferredCoroutine;Lkotlin/coroutines/c;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public j(Lkotlinx/coroutines/selects/f;Lej/p;)V
|
|
.locals 0
|
|
.param p1 # Lkotlinx/coroutines/selects/f;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lej/p;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/selects/f<",
|
|
"-TR;>;",
|
|
"Lej/p<",
|
|
"-TT;-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/JobSupport;->U0(Lkotlinx/coroutines/selects/f;Lej/p;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public k()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/JobSupport;->l0()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|