//
// sub_99872E from 0x99872e to 0x998762 (52 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:06:42 +0000
//
int __fastcall sub_99872E(int a1, int a2, unsigned int a3)
{
unsigned int i; // r2
int v6; // r0
for ( i = 0; i < a3; ++i )
{
v6 = *(_DWORD *)(a2 + 4 * i);
*(_DWORD *)(a1 + 4 * i) = v6;
if ( !v6 )
break;
}
if ( i < a3 )
memset((void *)(a1 + 4 * i), 0, 4 * (a3 - i));
return a1 + 4 * a3 - 4;
}