//
// std::terminate from 0x98015c to 0x9801a4 (72 bytes)
//
// 12 xrefs:
// > sub_954028 @ 0x95402e
// > std::nested_exception::rethrow_nested @ 0x954302
// > std::rethrow_exception @ 0x95432e
// > std::__ndk1::thread::~thread @ 0x97e8b4
// > __cxa_allocate_exception @ 0x97fa20
// > __cxa_allocate_dependent_exception @ 0x97fa52
// > __cxa_begin_cleanup @ 0x97fb32
// > sub_97FB3A @ 0x97fb98
// > __cxa_begin_catch @ 0x97fc04
// > __cxa_rethrow @ 0x97fd5e
// > sub_98084C @ 0x980866
// > sub_982120 @ 0x98212e
//
// 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
//
void __noreturn std::terminate()
{
void (*globals_fast)(void); // r0
bool v1; // zf
void (*terminate)(void); // r0
globals_fast = (void (*)(void))_cxa_get_globals_fast();
v1 = globals_fast == nullptr;
if ( globals_fast )
{
globals_fast = *(void (**)(void))globals_fast;
v1 = globals_fast == nullptr;
}
if ( !v1 && *((_QWORD *)globals_fast + 5) >> 8 == 0x434C4E47432B2BLL )
sub_980128(*((void (**)(void))globals_fast + 4));
terminate = (void (*)(void))std::get_terminate();
sub_980128(terminate);
}