Not the complete rewrite, but fixed the REGS_add_regs_free_list