//
// sub_E7EC04 from 0xe7ec04 to 0xe7ec7c (120 bytes)
//
// 1 xrefs:
// > jinit_color_deconverter @ 0xe7f270
//
// 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:44 +0000
//
__int64 __fastcall sub_E7EC04(__int64 result, __int64 a2, unsigned int a3, _QWORD *a4, int a5)
{
int v5; // w11
unsigned int v6; // w7
unsigned int v7; // w4
__int64 v8; // x10
__int64 v9; // x8
_BYTE *i; // x5
char v11; // w6
v5 = *(_DWORD *)(result + 56);
v6 = *(_DWORD *)(result + 136);
if ( a5 > 0 )
{
v7 = a3 + a5;
do
{
if ( v5 > 0 )
{
v8 = 0;
do
{
result = 0;
v9 = *(_QWORD *)(*(_QWORD *)(a2 + 8 * v8) + 8LL * a3);
for ( i = (_BYTE *)(*a4 + v8); v6 > (unsigned int)result; i += v5 )
{
v11 = *(_BYTE *)(v9 + result++);
*i = v11;
}
++v8;
}
while ( v5 > (int)v8 );
}
++a3;
++a4;
}
while ( a3 != v7 );
}
return result;
}