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.k1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1900k1 extends C4.j implements J4.e {

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ n0.x f15748e;

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ n0.x f15750j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ n0.x f15751k;
    public final /* synthetic */ MutableState l;

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1900k1(int i6, List list, D.H h5, n0.x xVar, List list2, n0.x xVar2, n0.x xVar3, MutableState mutableState, MutableState mutableState2, MutableState mutableState3, A4.d dVar) {
        super(2, dVar);
        this.f15745b = i6;
        this.f15746c = list;
        this.f15747d = h5;
        this.f15748e = xVar;
        this.f15749f = list2;
        this.f15750j = xVar2;
        this.f15751k = xVar3;
        this.l = mutableState;
        this.f15752m = mutableState2;
        this.f15753n = mutableState3;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C1900k1(this.f15745b, this.f15746c, this.f15747d, this.f15748e, this.f15749f, this.f15750j, this.f15751k, this.l, this.f15752m, this.f15753n, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:21:0x005a, code lost:
    
        if (V4.E.l(40, r8) == r0) goto L22;
     */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:33:0x008d  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f15744a;
        MutableState mutableState = this.f15752m;
        int i7 = this.f15745b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            MutableState mutableState2 = this.l;
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            if (!((Boolean) mutableState2.getValue()).booleanValue()) {
                if (!((Boolean) this.f15753n.getValue()).booleanValue()) {
                    n0.x.a(this.f15751k);
                }
                return C3137A.f25453a;
            }
            if (((G) mutableState.getValue()) == G.f15094a && i7 >= 0 && i7 < this.f15746c.size()) {
                this.f15744a = 1;
                if (D.H.k(this.f15747d, i7, this) != aVar) {
                }
                return aVar;
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            DateTimeFormatter dateTimeFormatter2 = v2.f16084a;
            int iOrdinal = ((G) mutableState.getValue()).ordinal();
            if (iOrdinal != 0) {
                if (iOrdinal != 1) {
                    throw new E3.v();
                }
                n0.x.a(this.f15748e);
            } else if (i7 >= 0) {
                List list = this.f15749f;
                if (i7 < list.size()) {
                    n0.x.a((n0.x) list.get(i7));
                } else {
                    n0.x.a(this.f15750j);
                }
            }
            return C3137A.f25453a;
        }
        AbstractC2467b.l(obj);
        this.f15744a = 2;
    }
}
