//
// sub_8E8FB8 from 0x8e8fb8 to 0x8e9060 (168 bytes)
//
// 3 xrefs:
// > sub_8EBBD0 @ 0x8ebd44
// > sub_8EBBD0 @ 0x8ebd48
// > ??> @ 0x8ebe4c
//
// 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_8E8FB8(int result, float *a2, int a3)
{
double v3; // d7
int v6; // [sp+Ch] [bp-10h]
_WORD *i; // [sp+10h] [bp-Ch]
v6 = result;
for ( i = *(_WORD **)(result + 12); a3-- > 0; ++i )
{
v3 = *a2++;
result = LogL16fromY(v3, *(_DWORD *)(v6 + 4));
*i = result;
}
return result;
}