package h3;

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

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

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

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public i5(boolean z6, List list, D.H h5, MutableIntState mutableIntState, MutableIntState mutableIntState2, MutableState mutableState, MutableState mutableState2, A4.d dVar) {
        super(2, dVar);
        this.f18064b = z6;
        this.f18065c = list;
        this.f18066d = h5;
        this.f18067e = mutableIntState;
        this.f18068f = mutableIntState2;
        this.f18069j = mutableState;
        this.f18070k = mutableState2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new i5(this.f18064b, this.f18065c, this.f18066d, this.f18067e, this.f18068f, this.f18069j, this.f18070k, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((i5) 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.f18063a;
        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);
        if (this.f18064b) {
            Integer num = AbstractC0696m3.e0;
            if (num != null) {
                AbstractC0696m3.e0 = null;
            } else {
                num = null;
            }
            if (num != null) {
                int iV = L4.a.v(num.intValue(), 0, AbstractC3252r.A(this.f18065c));
                float f6 = n5.f18281a;
                this.f18067e.setIntValue(-2);
                this.f18068f.setIntValue(iV);
                n5.r(this.f18069j, this.f18070k);
                this.f18063a = 1;
                if (D.H.k(this.f18066d, iV, this) == aVar) {
                    return aVar;
                }
            }
        }
        return c3137a;
    }
}
