Static cast get_register() calls in PrintF to intptr_t to prevent error messages when compiling with nativesim=true