Rabbit-R1/original r1/smali/smali_classes2/androidx/work/OperationKt.smali
2024-05-21 17:08:36 -04:00

379 lines
11 KiB
Smali

.class public final Landroidx/work/OperationKt;
.super Ljava/lang/Object;
.source "Operation.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nOperation.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Operation.kt\nandroidx/work/OperationKt\n+ 2 ListenableFuture.kt\nandroidx/work/ListenableFutureKt\n+ 3 CancellableContinuation.kt\nkotlinx/coroutines/CancellableContinuationKt\n*L\n1#1,30:1\n40#2,8:31\n48#2:48\n60#2,7:49\n48#2:58\n60#2,7:59\n314#3,9:39\n323#3,2:56\n*S KotlinDebug\n*F\n+ 1 Operation.kt\nandroidx/work/OperationKt\n*L\n29#1:31,8\n29#1:48\n29#1:49,7\n29#1:58\n29#1:59,7\n29#1:39,9\n29#1:56,2\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0003\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0004"
}
d2 = {
"await",
"Landroidx/work/Operation$State$SUCCESS;",
"Landroidx/work/Operation;",
"(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
"work-runtime_release"
}
k = 0x2
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method public static final await(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/Operation;",
"Lkotlin/coroutines/Continuation<",
"-",
"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;
invoke-direct {v0, p1}, Landroidx/work/OperationKt$await$1;-><init>(Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p1, v0, Landroidx/work/OperationKt$await$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
.line 29
iget v2, v0, Landroidx/work/OperationKt$await$1;->label:I
const/4 v3, 0x1
if-eqz v2, :cond_2
if-ne v2, v3, :cond_1
iget-object p0, v0, Landroidx/work/OperationKt$await$1;->L$0:Ljava/lang/Object;
check-cast p0, Lcom/google/common/util/concurrent/ListenableFuture;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(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/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lcom/google/common/util/concurrent/ListenableFuture;
move-result-object p0
const-string p1, "result"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 31
invoke-interface {p0}, Lcom/google/common/util/concurrent/ListenableFuture;->isDone()Z
move-result p1
if-eqz p1, :cond_4
.line 33
:try_start_0
invoke-interface {p0}, Lcom/google/common/util/concurrent/ListenableFuture;->get()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
move-exception p0
.line 35
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
if-nez p1, :cond_3
move-object p1, p0
check-cast p1, Ljava/lang/Throwable;
:cond_3
throw p1
.line 39
:cond_4
iput-object p0, v0, Landroidx/work/OperationKt$await$1;->L$0:Ljava/lang/Object;
iput v3, v0, Landroidx/work/OperationKt$await$1;->label:I
check-cast v0, Lkotlin/coroutines/Continuation;
.line 40
new-instance p1, Lkotlinx/coroutines/CancellableContinuationImpl;
invoke-static {v0}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v2
invoke-direct {p1, v2, v3}, Lkotlinx/coroutines/CancellableContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;I)V
.line 46
invoke-virtual {p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->initCancellability()V
.line 47
move-object v2, p1
check-cast v2, Lkotlinx/coroutines/CancellableContinuation;
.line 48
new-instance v3, Landroidx/work/ListenableFutureKt$await$2$1;
invoke-direct {v3, v2, p0}, Landroidx/work/ListenableFutureKt$await$2$1;-><init>(Lkotlinx/coroutines/CancellableContinuation;Lcom/google/common/util/concurrent/ListenableFuture;)V
check-cast v3, Ljava/lang/Runnable;
.line 49
sget-object v4, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
check-cast v4, Ljava/util/concurrent/Executor;
.line 48
invoke-interface {p0, v3, v4}, Lcom/google/common/util/concurrent/ListenableFuture;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
.line 52
new-instance v3, Landroidx/work/ListenableFutureKt$await$2$2;
invoke-direct {v3, p0}, Landroidx/work/ListenableFutureKt$await$2$2;-><init>(Lcom/google/common/util/concurrent/ListenableFuture;)V
check-cast v3, Lkotlin/jvm/functions/Function1;
invoke-interface {v2, v3}, Lkotlinx/coroutines/CancellableContinuation;->invokeOnCancellation(Lkotlin/jvm/functions/Function1;)V
.line 56
invoke-virtual {p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->getResult()Ljava/lang/Object;
move-result-object p1
.line 39
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object p0
if-ne p1, p0, :cond_5
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
:cond_5
if-ne p1, v1, :cond_6
return-object v1
:cond_6
:goto_1
move-object p0, p1
:goto_2
const-string p1, "result.await()"
.line 29
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method private static final await$$forInline(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/Operation;",
"Lkotlin/coroutines/Continuation<",
"-",
"Landroidx/work/Operation$State$SUCCESS;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
.line 29
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lcom/google/common/util/concurrent/ListenableFuture;
move-result-object p0
const-string v0, "result"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
move-object v0, p0
check-cast v0, Lcom/google/common/util/concurrent/ListenableFuture;
.line 31
invoke-interface {p0}, Lcom/google/common/util/concurrent/ListenableFuture;->isDone()Z
move-result v0
if-eqz v0, :cond_1
.line 33
:try_start_0
invoke-interface {p0}, Lcom/google/common/util/concurrent/ListenableFuture;->get()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception p0
.line 35
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
move-object p1, p0
check-cast p1, Ljava/lang/Throwable;
:goto_0
throw p1
:cond_1
const/4 v0, 0x0
.line 39
invoke-static {v0}, Lkotlin/jvm/internal/InlineMarker;->mark(I)V
move-object v0, p1
check-cast v0, Lkotlin/coroutines/Continuation;
.line 40
new-instance v0, Lkotlinx/coroutines/CancellableContinuationImpl;
invoke-static {p1}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v1
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;I)V
.line 46
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->initCancellability()V
.line 47
move-object v1, v0
check-cast v1, Lkotlinx/coroutines/CancellableContinuation;
.line 58
new-instance v3, Landroidx/work/ListenableFutureKt$await$2$1;
invoke-direct {v3, v1, p0}, Landroidx/work/ListenableFutureKt$await$2$1;-><init>(Lkotlinx/coroutines/CancellableContinuation;Lcom/google/common/util/concurrent/ListenableFuture;)V
check-cast v3, Ljava/lang/Runnable;
.line 59
sget-object v4, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
check-cast v4, Ljava/util/concurrent/Executor;
.line 58
invoke-interface {p0, v3, v4}, Lcom/google/common/util/concurrent/ListenableFuture;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
.line 62
new-instance v3, Landroidx/work/ListenableFutureKt$await$2$2;
invoke-direct {v3, p0}, Landroidx/work/ListenableFutureKt$await$2$2;-><init>(Lcom/google/common/util/concurrent/ListenableFuture;)V
check-cast v3, Lkotlin/jvm/functions/Function1;
invoke-interface {v1, v3}, Lkotlinx/coroutines/CancellableContinuation;->invokeOnCancellation(Lkotlin/jvm/functions/Function1;)V
.line 65
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 56
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->getResult()Ljava/lang/Object;
move-result-object p0
.line 39
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
if-ne p0, v0, :cond_2
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
:cond_2
invoke-static {v2}, Lkotlin/jvm/internal/InlineMarker;->mark(I)V
:goto_1
const-string p1, "result.await()"
.line 29
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method