mn_to_reg
ns = mn_to_reg(mn, f->m, f->n, ns);
reg = mn_to_reg(mn, f->m, f->n, reg);
ctl = mn_to_reg(mn, f->m, f->n, ctl);