{"type": "func", "start": 5369693952, "end": 5369694065, "name": "NewThreadPopup::onToggleMode", "pseudocode": "// \n// NewThreadPopup::onToggleMode from 0x1400f0700 to 0x1400f0771 (113 bytes)\n// \n// 3 xrefs:\n// > NewThreadPopup::init @ 0x1400ef840\n// > NewThreadPopup::init @ 0x1400ef916\n// > <???> @ 0x14091508c\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:26:36 +0000\n// \n\nvoid __fastcall NewThreadPopup::onToggleMode(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  cocos2d::CCArray *v4; // rcx\n\n  if ( !*(_BYTE *)(a1 + 744) )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n    if ( (v3 == 0) != *(_BYTE *)(a1 + 745) )\n    {\n      *(_BYTE *)(a1 + 745) = v3 == 0;\n      if ( !v3 )\n      {\n        v4 = *(cocos2d::CCArray **)(a1 + 736);\n        if ( v4 )\n        {\n          if ( cocos2d::CCArray::count(v4) > 1 )\n          {\n            cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 736));\n            NewThreadPopup::updateRecipientLabel(a1);\n          }\n        }\n      }\n      NewThreadPopup::applyMode(a1);\n    }\n  }\n}", "assembly": "; \n; NewThreadPopup::onToggleMode from 0x1400f0700 to 0x1400f0771 (113 bytes)\n; \n; 3 xrefs:\n; > NewThreadPopup::init @ 0x1400ef840\n; > NewThreadPopup::init @ 0x1400ef916\n; > <???> @ 0x14091508c\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:26:36 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400f0700\nsub     rsp, 20h                                                       ; +0x2, 0x1400f0702\ncmp     byte ptr [rcx+2E8h], 0                                         ; +0x6, 0x1400f0706\nmov     rbx, rcx                                                       ; +0xd, 0x1400f070d\njnz     short loc_1400F076B                                            ; +0x10, 0x1400f0710\nmov     rax, [rdx]                                                     ; +0x12, 0x1400f0712\nmov     rcx, rdx                                                       ; +0x15, 0x1400f0715\ncall    qword ptr [rax+38h]                                            ; +0x18, 0x1400f0718\ntest    eax, eax                                                       ; +0x1b, 0x1400f071b\nsetz    cl                                                             ; +0x1d, 0x1400f071d\ncmp     cl, [rbx+2E9h]                                                 ; +0x20, 0x1400f0720\njz      short loc_1400F076B                                            ; +0x26, 0x1400f0726\nmov     [rbx+2E9h], cl                                                 ; +0x28, 0x1400f0728\ntest    eax, eax                                                       ; +0x2e, 0x1400f072e\njnz     short loc_1400F075E                                            ; +0x30, 0x1400f0730\nmov     rcx, [rbx+2E0h]                                                ; +0x32, 0x1400f0732\ntest    rcx, rcx                                                       ; +0x39, 0x1400f0739\njz      short loc_1400F075E                                            ; +0x3c, 0x1400f073c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e, 0x1400f073e\ncmp     eax, 1                                                         ; +0x44, 0x1400f0744\njbe     short loc_1400F075E                                            ; +0x47, 0x1400f0747\nmov     rcx, [rbx+2E0h]                                                ; +0x49, 0x1400f0749\ncall    cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x50, 0x1400f0750\nmov     rcx, rbx                                                       ; +0x56, 0x1400f0756\ncall    NewThreadPopup__updateRecipientLabel                           ; +0x59, 0x1400f0759\nmov     rcx, rbx                                                       ; +0x5e, 0x1400f075e\nadd     rsp, 20h                                                       ; +0x61, 0x1400f0761\npop     rbx                                                            ; +0x65, 0x1400f0765\njmp     NewThreadPopup__applyMode                                      ; +0x66, 0x1400f0766\nadd     rsp, 20h                                                       ; +0x6b, 0x1400f076b\npop     rbx                                                            ; +0x6f, 0x1400f076f\nretn                                                                   ; +0x70, 0x1400f0770", "xrefs": ["NewThreadPopup::init @ 0x1400ef840", "NewThreadPopup::init @ 0x1400ef916", "<???> @ 0x14091508c"], "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"}