//
// __cxa_call_unexpected from 0x9808f8 to 0x980ab0 (440 bytes)
//
// 8 xrefs:
// > ??> @ 0x97fa24
// > ??> @ 0x97fa34
// > ??> @ 0x97fb36
// > ??> @ 0x97fc08
// > ??> @ 0x97fcc6
// > ??> @ 0x97fde0
// > ??> @ 0x97fea2
// > __cxa_thread_atexit @ 0x980cf6
//
// 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:07 +0000
//
void __noreturn _cxa_call_unexpected(void *a1)
{
__int64 v2; // r0
void (*unexpected)(void); // r0
if ( !a1 )
sub_98084C(0, nullptr);
_cxa_begin_catch(a1);
LODWORD(v2) = *((_DWORD *)a1 + 1) ^ 0x434C4E47;
HIDWORD(v2) = *(_DWORD *)a1 & 0xFFFFFF00 ^ 0x432B2B00;
if ( v2 )
{
std::get_terminate();
unexpected = (void (*)(void))std::get_unexpected();
}
else
{
unexpected = *((void (**)(void))a1 - 7);
}
sub_9800E8(unexpected);
}