//
// sub_1006403B0 from 0x1006403b0 to 0x100640435 (133 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_1006403B0(__int64 *a1, const char *a2)
{
__int64 v3; // rsi
__int64 v4; // rcx
__int64 v5; // rdx
v3 = *a1;
if ( *a1 )
{
v4 = *(_QWORD *)v3 & 6LL;
if ( v4 == 2 )
goto LABEL_10;
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 )
{
v3 = sub_10063C200(v3, *(__int64 **)(*(_QWORD *)v3 & 0xFFFFFFFFFFFFFFE0LL), 3);
if ( v3 )
LABEL_10:
sub_10063B180((const char **)(v3 + 24), (__int64 *)v3, 8, a2);
}
}
return a1;
}