{"type": "func", "start": 5373146080, "end": 5373146530, "name": "LevelSearchLayer::toggleTimeNum", "pseudocode": "// \n// LevelSearchLayer::toggleTimeNum from 0x14043b3e0 to 0x14043b5a2 (450 bytes)\n// \n// 3 xrefs:\n// > LevelSearchLayer::init @ 0x140436278\n// > LevelSearchLayer::clearFilters @ 0x140436ef8\n// > <???> @ 0x140926f3c\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:32:19 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall LevelSearchLayer::toggleTimeNum(__int64 a1, unsigned int a2, unsigned __int8 a3)\n{\n  unsigned int v3; // ebp\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n  __int64 v9; // rbx\n  struct cocos2d::CCString *v10; // rax\n  void *v11; // rcx\n  char *v12; // rcx\n  __int16 *v13; // rdx\n  __int64 v14; // rcx\n  __int16 v15; // [rsp+30h] [rbp-58h] BYREF\n  char v16; // [rsp+32h] [rbp-56h]\n  _WORD v17[2]; // [rsp+34h] [rbp-54h] BYREF\n  void *v18; // [rsp+38h] [rbp-50h]\n  void *Block[2]; // [rsp+40h] [rbp-48h] BYREF\n  __int64 v20; // [rsp+50h] [rbp-38h]\n  unsigned __int64 v21; // [rsp+58h] [rbp-30h]\n\n  v3 = a3;\n  if ( *(_DWORD *)(a1 + 432) != 1 )\n  {\n    v6 = cocos2d::CCString::createWithFormat(\"T%i\", a2);\n    CString = cocos2d::CCString::getCString(v6);\n    *(_OWORD *)Block = 0;\n    v20 = 0;\n    v21 = 0;\n    v8 = -1;\n    do\n      ++v8;\n    while ( CString[v8] );\n    sub_14003D230(Block, CString, v8);\n    v9 = *(_QWORD *)(a1 + 480);\n    v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v3);\n    cocos2d::CCDictionary::setObject(v9, v10, Block);\n    if ( v21 > 0xF )\n    {\n      v11 = Block[0];\n      if ( v21 + 1 >= 0x1000 )\n      {\n        v11 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v11);\n    }\n    v12 = (char *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 472), a2) + 368;\n    if ( (_BYTE)v3 )\n    {\n      v15 = -1;\n      v16 = -1;\n      v13 = &v15;\n    }\n    else\n    {\n      v15 = 32125;\n      memset(v17, 125, 3);\n      v13 = v17;\n    }\n    (**(void (__fastcall ***)(char *, __int16 *))v12)(v12, v13);\n    v14 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v18 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v14 = *(_QWORD *)&qword_14090BFB0;\n    }\n    GameLevelManager::setLenVal(v14, a2, v3);\n  }\n}", "assembly": "; \n; LevelSearchLayer::toggleTimeNum from 0x14043b3e0 to 0x14043b5a2 (450 bytes)\n; \n; 3 xrefs:\n; > LevelSearchLayer::init @ 0x140436278\n; > LevelSearchLayer::clearFilters @ 0x140436ef8\n; > <???> @ 0x140926f3c\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:32:19 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14043b3e0\npush    rbp                                                            ; +0x5, 0x14043b3e5\npush    rsi                                                            ; +0x6, 0x14043b3e6\npush    rdi                                                            ; +0x7, 0x14043b3e7\nsub     rsp, 70h                                                       ; +0x8, 0x14043b3e8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14043b3ec\nxor     rax, rsp                                                       ; +0x13, 0x14043b3f3\nmov     [rsp+88h+var_28], rax                                          ; +0x16, 0x14043b3f6\nmovzx   ebp, r8b                                                       ; +0x1b, 0x14043b3fb\nmov     edi, edx                                                       ; +0x1f, 0x14043b3ff\nmov     rsi, rcx                                                       ; +0x21, 0x14043b401\ncmp     dword ptr [rcx+1B0h], 1                                        ; +0x24, 0x14043b404\njz      loc_14043B585                                                  ; +0x2b, 0x14043b40b\nlea     rcx, aTI; \"T%i\"                                                ; +0x31, 0x14043b411\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x38, 0x14043b418\nmov     rcx, rax                                                       ; +0x3e, 0x14043b41e\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x41, 0x14043b421\nxorps   xmm0, xmm0                                                     ; +0x47, 0x14043b427\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x4a, 0x14043b42a\nmov     [rsp+88h+var_38], 0                                            ; +0x4f, 0x14043b42f\nmov     [rsp+88h+var_30], 0                                            ; +0x58, 0x14043b438\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x61, 0x14043b441\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x14043b448\ninc     r8                                                             ; +0x70, 0x14043b450\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x14043b453\njnz     short loc_14043B450                                            ; +0x78, 0x14043b458\nmov     rdx, rax                                                       ; +0x7a, 0x14043b45a\nlea     rcx, [rsp+88h+Block]                                           ; +0x7d, 0x14043b45d\ncall    sub_14003D230                                                  ; +0x82, 0x14043b462\nnop                                                                    ; +0x87, 0x14043b467\nmov     rbx, [rsi+1E0h]                                                ; +0x88, 0x14043b468\nmov     edx, ebp                                                       ; +0x8f, 0x14043b46f\nlea     rcx, word_1406ED6F8                                            ; +0x91, 0x14043b471\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x98, 0x14043b478\nmov     rdx, rax                                                       ; +0x9e, 0x14043b47e\nlea     r8, [rsp+88h+Block]                                            ; +0xa1, 0x14043b481\nmov     rcx, rbx                                                       ; +0xa6, 0x14043b486\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0xa9, 0x14043b489\nnop                                                                    ; +0xaf, 0x14043b48f\nmov     rdx, [rsp+88h+var_30]                                          ; +0xb0, 0x14043b490\ncmp     rdx, 0Fh                                                       ; +0xb5, 0x14043b495\njbe     short loc_14043B4E3                                            ; +0xb9, 0x14043b499\ninc     rdx                                                            ; +0xbb, 0x14043b49b\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0xbe, 0x14043b49e\nmov     rax, rcx                                                       ; +0xc3, 0x14043b4a3\ncmp     rdx, 1000h                                                     ; +0xc6, 0x14043b4a6\njb      short loc_14043B4DE                                            ; +0xcd, 0x14043b4ad\nadd     rdx, 27h ; '''                                                 ; +0xcf, 0x14043b4af\nmov     rcx, [rcx-8]                                                   ; +0xd3, 0x14043b4b3\nsub     rax, rcx                                                       ; +0xd7, 0x14043b4b7\nsub     rax, 8                                                         ; +0xda, 0x14043b4ba\ncmp     rax, 1Fh                                                       ; +0xde, 0x14043b4be\njbe     short loc_14043B4DE                                            ; +0xe2, 0x14043b4c2\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xe4, 0x14043b4c4\nxor     r9d, r9d; LineNo                                               ; +0xed, 0x14043b4cd\nxor     r8d, r8d; FileName                                             ; +0xf0, 0x14043b4d0\nxor     edx, edx; FunctionName                                         ; +0xf3, 0x14043b4d3\nxor     ecx, ecx; Expression                                           ; +0xf5, 0x14043b4d5\ncall    cs:_invoke_watson                                              ; +0xf7, 0x14043b4d7\nalign 2                                                                ; +0xfd, 0x14043b4dd\ncall    j_j_free                                                       ; +0xfe, 0x14043b4de\nmov     edx, edi                                                       ; +0x103, 0x14043b4e3\nmov     rcx, [rsi+1D8h]                                                ; +0x105, 0x14043b4e5\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x10c, 0x14043b4ec\nlea     rcx, [rax+170h]                                                ; +0x112, 0x14043b4f2\ntest    bpl, bpl                                                       ; +0x119, 0x14043b4f9\njz      short loc_14043B51B                                            ; +0x11c, 0x14043b4fc\nmov     [rsp+88h+var_58], 0FFFFh                                       ; +0x11e, 0x14043b4fe\nmovzx   eax, [rsp+88h+var_58]                                          ; +0x125, 0x14043b505\nmov     [rsp+88h+var_58], ax                                           ; +0x12a, 0x14043b50a\nmov     [rsp+88h+var_56], 0FFh                                         ; +0x12f, 0x14043b50f\nlea     rdx, [rsp+88h+var_58]                                          ; +0x134, 0x14043b514\njmp     short loc_14043B536                                            ; +0x139, 0x14043b519\nmov     [rsp+88h+var_58], 7D7Dh                                        ; +0x13b, 0x14043b51b\nmovzx   eax, [rsp+88h+var_58]                                          ; +0x142, 0x14043b522\nmov     [rsp+88h+var_54], ax                                           ; +0x147, 0x14043b527\nmov     [rsp+88h+var_52], 7Dh ; '}'                                    ; +0x14c, 0x14043b52c\nlea     rdx, [rsp+88h+var_54]                                          ; +0x151, 0x14043b531\nmov     rax, [rcx]                                                     ; +0x156, 0x14043b536\ncall    qword ptr [rax]                                                ; +0x159, 0x14043b539\nmov     rcx, cs:qword_14090BFB0                                        ; +0x15b, 0x14043b53b\ntest    rcx, rcx                                                       ; +0x162, 0x14043b542\njnz     short loc_14043B57A                                            ; +0x165, 0x14043b545\nmov     ecx, 690h; Size                                                ; +0x167, 0x14043b547\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16c, 0x14043b54c\nmov     [rsp+88h+var_50], rax                                          ; +0x171, 0x14043b551\nmov     rcx, rax                                                       ; +0x176, 0x14043b556\ncall    GameLevelManager__GameLevelManager                             ; +0x179, 0x14043b559\nnop                                                                    ; +0x17e, 0x14043b55e\nmov     cs:qword_14090BFB0, rax                                        ; +0x17f, 0x14043b55f\nmov     rcx, [rax]                                                     ; +0x186, 0x14043b566\nmov     r9, [rcx+48h]                                                  ; +0x189, 0x14043b569\nmov     rcx, rax                                                       ; +0x18d, 0x14043b56d\ncall    r9                                                             ; +0x190, 0x14043b570\nmov     rcx, cs:qword_14090BFB0                                        ; +0x193, 0x14043b573\nmovzx   r8d, bpl                                                       ; +0x19a, 0x14043b57a\nmov     edx, edi                                                       ; +0x19e, 0x14043b57e\ncall    GameLevelManager__setLenVal                                    ; +0x1a0, 0x14043b580\nmov     rcx, [rsp+88h+var_28]                                          ; +0x1a5, 0x14043b585\nxor     rcx, rsp; StackCookie                                          ; +0x1aa, 0x14043b58a\ncall    __security_check_cookie                                        ; +0x1ad, 0x14043b58d\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x1b2, 0x14043b592\nadd     rsp, 70h                                                       ; +0x1ba, 0x14043b59a\npop     rdi                                                            ; +0x1be, 0x14043b59e\npop     rsi                                                            ; +0x1bf, 0x14043b59f\npop     rbp                                                            ; +0x1c0, 0x14043b5a0\nretn                                                                   ; +0x1c1, 0x14043b5a1", "xrefs": ["LevelSearchLayer::init @ 0x140436278", "LevelSearchLayer::clearFilters @ 0x140436ef8", "<???> @ 0x140926f3c"], "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"}