//
// sub_E8AA8 from 0xe8aa8 to 0xe8b38 (144 bytes)
//
// 2 xrefs:
// > sub_E8E78 @ 0xe8f34
// > sub_E8E78 @ 0xe8f40
//
// 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_E8AA8(__int64 a1, _DWORD *a2, _DWORD *a3)
{
__int64 result; // x0
if ( dword_156080 )
{
sub_E694C();
if ( (unsigned int)-dword_156080 >= 0x3E9 )
{
dword_156080 = 0;
*a3 = 1;
}
}
if ( !*a3 || (result = sub_E88F4(a1), !(_DWORD)result) )
{
*a2 = *(_DWORD *)(*(_QWORD *)a1 + 8884LL);
return 0;
}
return result;
}