//
// sub_8E0E58 from 0x8e0e58 to 0x8e100c (436 bytes)
//
// 3 xrefs:
// > sub_8E6108 @ 0x8e61f4
// > sub_8E6108 @ 0x8e61f8
// > ??> @ 0x8e63f4
//
// 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:09 +0000
//
int __fastcall sub_8E0E58(
int result,
int *a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
unsigned __int8 *a9,
unsigned __int8 *a10,
unsigned __int8 *a11,
unsigned __int8 *a12)
{
int v14; // [sp+4h] [bp-28h]
int v16; // [sp+14h] [bp-18h]
int v17; // [sp+18h] [bp-14h]
int v18; // [sp+1Ch] [bp-10h]
int v19; // [sp+20h] [bp-Ch]
int v20; // [sp+24h] [bp-8h]
while ( a6-- != 0 )
{
v14 = a5;
while ( v14-- != 0 )
{
v19 = *a12++;
v20 = *(_DWORD *)(result + 76) + (v19 << 8);
v16 = *(unsigned __int8 *)(v20 + *a9++);
v17 = *(unsigned __int8 *)(v20 + *a10++);
v18 = *(unsigned __int8 *)(v20 + *a11++);
*a2++ = (v17 << 8) | v16 | (v18 << 16) | (v19 << 24);
}
a9 += a7;
a10 += a7;
a11 += a7;
a12 += a7;
a2 += a8;
}
return result;
}