//
// sub_8E0C90 from 0x8e0c90 to 0x8e0e58 (456 bytes)
//
// 3 xrefs:
// > sub_8E6108 @ 0x8e62f8
// > sub_8E6108 @ 0x8e62fc
// > ??> @ 0x8e6408
//
// 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
//
void __fastcall sub_8E0C90(
int a1,
unsigned 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-20h]
unsigned int v16; // [sp+10h] [bp-14h]
unsigned int v17; // [sp+14h] [bp-10h]
unsigned int v18; // [sp+18h] [bp-Ch]
int v19; // [sp+1Ch] [bp-8h]
while ( a6-- != 0 )
{
v14 = a5;
while ( v14-- != 0 )
{
v19 = 255 - *a12++;
v16 = v19 * (255 - (unsigned int)*a9++) / 0xFF;
v17 = v19 * (255 - (unsigned int)*a10++) / 0xFF;
v18 = v19 * (255 - (unsigned int)*a11++) / 0xFF;
*a2++ = (v17 << 8) | v16 | (v18 << 16) | 0xFF000000;
}
a9 += a7;
a10 += a7;
a11 += a7;
a12 += a7;
a2 += a8;
}
}