//
// sub_EC8A4 from 0xec8a4 to 0xec8e8 (68 bytes)
//
// 3 xrefs:
// > sub_EAE2C @ 0xeaf18
// > sub_EAF8C @ 0xebc34
// > sub_EAF8C @ 0xebd98
//
// 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:02 +0000
//
_QWORD *__fastcall sub_EC8A4(_QWORD *result, __int64 a2, __int64 a3)
{
__int64 v3; // x8
__int64 v4; // x10
__int64 v5; // x8
v3 = -((_DWORD)a2 + 16) & 0xFLL;
if ( (((int)a2 + 16) & 0xFLL) == 0 )
v3 = 0;
v4 = a2 + v3;
v5 = a3 - v3;
result[2] = v5;
result[5] = v4;
*(_QWORD *)(v4 + 8) = v5 | 1;
*(_QWORD *)(a2 + a3 + 8) = 80;
result[6] = result[117];
return result;
}