//
// __cxa_get_globals from 0xccc240 to 0xccc2b4 (116 bytes)
//
// 7 xrefs:
// > __cxa_begin_catch @ 0xccc044
// > std::uncaught_exception @ 0xccc178
// > __cxa_throw @ 0xccce4c
// > __cxa_rethrow @ 0xcccec8
// > std::current_exception @ 0xd1f230
// > __cxa_current_exception_type @ 0xd2f4e4
// > ??> @ 0x8a030
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_DWORD *_cxa_get_globals()
{
_DWORD *v0; // x19
if ( !byte_12490BC )
return &unk_12490C0;
v0 = pthread_getspecific(dword_12490B8);
if ( !v0 )
{
v0 = malloc(0x10u);
if ( !v0 || pthread_setspecific(dword_12490B8, v0) )
std::terminate();
*(_QWORD *)v0 = 0;
v0[2] = 0;
}
return v0;
}