package d3;

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

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Object f15298b;

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        Q1 q12 = new Q1(this.f15299c, dVar);
        q12.f15298b = obj;
        return q12;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        V4.C c6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f15297a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            c6 = (V4.C) this.f15298b;
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c6 = (V4.C) this.f15298b;
            AbstractC2467b.l(obj);
        }
        while (V4.E.v(c6)) {
            LocalDateTime localDateTimeNow = LocalDateTime.now();
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            this.f15299c.setValue(localDateTimeNow);
            long second = (((long) (60 - localDateTimeNow.getSecond())) * 1000) - (((long) localDateTimeNow.getNano()) / 1000000);
            if (second < 250) {
                second = 250;
            }
            this.f15298b = c6;
            this.f15297a = 1;
            if (V4.E.l(second, this) == aVar) {
                return aVar;
            }
        }
        return C3137A.f25453a;
    }
}
