//
// sub_1003AE928 from 0x1003ae928 to 0x1003ae978 (80 bytes)
//
// 22 xrefs:
// > sub_1003AD50C @ 0x1003adea4
// > sub_1003AE210 @ 0x1003ae25c
// > sub_1003AE278 @ 0x1003ae2e4
// > sub_1003AE30C @ 0x1003ae3b0
// > sub_1003AE3E0 @ 0x1003ae4a0
// > sub_1003AE4D0 @ 0x1003ae578
// > sub_1003AE5A8 @ 0x1003ae66c
// > sub_1003AE69C @ 0x1003ae78c
// > sub_1003AE7D4 @ 0x1003ae8e0
// > sub_1003AEC80 @ 0x1003aecc8
// > sub_1003AECE4 @ 0x1003aed4c
// > sub_1003AED68 @ 0x1003aee0c
// > sub_1003AEE34 @ 0x1003aef00
// > sub_1003AEF28 @ 0x1003aef74
// > sub_1003AEF28 @ 0x1003aefa4
// > sub_1003AEFE0 @ 0x1003af048
// > sub_1003AEFE0 @ 0x1003af074
// > sub_1003AF0B4 @ 0x1003af158
// > sub_1003AF0B4 @ 0x1003af188
// > sub_1003AF1CC @ 0x1003af294
// > sub_1003AF1CC @ 0x1003af2c0
// > sub_1003AF308 @ 0x1003af3e0
//
// 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
//
unsigned __int64 __fastcall sub_1003AE928(char **a1, unsigned __int64 a2)
{
char *v3; // x1
v3 = *a1;
if ( *a1 )
{
if ( (unsigned __int64)v3 > a2 )
sub_10062F784();
memmove((void *)(v3 - a1[1]), v3, a2 - (_QWORD)v3);
a2 -= (unsigned __int64)a1[1];
}
return a2;
}