package q;

import Y4.InterfaceC0843i;
import androidx.compose.runtime.MonotonicFrameClockKt;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.SnapshotStateKt;
import d3.C1931v0;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: q.J, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2759J extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public kotlin.jvm.internal.z f23183a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f23184b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public /* synthetic */ Object f23185c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MutableState f23186d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ C2760K f23187e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2759J(MutableState mutableState, C2760K c2760k, A4.d dVar) {
        super(2, dVar);
        this.f23186d = mutableState;
        this.f23187e = c2760k;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C2759J c2759j = new C2759J(this.f23186d, this.f23187e, dVar);
        c2759j.f23185c = obj;
        return c2759j;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        ((C2759J) create((V4.C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
        return B4.a.f492a;
    }

    /* JADX WARN: Path cross not found for [B:11:0x003e, B:18:0x0069], limit reached: 22 */
    /* JADX WARN: Path cross not found for [B:18:0x0069, B:11:0x003e], limit reached: 22 */
    /* JADX WARN: Removed duplicated region for block: B:13:0x005b  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x0069  */
    /* JADX WARN: Removed duplicated region for block: B:21:0x0087  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x0067 -> B:11:0x003e). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:19:0x0084 -> B:11:0x003e). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        V4.C c6;
        kotlin.jvm.internal.z zVar;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f23184b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c7 = (V4.C) this.f23185c;
            kotlin.jvm.internal.z zVar2 = new kotlin.jvm.internal.z();
            zVar2.f20131a = 1.0f;
            c6 = c7;
            zVar = zVar2;
        } else if (i6 == 1) {
            kotlin.jvm.internal.z zVar3 = this.f23183a;
            V4.C c8 = (V4.C) this.f23185c;
            AbstractC2467b.l(obj);
            zVar = zVar3;
            c6 = c8;
            if (zVar.f20131a == 0.0f) {
                InterfaceC0843i interfaceC0843iSnapshotFlow = SnapshotStateKt.snapshotFlow(new C1931v0(c6, 10));
                C2758I c2758i = new C2758I(2, null);
                this.f23185c = c6;
                this.f23183a = zVar;
                this.f23184b = 2;
                if (Y4.O.m(interfaceC0843iSnapshotFlow, c2758i, this) != aVar) {
                }
                return aVar;
            }
        } else {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            kotlin.jvm.internal.z zVar4 = this.f23183a;
            V4.C c9 = (V4.C) this.f23185c;
            AbstractC2467b.l(obj);
            zVar = zVar4;
            c6 = c9;
        }
        E.z zVar5 = new E.z(this.f23186d, this.f23187e, zVar, c6, 8);
        this.f23185c = c6;
        this.f23183a = zVar;
        this.f23184b = 1;
        if (getContext().get(J0.I0.f2883a) != null) {
            throw new ClassCastException();
        }
        if (MonotonicFrameClockKt.withFrameNanos(zVar5, this) != aVar) {
            if (zVar.f20131a == 0.0f) {
            }
            E.z zVar52 = new E.z(this.f23186d, this.f23187e, zVar, c6, 8);
            this.f23185c = c6;
            this.f23183a = zVar;
            this.f23184b = 1;
            if (getContext().get(J0.I0.f2883a) != null) {
            }
        }
        return aVar;
    }
}
