{"type": "func", "start": 4298448380, "end": 4298448504, "name": "InfoLayer::toggleSmallCommentMode", "pseudocode": "// \n// InfoLayer::toggleSmallCommentMode from 0x100351dfc to 0x100351e78 (124 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x100350d5c\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 *v3; // x0\n  GameLevelManager *v4; // x0\n  GJUserScore *m_score; // x8\n  int m_userID; // w1\n  GJLevelList *m_levelList; // x8\n  GJGameLevel *m_level; // x8\n\n  v3 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v3, \"0088\");\n  v4 = 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(v4, m_userID, a1->m_mode);\n  InfoLayer::reloadWindow(a1);\n}", "assembly": "; \n; InfoLayer::toggleSmallCommentMode from 0x100351dfc to 0x100351e78 (124 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x100350d5c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100351dfc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100351e00\nADD             X29, SP, #0x10                                         ; +0x8, 0x100351e04\nMOV             X19, X0                                                ; +0xc, 0x100351e08\nBL              GameManager__sharedState                               ; +0x10, 0x100351e0c\nADRL            X1, a0088; \"0088\"                                      ; +0x14, 0x100351e10\nBL              GameManager__toggleGameVariable                        ; +0x1c, 0x100351e18\nBL              GameLevelManager__sharedState                          ; +0x20, 0x100351e1c\nLDR             X8, [X19,#0x298]                                       ; +0x24, 0x100351e20\nCBZ             X8, loc_100351E30                                      ; +0x28, 0x100351e24\nLDR             W1, [X8,#0x174]                                        ; +0x2c, 0x100351e28\nB               loc_100351E60                                          ; +0x30, 0x100351e2c\nLDR             X8, [X19,#0x2A0]                                       ; +0x34, 0x100351e30\nCBZ             X8, loc_100351E44                                      ; +0x38, 0x100351e34\nLDR             W8, [X8,#0x158]                                        ; +0x3c, 0x100351e38\nNEG             W1, W8                                                 ; +0x40, 0x100351e3c\nB               loc_100351E60                                          ; +0x44, 0x100351e40\nLDR             X8, [X19,#0x290]                                       ; +0x48, 0x100351e44\nCBZ             X8, loc_100351E5C                                      ; +0x4c, 0x100351e48\nLDR             W9, [X8,#0x148]                                        ; +0x50, 0x100351e4c\nLDR             W8, [X8,#0x14C]                                        ; +0x54, 0x100351e50\nSUB             W1, W9, W8                                             ; +0x58, 0x100351e54\nB               loc_100351E60                                          ; +0x5c, 0x100351e58\nMOV             W1, #0                                                 ; +0x60, 0x100351e5c\nLDR             W2, [X19,#0x32C]                                       ; +0x64, 0x100351e60\nBL              GameLevelManager__resetCommentTimersForLevelID         ; +0x68, 0x100351e64\nMOV             X0, X19                                                ; +0x6c, 0x100351e68\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x100351e6c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x100351e70\nB               InfoLayer__reloadWindow                                ; +0x78, 0x100351e74", "xrefs": ["InfoLayer::init @ 0x100350d5c"], "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"}