//
// sub_1006A67C8 from 0x1006a67c8 to 0x1006a68e8 (288 bytes)
//
// 2 xrefs:
// > sub_1006A6294 @ 0x1006a6600
// > sub_1006A68E8 @ 0x1006a6ac4
//
// 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:42 +0000
//
__int64 __fastcall sub_1006A67C8(__int64 a1, char *__s, const char *a3, _QWORD *a4, _QWORD *a5)
{
size_t v10; // x27
size_t v11; // x26
__int64 v12; // x28
char *v13; // x0
char *v14; // x23
__int64 v15; // x19
v10 = strlen(__s);
v11 = strlen(a3);
v12 = 2 * v10;
v13 = (char *)off_1009E5FD0(v11 + 2 * v10 + 2);
v14 = v13;
if ( v13 )
{
memcpy(v13, __s, v10);
v14[v10] = 0;
memcpy(&v14[v10 + 1], __s, v10);
v14[v12 | 1] = 0;
memcpy(&v14[v12 + 2], a3, v11);
v15 = sub_10066F410(a1, v14);
off_1009E5FD8(v14);
return v15;
}
else
{
*a5 = 0;
*a4 = 0;
return 27;
}
}