//
// sub_10004F66C from 0x10004f66c to 0x10004f6f8 (140 bytes)
//
// 2 xrefs:
// > GameToolbox::pointsToString @ 0x10004f548
// > sub_1004A1D10 @ 0x1004a1d90
//
// 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:42 +0000
//
__int64 __usercall sub_10004F66C@(char a1@, const void **a2@, __int64 a3@)
{
size_t v5; // x19
__int64 result; // x0
_BYTE *v7; // x21
void *v8; // x21
const void *v9; // x1
if ( *((char *)a2 + 23) >= 0 )
v5 = *((unsigned __int8 *)a2 + 23);
else
v5 = (size_t)a2[1];
result = sub_100026068(a3, v5 + 1);
if ( *(char *)(result + 23) >= 0 )
v7 = (_BYTE *)result;
else
v7 = *(_BYTE **)result;
*v7 = a1;
v8 = v7 + 1;
if ( v5 )
{
if ( *((char *)a2 + 23) >= 0 )
v9 = a2;
else
v9 = *a2;
result = (__int64)memmove(v8, v9, v5);
}
*((_BYTE *)v8 + v5) = 0;
return result;
}