//
// sub_10060CF08 from 0x10060cf08 to 0x10060cf60 (88 bytes)
//
// 2 xrefs:
// > sub_100601140 @ 0x10060116c
// > sub_100601140 @ 0x10060118c
//
// 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_10060CF08(int a1)
{
__int64 v1; // x19
int v2; // w0
_DWORD v4[12]; // [xsp+0h] [xbp-40h] BYREF
v1 = (unsigned int)(a1 - 1);
if ( (unsigned int)v1 >= 9 )
{
v4[0] = a1;
v1 = 0xFFFFFFFFLL;
if ( qword_100884EA8 )
{
v2 = sub_1005DE730((int *)qword_100884EA8, (__int64)v4);
if ( v2 == -1 )
return 0xFFFFFFFFLL;
else
return (unsigned int)(v2 + 9);
}
}
return v1;
}