2019-02-04 20:32:01 +00:00
|
|
|
.class public final Landroidx/work/OperationKt;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Operation.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-05-04 02:59:52 +00:00
|
|
|
.method public static final await(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/work/Operation;",
|
2019-05-04 02:59:52 +00:00
|
|
|
"Lkotlin/coroutines/Continuation<",
|
2019-02-04 20:32:01 +00:00
|
|
|
"-",
|
|
|
|
"Landroidx/work/Operation$State$SUCCESS;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/lang/Object;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroidx/work/OperationKt$await$1;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/work/OperationKt$await$1;
|
|
|
|
|
|
|
|
iget v1, v0, Landroidx/work/OperationKt$await$1;->label:I
|
|
|
|
|
|
|
|
const/high16 v2, -0x80000000
|
|
|
|
|
|
|
|
and-int/2addr v1, v2
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
iget p1, v0, Landroidx/work/OperationKt$await$1;->label:I
|
|
|
|
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
|
|
|
|
iput p1, v0, Landroidx/work/OperationKt$await$1;->label:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Landroidx/work/OperationKt$await$1;
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {v0, p1}, Landroidx/work/OperationKt$await$1;-><init>(Lkotlin/coroutines/Continuation;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object p1, v0, Landroidx/work/OperationKt$await$1;->result:Ljava/lang/Object;
|
|
|
|
|
2019-06-26 01:01:00 +00:00
|
|
|
sget-object v1, Lkotlin/coroutines/a/a;->bhh:Lkotlin/coroutines/a/a;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
iget v2, v0, Landroidx/work/OperationKt$await$1;->label:I
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v3, 0x1
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_3
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v2, v3, :cond_2
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
instance-of p0, p1, Lkotlin/m$b;
|
|
|
|
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p1, Lkotlin/m$b;
|
|
|
|
|
|
|
|
iget-object p0, p1, Lkotlin/m$b;->exception:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
|
|
|
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_3
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v2, p1, Lkotlin/m$b;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v2, :cond_8
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lcom/google/a/a/a/a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v2, "result"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-interface {p1}, Lcom/google/a/a/a/a;->isDone()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_5
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p1}, Lcom/google/a/a/a/a;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez p1, :cond_4
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-object p1, p0
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_4
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_5
|
2019-02-04 20:32:01 +00:00
|
|
|
iput-object p0, v0, Landroidx/work/OperationKt$await$1;->L$0:Ljava/lang/Object;
|
|
|
|
|
|
|
|
iput-object p1, v0, Landroidx/work/OperationKt$await$1;->L$1:Ljava/lang/Object;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput v3, v0, Landroidx/work/OperationKt$await$1;->label:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
new-instance p0, Lkotlinx/coroutines/i;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {v0}, Lkotlin/coroutines/a/b;->c(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {p0, v2}, Lkotlinx/coroutines/i;-><init>(Lkotlin/coroutines/Continuation;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
check-cast v2, Lkotlinx/coroutines/h;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
new-instance v3, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {v3, v2, p1}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lkotlinx/coroutines/h;Lcom/google/a/a/a/a;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
sget-object v2, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
invoke-interface {p1, v3, v2}, Lcom/google/a/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/i;->getResult()Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-06-26 01:01:00 +00:00
|
|
|
sget-object p0, Lkotlin/coroutines/a/a;->bhh:Lkotlin/coroutines/a/a;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne p1, p0, :cond_6
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
const-string p0, "frame"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v0, p0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_6
|
|
|
|
if-ne p1, v1, :cond_7
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_7
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_1
|
|
|
|
return-object p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_8
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p1, Lkotlin/m$b;
|
|
|
|
|
|
|
|
iget-object p0, p1, Lkotlin/m$b;->exception:Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
.method private static final await$$forInline(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lcom/google/a/a/a/a;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string v0, "result"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-interface {p0}, Lcom/google/a/a/a/a;->isDone()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p0}, Lcom/google/a/a/a/a;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
move-object p1, p0
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
2019-05-04 02:59:52 +00:00
|
|
|
new-instance v0, Lkotlinx/coroutines/i;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {p1}, Lkotlin/coroutines/a/b;->c(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {v0, v1}, Lkotlinx/coroutines/i;-><init>(Lkotlin/coroutines/Continuation;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
check-cast v1, Lkotlinx/coroutines/h;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
new-instance v2, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {v2, v1, p0}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lkotlinx/coroutines/h;Lcom/google/a/a/a/a;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
invoke-interface {p0, v2, v1}, Lcom/google/a/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/i;->getResult()Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-06-26 01:01:00 +00:00
|
|
|
sget-object v0, Lkotlin/coroutines/a/a;->bhh:Lkotlin/coroutines/a/a;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
if-ne p0, v0, :cond_2
|
|
|
|
|
|
|
|
const-string v0, "frame"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object p0
|
|
|
|
.end method
|