//
// sub_1005377D0 from 0x1005377d0 to 0x100537854 (132 bytes)
//
// 5 xrefs:
// > ??> @ 0x10085b7a0
// > ??> @ 0x10085b828
// > ??> @ 0x10085b8b0
// > ??> @ 0x10085b9b0
// > ??> @ 0x10085ba38
//
// 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_1005377D0(__int64 result)
{
if ( (int)result > 109 )
{
if ( (unsigned int)(result - 110) < 6 )
return result;
return 0xFFFFFFFFLL;
}
if ( (int)result > 59 )
{
if ( (unsigned int)(result - 60) > 0x28 || ((1LL << ((unsigned __int8)result - 60)) & 0x10044100C01LL) == 0 )
return 0xFFFFFFFFLL;
}
else if ( (unsigned int)result > 0x33 || ((1LL << result) & 0xFFD0040700401LL) == 0 )
{
return 0xFFFFFFFFLL;
}
return result;
}