//
// sub_CFAC44 from 0xcfac44 to 0xcfacb4 (112 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_CFAC44(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x1
bool v4; // zf
if ( !*(_DWORD *)a1 && a1 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
return *(_QWORD *)(a1 + 24);
result = *(_QWORD *)(a1 + 16);
if ( result )
{
while ( *(_QWORD *)(result + 24) )
result = *(_QWORD *)(result + 24);
}
else
{
v3 = *(_QWORD *)(a1 + 8);
if ( a1 == *(_QWORD *)(v3 + 16) )
{
do
{
result = *(_QWORD *)(v3 + 8);
v4 = *(_QWORD *)(result + 16) == v3;
v3 = result;
}
while ( v4 );
}
else
{
return *(_QWORD *)(a1 + 8);
}
}
return result;
}