//
// sub_6DA840 from 0x6da840 to 0x6da8e0 (160 bytes)
//
// 3 xrefs:
// > sub_6DBD90 @ 0x6dbe78
// > sub_6DBD90 @ 0x6dbe7c
// > ??> @ 0x6dbfe4
//
// 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_6DA840(int result, int a2, int a3)
{
unsigned int v3; // r2
double v4; // r0
float v7[3]; // [sp+14h] [bp-18h] BYREF
unsigned int *v8; // [sp+20h] [bp-Ch]
int i; // [sp+24h] [bp-8h]
v8 = *(unsigned int **)(result + 12);
for ( i = a2; a3-- > 0; i += 3 )
{
v3 = *v8++;
LogLuv24toXYZ(v3, v7);
LODWORD(v4) = v7;
HIDWORD(v4) = i;
result = XYZtoRGB24(v4);
}
return result;
}