//
// sub_10060491C from 0x10060491c to 0x100604974 (88 bytes)
//
// 1 xrefs:
// > sub_100601140 @ 0x1006011ac
//
// 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_10060491C(int a1)
{
__int64 v1; // x19
int v2; // w0
_DWORD v4[10]; // [xsp+8h] [xbp-38h] BYREF
v1 = (unsigned int)(a1 - 1);
if ( (unsigned int)v1 >= 8 )
{
v4[0] = a1;
v1 = 0xFFFFFFFFLL;
if ( qword_100884E58 )
{
v2 = sub_1005DE730((int *)qword_100884E58, (__int64)v4);
if ( v2 == -1 )
return 0xFFFFFFFFLL;
else
return (unsigned int)(v2 + 8);
}
}
return v1;
}