package y0;

/* loaded from: classes.dex */
public abstract class i1 {
    public static final g1 a(vm.g gVar) {
        g1 g1Var = (g1) gVar.d(g1.f51542o);
        if (g1Var != null) {
            return g1Var;
        }
        throw new IllegalStateException("A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.".toString());
    }

    public static final Object b(dn.l lVar, vm.d dVar) {
        return a(dVar.getContext()).J(new h1(lVar), dVar);
    }

    public static final Object c(dn.l lVar, vm.d dVar) {
        return a(dVar.getContext()).J(lVar, dVar);
    }
}
