mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 18:07:16 +01:00
140 lines
7 KiB
Java
140 lines
7 KiB
Java
package androidx.work;
|
|
|
|
import androidx.work.Operation;
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
import java.util.concurrent.ExecutionException;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
|
import kotlin.coroutines.jvm.internal.DebugProbesKt;
|
|
import kotlin.jvm.internal.InlineMarker;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlinx.coroutines.CancellableContinuationImpl;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0086Hø\u0001\u0000¢\u0006\u0002\u0010\u0003\u0082\u0002\u0004\n\u0002\b\u0019¨\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 = 2, mv = {1, 8, 0}, xi = 48)
|
|
@SourceDebugExtension({"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"})
|
|
/* loaded from: classes14.dex */
|
|
public final class OperationKt {
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:16:0x0034 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
/* JADX WARN: Type inference failed for: r5v1, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r5v5, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r5v6 */
|
|
@org.jetbrains.annotations.Nullable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static final java.lang.Object await(@org.jetbrains.annotations.NotNull androidx.work.Operation r4, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super androidx.work.Operation.State.SUCCESS> r5) {
|
|
/*
|
|
boolean r0 = r5 instanceof androidx.work.OperationKt$await$1
|
|
if (r0 == 0) goto L13
|
|
r0 = r5
|
|
androidx.work.OperationKt$await$1 r0 = (androidx.work.OperationKt$await$1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
androidx.work.OperationKt$await$1 r0 = new androidx.work.OperationKt$await$1
|
|
r0.<init>(r5)
|
|
L18:
|
|
java.lang.Object r5 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L34
|
|
if (r2 != r3) goto L2d
|
|
java.lang.Object r4 = r0.L$0
|
|
com.google.common.util.concurrent.ListenableFuture r4 = (com.google.common.util.concurrent.ListenableFuture) r4
|
|
kotlin.ResultKt.throwOnFailure(r5)
|
|
goto L85
|
|
L2d:
|
|
java.lang.String r4 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r4)
|
|
r4 = 0
|
|
return r4
|
|
L34:
|
|
kotlin.ResultKt.throwOnFailure(r5)
|
|
com.google.common.util.concurrent.ListenableFuture r4 = r4.getResult()
|
|
r4.getClass()
|
|
boolean r5 = r4.isDone()
|
|
if (r5 == 0) goto L53
|
|
java.lang.Object r4 = r4.get() // Catch: java.util.concurrent.ExecutionException -> L49
|
|
goto L86
|
|
L49:
|
|
r4 = move-exception
|
|
java.lang.Throwable r5 = r4.getCause()
|
|
if (r5 != 0) goto L51
|
|
goto L52
|
|
L51:
|
|
r4 = r5
|
|
L52:
|
|
throw r4
|
|
L53:
|
|
r0.L$0 = r4
|
|
r0.label = r3
|
|
kotlinx.coroutines.CancellableContinuationImpl r5 = new kotlinx.coroutines.CancellableContinuationImpl
|
|
kotlin.coroutines.Continuation r2 = kotlin.coroutines.intrinsics.IntrinsicsKt.intercepted(r0)
|
|
r5.<init>(r2, r3)
|
|
r5.initCancellability()
|
|
androidx.work.ListenableFutureKt$await$2$1 r2 = new androidx.work.ListenableFutureKt$await$2$1
|
|
r2.<init>(r5, r4)
|
|
androidx.work.DirectExecutor r3 = androidx.work.DirectExecutor.INSTANCE
|
|
r4.addListener(r2, r3)
|
|
androidx.work.ListenableFutureKt$await$2$2 r2 = new androidx.work.ListenableFutureKt$await$2$2
|
|
r2.<init>(r4)
|
|
r5.invokeOnCancellation(r2)
|
|
java.lang.Object r5 = r5.getResult()
|
|
java.lang.Object r4 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
if (r5 != r4) goto L82
|
|
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
|
|
L82:
|
|
if (r5 != r1) goto L85
|
|
return r1
|
|
L85:
|
|
r4 = r5
|
|
L86:
|
|
r4.getClass()
|
|
return r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.work.OperationKt.await(androidx.work.Operation, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
private static final Object await$$forInline(Operation operation, Continuation<? super Operation.State.SUCCESS> continuation) {
|
|
Object obj;
|
|
ListenableFuture<Operation.State.SUCCESS> result = operation.getResult();
|
|
result.getClass();
|
|
if (result.isDone()) {
|
|
try {
|
|
obj = result.get();
|
|
} catch (ExecutionException e) {
|
|
Throwable cause = e.getCause();
|
|
if (cause != null) {
|
|
throw cause;
|
|
}
|
|
throw e;
|
|
}
|
|
} else {
|
|
InlineMarker.mark(0);
|
|
CancellableContinuationImpl cancellableContinuationImpl = new CancellableContinuationImpl(IntrinsicsKt.intercepted(continuation), 1);
|
|
cancellableContinuationImpl.initCancellability();
|
|
result.addListener(new ListenableFutureKt$await$2$1(cancellableContinuationImpl, result), DirectExecutor.INSTANCE);
|
|
cancellableContinuationImpl.invokeOnCancellation(new ListenableFutureKt$await$2$2(result));
|
|
Unit unit = Unit.INSTANCE;
|
|
obj = cancellableContinuationImpl.getResult();
|
|
if (obj == IntrinsicsKt.getCOROUTINE_SUSPENDED()) {
|
|
DebugProbesKt.probeCoroutineSuspended(continuation);
|
|
}
|
|
InlineMarker.mark(1);
|
|
}
|
|
obj.getClass();
|
|
return obj;
|
|
}
|
|
}
|