//
// std::get_terminate from 0x980108 to 0x980124 (28 bytes)
//
// 4 xrefs:
// > __cxa_throw @ 0x97fa76
// > __cxa_rethrow_primary_exception @ 0x97fe1a
// > std::terminate @ 0x980196
// > __cxa_call_unexpected @ 0x980950
//
// 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
//
unsigned int std::get_terminate()
{
unsigned int result; // r0
__dmb(0xBu);
do
result = __ldrex((unsigned int *)&_cxa_terminate_handler);
while ( __strex(result, (unsigned int *)&_cxa_terminate_handler) );
__dmb(0xBu);
return result;
}