//
// std::runtime_error::runtime_error from 0xf7a87c to 0xf7a908 (140 bytes)
//
// 28 xrefs:
// > fmt::SystemError::init @ 0xde62c4
// > std::__ndk1::__time_put::__time_put @ 0xf606dc
// > std::__ndk1::__time_put::__time_put @ 0xf60838
// > std::__ndk1::moneypunct_byname::init @ 0xf618a8
// > std::__ndk1::moneypunct_byname::init @ 0xf61d7c
// > std::__ndk1::moneypunct_byname::init @ 0xf62350
// > std::__ndk1::moneypunct_byname::init @ 0xf62a28
// > std::__ndk1::codecvt::codecvt @ 0xf68f1c
// > std::__ndk1::collate_byname::collate_byname @ 0xf6e224
// > std::__ndk1::collate_byname::collate_byname @ 0xf6e348
// > std::__ndk1::collate_byname::collate_byname @ 0xf6e93c
// > std::__ndk1::collate_byname::collate_byname @ 0xf6ea60
// > std::__ndk1::ctype_byname::ctype_byname @ 0xf6f7dc
// > std::__ndk1::ctype_byname::ctype_byname @ 0xf6f934
// > std::__ndk1::ctype_byname::ctype_byname @ 0xf6fb9c
// > std::__ndk1::ctype_byname::ctype_byname @ 0xf6fcc0
// > std::__ndk1::numpunct_byname::__init @ 0xf746ec
// > std::__ndk1::numpunct_byname::__init @ 0xf74a08
// > std::__ndk1::__time_get::__time_get @ 0xf75b8c
// > std::__ndk1::__time_get::__time_get @ 0xf75c8c
// > std::__ndk1::system_error::system_error @ 0xf85e80
// > std::__ndk1::system_error::system_error @ 0xf85fe0
// > std::__ndk1::system_error::system_error @ 0xf860cc
// > std::__ndk1::system_error::system_error @ 0xf86240
// > std::__ndk1::system_error::system_error @ 0xf863b4
// > std::__ndk1::system_error::system_error @ 0xf864b4
// > ??> @ 0x82840
// > ??> @ 0xf3058
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:13:46 +0000
//
// Alternative name is '_ZNSt13runtime_errorC2ERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE'
void *__fastcall std::runtime_error::runtime_error(_QWORD *a1, __int64 a2)
{
const char *v3; // x20
size_t v4; // x21
_QWORD *v5; // x0
char *v6; // x22
void *result; // x0
*a1 = off_1536C58;
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(const char **)(a2 + 16);
else
v3 = (const char *)(a2 + 1);
v4 = strlen(v3);
v5 = operator new(v4 + 25);
v6 = (char *)(v5 + 3);
*v5 = v4;
v5[1] = v4;
*((_DWORD *)v5 + 4) = 0;
result = memcpy(v5 + 3, v3, v4 + 1);
a1[1] = v6;
return result;
}