//
// sub_91F8EC from 0x91f8ec to 0x91f946 (90 bytes)
//
// 0 xrefs:
//
// 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:40 +0000
//
int *__fastcall sub_91F8EC(int *result, int a2, int a3, int a4, char a5, int a6)
{
int v6; // lr
int *v7; // r4
int v8; // t1
int v9; // r3
v6 = a4 - 1;
if ( a4 > 0 )
{
do
{
if ( a3 > 0 )
{
v7 = result;
do
{
v8 = *v7++;
v9 = (unsigned __int8)(BYTE2(v8) - ((unsigned int)(((__int16)v8 >> 8) * a5) >> 5));
++*(_DWORD *)(a6 + 4 * v9);
}
while ( &result[a3] != v7 );
}
--v6;
result += a2;
}
while ( v6 != -1 );
}
return result;
}