//
// GameLevelManager::isTimeValid from 0x1000ada10 to 0x1000adabc (172 bytes)
//
// 4 xrefs:
// > GameLevelManager::getStoredOnlineLevels @ 0x1000ad9a0
// > GameLevelManager::getEditorSoundConfigs @ 0x1000b7e78
// > GameLevelManager::isUpdateValid @ 0x1000bad7c
// > sub_1000C13DC @ 0x1000c13fc
//
// 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 10:58:37 +0000
//
bool __fastcall GameLevelManager::isTimeValid(__int64 a1, char *a2, float a3)
{
__int64 v4; // x19
__int64 v5; // x0
__int64 v6; // x19
double v7; // d9
unsigned __int64 v8; // d1
timeb v10; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 968);
sub_100009900(&v10, a2);
v5 = cocos2d::CCDictionary::objectForKey(v4, &v10);
v6 = v5;
if ( v11 < 0 )
{
operator delete((void *)v10.time);
if ( v6 )
goto LABEL_3;
}
else if ( v5 )
{
LABEL_3:
v7 = cocos2d::CCString::doubleValue(v6);
ftime(&v10);
LOWORD(v8) = v10.millitm;
return (double)v8 / 1000.0 + (double)v10.time - v7 <= a3;
}
return 0;
}