//
// sub_E8B450 from 0xe8b450 to 0xe8b510 (192 bytes)
//
// 2 xrefs:
// > _Unwind_RaiseException @ 0xe8b7f0
// > _Unwind_Resume @ 0xe8b9d4
//
// 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
//
__int64 __fastcall sub_E8B450(_QWORD *a1, __int64 *a2)
{
int v4; // w24
int v5; // w22
__int64 result; // x0
__int64 v7[202]; // [xsp+40h] [xbp+40h] BYREF
__int64 (__fastcall *v8)(__int64, _QWORD, _QWORD, _QWORD *, __int64 *); // [xsp+690h] [xbp+690h]
while ( 1 )
{
v4 = sub_E8A744(a2, (char *)v7);
v5 = Unwind_GetCFA((__int64)a2) - ((unsigned __int64)a2[104] >> 63) == a1[3] ? 4 : 0;
if ( v4 )
break;
if ( v8 )
{
result = v8(1, v5 | 2u, *a1, a1, a2);
if ( (_DWORD)result == 7 )
return result;
if ( (_DWORD)result != 8 )
break;
}
if ( v5 )
abort();
sub_E8B404(a2, v7);
}
return 2;
}