//
// sub_8EADB0 from 0x8eadb0 to 0x8eae50 (160 bytes)
//
// 3 xrefs:
// > sub_8EB950 @ 0x8ebaa4
// > sub_8EB950 @ 0x8ebaa8
// > ??> @ 0x8ebbb4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:11 +0000
//
int __fastcall sub_8EADB0(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;
}