package h3;

import Y4.InterfaceC0843i;
import androidx.compose.runtime.SnapshotStateKt;
import androidx.compose.runtime.State;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class Q4 extends C4.j implements J4.e {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ boolean f17240b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ J4.c f17241c;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public Q4(boolean z6, J4.c cVar, State state, A4.d dVar) {
        super(2, dVar);
        this.f17240b = z6;
        this.f17241c = cVar;
        this.f17242d = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new Q4(this.f17240b, this.f17241c, this.f17242d, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17239a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        boolean z6 = this.f17240b;
        J4.c cVar = this.f17241c;
        if (!z6) {
            cVar.invoke(new Float(0.0f));
            return c3137a;
        }
        InterfaceC0843i interfaceC0843iJ = Y4.O.j(SnapshotStateKt.snapshotFlow(new D.p(this.f17242d, 20)));
        J0.s1 s1Var = new J0.s1(cVar, 7);
        this.f17239a = 1;
        return interfaceC0843iJ.collect(s1Var, this) == aVar ? aVar : c3137a;
    }
}
