package p;

import Y4.C0841g;
import Y4.InterfaceC0843i;
import androidx.compose.runtime.ProduceStateScope;
import androidx.compose.runtime.SnapshotStateKt;
import androidx.compose.runtime.State;
import m3.AbstractC2467b;
import q.A0;
import w4.C3137A;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2679w(A0 a02, State state, A4.d dVar) {
        super(2, dVar);
        this.f22813c = a02;
        this.f22814d = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C2679w c2679w = new C2679w(this.f22813c, this.f22814d, dVar);
        c2679w.f22812b = obj;
        return c2679w;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C2679w) create((ProduceStateScope) 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.f22811a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            ProduceStateScope produceStateScope = (ProduceStateScope) this.f22812b;
            A0 a02 = this.f22813c;
            InterfaceC0843i interfaceC0843iSnapshotFlow = SnapshotStateKt.snapshotFlow(new B0.b(a02, 18));
            C0841g c0841g = new C0841g(produceStateScope, a02, this.f22814d, 4);
            this.f22811a = 1;
            if (interfaceC0843iSnapshotFlow.collect(c0841g, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
