//
// std::current_exception from 0xd1f220 to 0xd1f29c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x3ffa8
//
// 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
//
unsigned int **__usercall std::current_exception@(unsigned int **a1@)
{
__int64 v2; // x2
__int64 v3; // x3
unsigned int *v4; // x1
v2 = *(_QWORD *)_cxa_get_globals();
if ( v2 && (v3 = *(_QWORD *)(v2 + 80), (unsigned __int64)(v3 - 0x474E5543432B2B00LL) <= 1) )
{
v4 = (unsigned int *)(v2 + 112);
if ( (v3 & 1) != 0 )
v4 = *(unsigned int **)v2;
std::__exception_ptr::exception_ptr::exception_ptr(a1, v4);
return a1;
}
else
{
std::__exception_ptr::exception_ptr::exception_ptr(a1);
return a1;
}
}