//
// sub_10060CFB8 from 0x10060cfb8 to 0x10060d070 (184 bytes)
//
// 1 xrefs:
// > sub_1005FFA90 @ 0x100600284
//
// 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_10060CFB8(__int64 a1)
{
__int64 v2; // x8
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 72);
if ( (v2 & 0x100) == 0 )
{
sub_100588190(9, 3, (__int64)"v3_purp.c", 581);
sub_10060C8E8(a1);
sub_100588190(10, 3, (__int64)"v3_purp.c", 583);
v2 = *(_QWORD *)(a1 + 72);
}
if ( (v2 & 2) != 0 && (*(_BYTE *)(a1 + 80) & 4) == 0 )
return 0;
if ( (v2 & 1) != 0 )
return ((unsigned int)v2 >> 4) & 1;
if ( (v2 & 0x2040) == 0x2040 )
result = 3;
else
result = 4;
if ( (v2 & 0x2040) != 0x2040 && (v2 & 2) == 0 )
{
if ( (v2 & 8) != 0 && (*(_BYTE *)(a1 + 96) & 7) != 0 )
return 5;
return 0;
}
return result;
}