//
// _Unwind_SetGR from 0xe8a110 to 0xe8a168 (88 bytes)
//
// 3 xrefs:
// > __gxx_personality_v0 @ 0xccc790
// > __gxx_personality_v0 @ 0xccc7a0
// > ??> @ 0xb11e0
//
// 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
//
_QWORD *__fastcall Unwind_SetGR(_QWORD *result, int a2, __int64 a3)
{
if ( a2 > 97 )
LABEL_2:
abort();
if ( (result[104] & 0x4000000000000000LL) != 0 && *((_BYTE *)result + a2 + 856) )
{
result[a2] = a3;
}
else
{
result = (_QWORD *)result[a2];
if ( byte_125FE30[a2] != 8 )
goto LABEL_2;
*result = a3;
}
return result;
}