//
// sub_87A2B4 from 0x87a2b4 to 0x87a30c (88 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:05 +0000
//
char *__fastcall sub_87A2B4(char *result, _DWORD *a2, int a3, int a4, int a5)
{
int v6; // r5
int v7; // r8
int v8; // r2
int v9; // r9
int v10; // r7
int i; // r6
int v12; // t1
_BYTE *v13; // r3
_BYTE *v14; // r10
char v15; // r4
v6 = *((_DWORD *)result + 19);
v7 = a5 - 1;
v8 = *((_DWORD *)result + 7);
if ( a5 - 1 >= 0 )
{
v9 = 4 * a4 - (_DWORD)a2;
do
{
if ( v6 > 0 )
{
v10 = a3 - 4;
for ( i = 0; i != v6; ++i )
{
v12 = *(_DWORD *)(v10 + 4);
v10 += 4;
v13 = *(_BYTE **)((char *)a2 + v9 + v12);
result = (char *)(*a2 + i);
v14 = &v13[v8];
if ( v8 )
{
do
{
v15 = *result;
result += v6;
*v13++ = v15;
}
while ( v13 != v14 );
}
}
}
--v7;
++a2;
}
while ( v7 != -1 );
}
return result;
}