//
// sub_100164648 from 0x100164648 to 0x100164700 (184 bytes)
//
// 2 xrefs:
// > sub_10016456C @ 0x10016458c
// > sub_10016456C @ 0x100164628
//
// 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_100164648(_QWORD **a1, _QWORD **a2)
{
_QWORD *v4; // x0
_BOOL4 v5; // w20
_QWORD *v6; // x0
_BOOL4 v7; // w8
v4 = *a1;
if ( v4 )
{
if ( v4[3] != v4[4] )
{
v5 = 0;
goto LABEL_8;
}
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*v4 + 72LL))(v4) != -1 )
{
v5 = *a1 == nullptr;
goto LABEL_8;
}
*a1 = nullptr;
}
v5 = 1;
LABEL_8:
v6 = *a2;
if ( !*a2 )
goto LABEL_14;
if ( v6[3] == v6[4] )
{
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*v6 + 72LL))(v6) != -1 )
{
v7 = *a2 == nullptr;
return v5 ^ v7 ^ 1u;
}
*a2 = nullptr;
LABEL_14:
v7 = 1;
return v5 ^ v7 ^ 1u;
}
v7 = 0;
return v5 ^ v7 ^ 1u;
}