//
// sub_1003AEC18 from 0x1003aec18 to 0x1003aec80 (104 bytes)
//
// 1 xrefs:
// > sub_1003AE978 @ 0x1003aeac4
//
// 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
//
_QWORD *__fastcall sub_1003AEC18(_QWORD *result, _QWORD *a2, __int64 a3)
{
_QWORD *v5; // x19
char *v6; // x1
__int64 v7; // x8
__int64 v8; // x9
v5 = result;
v6 = (char *)*result;
if ( *result )
{
if ( *a2 < (unsigned __int64)v6 )
sub_10062F710();
result = memmove(&v6[-result[1]], v6, *a2 - (_QWORD)v6);
}
v7 = *a2 + a3;
*a2 = v7;
v8 = v5[1] + a3;
*v5 = v7;
v5[1] = v8;
return result;
}