//
// sub_EA4E4 from 0xea4e4 to 0xea544 (96 bytes)
//
// 2 xrefs:
// > sub_EA21C @ 0xea4ac
// > sub_EA4DC @ 0xea4e0
//
// 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:01 +0000
//
__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;
}