//
// sub_8ACE28 from 0x8ace28 to 0x8ace8c (100 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:03:51 +0000
//
_DWORD *__fastcall sub_8ACE28(_DWORD *result, unsigned __int8 **a2, int a3, int a4)
{
int v4; // r9
int v5; // r6
int v6; // lr
int v7; // r8
unsigned __int8 **v8; // r10
unsigned __int8 **v9; // r12
unsigned __int8 *v10; // r3
unsigned __int8 *v11; // t1
_BYTE *v12; // r5
_BYTE *v13; // t1
_BYTE *v14; // r11
int v15; // r1
unsigned __int8 *v16; // r4
char v17; // r2
int v18; // r0
int v19; // t1
int v20; // t1
v4 = result[28];
v5 = result[30];
v6 = *(_DWORD *)(result[121] + 24);
if ( a4 > 0 )
{
v7 = a3 - 4;
v8 = &a2[a4];
v9 = a2;
do
{
v11 = *v9++;
v10 = v11;
v13 = *(_BYTE **)(v7 + 4);
v7 += 4;
v12 = v13;
if ( v4 )
{
v14 = &v12[v4];
do
{
if ( v5 <= 0 )
{
v17 = 0;
}
else
{
v15 = v6 - 4;
v16 = &v10[v5];
v17 = 0;
do
{
v19 = *v10++;
v18 = v19;
v20 = *(_DWORD *)(v15 + 4);
v15 += 4;
result = (_DWORD *)*(unsigned __int8 *)(v20 + v18);
v17 += (char)result;
}
while ( v10 != v16 );
}
*v12++ = v17;
}
while ( v12 != v14 );
}
}
while ( v9 != v8 );
}
return result;
}