//
// std::get_unexpected from 0x9800c8 to 0x9800e4 (28 bytes)
//
// 4 xrefs:
// > __cxa_throw @ 0x97fa6e
// > __cxa_rethrow_primary_exception @ 0x97fe14
// > std::unexpected @ 0x980100
// > __cxa_call_unexpected @ 0x98095a
//
// 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_unexpected()
{
unsigned int result; // r0
__dmb(0xBu);
do
result = __ldrex((unsigned int *)&_cxa_unexpected_handler);
while ( __strex(result, (unsigned int *)&_cxa_unexpected_handler) );
__dmb(0xBu);
return result;
}