//
// sub_100640710 from 0x100640710 to 0x1006407af (159 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 *__fastcall sub_100640710(__int64 *a1, char a2)
{
__int64 v4; // rsi
__int64 v5; // rcx
__int64 v6; // rdi
char v7; // r14
__int64 v8; // rax
const char *v9; // rcx
v4 = *a1;
if ( *a1 )
{
v5 = *(_QWORD *)v4 & 6LL;
if ( v5 != 2 )
{
v6 = *(_QWORD *)(v4 + 32);
if ( v6 )
{
while ( (*(_DWORD *)v6 & 6) != 2 )
{
v6 = *(_QWORD *)(v6 + 48);
if ( !v6 )
goto LABEL_6;
}
v4 = v6;
}
else
{
LABEL_6:
if ( v5 )
return a1;
v7 = a2;
v8 = sub_10063C200(v4, *(__int64 **)(*(_QWORD *)v4 & 0xFFFFFFFFFFFFFFE0LL), 3);
a2 = v7;
v4 = v8;
if ( !v8 )
return a1;
}
}
v9 = "false";
if ( a2 )
v9 = "true";
sub_10063B180((const char **)(v4 + 24), (__int64 *)v4, 8, v9);
}
return a1;
}