//
// sub_E9E0F8 from 0xe9e0f8 to 0xe9e178 (128 bytes)
//
// 1 xrefs:
// > sub_E9E288 @ 0xe9e68c
//
// 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:11:05 +0000
//
__int64 *__fastcall sub_E9E0F8(__int64 a1, __int64 a2, __int64 a3, int a4)
{
int v4; // w14
__int64 *result; // x0
__int64 v6; // x9
__int64 v7; // x10
__int64 v8; // x11
__int64 v9; // x12
_BYTE *v10; // x5
__int64 *v11; // x8
__int64 v12; // x4
v4 = *(_DWORD *)(a1 + 136);
result = *(__int64 **)(*(_QWORD *)(a1 + 656) + 48LL);
v6 = *result;
v7 = result[1];
v8 = result[2];
if ( a4 > 0 )
{
v9 = 0;
do
{
result = *(__int64 **)(a2 + 8 * v9);
v10 = *(_BYTE **)(a3 + 8 * v9);
v11 = (__int64 *)((char *)result + 3 * (unsigned int)(v4 - 1) + 3);
if ( v4 )
{
do
{
v12 = *(unsigned __int8 *)result;
result = (__int64 *)((char *)result + 3);
*v10++ = *(_BYTE *)(v8 + *((unsigned __int8 *)result - 1))
+ *(_BYTE *)(v7 + *((unsigned __int8 *)result - 2))
+ *(_BYTE *)(v6 + v12);
}
while ( result != v11 );
}
++v9;
}
while ( a4 > (int)v9 );
}
return result;
}