//
// sub_100009AD4 from 0x100009ad4 to 0x100009ba4 (208 bytes)
//
// 1 xrefs:
// > sub_100009A40 @ 0x100009aac
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:57:13 +0000
//
unsigned __int64 __fastcall sub_100009AD4(unsigned __int64 *a1, int a2, int a3, void *__src, size_t __len)
{
unsigned int v5; // w21
__int64 v8; // x23
unsigned __int64 v9; // x24
unsigned __int64 v10; // x22
unsigned __int64 v11; // x8
unsigned __int64 v12; // x20
v5 = __len;
if ( a2 <= -2 )
return sub_100009C3C(a1);
v8 = (unsigned int)(__len + a2);
v9 = *a1;
v10 = *a1 + v8;
if ( a1[1] < v10 )
sub_100009ED4(a1);
*a1 = v10;
v11 = a1[2];
v12 = v11 + v9;
if ( v5 )
memmove((void *)(v11 + v9), __src, v5);
return v12 + v8 - 1;
}