//
// sub_100649EA0 from 0x100649ea0 to 0x100649eef (79 bytes)
//
// 1 xrefs:
// > sub_100649B00 @ 0x100649cd3
//
// 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
//
char *__fastcall sub_100649EA0(char **a1, char **a2, __int64 a3)
{
char *v5; // rsi
size_t v6; // rdx
char *result; // rax
v5 = *a1;
if ( *a1 )
{
v6 = *a2 - v5;
if ( *a2 < v5 )
sub_1007CE010(a1, v5, v6);
memmove((void *)(v5 - a1[1]), v5, v6);
}
result = &(*a2)[a3];
*a2 = result;
*a1 = result;
a1[1] += a3;
return result;
}