//
// sub_C570B4 from 0xc570b4 to 0xc57104 (80 bytes)
//
// 2 xrefs:
// > sub_C56154 @ 0xc56304
// > sub_C56154 @ 0xc5630c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float __fastcall sub_C570B4(__int64 a1, float *a2, __int64 a3)
{
unsigned int *v4; // x21
__int64 v5; // x19
unsigned int v6; // t1
float *v7; // x1
float result; // s0
v4 = *(unsigned int **)(a1 + 16);
v5 = a3 - 1;
if ( a3 > 0 )
{
do
{
v6 = *v4++;
v7 = a2;
--v5;
a2 += 3;
result = LogLuv24toXYZ(v6, v7);
}
while ( v5 != -1 );
}
return result;
}