rewriting available regs analysis