we can also figure out the reg arg for output_reg now that we pass childno.