//
// sub_E8A884 from 0xe8a884 to 0xe8a8d8 (84 bytes)
//
// 2 xrefs:
// > jinit_merged_upsampler @ 0xe8ada0
// > jinit_merged_upsampler @ 0xe8ada8
//
// 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 13:10:52 +0000
//
__int64 __fastcall sub_E8A884(__int64 a1, __int64 a2, _DWORD *a3, __int64 a4, __int64 a5, _DWORD *a6)
{
__int64 result; // x0
(*(void (__fastcall **)(__int64, __int64, _QWORD, __int64))(*(_QWORD *)(a1 + 640) + 24LL))(
a1,
a2,
(unsigned int)*a3,
a5 + 8LL * (unsigned int)*a6);
++*a6;
result = (unsigned int)(*a3 + 1);
*a3 = result;
return result;
}