//
// sub_ECD54C from 0xecd54c to 0xecd59c (80 bytes)
//
// 2 xrefs:
// > sub_ECC314 @ 0xecc5c8
// > sub_ECC314 @ 0xecc5d0
//
// 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
//
float __fastcall sub_ECD54C(__int64 a1, float *a2, __int64 a3)
{
int *v4; // x21
__int64 v5; // x19
int v6; // t1
float *v7; // x1
float result; // s0
v4 = *(int **)(a1 + 16);
v5 = a3 - 1;
if ( a3 > 0 )
{
do
{
v6 = *v4++;
v7 = a2;
--v5;
a2 += 3;
result = LogLuv32toXYZ(v6, v7);
}
while ( v5 != -1 );
}
return result;
}