//
// sub_10065D938 from 0x10065d938 to 0x10065d9bc (132 bytes)
//
// 5 xrefs:
// > ??> @ 0x1009e38c0
// > ??> @ 0x1009e3948
// > ??> @ 0x1009e39d0
// > ??> @ 0x1009e3ad0
// > ??> @ 0x1009e3b58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:10:56 +0000
//
__int64 __fastcall sub_10065D938(__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;
}