package com.unity3d.ads.adplayer; import android.annotation.SuppressLint; import android.view.MotionEvent; import android.view.View; import android.webkit.WebView; import com.unity3d.ads.core.domain.SendWebViewClientErrorDiagnostics; import com.vungle.ads.internal.protos.Sdk; import kotlin.ResultKt; 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.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; import kotlinx.coroutines.CoroutineDispatcher; import kotlinx.coroutines.CoroutineName; import kotlinx.coroutines.CoroutineScope; import kotlinx.coroutines.CoroutineScopeKt; import kotlinx.coroutines.flow.Flow; import kotlinx.coroutines.flow.FlowCollector; import kotlinx.coroutines.flow.FlowKt; import kotlinx.coroutines.flow.MutableStateFlow; import kotlinx.coroutines.flow.StateFlow; import kotlinx.coroutines.flow.StateFlowKt; @SuppressLint({"ClickableViewAccessibility"}) @SourceDebugExtension({"SMAP\nAndroidWebViewContainer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AndroidWebViewContainer.kt\ncom/unity3d/ads/adplayer/AndroidWebViewContainer\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,116:1\n20#2:117\n22#2:121\n50#3:118\n55#3:120\n106#4:119\n*S KotlinDebug\n*F\n+ 1 AndroidWebViewContainer.kt\ncom/unity3d/ads/adplayer/AndroidWebViewContainer\n*L\n36#1:117\n36#1:121\n36#1:118\n36#1:120\n36#1:119\n*E\n"}) /* loaded from: classes4.dex */ public final class AndroidWebViewContainer implements WebViewContainer { private final MutableStateFlow _lastInputEvent; private final StateFlow lastInputEvent; private final CoroutineScope scope; private final SendWebViewClientErrorDiagnostics sendWebViewClientErrorDiagnostics; private final WebView webView; private final AndroidWebViewClient webViewClient; @Override // com.unity3d.ads.adplayer.WebViewContainer public StateFlow getLastInputEvent() { return this.lastInputEvent; } public final CoroutineScope getScope() { return this.scope; } public final WebView getWebView() { return this.webView; } public final MutableStateFlow get_lastInputEvent() { return this._lastInputEvent; } public AndroidWebViewContainer(WebView webView, AndroidWebViewClient webViewClient, SendWebViewClientErrorDiagnostics sendWebViewClientErrorDiagnostics, CoroutineDispatcher mainDispatcher, CoroutineDispatcher defaultDispatcher, CoroutineScope adPlayerScope) { Intrinsics.checkNotNullParameter(webView, "webView"); Intrinsics.checkNotNullParameter(webViewClient, "webViewClient"); Intrinsics.checkNotNullParameter(sendWebViewClientErrorDiagnostics, "sendWebViewClientErrorDiagnostics"); Intrinsics.checkNotNullParameter(mainDispatcher, "mainDispatcher"); Intrinsics.checkNotNullParameter(defaultDispatcher, "defaultDispatcher"); Intrinsics.checkNotNullParameter(adPlayerScope, "adPlayerScope"); this.webView = webView; this.webViewClient = webViewClient; this.sendWebViewClientErrorDiagnostics = sendWebViewClientErrorDiagnostics; CoroutineScope plus = CoroutineScopeKt.plus(CoroutineScopeKt.plus(adPlayerScope, mainDispatcher), new CoroutineName("AndroidWebViewContainer")); this.scope = plus; MutableStateFlow MutableStateFlow = StateFlowKt.MutableStateFlow(null); this._lastInputEvent = MutableStateFlow; this.lastInputEvent = FlowKt.asStateFlow(MutableStateFlow); final StateFlow isRenderProcessGone = webViewClient.isRenderProcessGone(); FlowKt.launchIn(FlowKt.onEach(new Flow() { // from class: com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$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 AndroidWebViewContainer.kt\ncom/unity3d/ads/adplayer/AndroidWebViewContainer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n36#3:224\n*E\n"}) /* renamed from: com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$inlined$filter$1$2, reason: invalid class name */ public static final class AnonymousClass2 implements FlowCollector { final /* synthetic */ FlowCollector $this_unsafeFlow; @DebugMetadata(c = "com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$inlined$filter$1$2", f = "AndroidWebViewContainer.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.AndroidWebViewContainer$special$$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) { 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 r5, kotlin.coroutines.Continuation r6) { /* r4 = this; boolean r0 = r6 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$inlined$filter$1.AnonymousClass2.AnonymousClass1 if (r0 == 0) goto L13 r0 = r6 com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$inlined$filter$1$2$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$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.AndroidWebViewContainer$special$$inlined$filter$1$2$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$inlined$filter$1$2$1 r0.(r6) L18: java.lang.Object r6 = 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(r6) goto L48 L29: java.lang.IllegalStateException r5 = new java.lang.IllegalStateException java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine" r5.(r6) throw r5 L31: kotlin.ResultKt.throwOnFailure(r6) kotlinx.coroutines.flow.FlowCollector r6 = r4.$this_unsafeFlow r2 = r5 java.lang.Boolean r2 = (java.lang.Boolean) r2 boolean r2 = r2.booleanValue() if (r2 == 0) goto L48 r0.label = r3 java.lang.Object r5 = r6.emit(r5, r0) if (r5 != r1) goto L48 return r1 L48: kotlin.Unit r5 = kotlin.Unit.INSTANCE return r5 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer$special$$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), continuation); coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); return collect == coroutine_suspended ? collect : Unit.INSTANCE; } }, new AnonymousClass2(null)), CoroutineScopeKt.plus(plus, defaultDispatcher)); webView.setOnTouchListener(new View.OnTouchListener() { // from class: com.unity3d.ads.adplayer.AndroidWebViewContainer$$ExternalSyntheticLambda0 @Override // android.view.View.OnTouchListener public final boolean onTouch(View view, MotionEvent motionEvent) { boolean _init_$lambda$1; _init_$lambda$1 = AndroidWebViewContainer._init_$lambda$1(AndroidWebViewContainer.this, view, motionEvent); return _init_$lambda$1; } }); } @DebugMetadata(c = "com.unity3d.ads.adplayer.AndroidWebViewContainer$2", f = "AndroidWebViewContainer.kt", l = {37}, m = "invokeSuspend") /* renamed from: com.unity3d.ads.adplayer.AndroidWebViewContainer$2, reason: invalid class name */ public static final class AnonymousClass2 extends SuspendLambda implements Function2 { int label; public AnonymousClass2(Continuation continuation) { super(2, continuation); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Continuation create(Object obj, Continuation continuation) { return AndroidWebViewContainer.this.new AnonymousClass2(continuation); } @Override // kotlin.jvm.functions.Function2 public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) { return invoke(((Boolean) obj).booleanValue(), (Continuation) obj2); } public final Object invoke(boolean z, Continuation continuation) { return ((AnonymousClass2) create(Boolean.valueOf(z), continuation)).invokeSuspend(Unit.INSTANCE); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { Object coroutine_suspended; coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); int i = this.label; if (i == 0) { ResultKt.throwOnFailure(obj); AndroidWebViewContainer androidWebViewContainer = AndroidWebViewContainer.this; this.label = 1; if (androidWebViewContainer.onRenderProcessGone(this) == coroutine_suspended) { return coroutine_suspended; } } else { if (i != 1) { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } ResultKt.throwOnFailure(obj); } return Unit.INSTANCE; } } /* JADX INFO: Access modifiers changed from: private */ public static final boolean _init_$lambda$1(AndroidWebViewContainer this$0, View view, MotionEvent motionEvent) { Intrinsics.checkNotNullParameter(this$0, "this$0"); int actionMasked = motionEvent.getActionMasked(); if (actionMasked != 0 && actionMasked != 1 && actionMasked != 5 && actionMasked != 6) { return false; } this$0._lastInputEvent.setValue(motionEvent); return false; } /* JADX INFO: Access modifiers changed from: private */ /* JADX WARN: Removed duplicated region for block: B:15:0x0035 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0023 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Object onRenderProcessGone(kotlin.coroutines.Continuation r8) { /* r7 = this; boolean r0 = r8 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$onRenderProcessGone$1 if (r0 == 0) goto L13 r0 = r8 com.unity3d.ads.adplayer.AndroidWebViewContainer$onRenderProcessGone$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$onRenderProcessGone$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.AndroidWebViewContainer$onRenderProcessGone$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$onRenderProcessGone$1 r0.(r7, r8) L18: java.lang.Object r8 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 1 if (r2 == 0) goto L35 if (r2 != r3) goto L2d java.lang.Object r0 = r0.L$0 com.unity3d.ads.adplayer.AndroidWebViewContainer r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer) r0 kotlin.ResultKt.throwOnFailure(r8) goto L44 L2d: java.lang.IllegalStateException r8 = new java.lang.IllegalStateException java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine" r8.(r0) throw r8 L35: kotlin.ResultKt.throwOnFailure(r8) r0.L$0 = r7 r0.label = r3 java.lang.Object r8 = r7.destroy(r0) if (r8 != r1) goto L43 return r1 L43: r0 = r7 L44: com.unity3d.ads.core.domain.SendWebViewClientErrorDiagnostics r8 = r0.sendWebViewClientErrorDiagnostics com.unity3d.ads.adplayer.model.WebViewClientError r6 = new com.unity3d.ads.adplayer.model.WebViewClientError java.lang.String r1 = "Render process gone" com.unity3d.ads.adplayer.model.ErrorReason r2 = com.unity3d.ads.adplayer.model.ErrorReason.REASON_WEBVIEW_RENDER_PROCESS_GONE r3 = 0 r4 = 4 r5 = 0 r0 = r6 r0.(r1, r2, r3, r4, r5) java.util.List r0 = kotlin.collections.CollectionsKt.listOf(r6) r8.invoke(r0) kotlin.Unit r8 = kotlin.Unit.INSTANCE return r8 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer.onRenderProcessGone(kotlin.coroutines.Continuation):java.lang.Object"); } /* JADX WARN: Removed duplicated region for block: B:20:0x0087 */ /* JADX WARN: Removed duplicated region for block: B:24:0x00a1 */ /* JADX WARN: Removed duplicated region for block: B:29:0x007a A[RETURN] */ /* JADX WARN: Removed duplicated region for block: B:30:0x004f */ /* JADX WARN: Removed duplicated region for block: B:8:0x0025 */ @Override // com.unity3d.ads.adplayer.WebViewContainer /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public java.lang.Object loadUrl(java.lang.String r8, kotlin.coroutines.Continuation r9) { /* r7 = this; boolean r0 = r9 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$1 if (r0 == 0) goto L13 r0 = r9 com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$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.AndroidWebViewContainer$loadUrl$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$1 r0.(r7, r9) L18: java.lang.Object r9 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 3 r4 = 2 r5 = 1 if (r2 == 0) goto L4f if (r2 == r5) goto L47 if (r2 == r4) goto L3f if (r2 == r3) goto L33 java.lang.IllegalStateException r8 = new java.lang.IllegalStateException java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine" r8.(r9) throw r8 L33: java.lang.Object r8 = r0.L$1 java.util.List r8 = (java.util.List) r8 java.lang.Object r0 = r0.L$0 com.unity3d.ads.adplayer.AndroidWebViewContainer r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer) r0 kotlin.ResultKt.throwOnFailure(r9) goto L96 L3f: java.lang.Object r8 = r0.L$0 com.unity3d.ads.adplayer.AndroidWebViewContainer r8 = (com.unity3d.ads.adplayer.AndroidWebViewContainer) r8 kotlin.ResultKt.throwOnFailure(r9) goto L7b L47: java.lang.Object r8 = r0.L$0 com.unity3d.ads.adplayer.AndroidWebViewContainer r8 = (com.unity3d.ads.adplayer.AndroidWebViewContainer) r8 kotlin.ResultKt.throwOnFailure(r9) goto L6a L4f: kotlin.ResultKt.throwOnFailure(r9) kotlinx.coroutines.CoroutineScope r9 = r7.scope kotlin.coroutines.CoroutineContext r9 = r9.getCoroutineContext() com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$2 r2 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$loadUrl$2 r6 = 0 r2.(r7, r8, r6) r0.L$0 = r7 r0.label = r5 java.lang.Object r8 = kotlinx.coroutines.BuildersKt.withContext(r9, r2, r0) if (r8 != r1) goto L69 return r1 L69: r8 = r7 L6a: com.unity3d.ads.adplayer.AndroidWebViewClient r9 = r8.webViewClient kotlinx.coroutines.Deferred r9 = r9.getOnLoadFinished() r0.L$0 = r8 r0.label = r4 java.lang.Object r9 = r9.await(r0) if (r9 != r1) goto L7b return r1 L7b: java.util.List r9 = (java.util.List) r9 r2 = r9 java.util.Collection r2 = (java.util.Collection) r2 boolean r2 = r2.isEmpty() r2 = r2 ^ r5 if (r2 == 0) goto La1 r0.L$0 = r8 r0.L$1 = r9 r0.label = r3 java.lang.Object r0 = r8.destroy(r0) if (r0 != r1) goto L94 return r1 L94: r0 = r8 r8 = r9 L96: com.unity3d.ads.core.domain.SendWebViewClientErrorDiagnostics r9 = r0.sendWebViewClientErrorDiagnostics r9.invoke(r8) com.unity3d.ads.adplayer.LoadWebViewError r9 = new com.unity3d.ads.adplayer.LoadWebViewError r9.(r8) throw r9 La1: kotlin.Unit r8 = kotlin.Unit.INSTANCE return r8 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer.loadUrl(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object"); } /* JADX WARN: Can't wrap try/catch for region: R(10:0|1|(2:3|(7:5|6|7|(1:(1:10)(2:16|17))(3:18|19|(1:21))|11|12|13))|23|6|7|(0)(0)|11|12|13) */ /* JADX WARN: Removed duplicated region for block: B:18:0x0031 */ /* JADX WARN: Removed duplicated region for block: B:9:0x0023 */ @Override // com.unity3d.ads.adplayer.WebViewContainer /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public java.lang.Object evaluateJavascript(java.lang.String r6, kotlin.coroutines.Continuation r7) { /* r5 = this; boolean r0 = r7 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$1 if (r0 == 0) goto L13 r0 = r7 com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$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.AndroidWebViewContainer$evaluateJavascript$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$1 r0.(r5, 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) // Catch: java.util.concurrent.CancellationException -> L49 goto L49 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.CoroutineScope r7 = r5.scope // Catch: java.util.concurrent.CancellationException -> L49 kotlin.coroutines.CoroutineContext r7 = r7.getCoroutineContext() // Catch: java.util.concurrent.CancellationException -> L49 com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$2 r2 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$evaluateJavascript$2 // Catch: java.util.concurrent.CancellationException -> L49 r4 = 0 r2.(r5, r6, r4) // Catch: java.util.concurrent.CancellationException -> L49 r0.label = r3 // Catch: java.util.concurrent.CancellationException -> L49 java.lang.Object r6 = kotlinx.coroutines.BuildersKt.withContext(r7, r2, r0) // Catch: java.util.concurrent.CancellationException -> L49 if (r6 != r1) goto L49 return r1 L49: kotlin.Unit r6 = kotlin.Unit.INSTANCE return r6 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer.evaluateJavascript(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object"); } /* JADX WARN: Can't wrap try/catch for region: R(10:0|1|(2:3|(7:5|6|7|(1:(1:10)(2:16|17))(3:18|19|(1:21))|11|12|13))|23|6|7|(0)(0)|11|12|13) */ /* JADX WARN: Removed duplicated region for block: B:18:0x0031 */ /* JADX WARN: Removed duplicated region for block: B:9:0x0023 */ @Override // com.unity3d.ads.adplayer.WebViewContainer /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public java.lang.Object addJavascriptInterface(com.unity3d.ads.adplayer.WebViewBridge r6, java.lang.String r7, kotlin.coroutines.Continuation r8) { /* r5 = this; boolean r0 = r8 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$1 if (r0 == 0) goto L13 r0 = r8 com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$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.AndroidWebViewContainer$addJavascriptInterface$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$1 r0.(r5, r8) L18: java.lang.Object r8 = 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(r8) // Catch: java.util.concurrent.CancellationException -> L49 goto L49 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(r8) kotlinx.coroutines.CoroutineScope r8 = r5.scope // Catch: java.util.concurrent.CancellationException -> L49 kotlin.coroutines.CoroutineContext r8 = r8.getCoroutineContext() // Catch: java.util.concurrent.CancellationException -> L49 com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$2 r2 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$2 // Catch: java.util.concurrent.CancellationException -> L49 r4 = 0 r2.(r5, r7, r6, r4) // Catch: java.util.concurrent.CancellationException -> L49 r0.label = r3 // Catch: java.util.concurrent.CancellationException -> L49 java.lang.Object r6 = kotlinx.coroutines.BuildersKt.withContext(r8, r2, r0) // Catch: java.util.concurrent.CancellationException -> L49 if (r6 != r1) goto L49 return r1 L49: kotlin.Unit r6 = kotlin.Unit.INSTANCE return r6 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer.addJavascriptInterface(com.unity3d.ads.adplayer.WebViewBridge, java.lang.String, kotlin.coroutines.Continuation):java.lang.Object"); } /* JADX WARN: Removed duplicated region for block: B:15:0x0036 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0024 */ @Override // com.unity3d.ads.adplayer.WebViewContainer /* 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 r6) { /* r5 = this; boolean r0 = r6 instanceof com.unity3d.ads.adplayer.AndroidWebViewContainer$destroy$1 if (r0 == 0) goto L13 r0 = r6 com.unity3d.ads.adplayer.AndroidWebViewContainer$destroy$1 r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer$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.AndroidWebViewContainer$destroy$1 r0 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$destroy$1 r0.(r5, r6) L18: java.lang.Object r6 = r0.result java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED() int r2 = r0.label r3 = 0 r4 = 1 if (r2 == 0) goto L36 if (r2 != r4) goto L2e java.lang.Object r0 = r0.L$0 com.unity3d.ads.adplayer.AndroidWebViewContainer r0 = (com.unity3d.ads.adplayer.AndroidWebViewContainer) r0 kotlin.ResultKt.throwOnFailure(r6) goto L56 L2e: java.lang.IllegalStateException r6 = new java.lang.IllegalStateException java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine" r6.(r0) throw r6 L36: kotlin.ResultKt.throwOnFailure(r6) kotlinx.coroutines.CoroutineScope r6 = r5.scope kotlin.coroutines.CoroutineContext r6 = r6.getCoroutineContext() kotlinx.coroutines.NonCancellable r2 = kotlinx.coroutines.NonCancellable.INSTANCE kotlin.coroutines.CoroutineContext r6 = r6.plus(r2) com.unity3d.ads.adplayer.AndroidWebViewContainer$destroy$2 r2 = new com.unity3d.ads.adplayer.AndroidWebViewContainer$destroy$2 r2.(r5, r3) r0.L$0 = r5 r0.label = r4 java.lang.Object r6 = kotlinx.coroutines.BuildersKt.withContext(r6, r2, r0) if (r6 != r1) goto L55 return r1 L55: r0 = r5 L56: kotlinx.coroutines.CoroutineScope r6 = r0.scope kotlinx.coroutines.CoroutineScopeKt.cancel$default(r6, r3, r4, r3) kotlin.Unit r6 = kotlin.Unit.INSTANCE return r6 */ throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.AndroidWebViewContainer.destroy(kotlin.coroutines.Continuation):java.lang.Object"); } }