{"type": "func", "start": 5371589856, "end": 5371590035, "name": "InfoLayer::toggleCommentMode", "pseudocode": "// \n// InfoLayer::toggleCommentMode from 0x1402bf4e0 to 0x1402bf593 (179 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1402bc18e\n// > InfoLayer::init @ 0x1402bc1df\n// > <???> @ 0x1406d28f4\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\n// Hidden C++ exception states: #wind=2\nvoid InfoLayer::toggleCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  GameManager *v4; // rcx\n  bool v5; // r8\n  void *v6; // [rsp+38h] [rbp+10h]\n  void *v7; // [rsp+38h] [rbp+10h]\n\n  v3 = a2->getTag(a2);\n  v4 = (GameManager *)qword_1406C2ED8;\n  if ( v3 )\n  {\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (GameManager *)qword_1406C2ED8;\n    }\n    v5 = 0;\n  }\n  else\n  {\n    if ( !qword_1406C2ED8 )\n    {\n      v6 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (GameManager *)qword_1406C2ED8;\n    }\n    v5 = 1;\n  }\n  GameManager::setGameVariable(v4, \"0069\", v5);\n  InfoLayer::updateCommentModeButtons(a1);\n  InfoLayer::loadPage(a1, 0, 0);\n}", "assembly": "; \n; InfoLayer::toggleCommentMode from 0x1402bf4e0 to 0x1402bf593 (179 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1402bc18e\n; > InfoLayer::init @ 0x1402bc1df\n; > <???> @ 0x1406d28f4\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\npush    rbx                                                            ; +0x0, 0x1402bf4e0\nsub     rsp, 20h                                                       ; +0x2, 0x1402bf4e2\nmov     rbx, rcx                                                       ; +0x6, 0x1402bf4e6\nmov     rax, [rdx]                                                     ; +0x9, 0x1402bf4e9\nmov     rcx, rdx                                                       ; +0xc, 0x1402bf4ec\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1402bf4ef\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x12, 0x1402bf4f2\ntest    eax, eax                                                       ; +0x19, 0x1402bf4f9\njnz     short loc_1402BF536                                            ; +0x1b, 0x1402bf4fb\ntest    rcx, rcx                                                       ; +0x1d, 0x1402bf4fd\njnz     short loc_1402BF531                                            ; +0x20, 0x1402bf500\nmov     ecx, 668h; Size                                                ; +0x22, 0x1402bf502\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1402bf507\nmov     [rsp+28h+arg_8], rax                                           ; +0x2c, 0x1402bf50c\nmov     rcx, rax                                                       ; +0x31, 0x1402bf511\ncall    sub_14017AB00                                                  ; +0x34, 0x1402bf514\nnop                                                                    ; +0x39, 0x1402bf519\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x1402bf51a\nmov     rdx, [rax]                                                     ; +0x41, 0x1402bf521\nmov     rcx, rax                                                       ; +0x44, 0x1402bf524\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x1402bf527\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4a, 0x1402bf52a\nmov     r8b, 1                                                         ; +0x51, 0x1402bf531\njmp     short loc_1402BF56D                                            ; +0x54, 0x1402bf534\ntest    rcx, rcx                                                       ; +0x56, 0x1402bf536\njnz     short loc_1402BF56A                                            ; +0x59, 0x1402bf539\nmov     ecx, 668h; Size                                                ; +0x5b, 0x1402bf53b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x60, 0x1402bf540\nmov     [rsp+28h+arg_8], rax                                           ; +0x65, 0x1402bf545\nmov     rcx, rax                                                       ; +0x6a, 0x1402bf54a\ncall    sub_14017AB00                                                  ; +0x6d, 0x1402bf54d\nnop                                                                    ; +0x72, 0x1402bf552\nmov     cs:qword_1406C2ED8, rax                                        ; +0x73, 0x1402bf553\nmov     rdx, [rax]                                                     ; +0x7a, 0x1402bf55a\nmov     rcx, rax                                                       ; +0x7d, 0x1402bf55d\ncall    qword ptr [rdx+48h]                                            ; +0x80, 0x1402bf560\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x83, 0x1402bf563\nxor     r8d, r8d                                                       ; +0x8a, 0x1402bf56a\nlea     rdx, a0069; \"0069\"                                             ; +0x8d, 0x1402bf56d\ncall    GameManager__setGameVariable                                   ; +0x94, 0x1402bf574\nmov     rcx, rbx                                                       ; +0x99, 0x1402bf579\ncall    InfoLayer__updateCommentModeButtons                            ; +0x9c, 0x1402bf57c\nxor     r8d, r8d                                                       ; +0xa1, 0x1402bf581\nxor     edx, edx                                                       ; +0xa4, 0x1402bf584\nmov     rcx, rbx                                                       ; +0xa6, 0x1402bf586\nadd     rsp, 20h                                                       ; +0xa9, 0x1402bf589\npop     rbx                                                            ; +0xad, 0x1402bf58d\njmp     InfoLayer__loadPage                                            ; +0xae, 0x1402bf58e", "xrefs": ["InfoLayer::init @ 0x1402bc18e", "InfoLayer::init @ 0x1402bc1df", "<???> @ 0x1406d28f4"], "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"}