{"type": "func", "start": 4298929108, "end": 4298929252, "name": "EditorUI::toggleEnableRotate", "pseudocode": "// \n// EditorUI::toggleEnableRotate from 0x1003c73d4 to 0x1003c7464 (144 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x1003c6dd8\n// > EditorUI::keyDown @ 0x1003f9eac\n// > EditorUI::init @ 0x1003c55c8\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 EditorUI::toggleEnableRotate(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  bool v4; // w21\n  GameManager *v5; // x0\n  ButtonSprite *v6; // x0\n\n  v3 = GameManager::sharedState();\n  v4 = !GameManager::getGameVariable(v3, \"0007\");\n  v5 = GameManager::sharedState();\n  GameManager::setGameVariable(v5, \"0007\", v4);\n  v6 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_rotateBtn->getNormalImage)(a1->m_rotateBtn);\n  if ( v4 )\n  {\n    ButtonSprite::updateBGImage(v6, \"GJ_button_02.png\");\n    EditorUI::toggleSpecialEditButtons(a1);\n  }\n  else\n  {\n    ButtonSprite::updateBGImage(v6, \"GJ_button_01.png\");\n    EditorUI::deactivateRotationControl(a1);\n  }\n}", "assembly": "; \n; EditorUI::toggleEnableRotate from 0x1003c73d4 to 0x1003c7464 (144 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x1003c6dd8\n; > EditorUI::keyDown @ 0x1003f9eac\n; > EditorUI::init @ 0x1003c55c8\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003c73d4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003c73d8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003c73dc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003c73e0\nMOV             X19, X0                                                ; +0x10, 0x1003c73e4\nBL              GameManager__sharedState                               ; +0x14, 0x1003c73e8\nADRL            X20, a0007; \"0007\"                                     ; +0x18, 0x1003c73ec\nMOV             X1, X20                                                ; +0x20, 0x1003c73f4\nBL              GameManager__getGameVariable                           ; +0x24, 0x1003c73f8\nEOR             W21, W0, #1                                            ; +0x28, 0x1003c73fc\nBL              GameManager__sharedState                               ; +0x2c, 0x1003c7400\nMOV             X1, X20                                                ; +0x30, 0x1003c7404\nMOV             X2, X21                                                ; +0x34, 0x1003c7408\nBL              GameManager__setGameVariable                           ; +0x38, 0x1003c740c\nLDR             X0, [X19,#0x378]                                       ; +0x3c, 0x1003c7410\nLDR             X8, [X0]                                               ; +0x40, 0x1003c7414\nLDR             X8, [X8,#0x420]                                        ; +0x44, 0x1003c7418\nBLR             X8                                                     ; +0x48, 0x1003c741c\nTBNZ            W21, #0, loc_1003C7444                                 ; +0x4c, 0x1003c7420\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x50, 0x1003c7424\nBL              ButtonSprite__updateBGImage                            ; +0x58, 0x1003c742c\nMOV             X0, X19                                                ; +0x5c, 0x1003c7430\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1003c7434\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1003c7438\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x1003c743c\nB               EditorUI__deactivateRotationControl                    ; +0x6c, 0x1003c7440\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x70, 0x1003c7444\nBL              ButtonSprite__updateBGImage                            ; +0x78, 0x1003c744c\nMOV             X0, X19                                                ; +0x7c, 0x1003c7450\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x1003c7454\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x1003c7458\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x1003c745c\nB               EditorUI__toggleSpecialEditButtons                     ; +0x8c, 0x1003c7460", "xrefs": ["EditorUI::init @ 0x1003c6dd8", "EditorUI::keyDown @ 0x1003f9eac", "EditorUI::init @ 0x1003c55c8"], "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"}