apkfuckery/com.discord/smali/androidx/work/OperationKt.smali

155 lines
4.1 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Landroidx/work/OperationKt;
.super Ljava/lang/Object;
.source "Operation.kt"
# direct methods
.method public static final await(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/Operation;",
"Lkotlin/coroutines/Continuation<",
"-",
"Landroidx/work/Operation$State$SUCCESS;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Le/k/b/a/a/a;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result-object p0
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
const-string v0, "result"
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-static {p0, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
:try_start_0
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catch_0
move-exception p0
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-object p0, p1
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
throw p0
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
:cond_1
2020-03-27 22:23:51 +00:00
new-instance v0, Lz/a/i;
2019-07-24 11:27:29 +00:00
2020-04-08 16:24:01 +00:00
invoke-static {p1}, Le/n/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v0, p1, v1}, Lz/a/i;-><init>(Lkotlin/coroutines/Continuation;I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance p1, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {p1, v0, p0}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lz/a/h;Le/k/b/a/a/a;)V
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p0, p1, v1}, Le/k/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lz/a/i;->d()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result-object p0
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
sget-object p1, Ly/s/g/a;->d:Ly/s/g/a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
2019-10-07 23:23:22 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public static final await$$forInline(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Le/k/b/a/a/a;
2019-07-24 11:27:29 +00:00
move-result-object p0
const-string v0, "result"
2020-03-27 22:23:51 +00:00
invoke-static {p0, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_1
:try_start_0
2019-12-06 03:29:40 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catch_0
move-exception p0
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-object p0, p1
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
throw p0
2019-07-24 11:27:29 +00:00
:cond_1
2020-03-27 22:23:51 +00:00
new-instance v0, Lz/a/i;
2019-10-09 23:16:36 +00:00
2020-04-08 16:24:01 +00:00
invoke-static {p1}, Le/n/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v0, p1, v1}, Lz/a/i;-><init>(Lkotlin/coroutines/Continuation;I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance p1, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {p1, v0, p0}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lz/a/h;Le/k/b/a/a/a;)V
2019-07-24 11:27:29 +00:00
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
2019-12-06 03:29:40 +00:00
invoke-interface {p0, p1, v1}, Le/k/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
2019-07-24 11:27:29 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lz/a/i;->d()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object p0
2020-03-27 22:23:51 +00:00
sget-object p1, Ly/s/g/a;->d:Ly/s/g/a;
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-object p0
.end method