//
// sub_100649F30 from 0x100649f30 to 0x100649fe4 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x100985f70
//
// 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_100649F30(char *a1)
{
char *result; // rax
char *v2; // rdi
__int64 v3; // rcx
_BYTE *v4; // rsi
unsigned __int64 v5; // r15
char *v6; // r14
void *__src[2]; // [rsp+0h] [rbp-30h] BYREF
result = a1;
*(_OWORD *)__src = 0;
while ( 1 )
{
while ( 1 )
{
do
{
v2 = result;
v3 = (unsigned __int8)*result++;
}
while ( (a7_0[v3] & 1) == 0 );
if ( (_DWORD)v3 != 38 )
break;
result = sub_100649B00(v2, (const void **)__src);
}
if ( !(_DWORD)v3 )
break;
if ( (_DWORD)v3 == 60 )
{
v4 = __src[0];
if ( !__src[0] )
goto LABEL_13;
if ( __src[0] > v2 )
sub_1007CE070();
goto LABEL_12;
}
}
v4 = __src[0];
result = v2;
if ( !__src[0] )
goto LABEL_13;
if ( __src[0] > v2 )
sub_1007CE040();
LABEL_12:
v5 = (unsigned __int64)__src[1];
v6 = result;
memmove((void *)(v4 - (char *)__src[1]), v4, v2 - v4);
result = v6;
v2 -= v5;
LABEL_13:
*v2 = 0;
return result;
}