{"type": "func", "start": 4295595260, "end": 4295595436, "name": "GameLevelManager::isTimeValid", "pseudocode": "// \n// GameLevelManager::isTimeValid from 0x1000994fc to 0x1000995ac (176 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::getStoredOnlineLevels @ 0x10009948c\n// > GameLevelManager::isUpdateValid @ 0x1000a094c\n// > GameLevelManager::getStoredLevelComments @ 0x1000a710c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GameLevelManager::isTimeValid(GameLevelManager *a1, const char *a2, float a3)\n{\n  cocos2d::CCDictionary *m_timerDict; // x19\n  __int64 v5; // x0\n  cocos2d::CCString *v6; // x19\n  double v7; // d9\n  timeb v9; // [xsp+8h] [xbp-38h] BYREF\n  char v10; // [xsp+1Fh] [xbp-21h]\n\n  m_timerDict = a1->m_timerDict;\n  sub_100009900(&v9, (char *)a2);\n  v5 = cocos2d::CCDictionary::objectForKey_1(m_timerDict, &v9);\n  v6 = (cocos2d::CCString *)v5;\n  if ( v10 < 0 )\n  {\n    operator delete((void *)v9.time);\n    if ( v6 )\n      goto LABEL_3;\n  }\n  else if ( v5 )\n  {\nLABEL_3:\n    v7 = cocos2d::CCString::doubleValue(v6);\n    ftime(&v9);\n    return (double)(v9.millitm + 1000 * (unsigned __int64)(v9.time & 0xFFFFF)) / 1000.0 - v7 <= a3;\n  }\n  return 0;\n}", "assembly": "; \n; GameLevelManager::isTimeValid from 0x1000994fc to 0x1000995ac (176 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::getStoredOnlineLevels @ 0x10009948c\n; > GameLevelManager::isUpdateValid @ 0x1000a094c\n; > GameLevelManager::getStoredLevelComments @ 0x1000a710c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1000994fc\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x4, 0x100099500\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100099504\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100099508\nADD             X29, SP, #0x40                                         ; +0x10, 0x10009950c\nFMOV            S8, S0                                                 ; +0x14, 0x100099510\nLDR             X19, [X0,#0x210]                                       ; +0x18, 0x100099514\nADD             X0, SP, #0x40+var_38; int                              ; +0x1c, 0x100099518\nBL              sub_100009900                                          ; +0x20, 0x10009951c\nADD             X1, SP, #0x40+var_38                                   ; +0x24, 0x100099520\nMOV             X0, X19                                                ; +0x28, 0x100099524\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x2c, 0x100099528\nMOV             X19, X0                                                ; +0x30, 0x10009952c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x34, 0x100099530\nTBNZ            W8, #0x1F, loc_100099588                               ; +0x38, 0x100099534\nCBZ             X19, loc_100099594                                     ; +0x3c, 0x100099538\nMOV             X0, X19                                                ; +0x40, 0x10009953c\nBL              cocos2d__CCString__doubleValue                         ; +0x44, 0x100099540\nFMOV            D9, D0                                                 ; +0x48, 0x100099544\nADD             X0, SP, #0x40+var_38; timeb *                          ; +0x4c, 0x100099548\nBL              _ftime                                                 ; +0x50, 0x10009954c\nLDRH            W8, [SP,#0x40+var_38.millitm]                          ; +0x54, 0x100099550\nLDR             X9, [SP,#0x40+var_38]                                  ; +0x58, 0x100099554\nAND             X9, X9, #0xFFFFF                                       ; +0x5c, 0x100099558\nMOV             W10, #0x3E8                                            ; +0x60, 0x10009955c\nUMADDL          X8, W9, W10, X8                                        ; +0x64, 0x100099560\nUCVTF           D0, X8                                                 ; +0x68, 0x100099564\nADRP            X8, #qword_1006356B0@PAGE                              ; +0x6c, 0x100099568\nLDR             D1, [X8,#qword_1006356B0@PAGEOFF]                      ; +0x70, 0x10009956c\nFDIV            D0, D0, D1                                             ; +0x74, 0x100099570\nFSUB            D0, D0, D9                                             ; +0x78, 0x100099574\nFCVT            D1, S8                                                 ; +0x7c, 0x100099578\nFCMP            D0, D1                                                 ; +0x80, 0x10009957c\nCSET            W0, LS                                                 ; +0x84, 0x100099580\nB               loc_100099598                                          ; +0x88, 0x100099584\nLDR             X0, [SP,#0x40+var_38]; __p                             ; +0x8c, 0x100099588\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x10009958c\nCBNZ            X19, loc_10009953C                                     ; +0x94, 0x100099590\nMOV             W0, #0                                                 ; +0x98, 0x100099594\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x9c, 0x100099598\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa0, 0x10009959c\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0xa4, 0x1000995a0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x1000995a4\nRET                                                                    ; +0xac, 0x1000995a8", "xrefs": ["GameLevelManager::getStoredOnlineLevels @ 0x10009948c", "GameLevelManager::isUpdateValid @ 0x1000a094c", "GameLevelManager::getStoredLevelComments @ 0x1000a710c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}