//
// sub_C57560 from 0xc57560 to 0xc575b8 (88 bytes)
//
// 2 xrefs:
// > sub_C55E2C @ 0xc56108
// > sub_C55E2C @ 0xc56110
//
// 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
//
__int64 __fastcall sub_C57560(__int64 result, float *a2, __int64 a3)
{
__int64 v4; // x22
__int64 v5; // x19
_DWORD *v6; // x21
float *v7; // x0
v4 = result;
v5 = a3 - 1;
v6 = *(_DWORD **)(result + 16);
if ( a3 > 0 )
{
do
{
v7 = a2;
--v5;
a2 += 3;
result = LogLuv32fromXYZ(v7, *(_DWORD *)(v4 + 4));
*v6++ = result;
}
while ( v5 != -1 );
}
return result;
}