{"type": "func", "start": 4298448240, "end": 4298448332, "name": "InfoLayer::toggleCommentMode", "pseudocode": "// \n// InfoLayer::toggleCommentMode from 0x100351d70 to 0x100351dcc (92 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x100350c4c\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::toggleCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // w20\n  GameManager *v4; // x0\n\n  v3 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 0;\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0069\", v3);\n  InfoLayer::updateCommentModeButtons(a1);\n  InfoLayer::loadPage(a1, 0, 0);\n}", "assembly": "; \n; InfoLayer::toggleCommentMode from 0x100351d70 to 0x100351dcc (92 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x100350c4c\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, 0x100351d70\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100351d74\nADD             X29, SP, #0x10                                         ; +0x8, 0x100351d78\nMOV             X19, X0                                                ; +0xc, 0x100351d7c\nLDR             X8, [X1]                                               ; +0x10, 0x100351d80\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x100351d84\nMOV             X0, X1                                                 ; +0x18, 0x100351d88\nBLR             X8                                                     ; +0x1c, 0x100351d8c\nCMP             W0, #0                                                 ; +0x20, 0x100351d90\nCSET            W20, EQ                                                ; +0x24, 0x100351d94\nBL              GameManager__sharedState                               ; +0x28, 0x100351d98\nADRL            X1, a0069; \"0069\"                                      ; +0x2c, 0x100351d9c\nMOV             X2, X20                                                ; +0x34, 0x100351da4\nBL              GameManager__setGameVariable                           ; +0x38, 0x100351da8\nMOV             X0, X19                                                ; +0x3c, 0x100351dac\nBL              InfoLayer__updateCommentModeButtons                    ; +0x40, 0x100351db0\nMOV             X0, X19                                                ; +0x44, 0x100351db4\nMOV             W1, #0                                                 ; +0x48, 0x100351db8\nMOV             W2, #0                                                 ; +0x4c, 0x100351dbc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x100351dc0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x100351dc4\nB               InfoLayer__loadPage                                    ; +0x58, 0x100351dc8", "xrefs": ["InfoLayer::init @ 0x100350c4c"], "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"}