{"type": "func", "start": 4303032640, "end": 4303032772, "name": "InfoLayer::toggleSmallCommentMode", "pseudocode": "// \n// InfoLayer::toggleSmallCommentMode from 0x1007b1140 to 0x1007b11c4 (132 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x1007afbb3\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\nvoid __fastcall InfoLayer::toggleSmallCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  GameLevelManager *v3; // rax\n  GJUserScore *m_score; // rcx\n  int m_userID; // esi\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n\n  v2 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v2, \"0088\");\n  v3 = GameLevelManager::sharedState();\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  GameLevelManager::resetCommentTimersForLevelID(v3, m_userID, a1->m_mode);\n  InfoLayer::reloadWindow(a1);\n}", "assembly": "; \n; InfoLayer::toggleSmallCommentMode from 0x1007b1140 to 0x1007b11c4 (132 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x1007afbb3\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    rbp                                                            ; +0x0, 0x1007b1140\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1141\npush    rbx                                                            ; +0x4, 0x1007b1144\npush    rax                                                            ; +0x5, 0x1007b1145\nmov     rbx, rdi                                                       ; +0x6, 0x1007b1146\ncall    GameManager__sharedState                                       ; +0x9, 0x1007b1149\nlea     rsi, a0088; \"0088\"                                             ; +0xe, 0x1007b114e\nmov     rdi, rax                                                       ; +0x15, 0x1007b1155\ncall    GameManager__toggleGameVariable                                ; +0x18, 0x1007b1158\ncall    GameLevelManager__sharedState                                  ; +0x1d, 0x1007b115d\nmov     rcx, [rbx+298h]                                                ; +0x22, 0x1007b1162\ntest    rcx, rcx                                                       ; +0x29, 0x1007b1169\njz      short loc_1007B1176                                            ; +0x2c, 0x1007b116c\nmov     esi, [rcx+174h]                                                ; +0x2e, 0x1007b116e\njmp     short loc_1007B11A8                                            ; +0x34, 0x1007b1174\nmov     rcx, [rbx+2A0h]                                                ; +0x36, 0x1007b1176\ntest    rcx, rcx                                                       ; +0x3d, 0x1007b117d\njz      short loc_1007B118C                                            ; +0x40, 0x1007b1180\nxor     esi, esi                                                       ; +0x42, 0x1007b1182\nsub     esi, [rcx+158h]                                                ; +0x44, 0x1007b1184\njmp     short loc_1007B11A8                                            ; +0x4a, 0x1007b118a\nmov     rcx, [rbx+290h]                                                ; +0x4c, 0x1007b118c\ntest    rcx, rcx                                                       ; +0x53, 0x1007b1193\njz      short loc_1007B11A6                                            ; +0x56, 0x1007b1196\nmov     esi, [rcx+148h]                                                ; +0x58, 0x1007b1198\nsub     esi, [rcx+14Ch]                                                ; +0x5e, 0x1007b119e\njmp     short loc_1007B11A8                                            ; +0x64, 0x1007b11a4\nxor     esi, esi                                                       ; +0x66, 0x1007b11a6\nmov     edx, [rbx+32Ch]                                                ; +0x68, 0x1007b11a8\nmov     rdi, rax                                                       ; +0x6e, 0x1007b11ae\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0x71, 0x1007b11b1\nmov     rdi, rbx                                                       ; +0x76, 0x1007b11b6\nadd     rsp, 8                                                         ; +0x79, 0x1007b11b9\npop     rbx                                                            ; +0x7d, 0x1007b11bd\npop     rbp                                                            ; +0x7e, 0x1007b11be\njmp     InfoLayer__reloadWindow                                        ; +0x7f, 0x1007b11bf", "xrefs": ["InfoLayer::init @ 0x1007afbb3"], "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"}