//
// __cxa_call_unexpected from 0xf897d8 to 0xf89b6c (916 bytes)
//
// 19 xrefs:
// > j___cxa_call_unexpected @ 0xf88388
// > j___cxa_call_unexpected_0 @ 0xf883a4
// > j___cxa_call_unexpected_1 @ 0xf884cc
// > j___cxa_call_unexpected_2 @ 0xf884d0
// > j___cxa_call_unexpected_3 @ 0xf88570
// > j___cxa_call_unexpected_4 @ 0xf8864c
// > j___cxa_call_unexpected_5 @ 0xf88650
// > j___cxa_call_unexpected_6 @ 0xf8869c
// > j___cxa_call_unexpected_7 @ 0xf886a0
// > j___cxa_call_unexpected_8 @ 0xf887e0
// > j___cxa_call_unexpected_9 @ 0xf88880
// > j___cxa_call_unexpected_10 @ 0xf8899c
// > sub_F889A0 @ 0xf88a04
// > j___cxa_call_unexpected_11 @ 0xf88a08
// > j___cxa_call_unexpected_12 @ 0xf88a30
// > j___cxa_call_unexpected_13 @ 0xf88a50
// > __cxa_thread_atexit @ 0xf89dcc
// > j___cxa_call_unexpected_14 @ 0xf89dd0
// > ??> @ 0xd2bf8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:55 +0000
//
void __noreturn _cxa_call_unexpected(void *a1)
{
void (*unexpected)(void); // x0
__int64 v3; // [xsp+28h] [xbp-78h]
if ( !a1 )
sub_F897AC(0, nullptr);
_cxa_begin_catch(a1);
if ( (*(_QWORD *)a1 & 0xFFFFFFFFFFFFFF00LL) == 0x434C4E47432B2B00LL )
{
unexpected = *((void (**)(void))a1 - 8);
v3 = *((_QWORD *)a1 - 3);
}
else
{
std::get_terminate();
unexpected = (void (*)(void))std::get_unexpected();
}
sub_F88D50(unexpected);
}