{"type": "func", "start": 5372716464, "end": 5372716854, "name": "InfoLayer::toggleSmallCommentMode", "pseudocode": "// \n// InfoLayer::toggleSmallCommentMode from 0x1403d25b0 to 0x1403d2736 (390 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x1403cf544\n// > <???> @ 0x140924788\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=4\n__int64 __fastcall InfoLayer::toggleSmallCommentMode(__int64 a1)\n{\n  int ID; // eax\n  __int64 v3; // r9\n  int v4; // eax\n  __int64 v5; // r9\n  __int64 v7; // rcx\n  void *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  GameManager::toggleGameVariable(a1, \"0088\");\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v9 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n  }\n  ID = InfoLayer::getID((_QWORD *)a1);\n  GameLevelManager::resetCommentTimersForLevelID(v3, ID, *(_DWORD *)(a1 + 884));\n  if ( (unsigned __int8)InfoLayer::canToggleModRoom(a1) )\n  {\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v10 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v10);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    }\n    v4 = InfoLayer::getID((_QWORD *)a1);\n    GameLevelManager::resetCommentTimersForLevelID(v5, v4, 4);\n    return InfoLayer::reloadWindow(a1);\n  }\n  else\n  {\n    if ( *(_QWORD *)(a1 + 704) && *(_BYTE *)(a1 + 888) )\n    {\n      v7 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v11 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v11);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v7 = *(_QWORD *)&qword_14090BFB0;\n      }\n      GameLevelManager::resetCommentTimersForLevelID(v7, *(_DWORD *)(*(_QWORD *)(a1 + 704) + 392LL), 5);\n    }\n    return InfoLayer::reloadWindow(a1);\n  }\n}", "assembly": "; \n; InfoLayer::toggleSmallCommentMode from 0x1403d25b0 to 0x1403d2736 (390 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x1403cf544\n; > <???> @ 0x140924788\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, 0x1403d25b0\nsub     rsp, 20h                                                       ; +0x2, 0x1403d25b2\nmov     rbx, rcx                                                       ; +0x6, 0x1403d25b6\ncmp     cs:qword_14090BFD0, 0                                          ; +0x9, 0x1403d25b9\njnz     short loc_1403D25EE                                            ; +0x11, 0x1403d25c1\nmov     ecx, 6E8h; Size                                                ; +0x13, 0x1403d25c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1403d25c8\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1403d25cd\nmov     rcx, rax                                                       ; +0x22, 0x1403d25d2\ncall    GameManager__GameManager                                       ; +0x25, 0x1403d25d5\nnop                                                                    ; +0x2a, 0x1403d25da\nmov     cs:qword_14090BFD0, rax                                        ; +0x2b, 0x1403d25db\nmov     rcx, [rax]                                                     ; +0x32, 0x1403d25e2\nmov     rdx, [rcx+48h]                                                 ; +0x35, 0x1403d25e5\nmov     rcx, rax                                                       ; +0x39, 0x1403d25e9\ncall    rdx                                                            ; +0x3c, 0x1403d25ec\nlea     rdx, a0088; \"0088\"                                             ; +0x3e, 0x1403d25ee\ncall    GameManager__toggleGameVariable                                ; +0x45, 0x1403d25f5\nmov     r9, cs:qword_14090BFB0                                         ; +0x4a, 0x1403d25fa\ntest    r9, r9                                                         ; +0x51, 0x1403d2601\njnz     short loc_1403D2638                                            ; +0x54, 0x1403d2604\nmov     ecx, 690h; Size                                                ; +0x56, 0x1403d2606\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5b, 0x1403d260b\nmov     [rsp+28h+arg_0], rax                                           ; +0x60, 0x1403d2610\nmov     rcx, rax                                                       ; +0x65, 0x1403d2615\ncall    GameLevelManager__GameLevelManager                             ; +0x68, 0x1403d2618\nnop                                                                    ; +0x6d, 0x1403d261d\nmov     cs:qword_14090BFB0, rax                                        ; +0x6e, 0x1403d261e\nmov     rcx, [rax]                                                     ; +0x75, 0x1403d2625\nmov     rdx, [rcx+48h]                                                 ; +0x78, 0x1403d2628\nmov     rcx, rax                                                       ; +0x7c, 0x1403d262c\ncall    rdx                                                            ; +0x7f, 0x1403d262f\nmov     r9, cs:qword_14090BFB0                                         ; +0x81, 0x1403d2631\nmov     rcx, rbx                                                       ; +0x88, 0x1403d2638\ncall    InfoLayer__getID                                               ; +0x8b, 0x1403d263b\nmov     edx, eax                                                       ; +0x90, 0x1403d2640\nmov     r8d, [rbx+374h]                                                ; +0x92, 0x1403d2642\nmov     rcx, r9                                                        ; +0x99, 0x1403d2649\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0x9c, 0x1403d264c\nmov     rcx, rbx                                                       ; +0xa1, 0x1403d2651\ncall    InfoLayer__canToggleModRoom                                    ; +0xa4, 0x1403d2654\ntest    al, al                                                         ; +0xa9, 0x1403d2659\njz      short loc_1403D26C0                                            ; +0xab, 0x1403d265b\nmov     r9, cs:qword_14090BFB0                                         ; +0xad, 0x1403d265d\ntest    r9, r9                                                         ; +0xb4, 0x1403d2664\njnz     short loc_1403D269B                                            ; +0xb7, 0x1403d2667\nmov     ecx, 690h; Size                                                ; +0xb9, 0x1403d2669\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbe, 0x1403d266e\nmov     [rsp+28h+arg_0], rax                                           ; +0xc3, 0x1403d2673\nmov     rcx, rax                                                       ; +0xc8, 0x1403d2678\ncall    GameLevelManager__GameLevelManager                             ; +0xcb, 0x1403d267b\nnop                                                                    ; +0xd0, 0x1403d2680\nmov     cs:qword_14090BFB0, rax                                        ; +0xd1, 0x1403d2681\nmov     rcx, [rax]                                                     ; +0xd8, 0x1403d2688\nmov     rdx, [rcx+48h]                                                 ; +0xdb, 0x1403d268b\nmov     rcx, rax                                                       ; +0xdf, 0x1403d268f\ncall    rdx                                                            ; +0xe2, 0x1403d2692\nmov     r9, cs:qword_14090BFB0                                         ; +0xe4, 0x1403d2694\nmov     rcx, rbx                                                       ; +0xeb, 0x1403d269b\ncall    InfoLayer__getID                                               ; +0xee, 0x1403d269e\nmov     edx, eax                                                       ; +0xf3, 0x1403d26a3\nmov     r8d, 4                                                         ; +0xf5, 0x1403d26a5\nmov     rcx, r9                                                        ; +0xfb, 0x1403d26ab\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0xfe, 0x1403d26ae\nmov     rcx, rbx                                                       ; +0x103, 0x1403d26b3\nadd     rsp, 20h                                                       ; +0x106, 0x1403d26b6\npop     rbx                                                            ; +0x10a, 0x1403d26ba\njmp     InfoLayer__reloadWindow                                        ; +0x10b, 0x1403d26bb\ncmp     qword ptr [rbx+2C0h], 0                                        ; +0x110, 0x1403d26c0\njz      short loc_1403D2729                                            ; +0x118, 0x1403d26c8\ncmp     byte ptr [rbx+378h], 0                                         ; +0x11a, 0x1403d26ca\njz      short loc_1403D2729                                            ; +0x121, 0x1403d26d1\nmov     rcx, cs:qword_14090BFB0                                        ; +0x123, 0x1403d26d3\ntest    rcx, rcx                                                       ; +0x12a, 0x1403d26da\njnz     short loc_1403D2711                                            ; +0x12d, 0x1403d26dd\nmov     ecx, 690h; Size                                                ; +0x12f, 0x1403d26df\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x134, 0x1403d26e4\nmov     [rsp+28h+arg_0], rax                                           ; +0x139, 0x1403d26e9\nmov     rcx, rax                                                       ; +0x13e, 0x1403d26ee\ncall    GameLevelManager__GameLevelManager                             ; +0x141, 0x1403d26f1\nnop                                                                    ; +0x146, 0x1403d26f6\nmov     cs:qword_14090BFB0, rax                                        ; +0x147, 0x1403d26f7\nmov     rcx, [rax]                                                     ; +0x14e, 0x1403d26fe\nmov     rdx, [rcx+48h]                                                 ; +0x151, 0x1403d2701\nmov     rcx, rax                                                       ; +0x155, 0x1403d2705\ncall    rdx                                                            ; +0x158, 0x1403d2708\nmov     rcx, cs:qword_14090BFB0                                        ; +0x15a, 0x1403d270a\nmov     rdx, [rbx+2C0h]                                                ; +0x161, 0x1403d2711\nmov     r8d, 5                                                         ; +0x168, 0x1403d2718\nmov     edx, [rdx+188h]                                                ; +0x16e, 0x1403d271e\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0x174, 0x1403d2724\nmov     rcx, rbx                                                       ; +0x179, 0x1403d2729\nadd     rsp, 20h                                                       ; +0x17c, 0x1403d272c\npop     rbx                                                            ; +0x180, 0x1403d2730\njmp     InfoLayer__reloadWindow                                        ; +0x181, 0x1403d2731", "xrefs": ["InfoLayer::init @ 0x1403cf544", "<???> @ 0x140924788"], "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"}