package kotlinx.coroutines;

import kotlin.coroutines.Continuation;

/* JADX INFO: loaded from: classes.dex */
public final class o extends g1 implements n {
    public final Object Y(Continuation continuation) throws Throwable {
        Object objG;
        do {
            objG = G();
            if (!(objG instanceof v0)) {
                if (objG instanceof q) {
                    throw ((q) objG).f29523a;
                }
                return y.g0(objG);
            }
        } while (V(objG) < 0);
        c1 c1Var = new c1(nb.g.F(continuation), this);
        c1Var.t();
        c1Var.v(new e(L(false, true, new k0(c1Var, 2)), 1));
        return c1Var.s();
    }
}
