//
// sub_E8AA8 from 0xe8aa8 to 0xe8b38 (144 bytes)
//
// 2 xrefs:
// > sub_E8E78 @ 0xe8f34
// > sub_E8E78 @ 0xe8f40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:00 +0000
//
__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;
}