package androidx.room; import java.util.concurrent.Callable; import kotlin.Metadata; import kotlin.Result; import kotlin.ResultKt; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.intrinsics.IntrinsicsKt; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlinx.coroutines.CancellableContinuation; import kotlinx.coroutines.CoroutineScope; /* compiled from: CoroutinesRoom.kt */ @Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u0003H\u008a@"}, d2 = {"", "", "R", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 7, 1}, xi = 48) @DebugMetadata(c = "androidx.room.CoroutinesRoom$Companion$execute$4$job$1", f = "CoroutinesRoom.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {}) /* loaded from: classes2.dex */ final class CoroutinesRoom$Companion$execute$4$job$1 extends SuspendLambda implements Function2, Object> { final /* synthetic */ Callable $callable; final /* synthetic */ CancellableContinuation $continuation; int label; /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ /* JADX WARN: Multi-variable type inference failed */ public CoroutinesRoom$Companion$execute$4$job$1(Callable callable, CancellableContinuation cancellableContinuation, Continuation continuation) { super(2, continuation); this.$callable = callable; this.$continuation = cancellableContinuation; } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Continuation create(Object obj, Continuation continuation) { return new CoroutinesRoom$Companion$execute$4$job$1(this.$callable, this.$continuation, continuation); } @Override // kotlin.jvm.functions.Function2 public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { return ((CoroutinesRoom$Companion$execute$4$job$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { IntrinsicsKt.getCOROUTINE_SUSPENDED(); if (this.label == 0) { ResultKt.throwOnFailure(obj); try { Object call = this.$callable.call(); Continuation continuation = this.$continuation; Result.Companion companion = Result.INSTANCE; continuation.resumeWith(Result.m5698constructorimpl(call)); } catch (Throwable th) { Continuation continuation2 = this.$continuation; Result.Companion companion2 = Result.INSTANCE; continuation2.resumeWith(Result.m5698constructorimpl(ResultKt.createFailure(th))); } return Unit.INSTANCE; } throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } }