//
// sub_10060D070 from 0x10060d070 to 0x10060d120 (176 bytes)
//
// 2 xrefs:
// > sub_1005834D0 @ 0x1005858fc
// > sub_100601580 @ 0x1006015a0
//
// 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_10060D070(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x0
__int64 result; // x0
__int64 v7; // x1
__int64 v8; // x8
v4 = sub_1005FEF60(a1);
v5 = sub_1005FEEB0(a2);
if ( (unsigned int)sub_1005FECC8(v4, v5) )
return 29;
sub_10060C8E8(a1);
sub_10060C8E8(a2);
v7 = *(_QWORD *)(a2 + 112);
if ( !v7 || (result = sub_10060D120(a1, v7), !(_DWORD)result) )
{
v8 = *(_QWORD *)(a1 + 72) & 2LL;
if ( (*(_BYTE *)(a2 + 73) & 4) != 0 )
{
if ( v8 && (*(_BYTE *)(a1 + 80) & 0x80) == 0 )
return 39;
}
else if ( v8 && (*(_BYTE *)(a1 + 80) & 4) == 0 )
{
return 32;
}
return 0;
}
return result;
}