package F1;

import q1.e;
import r1.AbstractC0707b;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: renamed from: F1.i, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract /* synthetic */ class AbstractC0125i {
    public static final O a(H h2, q1.g gVar, J j2, y1.p pVar) throws Throwable {
        q1.g gVarC = D.c(h2, gVar);
        P w0Var = j2.isLazy() ? new w0(gVarC, pVar) : new P(gVarC, true);
        w0Var.v0(j2, w0Var, pVar);
        return w0Var;
    }

    public static /* synthetic */ O b(H h2, q1.g gVar, J j2, y1.p pVar, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            gVar = q1.h.f6277b;
        }
        if ((i2 & 2) != 0) {
            j2 = J.DEFAULT;
        }
        return AbstractC0121g.a(h2, gVar, j2, pVar);
    }

    public static final n0 c(H h2, q1.g gVar, J j2, y1.p pVar) throws Throwable {
        q1.g gVarC = D.c(h2, gVar);
        E0 x0Var = j2.isLazy() ? new x0(gVarC, pVar) : new E0(gVarC, true);
        x0Var.v0(j2, x0Var, pVar);
        return x0Var;
    }

    public static /* synthetic */ n0 d(H h2, q1.g gVar, J j2, y1.p pVar, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            gVar = q1.h.f6277b;
        }
        if ((i2 & 2) != 0) {
            j2 = J.DEFAULT;
        }
        return AbstractC0121g.c(h2, gVar, j2, pVar);
    }

    public static final Object e(q1.g gVar, y1.p pVar, q1.d dVar) throws Throwable {
        Object objW0;
        q1.g context = dVar.getContext();
        q1.g gVarPlus = context.plus(gVar);
        r0.d(gVarPlus);
        if (gVarPlus == context) {
            kotlinx.coroutines.internal.q qVar = new kotlinx.coroutines.internal.q(gVarPlus, dVar);
            objW0 = H1.b.c(qVar, qVar, pVar);
        } else {
            e.b bVar = q1.e.f6274Y;
            if (kotlin.jvm.internal.l.a(gVarPlus.get(bVar), context.get(bVar))) {
                I0 i02 = new I0(gVarPlus, dVar);
                Object objC = kotlinx.coroutines.internal.v.c(gVarPlus, null);
                try {
                    Object objC2 = H1.b.c(i02, i02, pVar);
                    kotlinx.coroutines.internal.v.a(gVarPlus, objC);
                    objW0 = objC2;
                } catch (Throwable th) {
                    kotlinx.coroutines.internal.v.a(gVarPlus, objC);
                    throw th;
                }
            } else {
                T t2 = new T(gVarPlus, dVar);
                H1.a.f(pVar, t2, t2, null, 4, null);
                objW0 = t2.w0();
            }
        }
        if (objW0 == AbstractC0707b.d()) {
            kotlin.coroutines.jvm.internal.h.c(dVar);
        }
        return objW0;
    }
}
