//
// sub_E6C120 from 0xe6c120 to 0xe6c170 (80 bytes)
//
// 1 xrefs:
// > jinit_color_converter @ 0xe6c930
//
// 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:34 +0000
//
__int64 __fastcall sub_E6C120(__int64 result, char **a2, _QWORD *a3, unsigned int a4, int a5)
{
int v5; // w4
unsigned int v6; // w6
__int64 i; // x8
unsigned int v8; // w9
char *v9; // x5
char *v10; // t1
__int64 j; // x7
char v12; // w3
v5 = a5 - 1;
v6 = *(_DWORD *)(result + 48);
for ( i = *(int *)(result + 56); v5 >= 0; a4 = v8 )
{
v8 = a4 + 1;
v10 = *a2++;
v9 = v10;
result = 0;
for ( j = *(_QWORD *)(*a3 + 8LL * a4); v6 > (unsigned int)result; ++result )
{
v12 = *v9;
v9 += i;
*(_BYTE *)(j + result) = v12;
}
--v5;
}
return result;
}