{"type": "func", "start": 5371589072, "end": 5371589309, "name": "InfoLayer::toggleSmallCommentMode", "pseudocode": "// \n// InfoLayer::toggleSmallCommentMode from 0x1402bf1d0 to 0x1402bf2bd (237 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x1402bc2a6\n// > <???> @ 0x1406d28dc\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::toggleSmallCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_score; // rbx\n  int m_userID; // ebx\n  GJLevelList *m_levelList; // rbx\n  GJGameLevel *m_level; // rax\n  GameLevelManager *v7; // rcx\n  void *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0088\");\n  m_score = a1->m_score;\n  if ( m_score )\n  {\n    m_userID = m_score->m_userID;\n  }\n  else\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      m_userID = -m_levelList->m_listID;\n    }\n    else\n    {\n      m_level = a1->m_level;\n      if ( m_level )\n        m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n      else\n        m_userID = 0;\n    }\n  }\n  v7 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v9 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v7 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  GameLevelManager::resetCommentTimersForLevelID(v7, m_userID, a1->m_mode);\n  InfoLayer::reloadWindow(a1);\n}", "assembly": "; \n; InfoLayer::toggleSmallCommentMode from 0x1402bf1d0 to 0x1402bf2bd (237 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x1402bc2a6\n; > <???> @ 0x1406d28dc\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402bf1d0\npush    rdi                                                            ; +0x5, 0x1402bf1d5\nsub     rsp, 20h                                                       ; +0x6, 0x1402bf1d6\nmov     rdi, rcx                                                       ; +0xa, 0x1402bf1da\ncmp     cs:qword_1406C2ED8, 0                                          ; +0xd, 0x1402bf1dd\njnz     short loc_1402BF20F                                            ; +0x15, 0x1402bf1e5\nmov     ecx, 668h; Size                                                ; +0x17, 0x1402bf1e7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1c, 0x1402bf1ec\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x1402bf1f1\nmov     rcx, rax                                                       ; +0x26, 0x1402bf1f6\ncall    sub_14017AB00                                                  ; +0x29, 0x1402bf1f9\nnop                                                                    ; +0x2e, 0x1402bf1fe\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2f, 0x1402bf1ff\nmov     rdx, [rax]                                                     ; +0x36, 0x1402bf206\nmov     rcx, rax                                                       ; +0x39, 0x1402bf209\ncall    qword ptr [rdx+48h]                                            ; +0x3c, 0x1402bf20c\nlea     rdx, a0088; \"0088\"                                             ; +0x3f, 0x1402bf20f\ncall    GameManager__toggleGameVariable                                ; +0x46, 0x1402bf216\nmov     rbx, [rdi+298h]                                                ; +0x4b, 0x1402bf21b\ntest    rbx, rbx                                                       ; +0x52, 0x1402bf222\njz      short loc_1402BF22F                                            ; +0x55, 0x1402bf225\nmov     ebx, [rbx+184h]                                                ; +0x57, 0x1402bf227\njmp     short loc_1402BF261                                            ; +0x5d, 0x1402bf22d\nmov     rbx, [rdi+2A0h]                                                ; +0x5f, 0x1402bf22f\ntest    rbx, rbx                                                       ; +0x66, 0x1402bf236\njz      short loc_1402BF245                                            ; +0x69, 0x1402bf239\nmov     ebx, [rbx+158h]                                                ; +0x6b, 0x1402bf23b\nneg     ebx                                                            ; +0x71, 0x1402bf241\njmp     short loc_1402BF261                                            ; +0x73, 0x1402bf243\nmov     rax, [rdi+290h]                                                ; +0x75, 0x1402bf245\ntest    rax, rax                                                       ; +0x7c, 0x1402bf24c\njz      short loc_1402BF25F                                            ; +0x7f, 0x1402bf24f\nmov     ebx, [rax+148h]                                                ; +0x81, 0x1402bf251\nsub     ebx, [rax+14Ch]                                                ; +0x87, 0x1402bf257\njmp     short loc_1402BF261                                            ; +0x8d, 0x1402bf25d\nxor     ebx, ebx                                                       ; +0x8f, 0x1402bf25f\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x91, 0x1402bf261\ntest    rcx, rcx                                                       ; +0x98, 0x1402bf268\njnz     short loc_1402BF29D                                            ; +0x9b, 0x1402bf26b\nmov     ecx, 3D0h; Size                                                ; +0x9d, 0x1402bf26d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa2, 0x1402bf272\nmov     [rsp+28h+arg_0], rax                                           ; +0xa7, 0x1402bf277\nmov     rcx, rax                                                       ; +0xac, 0x1402bf27c\ncall    sub_140141280                                                  ; +0xaf, 0x1402bf27f\nnop                                                                    ; +0xb4, 0x1402bf284\nmov     cs:qword_1406C2EC0, rax                                        ; +0xb5, 0x1402bf285\nmov     r8, [rax]                                                      ; +0xbc, 0x1402bf28c\nmov     rcx, rax                                                       ; +0xbf, 0x1402bf28f\ncall    qword ptr [r8+48h]                                             ; +0xc2, 0x1402bf292\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xc6, 0x1402bf296\nmov     r8d, [rdi+334h]                                                ; +0xcd, 0x1402bf29d\nmov     edx, ebx                                                       ; +0xd4, 0x1402bf2a4\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0xd6, 0x1402bf2a6\nmov     rcx, rdi                                                       ; +0xdb, 0x1402bf2ab\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xde, 0x1402bf2ae\nadd     rsp, 20h                                                       ; +0xe3, 0x1402bf2b3\npop     rdi                                                            ; +0xe7, 0x1402bf2b7\njmp     InfoLayer__reloadWindow                                        ; +0xe8, 0x1402bf2b8", "xrefs": ["InfoLayer::init @ 0x1402bc2a6", "<???> @ 0x1406d28dc"], "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"}