//
// sub_70FD2C from 0x70fd2c to 0x70fd86 (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int *__fastcall sub_70FD2C(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;
}