package d3;

import androidx.compose.runtime.MutableState;
import j$.time.format.DateTimeFormatter;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1903l1(List list, int i6, D.H h5, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f15796c = list;
        this.f15797d = i6;
        this.f15798e = h5;
        this.f15799f = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C1903l1(this.f15796c, this.f15797d, this.f15798e, this.f15799f, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C1903l1) 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) {
        int i6;
        int i7;
        B4.a aVar = B4.a.f492a;
        int i8 = this.f15795b;
        List list = this.f15796c;
        C3137A c3137a = C3137A.f25453a;
        if (i8 == 0) {
            AbstractC2467b.l(obj);
            MutableState mutableState = this.f15799f;
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            if (!((Boolean) mutableState.getValue()).booleanValue() || list.isEmpty()) {
                return c3137a;
            }
            i6 = this.f15797d;
            if (i6 < 0 || i6 >= list.size()) {
                i6 = 0;
            }
            this.f15794a = i6;
            this.f15795b = 1;
            if (D.H.k(this.f15798e, i6, this) != aVar) {
            }
            return aVar;
        }
        if (i8 != 1) {
            if (i8 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            i7 = this.f15794a;
            AbstractC2467b.l(obj);
            n0.x.a((n0.x) list.get(i7));
            return c3137a;
        }
        int i9 = this.f15794a;
        AbstractC2467b.l(obj);
        i6 = i9;
        this.f15794a = i6;
        this.f15795b = 2;
        if (V4.E.l(40L, this) != aVar) {
            i7 = i6;
            n0.x.a((n0.x) list.get(i7));
            return c3137a;
        }
        return aVar;
    }
}
