//
// sub_998938 from 0x998938 to 0x998966 (46 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_998938(int a1, int a2, unsigned int a3)
{
unsigned int i; // r3
int v5; // r0
for ( i = 0; i < a3; *(_DWORD *)(a1 + 4 * i++) = v5 )
{
v5 = *(_DWORD *)(a2 + 4 * i);
if ( !v5 )
break;
}
if ( i < a3 )
memset((void *)(a1 + 4 * i), 0, 4 * (a3 - i));
return a1;
}