{"type": "func", "start": 3652312, "end": 3652380, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x37bad8 to 0x37bb1c (68 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x3a28c6\n// > EditorUI::keyDown @ 0x3a73f2\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  ButtonSprite *v3; // r0\n  const char *v4; // r1\n  GameManager *v5; // r0\n\n  a1->m_freeMoveEnabled ^= 1u;\n  v3 = (ButtonSprite *)((int (__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 0x37bad8 to 0x37bb1c (68 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x3a28c6\n; > EditorUI::keyDown @ 0x3a73f2\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\nLDRB.W          R3, [R0,#0x244]                                        ; +0x0, 0x37bad8\nPUSH            {R4,LR}                                                ; +0x4, 0x37badc\nEOR.W           R3, R3, #1                                             ; +0x6, 0x37bade\nMOV             R4, R0                                                 ; +0xa, 0x37bae2\nSTRB.W          R3, [R0,#0x244]                                        ; +0xc, 0x37bae4\nLDR.W           R0, [R0,#0x27C]                                        ; +0x10, 0x37bae8\nLDR             R3, [R0]                                               ; +0x14, 0x37baec\nLDR.W           R3, [R3,#0x210]                                        ; +0x16, 0x37baee\nBLX             R3                                                     ; +0x1a, 0x37baf2\nLDRB.W          R3, [R4,#0x244]                                        ; +0x1c, 0x37baf4\nCBNZ            R3, loc_37BB00                                         ; +0x20, 0x37baf8\nLDR             R1, =(aGjButton01Png - 0x37BB00); \"GJ_button_01.png\"   ; +0x22, 0x37bafa\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x24, 0x37bafc\nB               loc_37BB04                                             ; +0x26, 0x37bafe\nLDR             R1, =(aGjButton02Png - 0x37BB06); \"GJ_button_02.png\"   ; +0x28, 0x37bb00\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x2a, 0x37bb02\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x2c, 0x37bb04\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x37bb08\nLDR             R1, =(a0004 - 0x37BB16); \"0004\"                        ; +0x34, 0x37bb0c\nLDRB.W          R2, [R4,#0x244]; bool                                  ; +0x36, 0x37bb0e\nADD             R1, PC; \"0004\"                                         ; +0x3a, 0x37bb12\nPOP.W           {R4,LR}                                                ; +0x3c, 0x37bb14\nB.W             _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x40, 0x37bb18", "xrefs": ["EditorUI::init @ 0x3a28c6", "EditorUI::keyDown @ 0x3a73f2"], "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"}