package T;

import J0.s1;
import V4.C;
import Y4.G;
import Y4.N;
import androidx.compose.runtime.MonotonicFrameClockKt;
import m3.AbstractC2467b;
import q.H0;
import w4.C3137A;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public a(e eVar, p pVar, A4.d dVar) {
        super(2, dVar);
        this.f6293b = eVar;
        this.f6294c = pVar;
    }

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

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) throws Throwable {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f6292a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            H0 h0 = new H0(9);
            this.f6292a = 1;
            if (MonotonicFrameClockKt.withFrameMillis(h0, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                if (i6 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
                throw new E3.v();
            }
            AbstractC2467b.l(obj);
        }
        G gI = this.f6293b.i();
        if (gI == null) {
            return C3137A.f25453a;
        }
        s1 s1Var = new s1(this.f6294c, 3);
        this.f6292a = 2;
        N.k((N) gI, s1Var, this);
        return aVar;
    }
}
