//
// GameLevelManager::isTimeValid from 0x1000994fc to 0x1000995ac (176 bytes)
//
// 3 xrefs:
// > GameLevelManager::getStoredOnlineLevels @ 0x10009948c
// > GameLevelManager::isUpdateValid @ 0x1000a094c
// > GameLevelManager::getStoredLevelComments @ 0x1000a710c
//
// 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
//
bool __fastcall GameLevelManager::isTimeValid(GameLevelManager *a1, const char *a2, float a3)
{
cocos2d::CCDictionary *m_timerDict; // x19
__int64 v5; // x0
cocos2d::CCString *v6; // x19
double v7; // d9
timeb v9; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
m_timerDict = a1->m_timerDict;
sub_100009900(&v9, (char *)a2);
v5 = cocos2d::CCDictionary::objectForKey_1(m_timerDict, &v9);
v6 = (cocos2d::CCString *)v5;
if ( v10 < 0 )
{
operator delete((void *)v9.time);
if ( v6 )
goto LABEL_3;
}
else if ( v5 )
{
LABEL_3:
v7 = cocos2d::CCString::doubleValue(v6);
ftime(&v9);
return (double)(v9.millitm + 1000 * (unsigned __int64)(v9.time & 0xFFFFF)) / 1000.0 - v7 <= a3;
}
return 0;
}