package K;

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 K extends C4.j implements J4.e {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Z0.z f3683d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ V.i0 f3684e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ Z0.k f3685f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public K(C0464l0 c0464l0, State state, Z0.z zVar, V.i0 i0Var, Z0.k kVar, A4.d dVar) {
        super(2, dVar);
        this.f3681b = c0464l0;
        this.f3682c = state;
        this.f3683d = zVar;
        this.f3684e = i0Var;
        this.f3685f = kVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new K(this.f3681b, this.f3682c, this.f3683d, this.f3684e, this.f3685f, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((K) 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.f3680a;
        C0464l0 c0464l0 = this.f3681b;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                InterfaceC0843i interfaceC0843iSnapshotFlow = SnapshotStateKt.snapshotFlow(new D.p(this.f3682c, 3));
                J j4 = new J(c0464l0, this.f3683d, this.f3684e, this.f3685f, 0);
                this.f3680a = 1;
                if (interfaceC0843iSnapshotFlow.collect(j4, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
            V.e(c0464l0);
            return C3137A.f25453a;
        } catch (Throwable th) {
            V.e(c0464l0);
            throw th;
        }
    }
}
