package tp;

/* loaded from: classes3.dex */
public abstract /* synthetic */ class j {
    public static final Object a(vm.g gVar, dn.p pVar) {
        e1 a10;
        vm.g d10;
        Thread currentThread = Thread.currentThread();
        vm.e eVar = (vm.e) gVar.d(vm.e.INSTANCE);
        if (eVar == null) {
            a10 = t2.f36590a.b();
            d10 = h0.d(n1.f36567p, gVar.h(a10));
        } else {
            e1 e1Var = eVar instanceof e1 ? (e1) eVar : null;
            if (e1Var != null) {
                e1 e1Var2 = e1Var.s0() ? e1Var : null;
                if (e1Var2 != null) {
                    a10 = e1Var2;
                    d10 = h0.d(n1.f36567p, gVar);
                }
            }
            a10 = t2.f36590a.a();
            d10 = h0.d(n1.f36567p, gVar);
        }
        g gVar2 = new g(d10, currentThread, a10);
        gVar2.W0(o0.DEFAULT, gVar2, pVar);
        return gVar2.X0();
    }

    public static /* synthetic */ Object b(vm.g gVar, dn.p pVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            gVar = vm.h.f40193p;
        }
        return i.e(gVar, pVar);
    }
}
