{"type": "func", "start": 6840284, "end": 6840420, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x685fdc to 0x686064 (136 bytes)\n// \n// 5 xrefs:\n// > EditorUI::init @ 0x6bdd10\n// > EditorUI::keyDown @ 0x6c5e74\n// > <???> @ 0x9c438\n// > EditorUI::init @ 0x6bc510\n// > <???> @ 0x122d568\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 EditorUI::toggleFreeMove(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  bool m_freeMoveEnabled; // w1\n  CCMenuItemSpriteExtra *m_freeMoveBtn; // x0\n  CCMenuItemSpriteExtra_vtbl *v5; // x2\n  ButtonSprite *v6; // x0\n  GameManager *v7; // x0\n\n  m_freeMoveEnabled = a1->m_freeMoveEnabled;\n  m_freeMoveBtn = a1->m_freeMoveBtn;\n  v5 = m_freeMoveBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  a1->m_freeMoveEnabled = !m_freeMoveEnabled;\n  v6 = (ButtonSprite *)v5->getNormalImage(m_freeMoveBtn);\n  if ( a1->m_freeMoveEnabled )\n    ButtonSprite::updateBGImage(v6, \"GJ_button_02.png\");\n  else\n    ButtonSprite::updateBGImage(v6, \"GJ_button_01.png\");\n  v7 = GameManager::sharedState();\n  GameManager::setGameVariable(v7, \"0004\", a1->m_freeMoveEnabled);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x685fdc to 0x686064 (136 bytes)\n; \n; 5 xrefs:\n; > EditorUI::init @ 0x6bdd10\n; > EditorUI::keyDown @ 0x6c5e74\n; > <???> @ 0x9c438\n; > EditorUI::init @ 0x6bc510\n; > <???> @ 0x122d568\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x685fdc\nMOV             X29, SP                                                ; +0x4, 0x685fe0\nLDR             X2, [X0,#0x370]                                        ; +0x8, 0x685fe4\nLDRB            W1, [X0,#0x318]                                        ; +0xc, 0x685fe8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x10, 0x685fec\nMOV             X19, X0                                                ; +0x14, 0x685ff0\nMOV             X0, X2                                                 ; +0x18, 0x685ff4\nLDR             X2, [X2]                                               ; +0x1c, 0x685ff8\nEOR             W1, W1, #1                                             ; +0x20, 0x685ffc\nSTRB            W1, [X19,#0x318]                                       ; +0x24, 0x686000\nLDR             X1, [X2,#0x420]                                        ; +0x28, 0x686004\nBLR             X1                                                     ; +0x2c, 0x686008\nLDRB            W1, [X19,#0x318]                                       ; +0x30, 0x68600c\nCBZ             W1, loc_68603C                                         ; +0x34, 0x686010\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x38, 0x686014\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x68601c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0x686020\nLDRB            W2, [X19,#0x318]; bool                                 ; +0x48, 0x686024\nADRP            X1, #a0004@PAGE; \"0004\"                                ; +0x4c, 0x686028\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0x68602c\nADD             X1, X1, #a0004@PAGEOFF; \"0004\"                         ; +0x54, 0x686030\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x686034\nB               _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x5c, 0x686038\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x60, 0x68603c\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x68, 0x686044\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6c, 0x686048\nLDRB            W2, [X19,#0x318]; bool                                 ; +0x70, 0x68604c\nADRP            X1, #a0004@PAGE; \"0004\"                                ; +0x74, 0x686050\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x78, 0x686054\nADD             X1, X1, #a0004@PAGEOFF; \"0004\"                         ; +0x7c, 0x686058\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x68605c\nB               _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x84, 0x686060", "xrefs": ["EditorUI::init @ 0x6bdd10", "EditorUI::keyDown @ 0x6c5e74", "<???> @ 0x9c438", "EditorUI::init @ 0x6bc510", "<???> @ 0x122d568"], "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"}