package h3;

import androidx.compose.runtime.MutableIntState;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2091c1(List list, D.H h5, MutableIntState mutableIntState, A4.d dVar) {
        super(2, dVar);
        this.f17804b = list;
        this.f17805c = h5;
        this.f17806d = mutableIntState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2091c1(this.f17804b, this.f17805c, this.f17806d, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C2091c1) 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.f17803a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            J.f fVar = AbstractC2211w1.f18642a;
            int iIndexOf = this.f17804b.indexOf(new Integer(this.f17806d.getIntValue()));
            if (iIndexOf >= 0) {
                this.f17803a = 1;
                if (D.H.k(this.f17805c, iIndexOf, this) == aVar) {
                    return aVar;
                }
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
