package com.unity3d.ads.adplayer; import android.content.Context; import android.content.Intent; import com.unity3d.ads.core.data.datasource.VolumeSettingsChange; import com.unity3d.ads.core.data.model.SessionChange; import com.unity3d.ads.core.data.repository.DeviceInfoRepository; import com.unity3d.ads.core.data.repository.OpenMeasurementRepository; import com.unity3d.ads.core.data.repository.SessionRepository; import com.vungle.ads.internal.protos.Sdk; import java.util.Map; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt; import kotlin.coroutines.jvm.internal.ContinuationImpl; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; import kotlinx.coroutines.BuildersKt__Builders_commonKt; import kotlinx.coroutines.CoroutineScope; import kotlinx.coroutines.Job; import kotlinx.coroutines.flow.Flow; import kotlinx.coroutines.flow.FlowCollector; import kotlinx.coroutines.flow.FlowKt; import kotlinx.coroutines.flow.MutableSharedFlow; import kotlinx.coroutines.flow.SharedFlowKt; import org.json.JSONObject; @SourceDebugExtension({"SMAP\nAndroidFullscreenWebViewAdPlayer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AndroidFullscreenWebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/AndroidFullscreenWebViewAdPlayer\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 4 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,131:1\n20#2:132\n22#2:136\n20#2:137\n22#2:141\n50#3:133\n55#3:135\n50#3:138\n55#3:140\n106#4:134\n106#4:139\n*S KotlinDebug\n*F\n+ 1 AndroidFullscreenWebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/AndroidFullscreenWebViewAdPlayer\n*L\n62#1:132\n62#1:136\n71#1:137\n71#1:141\n62#1:133\n62#1:135\n71#1:138\n71#1:140\n62#1:134\n71#1:139\n*E\n"}) /* loaded from: classes4.dex */ public final class AndroidFullscreenWebViewAdPlayer implements AdPlayer, FullscreenAdPlayer { public static final Companion Companion = new Companion(null); private static final MutableSharedFlow displayMessages = SharedFlowKt.MutableSharedFlow$default(0, 0, null, 7, null); private final DeviceInfoRepository deviceInfoRepository; private final OpenMeasurementRepository openMeasurementRepository; private final String opportunityId; private final SessionRepository sessionRepository; private final WebViewAdPlayer webViewAdPlayer; private final AndroidWebViewContainer webViewContainer; @Override // com.unity3d.ads.adplayer.AdPlayer public void dispatchShowCompleted() { this.webViewAdPlayer.dispatchShowCompleted(); } @Override // com.unity3d.ads.adplayer.AdPlayer public Flow getOnLoadEvent() { return this.webViewAdPlayer.getOnLoadEvent(); } @Override // com.unity3d.ads.adplayer.AdPlayer public Flow getOnShowEvent() { return this.webViewAdPlayer.getOnShowEvent(); } @Override // com.unity3d.ads.adplayer.AdPlayer public CoroutineScope getScope() { return this.webViewAdPlayer.getScope(); } @Override // com.unity3d.ads.adplayer.AdPlayer public Flow getUpdateCampaignState() { return this.webViewAdPlayer.getUpdateCampaignState(); } @Override // com.unity3d.ads.adplayer.AdPlayer public AndroidWebViewContainer getWebViewContainer() { return this.webViewContainer; } @Override // com.unity3d.ads.adplayer.AdPlayer public Object onAllowedPiiChange(byte[] bArr, Continuation continuation) { return this.webViewAdPlayer.onAllowedPiiChange(bArr, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object onBroadcastEvent(String str, Continuation continuation) { return this.webViewAdPlayer.onBroadcastEvent(str, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object requestShow(Map map, Continuation continuation) { return this.webViewAdPlayer.requestShow(map, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendActivityDestroyed(Continuation continuation) { return this.webViewAdPlayer.sendActivityDestroyed(continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendFocusChange(boolean z, Continuation continuation) { return this.webViewAdPlayer.sendFocusChange(z, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendMuteChange(boolean z, Continuation continuation) { return this.webViewAdPlayer.sendMuteChange(z, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendPrivacyFsmChange(byte[] bArr, Continuation continuation) { return this.webViewAdPlayer.sendPrivacyFsmChange(bArr, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendUserConsentChange(byte[] bArr, Continuation continuation) { return this.webViewAdPlayer.sendUserConsentChange(bArr, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendVisibilityChange(boolean z, Continuation continuation) { return this.webViewAdPlayer.sendVisibilityChange(z, continuation); } @Override // com.unity3d.ads.adplayer.AdPlayer public Object sendVolumeChange(double d, Continuation continuation) { return this.webViewAdPlayer.sendVolumeChange(d, continuation); } public AndroidFullscreenWebViewAdPlayer(WebViewAdPlayer webViewAdPlayer, String opportunityId, AndroidWebViewContainer webViewContainer, DeviceInfoRepository deviceInfoRepository, SessionRepository sessionRepository, OpenMeasurementRepository openMeasurementRepository) { Intrinsics.checkNotNullParameter(webViewAdPlayer, "webViewAdPlayer"); Intrinsics.checkNotNullParameter(opportunityId, "opportunityId"); Intrinsics.checkNotNullParameter(webViewContainer, "webViewContainer"); Intrinsics.checkNotNullParameter(deviceInfoRepository, "deviceInfoRepository"); Intrinsics.checkNotNullParameter(sessionRepository, "sessionRepository"); Intrinsics.checkNotNullParameter(openMeasurementRepository, "openMeasurementRepository"); this.webViewAdPlayer = webViewAdPlayer; this.opportunityId = opportunityId; this.webViewContainer = webViewContainer; this.deviceInfoRepository = deviceInfoRepository; this.sessionRepository = sessionRepository; this.openMeasurementRepository = openMeasurementRepository; } @Override // com.unity3d.ads.adplayer.AdPlayer public void show(ShowOptions showOptions) { Intrinsics.checkNotNullParameter(showOptions, "showOptions"); if (!(showOptions instanceof AndroidShowOptions)) { throw new IllegalArgumentException("Failed requirement.".toString()); } AndroidShowOptions androidShowOptions = (AndroidShowOptions) showOptions; Context context = androidShowOptions.getContext(); Intent intent = new Intent(context, (Class) FullScreenWebViewDisplay.class); intent.putExtra("opportunityId", this.opportunityId); Map unityAdsShowOptions = androidShowOptions.getUnityAdsShowOptions(); if (unityAdsShowOptions != null) { intent.putExtra("showOptions", new JSONObject(unityAdsShowOptions).toString()); } intent.addFlags(268500992); intent.putExtra("orientation", context.getResources().getConfiguration().orientation); final MutableSharedFlow mutableSharedFlow = displayMessages; FlowKt.launchIn(FlowKt.onEach(new Flow() { // from class: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1 @SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 AndroidFullscreenWebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/AndroidFullscreenWebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n62#3:224\n*E\n"}) /* renamed from: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2, reason: invalid class name */ public static final class AnonymousClass2 implements FlowCollector { final /* synthetic */ FlowCollector $this_unsafeFlow; final /* synthetic */ AndroidFullscreenWebViewAdPlayer this$0; @DebugMetadata(c = "com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2", f = "AndroidFullscreenWebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit") @SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"}) /* renamed from: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2$1, reason: invalid class name */ public static final class AnonymousClass1 extends ContinuationImpl { Object L$0; Object L$1; int label; /* synthetic */ Object result; public AnonymousClass1(Continuation continuation) { super(continuation); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { this.result = obj; this.label |= Integer.MIN_VALUE; return AnonymousClass2.this.emit(null, this); } } public AnonymousClass2(FlowCollector flowCollector, AndroidFullscreenWebViewAdPlayer androidFullscreenWebViewAdPlayer) { this.$this_unsafeFlow = flowCollector; this.this$0 = androidFullscreenWebViewAdPlayer; } /* JADX WARN: Removed duplicated region for block: B:15:0x0031 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0023 */ @Override // kotlinx.coroutines.flow.FlowCollector /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) { /* r5 = this; boolean r0 = r7 instanceof com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1.AnonymousClass2.AnonymousClass1 if (r0 == 0) goto L13 r0 = r7 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2$1 r0 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1.AnonymousClass2.AnonymousClass1) 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: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2$1 r0 = new com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1$2$1 r0.(r7) L18: java.lang.Object r7 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 1 if (r2 == 0) goto L31 if (r2 != r3) goto L29 kotlin.ResultKt.throwOnFailure(r7) goto L52 L29: java.lang.IllegalStateException r6 = new java.lang.IllegalStateException java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine" r6.(r7) throw r6 L31: kotlin.ResultKt.throwOnFailure(r7) kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow r2 = r6 com.unity3d.ads.adplayer.DisplayMessage r2 = (com.unity3d.ads.adplayer.DisplayMessage) r2 java.lang.String r2 = r2.getOpportunityId() com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer r4 = r5.this$0 java.lang.String r4 = com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer.access$getOpportunityId$p(r4) boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r2, r4) if (r2 == 0) goto L52 r0.label = r3 java.lang.Object r6 = r7.emit(r6, r0) if (r6 != r1) goto L52 return r1 L52: kotlin.Unit r6 = kotlin.Unit.INSTANCE return r6 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object"); } } @Override // kotlinx.coroutines.flow.Flow public Object collect(FlowCollector flowCollector, Continuation continuation) { Object coroutine_suspended; Object collect = Flow.this.collect(new AnonymousClass2(flowCollector, this), continuation); coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return collect == coroutine_suspended ? collect : Unit.INSTANCE; } }, new AndroidFullscreenWebViewAdPlayer$show$2(this)), getScope()); FlowKt.launchIn(FlowKt.onEach(this.deviceInfoRepository.getVolumeSettingsChange(), new AndroidFullscreenWebViewAdPlayer$show$3(this)), getScope()); final Flow onShowEvent = this.webViewAdPlayer.getOnShowEvent(); FlowKt.launchIn(FlowKt.onEach(new Flow() { // from class: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2 @SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 AndroidFullscreenWebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/AndroidFullscreenWebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n71#3:224\n*E\n"}) /* renamed from: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2, reason: invalid class name */ public static final class AnonymousClass2 implements FlowCollector { final /* synthetic */ FlowCollector $this_unsafeFlow; @DebugMetadata(c = "com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2", f = "AndroidFullscreenWebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit") @SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"}) /* renamed from: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2$1, reason: invalid class name */ public static final class AnonymousClass1 extends ContinuationImpl { Object L$0; Object L$1; int label; /* synthetic */ Object result; public AnonymousClass1(Continuation continuation) { super(continuation); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { this.result = obj; this.label |= Integer.MIN_VALUE; return AnonymousClass2.this.emit(null, this); } } public AnonymousClass2(FlowCollector flowCollector) { this.$this_unsafeFlow = flowCollector; } /* JADX WARN: Removed duplicated region for block: B:15:0x0031 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0023 */ @Override // kotlinx.coroutines.flow.FlowCollector /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) { /* r5 = this; boolean r0 = r7 instanceof com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2.AnonymousClass2.AnonymousClass1 if (r0 == 0) goto L13 r0 = r7 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2$1 r0 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2.AnonymousClass2.AnonymousClass1) 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: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2$1 r0 = new com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2$2$1 r0.(r7) L18: java.lang.Object r7 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 1 if (r2 == 0) goto L31 if (r2 != r3) goto L29 kotlin.ResultKt.throwOnFailure(r7) goto L4a L29: java.lang.IllegalStateException r6 = new java.lang.IllegalStateException java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine" r6.(r7) throw r6 L31: kotlin.ResultKt.throwOnFailure(r7) kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow r2 = r6 com.unity3d.ads.core.data.model.ShowEvent r2 = (com.unity3d.ads.core.data.model.ShowEvent) r2 boolean r4 = r2 instanceof com.unity3d.ads.core.data.model.ShowEvent.Completed if (r4 != 0) goto L41 boolean r2 = r2 instanceof com.unity3d.ads.core.data.model.ShowEvent.Error if (r2 == 0) goto L4a L41: r0.label = r3 java.lang.Object r6 = r7.emit(r6, r0) if (r6 != r1) goto L4a return r1 L4a: kotlin.Unit r6 = kotlin.Unit.INSTANCE return r6 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$show$$inlined$filter$2.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object"); } } @Override // kotlinx.coroutines.flow.Flow public Object collect(FlowCollector flowCollector, Continuation continuation) { Object coroutine_suspended; Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation); coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return collect == coroutine_suspended ? collect : Unit.INSTANCE; } }, new AndroidFullscreenWebViewAdPlayer$show$5(this, null)), getScope()); FlowKt.launchIn(FlowKt.onEach(this.sessionRepository.getOnChange(), new AndroidFullscreenWebViewAdPlayer$show$6(this)), getScope()); context.startActivity(intent); } /* JADX INFO: Access modifiers changed from: private */ public static final /* synthetic */ Object show$displayEventsRouter(AndroidFullscreenWebViewAdPlayer androidFullscreenWebViewAdPlayer, DisplayMessage displayMessage, Continuation continuation) { androidFullscreenWebViewAdPlayer.displayEventsRouter(displayMessage); return Unit.INSTANCE; } /* JADX INFO: Access modifiers changed from: private */ public final Object handleVolumeSettingsChange(VolumeSettingsChange volumeSettingsChange, Continuation continuation) { Object coroutine_suspended; Object coroutine_suspended2; if (volumeSettingsChange instanceof VolumeSettingsChange.MuteChange) { Object sendMuteChange = this.webViewAdPlayer.sendMuteChange(((VolumeSettingsChange.MuteChange) volumeSettingsChange).isMuted(), continuation); coroutine_suspended2 = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return sendMuteChange == coroutine_suspended2 ? sendMuteChange : Unit.INSTANCE; } if (!(volumeSettingsChange instanceof VolumeSettingsChange.VolumeChange)) { return Unit.INSTANCE; } Object sendVolumeChange = this.webViewAdPlayer.sendVolumeChange(((VolumeSettingsChange.VolumeChange) volumeSettingsChange).getVolume(), continuation); coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return sendVolumeChange == coroutine_suspended ? sendVolumeChange : Unit.INSTANCE; } /* JADX INFO: Access modifiers changed from: private */ public final Object handleSessionChange(SessionChange sessionChange, Continuation continuation) { Object coroutine_suspended; Object coroutine_suspended2; if (sessionChange instanceof SessionChange.UserConsentChange) { WebViewAdPlayer webViewAdPlayer = this.webViewAdPlayer; byte[] byteArray = ((SessionChange.UserConsentChange) sessionChange).getValue().toByteArray(); Intrinsics.checkNotNullExpressionValue(byteArray, "change.value.toByteArray()"); Object sendUserConsentChange = webViewAdPlayer.sendUserConsentChange(byteArray, continuation); coroutine_suspended2 = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return sendUserConsentChange == coroutine_suspended2 ? sendUserConsentChange : Unit.INSTANCE; } if (!(sessionChange instanceof SessionChange.PrivacyFsmChange)) { return Unit.INSTANCE; } WebViewAdPlayer webViewAdPlayer2 = this.webViewAdPlayer; byte[] byteArray2 = ((SessionChange.PrivacyFsmChange) sessionChange).getValue().toByteArray(); Intrinsics.checkNotNullExpressionValue(byteArray2, "change.value.toByteArray()"); Object sendPrivacyFsmChange = webViewAdPlayer2.sendPrivacyFsmChange(byteArray2, continuation); coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return sendPrivacyFsmChange == coroutine_suspended ? sendPrivacyFsmChange : Unit.INSTANCE; } /* JADX WARN: Removed duplicated region for block: B:21:0x009f A[RETURN] */ /* JADX WARN: Removed duplicated region for block: B:25:0x0093 A[RETURN] */ /* JADX WARN: Removed duplicated region for block: B:29:0x0078 */ /* JADX WARN: Removed duplicated region for block: B:32:0x0052 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0026 */ @Override // com.unity3d.ads.adplayer.AdPlayer /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public java.lang.Object destroy(kotlin.coroutines.Continuation r9) { /* r8 = this; boolean r0 = r9 instanceof com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$destroy$1 if (r0 == 0) goto L13 r0 = r9 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$destroy$1 r0 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$destroy$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: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$destroy$1 r0 = new com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer$destroy$1 r0.(r8, r9) L18: java.lang.Object r9 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 4 r4 = 3 r5 = 2 r6 = 1 if (r2 == 0) goto L52 if (r2 == r6) goto L4a if (r2 == r5) goto L42 if (r2 == r4) goto L3a if (r2 != r3) goto L32 kotlin.ResultKt.throwOnFailure(r9) goto La0 L32: java.lang.IllegalStateException r9 = new java.lang.IllegalStateException java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine" r9.(r0) throw r9 L3a: java.lang.Object r2 = r0.L$0 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer r2 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer) r2 kotlin.ResultKt.throwOnFailure(r9) goto L94 L42: java.lang.Object r2 = r0.L$0 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer r2 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer) r2 kotlin.ResultKt.throwOnFailure(r9) goto L85 L4a: java.lang.Object r2 = r0.L$0 com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer r2 = (com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer) r2 kotlin.ResultKt.throwOnFailure(r9) goto L6a L52: kotlin.ResultKt.throwOnFailure(r9) kotlinx.coroutines.flow.MutableSharedFlow r9 = com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer.displayMessages com.unity3d.ads.adplayer.DisplayMessage$DisplayFinishRequest r2 = new com.unity3d.ads.adplayer.DisplayMessage$DisplayFinishRequest java.lang.String r7 = r8.opportunityId r2.(r7) r0.L$0 = r8 r0.label = r6 java.lang.Object r9 = r9.emit(r2, r0) if (r9 != r1) goto L69 return r1 L69: r2 = r8 L6a: com.unity3d.ads.core.data.repository.OpenMeasurementRepository r9 = r2.openMeasurementRepository java.lang.String r6 = r2.opportunityId com.google.protobuf.ByteString r6 = com.unity3d.ads.core.extensions.ProtobufExtensionsKt.toISO8859ByteString(r6) boolean r9 = r9.hasSessionFinished(r6) if (r9 == 0) goto L85 r0.L$0 = r2 r0.label = r5 r5 = 1000(0x3e8, double:4.94E-321) java.lang.Object r9 = kotlinx.coroutines.DelayKt.delay(r5, r0) if (r9 != r1) goto L85 return r1 L85: com.unity3d.ads.adplayer.AndroidWebViewContainer r9 = r2.getWebViewContainer() r0.L$0 = r2 r0.label = r4 java.lang.Object r9 = r9.destroy(r0) if (r9 != r1) goto L94 return r1 L94: r9 = 0 r0.L$0 = r9 r0.label = r3 java.lang.Object r9 = com.unity3d.ads.adplayer.AdPlayer.DefaultImpls.destroy(r2, r0) if (r9 != r1) goto La0 return r1 La0: kotlin.Unit r9 = kotlin.Unit.INSTANCE return r9 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidFullscreenWebViewAdPlayer.destroy(kotlin.coroutines.Continuation):java.lang.Object"); } private final Job displayEventsRouter(DisplayMessage displayMessage) { Job launch$default; launch$default = BuildersKt__Builders_commonKt.launch$default(getScope(), null, null, new AndroidFullscreenWebViewAdPlayer$displayEventsRouter$1(displayMessage, this, null), 3, null); return launch$default; } public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } public final MutableSharedFlow getDisplayMessages() { return AndroidFullscreenWebViewAdPlayer.displayMessages; } } }