//
// sub_100640100 from 0x100640100 to 0x1006401a4 (164 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
//
char __fastcall sub_100640100(__int64 *a1, char a2)
{
__int64 v3; // rsi
__int64 v4; // rcx
__int64 v5; // rdi
char v7; // bl
__int64 v8; // rax
const char *v9; // rcx
v3 = *a1;
if ( !*a1 )
return 0;
v4 = *(_QWORD *)v3 & 6LL;
if ( v4 != 2 )
{
v5 = *(_QWORD *)(v3 + 32);
if ( v5 )
{
while ( (*(_DWORD *)v5 & 6) != 2 )
{
v5 = *(_QWORD *)(v5 + 48);
if ( !v5 )
goto LABEL_6;
}
v3 = v5;
goto LABEL_10;
}
LABEL_6:
if ( v4 )
return 0;
v7 = a2;
v8 = sub_10063C200(v3, *(__int64 **)(*(_QWORD *)v3 & 0xFFFFFFFFFFFFFFE0LL), 3);
a2 = v7;
v3 = v8;
if ( !v8 )
return 0;
}
LABEL_10:
v9 = "false";
if ( a2 )
v9 = "true";
return sub_10063B180((const char **)(v3 + 24), (__int64 *)v3, 8, v9);
}