//
// sub_6DB1F0 from 0x6db1f0 to 0x6db290 (160 bytes)
//
// 3 xrefs:
// > sub_6DBD90 @ 0x6dbee4
// > sub_6DBD90 @ 0x6dbee8
// > ??> @ 0x6dbff4
//
// 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_6DB1F0(int result, int a2, int a3)
{
int v3; // r2
double v4; // r0
float v7[3]; // [sp+14h] [bp-18h] BYREF
int *v8; // [sp+20h] [bp-Ch]
int i; // [sp+24h] [bp-8h]
v8 = *(int **)(result + 12);
for ( i = a2; a3-- > 0; i += 3 )
{
v3 = *v8++;
LogLuv32toXYZ(v3, v7);
LODWORD(v4) = v7;
HIDWORD(v4) = i;
result = XYZtoRGB24(v4);
}
return result;
}