//
// sub_855B80 from 0x855b80 to 0x855bd4 (84 bytes)
//
// 2 xrefs:
// > sub_82E5DC @ 0x82e690
// > sub_838AA4 @ 0x838b24
//
// 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:02:36 +0000
//
void __fastcall sub_855B80(int a1)
{
int v1; // r4
int v2; // r3
int v4; // r5
int v5; // r6
v2 = *(_DWORD *)(a1 + 34940);
if ( v2 )
{
if ( v2 > 0 )
v1 = 0;
if ( v2 <= 0 )
{
v4 = a1 + 34940;
}
else
{
v4 = a1 + 34940;
v5 = v1;
do
{
sub_84619C(*(_DWORD *)(*(_DWORD *)(v4 + 4) + 4 * v1));
*(_DWORD *)(*(_DWORD *)(v4 + 4) + 4 * v1++) = v5;
}
while ( v1 < *(_DWORD *)v4 );
}
off_D200B0(*(void **)(v4 + 4));
*(_DWORD *)(v4 + 4) = 0;
*(_DWORD *)(a1 + 34940) = 0;
}
}