//
// __cxa_get_globals from 0x97fea8 to 0x97fee2 (58 bytes)
//
// 6 xrefs:
// > __cxa_throw @ 0x97fa68
// > __cxa_begin_cleanup @ 0x97fae6
// > sub_97FB3A @ 0x97fb3e
// > __cxa_begin_catch @ 0x97fba8
// > __cxa_rethrow @ 0x97fd0a
// > __cxa_rethrow_primary_exception @ 0x97fe36
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:06 +0000
//
int _cxa_get_globals()
{
int globals_fast; // r4
const void *v1; // r0
globals_fast = _cxa_get_globals_fast();
if ( !globals_fast )
{
v1 = (const void *)sub_980EF4(1, 12);
globals_fast = (int)v1;
if ( !v1 )
sub_981FC8("cannot allocate __cxa_eh_globals");
if ( pthread_setspecific(dword_D33CCC, v1) )
sub_981FC8("__libcxxabi_tls_set failure in __cxa_get_globals()");
}
return globals_fast;
}