//
// sub_1006AE968 from 0x1006ae968 to 0x1006aea74 (268 bytes)
//
// 1 xrefs:
// > sub_10072BE7C @ 0x10072be88
//
// 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 11:11:48 +0000
//
char *__fastcall sub_1006AE968(const char *a1, __int64 a2, __int64 a3)
{
size_t v6; // x0
size_t v7; // x22
char *v8; // x0
char *v9; // x23
v6 = strlen(a1);
v7 = v6 + 1;
if ( (int)v6 + 1 < 1 )
return nullptr;
if ( (byte_100A0C770 & 1) == 0 )
byte_100A0C770 = 1;
if ( off_100A0C778 )
{
if ( (byte_100A0C771 & 1) == 0 )
byte_100A0C771 = 1;
((void (__fastcall *)(_QWORD, size_t, __int64, __int64, _QWORD))off_100A0C778)(0, v7, a2, a3, 0);
}
v8 = (char *)off_1009E6008((int)v7);
v9 = v8;
if ( off_100A0C778 )
((void (__fastcall *)(char *, size_t, __int64, __int64, __int64))off_100A0C778)(v8, v7, a2, a3, 1);
if ( (int)v7 < 2049 || !v9 )
{
if ( v9 )
goto LABEL_14;
return nullptr;
}
*v9 = byte_100A3B360;
LABEL_14:
strcpy(v9, a1);
return v9;
}