//
// sub_8EA4A0 from 0x8ea4a0 to 0x8ea538 (152 bytes)
//
// 3 xrefs:
// > sub_8EBBD0 @ 0x8ebc74
// > sub_8EBBD0 @ 0x8ebc78
// > ??> @ 0x8ebe34
//
// 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_8EA4A0(int result, float *a2, int a3)
{
int v5; // [sp+Ch] [bp-10h]
int *i; // [sp+10h] [bp-Ch]
v5 = result;
for ( i = *(int **)(result + 12); a3-- > 0; ++i )
{
result = LogLuv24fromXYZ(a2, *(_DWORD *)(v5 + 4));
*i = result;
a2 += 3;
}
return result;
}