//
// sub_F8C094 from 0xf8c094 to 0xf8c1bc (296 bytes)
//
// 6 xrefs:
// > std::get_terminate @ 0xf88d80
// > std::get_terminate @ 0xf88d84
// > std::set_terminate @ 0xf8c208
// > std::set_terminate @ 0xf8c218
// > std::set_terminate @ 0xf8c21c
// > ??> @ 0x154d2d0
//
// 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:56 +0000
//
void __noreturn sub_F8C094()
{
_QWORD **globals_fast; // x0
_QWORD *v1; // x8
unsigned __int64 v2; // x9
_QWORD *v3; // x9
const char **v4; // x20
char *v5; // x19
const char *v6; // x20
const char *v7; // x0
char v8[8]; // [xsp+0h] [xbp-430h] BYREF
char out[1024]; // [xsp+Ch] [xbp-424h] BYREF
int status; // [xsp+40Ch] [xbp-24h] BYREF
_QWORD *v11; // [xsp+418h] [xbp-18h] BYREF
globals_fast = (_QWORD **)_cxa_get_globals_fast();
if ( !globals_fast || (v1 = *globals_fast) == nullptr )
sub_F8BF98("terminating");
v2 = v1[11];
if ( v2 >> 8 == 0x434C4E47432B2BLL )
{
if ( v2 == 0x434C4E47432B2B01LL )
v3 = (_QWORD *)*v1;
else
v3 = v1 + 15;
v11 = v3;
v4 = (const char **)v1[1];
*(_QWORD *)v8 = 1024;
v5 = _cxa_demangle(v4[1], out, (size_t *)v8, &status);
if ( status )
v5 = (char *)v4[1];
if ( ((unsigned __int8)sub_F8A3B4(&`typeinfo for'std::exception, v4, &v11) & 1) != 0 )
{
v6 = off_154D2E0;
v7 = (const char *)(*(__int64 (__fastcall **)(_QWORD *))(*v11 + 16LL))(v11);
sub_F8BF98("terminating with %s exception of type %s: %s", v6, v5, v7);
}
sub_F8BF98("terminating with %s exception of type %s", off_154D2E0, v5);
}
sub_F8BF98("terminating with %s foreign exception", off_154D2E0);
}