//
// sub_8E8DE8 from 0x8e8de8 to 0x8e8e84 (156 bytes)
//
// 3 xrefs:
// > sub_8EB950 @ 0x8ebb04
// > sub_8EB950 @ 0x8ebb08
// > ??> @ 0x8ebbbc
//
// 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_8E8DE8(double a1, int a2)
{
__int16 v2; // r3
float v3; // s15
__int16 *v7; // [sp+10h] [bp-Ch]
float *i; // [sp+14h] [bp-8h]
v7 = *(__int16 **)(LODWORD(a1) + 12);
for ( i = (float *)HIDWORD(a1); a2-- > 0; ++i )
{
v2 = *v7++;
a1 = COERCE_DOUBLE(LogL16toY(v2));
v3 = a1;
*i = v3;
}
return LODWORD(a1);
}