//
// sub_6DB010 from 0x6db010 to 0x6db09c (140 bytes)
//
// 3 xrefs:
// > sub_6DBD90 @ 0x6dbebc
// > sub_6DBD90 @ 0x6dbec0
// > ??> @ 0x6dbfec
//
// 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
//
int __fastcall sub_6DB010(double a1, int a2)
{
int v2; // r3
int *v6; // [sp+10h] [bp-Ch]
float *i; // [sp+14h] [bp-8h]
v6 = *(int **)(LODWORD(a1) + 12);
for ( i = (float *)HIDWORD(a1); a2-- > 0; i += 3 )
{
v2 = *v6++;
a1 = LogLuv32toXYZ(v2, i);
}
return LODWORD(a1);
}