package com.unity3d.services; import com.unity3d.ads.core.domain.SendDiagnosticEvent; import java.util.Map; import kotlin.ResultKt; import kotlin.TuplesKt; import kotlin.Unit; import kotlin.collections.MapsKt__MapsKt; import kotlin.coroutines.Continuation; import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlinx.coroutines.CoroutineScope; @DebugMetadata(c = "com.unity3d.services.SDKErrorHandler$sendDiagnostic$1", f = "SDKErrorHandler.kt", l = {}, m = "invokeSuspend") /* loaded from: classes4.dex */ public final class SDKErrorHandler$sendDiagnostic$1 extends SuspendLambda implements Function2 { final /* synthetic */ String $name; final /* synthetic */ String $reason; final /* synthetic */ String $scopeName; final /* synthetic */ String $stackTrace; int label; final /* synthetic */ SDKErrorHandler this$0; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public SDKErrorHandler$sendDiagnostic$1(SDKErrorHandler sDKErrorHandler, String str, String str2, String str3, String str4, Continuation continuation) { super(2, continuation); this.this$0 = sDKErrorHandler; this.$name = str; this.$reason = str2; this.$stackTrace = str3; this.$scopeName = str4; } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Continuation create(Object obj, Continuation continuation) { return new SDKErrorHandler$sendDiagnostic$1(this.this$0, this.$name, this.$reason, this.$stackTrace, this.$scopeName, continuation); } @Override // kotlin.jvm.functions.Function2 public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { return ((SDKErrorHandler$sendDiagnostic$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { SendDiagnosticEvent sendDiagnosticEvent; Map mapOf; IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED(); if (this.label == 0) { ResultKt.throwOnFailure(obj); sendDiagnosticEvent = this.this$0.sendDiagnosticEvent; String str = this.$name; mapOf = MapsKt__MapsKt.mapOf(TuplesKt.to("reason", this.$reason), TuplesKt.to("reason_debug", this.$stackTrace), TuplesKt.to("coroutine_name", this.$scopeName)); SendDiagnosticEvent.DefaultImpls.invoke$default(sendDiagnosticEvent, str, null, mapOf, null, null, 26, null); return Unit.INSTANCE; } throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } }