//
// sub_959E4 from 0x959e4 to 0x95a36 (82 bytes)
//
// 1 xrefs:
// > sub_95948 @ 0x959be
//
// 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 11:41:28 +0000
//
int __fastcall sub_959E4(_DWORD *a1, int a2, _DWORD *a3)
{
int v4; // r0
int result; // r0
int v8; // r0
if ( a2 < 0 )
return 28;
v4 = a1[1];
if ( v4 < a2 )
return 28;
result = sub_967E2(a1, v4 + 1);
if ( !result )
{
v8 = a1[1];
if ( v8 - a2 >= 1 )
memmove((void *)(*a1 + 4 * a2 + 4), (const void *)(*a1 + 4 * a2), 4 * (v8 - a2));
*(_DWORD *)(*a1 + 4 * a2) = *a3;
++a1[1];
return 0;
}
return result;
}