{"type": "func", "start": 5372717488, "end": 5372717673, "name": "InfoLayer::toggleCommentMode", "pseudocode": "// \n// InfoLayer::toggleCommentMode from 0x1403d29b0 to 0x1403d2a69 (185 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1403cf423\n// > InfoLayer::init @ 0x1403cf478\n// > <???> @ 0x1409247a0\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:31:35 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall InfoLayer::toggleCommentMode(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  __int64 v4; // rcx\n  unsigned __int8 v5; // r8\n  void *v6; // [rsp+38h] [rbp+10h]\n  void *v7; // [rsp+38h] [rbp+10h]\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = qword_14090BFD0;\n  if ( v3 )\n  {\n    if ( !qword_14090BFD0 )\n    {\n      v7 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    v5 = 0;\n  }\n  else\n  {\n    if ( !qword_14090BFD0 )\n    {\n      v6 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\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 0x1403d29b0 to 0x1403d2a69 (185 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1403cf423\n; > InfoLayer::init @ 0x1403cf478\n; > <???> @ 0x1409247a0\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:31:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403d29b0\nsub     rsp, 20h                                                       ; +0x2, 0x1403d29b2\nmov     rbx, rcx                                                       ; +0x6, 0x1403d29b6\nmov     rax, [rdx]                                                     ; +0x9, 0x1403d29b9\nmov     rcx, rdx                                                       ; +0xc, 0x1403d29bc\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1403d29bf\nmov     rcx, cs:qword_14090BFD0                                        ; +0x12, 0x1403d29c2\ntest    eax, eax                                                       ; +0x19, 0x1403d29c9\njnz     short loc_1403D2A09                                            ; +0x1b, 0x1403d29cb\ntest    rcx, rcx                                                       ; +0x1d, 0x1403d29cd\njnz     short loc_1403D2A04                                            ; +0x20, 0x1403d29d0\nmov     ecx, 6E8h; Size                                                ; +0x22, 0x1403d29d2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1403d29d7\nmov     [rsp+28h+arg_8], rax                                           ; +0x2c, 0x1403d29dc\nmov     rcx, rax                                                       ; +0x31, 0x1403d29e1\ncall    GameManager__GameManager                                       ; +0x34, 0x1403d29e4\nnop                                                                    ; +0x39, 0x1403d29e9\nmov     cs:qword_14090BFD0, rax                                        ; +0x3a, 0x1403d29ea\nmov     rcx, [rax]                                                     ; +0x41, 0x1403d29f1\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x1403d29f4\nmov     rcx, rax                                                       ; +0x48, 0x1403d29f8\ncall    rdx                                                            ; +0x4b, 0x1403d29fb\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4d, 0x1403d29fd\nmov     r8b, 1                                                         ; +0x54, 0x1403d2a04\njmp     short loc_1403D2A43                                            ; +0x57, 0x1403d2a07\ntest    rcx, rcx                                                       ; +0x59, 0x1403d2a09\njnz     short loc_1403D2A40                                            ; +0x5c, 0x1403d2a0c\nmov     ecx, 6E8h; Size                                                ; +0x5e, 0x1403d2a0e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x63, 0x1403d2a13\nmov     [rsp+28h+arg_8], rax                                           ; +0x68, 0x1403d2a18\nmov     rcx, rax                                                       ; +0x6d, 0x1403d2a1d\ncall    GameManager__GameManager                                       ; +0x70, 0x1403d2a20\nnop                                                                    ; +0x75, 0x1403d2a25\nmov     cs:qword_14090BFD0, rax                                        ; +0x76, 0x1403d2a26\nmov     rcx, [rax]                                                     ; +0x7d, 0x1403d2a2d\nmov     rdx, [rcx+48h]                                                 ; +0x80, 0x1403d2a30\nmov     rcx, rax                                                       ; +0x84, 0x1403d2a34\ncall    rdx                                                            ; +0x87, 0x1403d2a37\nmov     rcx, cs:qword_14090BFD0                                        ; +0x89, 0x1403d2a39\nxor     r8d, r8d                                                       ; +0x90, 0x1403d2a40\nlea     rdx, a0069; \"0069\"                                             ; +0x93, 0x1403d2a43\ncall    GameManager__setGameVariable                                   ; +0x9a, 0x1403d2a4a\nmov     rcx, rbx                                                       ; +0x9f, 0x1403d2a4f\ncall    InfoLayer__updateCommentModeButtons                            ; +0xa2, 0x1403d2a52\nxor     r8d, r8d                                                       ; +0xa7, 0x1403d2a57\nxor     edx, edx                                                       ; +0xaa, 0x1403d2a5a\nmov     rcx, rbx                                                       ; +0xac, 0x1403d2a5c\nadd     rsp, 20h                                                       ; +0xaf, 0x1403d2a5f\npop     rbx                                                            ; +0xb3, 0x1403d2a63\njmp     InfoLayer__loadPage                                            ; +0xb4, 0x1403d2a64", "xrefs": ["InfoLayer::init @ 0x1403cf423", "InfoLayer::init @ 0x1403cf478", "<???> @ 0x1409247a0"], "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"}