//
// sub_10060FEC0 from 0x10060fec0 to 0x10060ff64 (164 bytes)
//
// 1 xrefs:
// > sub_1006102F4 @ 0x10061068c
//
// 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_10060FEC0(__int64 a1, __int64 *a2, __int64 a3)
{
__int64 v4; // x21
__int64 v5; // x20
__int64 v6; // x0
v4 = *a2;
if ( (*(_BYTE *)(a1 + 25) & 4) != 0 || (*(_BYTE *)v4 & 3) == 0 )
return (unsigned int)sub_10058C008(*(_QWORD *)(v4 + 8), a3) == 0;
v5 = 0;
if ( (int)sub_1005DEA4C(*(unsigned int **)(v4 + 24)) > 0 )
{
while ( 1 )
{
v6 = sub_1005DEA60(*(_QWORD *)(v4 + 24), v5);
if ( !(unsigned int)sub_10058C008(v6, a3) )
break;
LODWORD(v5) = v5 + 1;
if ( (int)v5 >= (int)sub_1005DEA4C(*(unsigned int **)(v4 + 24)) )
return 0;
}
return 1;
}
return v5;
}