//
// __gnu_cxx::__verbose_terminate_handler from 0x779d50 to 0x779e4a (250 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __noreturn __gnu_cxx::__verbose_terminate_handler()
{
struct type_info *v0; // r0
_BYTE *v1; // r2
const char *v2; // r6
char *v3; // r8
int v4; // [sp+4h] [bp+4h] BYREF
if ( !byte_AD2CC8 )
{
byte_AD2CC8 = 1;
v0 = _cxa_current_exception_type();
if ( v0 )
{
v1 = *((_BYTE **)v0 + 1);
if ( *v1 == 42 )
v2 = v1 + 1;
else
v2 = *((const char **)v0 + 1);
v4 = -1;
v3 = _cxa_demangle(v2, nullptr, nullptr, &v4);
fwrite("terminate called after throwing an instance of '", 1u, 0x30u, (FILE *)((char *)&_sF + 168));
if ( v4 )
fputs(v2, (FILE *)((char *)&_sF + 168));
else
fputs(v3, (FILE *)((char *)&_sF + 168));
fwrite("'\n", 1u, 2u, (FILE *)((char *)&_sF + 168));
if ( !v4 )
free(v3);
_cxa_rethrow();
}
fwrite("terminate called without an active exception\n", 1u, 0x2Du, (FILE *)((char *)&_sF + 168));
abort();
}
fwrite("terminate called recursively\n", 1u, 0x1Du, (FILE *)((char *)&_sF + 168));
abort();
}