//
// EditorUI::toggleFreeMove from 0x37bad8 to 0x37bb1c (68 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x3a28c6
// > EditorUI::keyDown @ 0x3a73f2
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::toggleFreeMove(EditorUI *a1, cocos2d::CCObject *a2)
{
ButtonSprite *v3; // r0
const char *v4; // r1
GameManager *v5; // r0
a1->m_freeMoveEnabled ^= 1u;
v3 = (ButtonSprite *)((int (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_freeMoveBtn->getNormalImage)(
a1->m_freeMoveBtn,
a2);
if ( a1->m_freeMoveEnabled )
v4 = "GJ_button_02.png";
else
v4 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v3, v4);
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, "0004", a1->m_freeMoveEnabled);
}