package com.unity3d.services; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.SourceDebugExtension; import kotlinx.coroutines.CoroutineScope; @DebugMetadata(c = "com.unity3d.services.UnityAdsSDK$finishOMIDSession$1", f = "UnityAdsSDK.kt", l = {170, 171}, m = "invokeSuspend") @SourceDebugExtension({"SMAP\nUnityAdsSDK.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UnityAdsSDK.kt\ncom/unity3d/services/UnityAdsSDK$finishOMIDSession$1\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,177:1\n1#2:178\n*E\n"}) /* loaded from: classes4.dex */ public final class UnityAdsSDK$finishOMIDSession$1 extends SuspendLambda implements Function2 { final /* synthetic */ CoroutineScope $omidScope; final /* synthetic */ String $opportunityId; int label; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public UnityAdsSDK$finishOMIDSession$1(String str, CoroutineScope coroutineScope, Continuation continuation) { super(2, continuation); this.$opportunityId = str; this.$omidScope = coroutineScope; } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Continuation create(Object obj, Continuation continuation) { return new UnityAdsSDK$finishOMIDSession$1(this.$opportunityId, this.$omidScope, continuation); } @Override // kotlin.jvm.functions.Function2 public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { return ((UnityAdsSDK$finishOMIDSession$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); } /* JADX WARN: Removed duplicated region for block: B:14:0x0040 */ @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Object invokeSuspend(java.lang.Object r5) { /* r4 = this; java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r1 = r4.label r2 = 2 r3 = 1 if (r1 == 0) goto L1e if (r1 == r3) goto L1a if (r1 != r2) goto L12 kotlin.ResultKt.throwOnFailure(r5) goto L4f L12: java.lang.IllegalStateException r5 = new java.lang.IllegalStateException java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine" r5.(r0) throw r5 L1a: kotlin.ResultKt.throwOnFailure(r5) goto L3c L1e: kotlin.ResultKt.throwOnFailure(r5) com.unity3d.services.UnityAdsSDK r5 = com.unity3d.services.UnityAdsSDK.INSTANCE com.unity3d.ads.core.configuration.AlternativeFlowReader r1 = com.unity3d.services.UnityAdsSDK.access$getAlternativeFlowReader(r5) boolean r1 = r1.invoke() if (r1 == 0) goto L4f com.unity3d.ads.core.domain.GetAdObject r5 = com.unity3d.services.UnityAdsSDK.access$getGetAdObject(r5) java.lang.String r1 = r4.$opportunityId r4.label = r3 java.lang.Object r5 = r5.invoke(r1, r4) if (r5 != r0) goto L3c return r0 L3c: com.unity3d.ads.core.data.model.AdObject r5 = (com.unity3d.ads.core.data.model.AdObject) r5 if (r5 == 0) goto L4f com.unity3d.services.UnityAdsSDK r1 = com.unity3d.services.UnityAdsSDK.INSTANCE com.unity3d.ads.core.domain.om.OmFinishSession r1 = com.unity3d.services.UnityAdsSDK.access$getOmFinishSession(r1) r4.label = r2 java.lang.Object r5 = r1.invoke(r5, r4) if (r5 != r0) goto L4f return r0 L4f: kotlinx.coroutines.CoroutineScope r5 = r4.$omidScope r0 = 0 kotlinx.coroutines.CoroutineScopeKt.cancel$default(r5, r0, r3, r0) kotlin.Unit r5 = kotlin.Unit.INSTANCE return r5 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.services.UnityAdsSDK$finishOMIDSession$1.invokeSuspend(java.lang.Object):java.lang.Object"); } }