codegen: fix va_arg to handle args above the magic 40