//
// sub_E6BAA0 from 0xe6baa0 to 0xe6bb1c (124 bytes)
//
// 1 xrefs:
// > jinit_color_converter @ 0xe6c920
//
// 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_E6BAA0(__int64 result, __int64 *a2, __int64 *a3, unsigned int a4, int a5)
{
int v5; // w4
unsigned int v6; // w9
__int64 i; // x7
__int64 v8; // x5
__int64 v9; // t1
__int64 v10; // x6
__int64 j; // x10
__int64 v12; // x0
v5 = a5 - 1;
v6 = *(_DWORD *)(result + 48);
for ( i = *(_QWORD *)(*(_QWORD *)(result + 536) + 16LL); v5 >= 0; ++a4 )
{
result = *a3;
v9 = *a2++;
v8 = v9;
v10 = 0;
for ( j = *(_QWORD *)(*a3 + 8LL * a4); v6 > (unsigned int)v10; ++v10 )
{
v12 = *(unsigned __int8 *)(v8 + 1);
v8 += 3;
result = (__int64)(*(_QWORD *)(i + 8LL * *(unsigned __int8 *)(v8 - 3))
+ *(_QWORD *)(i + 8 * (v12 + 256))
+ *(_QWORD *)(i + 8 * (*(unsigned __int8 *)(v8 - 1) + 512LL))) >> 16;
*(_BYTE *)(j + v10) = result;
}
--v5;
}
return result;
}