{"type": "func", "start": 5371068160, "end": 5371068635, "name": "GameLevelManager::resetCommentTimersForLevelID", "pseudocode": "// \n// GameLevelManager::resetCommentTimersForLevelID from 0x14023ff00 to 0x1402400db (475 bytes)\n// \n// 5 xrefs:\n// > InfoLayer::onRefreshComments @ 0x1403d0472\n// > InfoLayer::toggleSmallCommentMode @ 0x1403d264c\n// > InfoLayer::toggleSmallCommentMode @ 0x1403d26ae\n// > InfoLayer::toggleSmallCommentMode @ 0x1403d2724\n// > <???> @ 0x14091c178\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:36 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::resetCommentTimersForLevelID(__int64 a1, int a2, int a3)\n{\n  int v6; // r14d\n  int v7; // esi\n  char v8; // di\n  int v9; // ebx\n  cocos2d::CCString *v10; // rax\n  const char *CString; // rax\n  size_t v12; // r8\n  void **v13; // rdx\n  void **v14; // rdx\n  void *v15; // rcx\n  void *v16; // rcx\n  void *v17; // [rsp+30h] [rbp-68h]\n  void *Block[2]; // [rsp+38h] [rbp-60h] BYREF\n  __int64 v19; // [rsp+48h] [rbp-50h]\n  unsigned __int64 v20; // [rsp+50h] [rbp-48h]\n\n  v6 = 0;\n  v7 = 0;\n  while ( 2 )\n  {\n    v8 = 1;\n    v9 = 0;\n    do\n    {\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v17 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      }\n      v10 = cocos2d::CCString::createWithFormat(\"comment_%i_%i_%i_%i\", a2, v9, v7, a3);\n      CString = cocos2d::CCString::getCString(v10);\n      *(_OWORD *)Block = 0;\n      v19 = 0;\n      v20 = 0;\n      v12 = -1;\n      do\n        ++v12;\n      while ( CString[v12] );\n      sub_14003D230(Block, CString, v12);\n      v6 |= 1u;\n      v13 = Block;\n      if ( v20 > 0xF )\n        v13 = (void **)Block[0];\n      if ( GameLevelManager::keyHasTimer(a1, v13) )\n      {\n        v14 = Block;\n        if ( v20 > 0xF )\n          v14 = (void **)Block[0];\n        GameLevelManager::resetTimerForKey(a1, v14);\n      }\n      else\n      {\n        v8 = 0;\n      }\n      if ( ++v9 > 100 )\n      {\n        if ( v20 > 0xF )\n        {\n          v16 = Block[0];\n          if ( v20 + 1 >= 0x1000 )\n          {\n            v16 = *((void **)Block[0] - 1);\n            if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F )\nLABEL_25:\n              invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n          }\n          j_j_free(v16);\n        }\n        return;\n      }\n      if ( v20 > 0xF )\n      {\n        v15 = Block[0];\n        if ( v20 + 1 >= 0x1000 )\n        {\n          v15 = *((void **)Block[0] - 1);\n          if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )\n            goto LABEL_25;\n        }\n        j_j_free(v15);\n      }\n    }\n    while ( v8 );\n    if ( ++v7 < 2 )\n      continue;\n    break;\n  }\n}", "assembly": "; \n; GameLevelManager::resetCommentTimersForLevelID from 0x14023ff00 to 0x1402400db (475 bytes)\n; \n; 5 xrefs:\n; > InfoLayer::onRefreshComments @ 0x1403d0472\n; > InfoLayer::toggleSmallCommentMode @ 0x1403d264c\n; > InfoLayer::toggleSmallCommentMode @ 0x1403d26ae\n; > InfoLayer::toggleSmallCommentMode @ 0x1403d2724\n; > <???> @ 0x14091c178\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:36 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14023ff00\npush    rbp                                                            ; +0x5, 0x14023ff05\npush    rsi                                                            ; +0x6, 0x14023ff06\npush    rdi                                                            ; +0x7, 0x14023ff07\npush    r12                                                            ; +0x8, 0x14023ff08\npush    r13                                                            ; +0xa, 0x14023ff0a\npush    r14                                                            ; +0xc, 0x14023ff0c\npush    r15                                                            ; +0xe, 0x14023ff0e\nsub     rsp, 60h                                                       ; +0x10, 0x14023ff10\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x14023ff14\nxor     rax, rsp                                                       ; +0x1b, 0x14023ff1b\nmov     [rsp+98h+var_40], rax                                          ; +0x1e, 0x14023ff1e\nmov     r12d, r8d                                                      ; +0x23, 0x14023ff23\nmov     r15d, edx                                                      ; +0x26, 0x14023ff26\nmov     rbp, rcx                                                       ; +0x29, 0x14023ff29\nxor     r13d, r13d                                                     ; +0x2c, 0x14023ff2c\nmov     r14d, r13d                                                     ; +0x2f, 0x14023ff2f\nmov     dword ptr [rsp+98h+var_68], r13d                               ; +0x32, 0x14023ff32\nmov     esi, r13d                                                      ; +0x37, 0x14023ff37\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x14023ff3a\nmov     dil, 1                                                         ; +0x40, 0x14023ff40\nmov     ebx, r13d                                                      ; +0x43, 0x14023ff43\ncmp     cs:qword_14090BFB0, 0                                          ; +0x46, 0x14023ff46\njnz     short loc_14023FF7B                                            ; +0x4e, 0x14023ff4e\nmov     ecx, 690h; Size                                                ; +0x50, 0x14023ff50\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x55, 0x14023ff55\nmov     [rsp+98h+var_68], rax                                          ; +0x5a, 0x14023ff5a\nmov     rcx, rax                                                       ; +0x5f, 0x14023ff5f\ncall    GameLevelManager__GameLevelManager                             ; +0x62, 0x14023ff62\nnop                                                                    ; +0x67, 0x14023ff67\nmov     cs:qword_14090BFB0, rax                                        ; +0x68, 0x14023ff68\nmov     rcx, [rax]                                                     ; +0x6f, 0x14023ff6f\nmov     rdx, [rcx+48h]                                                 ; +0x72, 0x14023ff72\nmov     rcx, rax                                                       ; +0x76, 0x14023ff76\ncall    rdx                                                            ; +0x79, 0x14023ff79\nmov     dword ptr [rsp+98h+Reserved], r12d                             ; +0x7b, 0x14023ff7b\nmov     r9d, esi                                                       ; +0x80, 0x14023ff80\nmov     r8d, ebx                                                       ; +0x83, 0x14023ff83\nmov     edx, r15d                                                      ; +0x86, 0x14023ff86\nlea     rcx, aCommentIIII; \"comment_%i_%i_%i_%i\"                       ; +0x89, 0x14023ff89\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x90, 0x14023ff90\nmov     rcx, rax                                                       ; +0x96, 0x14023ff96\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x99, 0x14023ff99\nxorps   xmm0, xmm0                                                     ; +0x9f, 0x14023ff9f\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0xa2, 0x14023ffa2\nmov     [rsp+98h+var_50], r13                                          ; +0xa7, 0x14023ffa7\nmov     [rsp+98h+var_48], r13                                          ; +0xac, 0x14023ffac\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xb1, 0x14023ffb1\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xb8, 0x14023ffb8\ninc     r8                                                             ; +0xc0, 0x14023ffc0\ncmp     byte ptr [rax+r8], 0                                           ; +0xc3, 0x14023ffc3\njnz     short loc_14023FFC0                                            ; +0xc8, 0x14023ffc8\nmov     rdx, rax                                                       ; +0xca, 0x14023ffca\nlea     rcx, [rsp+98h+Block]                                           ; +0xcd, 0x14023ffcd\ncall    sub_14003D230                                                  ; +0xd2, 0x14023ffd2\nor      r14d, 1                                                        ; +0xd7, 0x14023ffd7\nlea     rdx, [rsp+98h+Block]                                           ; +0xdb, 0x14023ffdb\ncmp     [rsp+98h+var_48], 0Fh                                          ; +0xe0, 0x14023ffe0\ncmova   rdx, [rsp+98h+Block]                                           ; +0xe6, 0x14023ffe6\nmov     rcx, rbp                                                       ; +0xec, 0x14023ffec\ncall    GameLevelManager__keyHasTimer                                  ; +0xef, 0x14023ffef\ntest    al, al                                                         ; +0xf4, 0x14023fff4\njz      short loc_140240013                                            ; +0xf6, 0x14023fff6\nlea     rdx, [rsp+98h+Block]                                           ; +0xf8, 0x14023fff8\ncmp     [rsp+98h+var_48], 0Fh                                          ; +0xfd, 0x14023fffd\ncmova   rdx, [rsp+98h+Block]                                           ; +0x103, 0x140240003\nmov     rcx, rbp                                                       ; +0x109, 0x140240009\ncall    GameLevelManager__resetTimerForKey                             ; +0x10c, 0x14024000c\njmp     short loc_140240016                                            ; +0x111, 0x140240011\nxor     dil, dil                                                       ; +0x113, 0x140240013\ninc     ebx                                                            ; +0x116, 0x140240016\nmov     rdx, [rsp+98h+var_48]                                          ; +0x118, 0x140240018\ncmp     ebx, 64h ; 'd'                                                 ; +0x11d, 0x14024001d\njg      short loc_14024006C                                            ; +0x120, 0x140240020\ncmp     rdx, 0Fh                                                       ; +0x122, 0x140240022\njbe     short loc_140240056                                            ; +0x126, 0x140240026\ninc     rdx                                                            ; +0x128, 0x140240028\nmov     rcx, [rsp+98h+Block]                                           ; +0x12b, 0x14024002b\nmov     rax, rcx                                                       ; +0x130, 0x140240030\ncmp     rdx, 1000h                                                     ; +0x133, 0x140240033\njb      short loc_140240051                                            ; +0x13a, 0x14024003a\nadd     rdx, 27h ; '''                                                 ; +0x13c, 0x14024003c\nmov     rcx, [rcx-8]; Block                                            ; +0x140, 0x140240040\nsub     rax, rcx                                                       ; +0x144, 0x140240044\nsub     rax, 8                                                         ; +0x147, 0x140240047\ncmp     rax, 1Fh                                                       ; +0x14b, 0x14024004b\nja      short loc_14024009B                                            ; +0x14f, 0x14024004f\ncall    j_j_free                                                       ; +0x151, 0x140240051\ntest    dil, dil                                                       ; +0x156, 0x140240056\njnz     loc_14023FF46                                                  ; +0x159, 0x140240059\ninc     esi                                                            ; +0x15f, 0x14024005f\ncmp     esi, 2                                                         ; +0x161, 0x140240061\njl      loc_14023FF40                                                  ; +0x164, 0x140240064\njmp     short loc_1402400B6                                            ; +0x16a, 0x14024006a\ncmp     rdx, 0Fh                                                       ; +0x16c, 0x14024006c\njbe     short loc_1402400B6                                            ; +0x170, 0x140240070\ninc     rdx                                                            ; +0x172, 0x140240072\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x175, 0x140240075\nmov     rax, rcx                                                       ; +0x17a, 0x14024007a\ncmp     rdx, 1000h                                                     ; +0x17d, 0x14024007d\njb      short loc_1402400B1                                            ; +0x184, 0x140240084\nadd     rdx, 27h ; '''                                                 ; +0x186, 0x140240086\nmov     rcx, [rcx-8]                                                   ; +0x18a, 0x14024008a\nsub     rax, rcx                                                       ; +0x18e, 0x14024008e\nsub     rax, 8                                                         ; +0x191, 0x140240091\ncmp     rax, 1Fh                                                       ; +0x195, 0x140240095\njbe     short loc_1402400B1                                            ; +0x199, 0x140240099\nmov     [rsp+98h+Reserved], r13; Reserved                              ; +0x19b, 0x14024009b\nxor     r9d, r9d; LineNo                                               ; +0x1a0, 0x1402400a0\nxor     r8d, r8d; FileName                                             ; +0x1a3, 0x1402400a3\nxor     edx, edx; FunctionName                                         ; +0x1a6, 0x1402400a6\nxor     ecx, ecx; Expression                                           ; +0x1a8, 0x1402400a8\ncall    cs:_invoke_watson                                              ; +0x1aa, 0x1402400aa\ndb 0CCh                                                                ; +0x1b0, 0x1402400b0\ncall    j_j_free                                                       ; +0x1b1, 0x1402400b1\nmov     rcx, [rsp+98h+var_40]                                          ; +0x1b6, 0x1402400b6\nxor     rcx, rsp; StackCookie                                          ; +0x1bb, 0x1402400bb\ncall    __security_check_cookie                                        ; +0x1be, 0x1402400be\nmov     rbx, [rsp+98h+arg_18]                                          ; +0x1c3, 0x1402400c3\nadd     rsp, 60h                                                       ; +0x1cb, 0x1402400cb\npop     r15                                                            ; +0x1cf, 0x1402400cf\npop     r14                                                            ; +0x1d1, 0x1402400d1\npop     r13                                                            ; +0x1d3, 0x1402400d3\npop     r12                                                            ; +0x1d5, 0x1402400d5\npop     rdi                                                            ; +0x1d7, 0x1402400d7\npop     rsi                                                            ; +0x1d8, 0x1402400d8\npop     rbp                                                            ; +0x1d9, 0x1402400d9\nretn                                                                   ; +0x1da, 0x1402400da", "xrefs": ["InfoLayer::onRefreshComments @ 0x1403d0472", "InfoLayer::toggleSmallCommentMode @ 0x1403d264c", "InfoLayer::toggleSmallCommentMode @ 0x1403d26ae", "InfoLayer::toggleSmallCommentMode @ 0x1403d2724", "<???> @ 0x14091c178"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}