//
// sub_886E50 from 0x886e50 to 0x886ee4 (148 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
//
int __fastcall sub_886E50(int result, _DWORD *a2, int a3, int *a4, int a5)
{
int v5; // r11
int v7; // r6
_BYTE *v8; // r4
int v9; // r7
int v10; // r5
int v11; // t1
int v12; // lr
int v13; // r7
int v14; // r5
_BYTE *v15; // r12
int v16; // r2
int v17; // t1
char v18; // r8
int v19; // [sp+4h] [bp-8h]
v5 = *(_DWORD *)(result + 112);
v7 = *(_DWORD *)(*(_DWORD *)(result + 480) + 24);
v19 = 4 * a3 - (_DWORD)a4;
while ( --a5 >= 0 )
{
while ( 1 )
{
v8 = *(_BYTE **)((char *)a4 + v19 + *a2);
result = *(int *)((char *)a4 + v19 + a2[1]);
v9 = *(int *)((char *)a4 + v19 + a2[2]);
v11 = *a4++;
v10 = v11;
if ( !v5 )
break;
v12 = result - 1;
v13 = v9 - 1;
v14 = v10 - 1;
v15 = &v8[v5];
do
{
v17 = *(unsigned __int8 *)++v12;
v16 = v17;
LOBYTE(v17) = *v8++;
v18 = v17;
LOBYTE(v17) = *(_BYTE *)++v13;
result = *(_DWORD *)(v7 + 4 * ((unsigned __int8)(v17 + v16 + 0x80) + 512));
*(_BYTE *)++v14 = (unsigned int)(*(_DWORD *)(v7 + 4 * (v16 + 256))
+ *(_DWORD *)(v7 + 4 * (unsigned __int8)(v18 + v16 + 0x80))
+ result) >> 16;
}
while ( v8 != v15 );
if ( --a5 < 0 )
return result;
}
}
return result;
}