//
// sub_639EC from 0x639ec to 0x63aac (192 bytes)
//
// 1 xrefs:
// > sub_63AAC @ 0x63c5c
//
// 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
//
bool __fastcall sub_639EC(__int64 a1, __int64 a2)
{
__int64 v4; // x0
_QWORD *v5; // x22
int v6; // w21
_QWORD *v7; // x20
int v8; // w23
_QWORD *v9; // x20
_BOOL4 v10; // w19
v4 = sub_642EC(*(_QWORD *)(a1 + 64));
v5 = (_QWORD *)(a1 + 16);
v6 = 0;
v7 = (_QWORD *)(a1 + 16);
while ( 1 )
{
v7 = (_QWORD *)*v7;
if ( v7 == v5 )
break;
v4 = sub_8389C(v7, a2);
v6 += v4 & 1;
}
if ( v6 )
{
v8 = 0;
v9 = v5;
while ( 1 )
{
v9 = (_QWORD *)*v9;
if ( v9 == v5 )
break;
v4 = sub_838F0(v9, a2);
v8 += v4 & 1;
}
v10 = v8 == v6;
}
else
{
v10 = 0;
}
sub_642D8(v4);
return v10;
}