//
// sub_8871F8 from 0x8871f8 to 0x887252 (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:03:14 +0000
//
char *__fastcall sub_8871F8(char *result, int a2, int a3, _DWORD *a4, int a5)
{
int v6; // r5
int v7; // r9
int v8; // r3
int v9; // r10
int v10; // lr
int i; // r7
int v12; // t1
_BYTE *v13; // r2
char *v14; // r6
char v15; // t1
v6 = *((_DWORD *)result + 9);
v7 = a5 - 1;
v8 = *((_DWORD *)result + 28);
if ( a5 - 1 >= 0 )
{
v9 = 4 * a3 - (_DWORD)a4;
do
{
if ( v6 > 0 )
{
v10 = a2 - 4;
for ( i = 0; i != v6; ++i )
{
v12 = *(_DWORD *)(v10 + 4);
v10 += 4;
result = *(char **)((char *)a4 + v9 + v12);
v13 = (_BYTE *)(*a4 + i);
v14 = &result[v8];
if ( v8 )
{
do
{
v15 = *result++;
*v13 = v15;
v13 += v6;
}
while ( result != v14 );
}
}
}
--v7;
++a4;
}
while ( v7 != -1 );
}
return result;
}