package com.vinfast.companion.corecompose.extensions;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 2, 0}, xi = 48)
@kotlin.coroutines.jvm.internal.DebugMetadata(c = "com.vinfast.companion.corecompose.extensions.ShakeExtensionKt$shake$1$1$1$1", f = "ShakeExtension.kt", l = {26, 27, 30}, m = "invokeSuspend", v = 1)
final class ShakeExtensionKt$shake$1$1$1$1 extends kotlin.coroutines.jvm.internal.SuspendLambda implements kotlin.jvm.functions.Function2<kotlinx.coroutines.CoroutineScope, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    int n;
    int o;
    int p;
    final /* synthetic */ com.vinfast.companion.corecompose.extensions.ShakeConfig q;
    final /* synthetic */ androidx.compose.animation.core.Animatable r;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    ShakeExtensionKt$shake$1$1$1$1(com.vinfast.companion.corecompose.extensions.ShakeConfig shakeConfig, androidx.compose.animation.core.Animatable animatable, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.q = shakeConfig;
        this.r = animatable;
    }

    public final kotlin.coroutines.Continuation create(java.lang.Object obj, kotlin.coroutines.Continuation continuation) {
        return new com.vinfast.companion.corecompose.extensions.ShakeExtensionKt$shake$1$1$1$1(this.q, this.r, continuation);
    }

    /* JADX WARN: Code duplicated, block: B:17:0x004a  */
    /* JADX WARN: Code duplicated, block: B:20:0x0070  */
    /* JADX WARN: Code duplicated, block: B:28:0x009f  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:25:0x009a -> B:26:0x009b). Please report as a decompilation issue!!! */
    /*  JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxOverflowException: Regions stack size limit reached
        	at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
        	at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
        	at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
        */
    public final java.lang.Object invokeSuspend(java.lang.Object r16) {
        /*
            r15 = this;
            java.lang.Object r8 = kotlin.coroutines.intrinsics.IntrinsicsKt.g()
            int r0 = r15.p
            r9 = 3
            r10 = 0
            r11 = 2
            r12 = 1
            if (r0 == 0) goto L36
            if (r0 == r12) goto L2b
            if (r0 == r11) goto L1f
            if (r0 != r9) goto L17
            kotlin.ResultKt.b(r16)
            goto Lb8
        L17:
            java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
            java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
            r0.<init>(r1)
            throw r0
        L1f:
            int r0 = r15.o
            int r1 = r15.n
            kotlin.ResultKt.b(r16)
            r13 = r0
            r0 = r16
            goto L9b
        L2b:
            int r0 = r15.o
            int r1 = r15.n
            kotlin.ResultKt.b(r16)
            r13 = r0
            r0 = r16
            goto L71
        L36:
            kotlin.ResultKt.b(r16)
            com.vinfast.companion.corecompose.extensions.ShakeConfig r0 = r15.q
            int r0 = r0.getIterations()
            if (r0 < 0) goto La2
            r1 = 0
            r13 = r0
            r14 = r1
        L44:
            int r0 = r14 % 2
            r1 = 5
            r2 = 0
            if (r0 != 0) goto L74
            androidx.compose.animation.core.Animatable r0 = r15.r
            r3 = 1065353216(0x3f800000, float:1.0)
            java.lang.Float r3 = kotlin.coroutines.jvm.internal.Boxing.c(r3)
            com.vinfast.companion.corecompose.extensions.ShakeConfig r4 = r15.q
            float r4 = r4.getIntensity()
            androidx.compose.animation.core.SpringSpec r2 = androidx.compose.animation.core.AnimationSpecKt.l(r10, r4, r2, r1, r2)
            r15.n = r14
            r15.o = r13
            r15.p = r12
            r1 = r3
            r3 = 0
            r4 = 0
            r6 = 12
            r7 = 0
            r5 = r15
            java.lang.Object r0 = androidx.compose.animation.core.Animatable.f(r0, r1, r2, r3, r4, r5, r6, r7)
            if (r0 != r8) goto L70
            goto Lb7
        L70:
            r1 = r14
        L71:
            androidx.compose.animation.core.AnimationResult r0 = (androidx.compose.animation.core.AnimationResult) r0
            goto L9d
        L74:
            androidx.compose.animation.core.Animatable r0 = r15.r
            r3 = -1082130432(0xffffffffbf800000, float:-1.0)
            java.lang.Float r3 = kotlin.coroutines.jvm.internal.Boxing.c(r3)
            com.vinfast.companion.corecompose.extensions.ShakeConfig r4 = r15.q
            float r4 = r4.getIntensity()
            androidx.compose.animation.core.SpringSpec r2 = androidx.compose.animation.core.AnimationSpecKt.l(r10, r4, r2, r1, r2)
            r15.n = r14
            r15.o = r13
            r15.p = r11
            r1 = r3
            r3 = 0
            r4 = 0
            r6 = 12
            r7 = 0
            r5 = r15
            java.lang.Object r0 = androidx.compose.animation.core.Animatable.f(r0, r1, r2, r3, r4, r5, r6, r7)
            if (r0 != r8) goto L9a
            goto Lb7
        L9a:
            r1 = r14
        L9b:
            androidx.compose.animation.core.AnimationResult r0 = (androidx.compose.animation.core.AnimationResult) r0
        L9d:
            if (r1 == r13) goto La2
            int r14 = r1 + 1
            goto L44
        La2:
            androidx.compose.animation.core.Animatable r0 = r15.r
            java.lang.Float r1 = kotlin.coroutines.jvm.internal.Boxing.c(r10)
            r15.p = r9
            r2 = 0
            r3 = 0
            r4 = 0
            r6 = 14
            r7 = 0
            r5 = r15
            java.lang.Object r0 = androidx.compose.animation.core.Animatable.f(r0, r1, r2, r3, r4, r5, r6, r7)
            if (r0 != r8) goto Lb8
        Lb7:
            return r8
        Lb8:
            kotlin.Unit r0 = kotlin.Unit.a
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.vinfast.companion.corecompose.extensions.ShakeExtensionKt$shake$1$1$1$1.invokeSuspend(java.lang.Object):java.lang.Object");
    }

    public final java.lang.Object invoke(kotlinx.coroutines.CoroutineScope coroutineScope, kotlin.coroutines.Continuation continuation) {
        return create(coroutineScope, continuation).invokeSuspend(kotlin.Unit.a);
    }
}
