//
// sub_4E9C0 from 0x4e9c0 to 0x4e9f0 (48 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_4E9C0(int a1, signed int a2, int *a3, const void *a4, size_t a5)
{
int v6; // r2
v6 = *a3;
if ( (int)(v6 + a5) > a2 )
return 31;
qmemcpy((void *)(a1 + v6), a4, a5);
*a3 += a5;
return 0;
}