package d3;

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public a2(MutableIntState mutableIntState, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f15539c = mutableIntState;
        this.f15540d = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new a2(this.f15539c, this.f15540d, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        int i6;
        B4.a aVar = B4.a.f492a;
        int i7 = this.f15538b;
        C3137A c3137a = C3137A.f25453a;
        MutableIntState mutableIntState = this.f15539c;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            int intValue = mutableIntState.getIntValue();
            if (intValue != 0) {
                this.f15537a = intValue;
                this.f15538b = 1;
                if (V4.E.l(2500L, this) == aVar) {
                    return aVar;
                }
                i6 = intValue;
            }
            return c3137a;
        }
        if (i7 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        i6 = this.f15537a;
        AbstractC2467b.l(obj);
        DateTimeFormatter dateTimeFormatter2 = v2.f16084a;
        if (mutableIntState.getIntValue() == i6) {
            this.f15540d.setValue(Boolean.FALSE);
        }
        return c3137a;
    }
}
