package X4;

import V4.C;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public n(t tVar, Object obj, A4.d dVar) {
        super(2, dVar);
        this.f8691c = tVar;
        this.f8692d = obj;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        n nVar = new n(this.f8691c, this.f8692d, dVar);
        nVar.f8690b = obj;
        return nVar;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objD;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f8689a;
        Object jVar = C3137A.f25453a;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                t tVar = this.f8691c;
                Object obj2 = this.f8692d;
                this.f8689a = 1;
                if (((s) tVar).f8697d.g(this, obj2) == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
            objD = jVar;
        } catch (Throwable th) {
            objD = AbstractC2467b.d(th);
        }
        if (objD instanceof w4.m) {
            jVar = new j(w4.n.a(objD));
        }
        return new l(jVar);
    }
}
