//
// sub_ECD4E0 from 0xecd4e0 to 0xecd54c (108 bytes)
//
// 2 xrefs:
// > sub_ECC314 @ 0xecc5ec
// > sub_ECC314 @ 0xecc5f4
//
// 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:38 +0000
//
__int64 __fastcall sub_ECD4E0(__int64 result, char *a2, __int64 a3)
{
__int64 v5; // x23
__int64 v6; // x19
int v7; // w0
char *v8; // x1
float v9[4]; // [xsp+40h] [xbp+40h] BYREF
v5 = *(_QWORD *)(result + 16);
if ( a3 > 0 )
{
v6 = 0;
do
{
v7 = *(_DWORD *)(v5 + 4 * v6++);
LogLuv32toXYZ(v7, v9);
v8 = a2;
a2 += 3;
result = XYZtoRGB24(v9, v8);
}
while ( v6 != a3 );
}
return result;
}