package h3;

import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;
import x4.AbstractC3252r;

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ MutableIntState f17127f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public O3(List list, MutableState mutableState, MutableState mutableState2, State state, MutableIntState mutableIntState, A4.d dVar) {
        super(2, dVar);
        this.f17123b = list;
        this.f17124c = mutableState;
        this.f17125d = mutableState2;
        this.f17126e = state;
        this.f17127f = mutableIntState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new O3(this.f17123b, this.f17124c, this.f17125d, this.f17126e, this.f17127f, dVar);
    }

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

    /* JADX WARN: Multi-variable type inference failed */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17122a;
        State state = this.f17126e;
        MutableState mutableState = this.f17125d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            J.f fVar = T3.f17405a;
            if (((C5) this.f17124c.getValue()) == C5.f16741a && ((Boolean) mutableState.getValue()).booleanValue() && !((List) state.getValue()).isEmpty()) {
                this.f17122a = 1;
                if (V4.E.l(80L, this) == aVar) {
                    return aVar;
                }
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        J.f fVar2 = T3.f17405a;
        n0.x.a((n0.x) this.f17123b.get(L4.a.v(this.f17127f.getIntValue(), 0, AbstractC3252r.A((List) state.getValue()))));
        mutableState.setValue(Boolean.FALSE);
        return C3137A.f25453a;
    }
}
