//
// sub_EA4E4 from 0xea4e4 to 0xea544 (96 bytes)
//
// 2 xrefs:
// > sub_EA21C @ 0xea4ac
// > sub_EA4DC @ 0xea4e0
//
// 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_EA4E4(__int64 a1)
{
__int64 result; // x0
result = (***(__int64 (__fastcall ****)(_QWORD, _QWORD, _QWORD))(a1 + 1552))(
*(_QWORD *)(a1 + 1552),
*(_QWORD *)(a1 + 1576) + *(unsigned int *)(a1 + 1560),
*(unsigned int *)(a1 + 1568));
if ( (_DWORD)result )
return 28;
*(_DWORD *)(a1 + 1560) = (unsigned int)(*(_DWORD *)(a1 + 1560) + *(_DWORD *)(a1 + 1568)) % *(_DWORD *)(a1 + 1572);
return result;
}