{"type": "func", "start": 4298928888, "end": 4298928992, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x1003c72f8 to 0x1003c7360 (104 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x1003c6dc8\n// > EditorUI::keyDown @ 0x1003fa078\n// > EditorUI::init @ 0x1003c5550\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::toggleFreeMove(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  ButtonSprite *v3; // x0\n  const char *v4; // x1\n  GameManager *v5; // x0\n\n  a1->m_freeMoveEnabled ^= 1u;\n  v3 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_freeMoveBtn->getNormalImage)(\n                         a1->m_freeMoveBtn,\n                         a2);\n  if ( a1->m_freeMoveEnabled )\n    v4 = \"GJ_button_02.png\";\n  else\n    v4 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v3, v4);\n  v5 = GameManager::sharedState();\n  GameManager::setGameVariable(v5, \"0004\", a1->m_freeMoveEnabled);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x1003c72f8 to 0x1003c7360 (104 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x1003c6dc8\n; > EditorUI::keyDown @ 0x1003fa078\n; > EditorUI::init @ 0x1003c5550\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, 0x1003c72f8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003c72fc\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003c7300\nMOV             X19, X0                                                ; +0xc, 0x1003c7304\nLDRB            W8, [X0,#0x308]                                        ; +0x10, 0x1003c7308\nEOR             W8, W8, #1                                             ; +0x14, 0x1003c730c\nSTRB            W8, [X0,#0x308]                                        ; +0x18, 0x1003c7310\nLDR             X0, [X0,#0x360]                                        ; +0x1c, 0x1003c7314\nLDR             X8, [X0]                                               ; +0x20, 0x1003c7318\nLDR             X8, [X8,#0x420]                                        ; +0x24, 0x1003c731c\nBLR             X8                                                     ; +0x28, 0x1003c7320\nLDRB            W8, [X19,#0x308]                                       ; +0x2c, 0x1003c7324\nADRL            X9, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x30, 0x1003c7328\nADRL            X10, aGjButton02Png; \"GJ_button_02.png\"                ; +0x38, 0x1003c7330\nCMP             W8, #0                                                 ; +0x40, 0x1003c7338\nCSEL            X1, X10, X9, NE                                        ; +0x44, 0x1003c733c\nBL              ButtonSprite__updateBGImage                            ; +0x48, 0x1003c7340\nBL              GameManager__sharedState                               ; +0x4c, 0x1003c7344\nLDRB            W2, [X19,#0x308]                                       ; +0x50, 0x1003c7348\nADRL            X1, a0004; \"0004\"                                      ; +0x54, 0x1003c734c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1003c7354\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1003c7358\nB               GameManager__setGameVariable                           ; +0x64, 0x1003c735c", "xrefs": ["EditorUI::init @ 0x1003c6dc8", "EditorUI::keyDown @ 0x1003fa078", "EditorUI::init @ 0x1003c5550"], "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"}