//
// EditorUI::toggleFreeMove from 0x10000be70 to 0x10000bed2 (98 bytes)
//
// 2 xrefs:
// > EditorUI::keyDown @ 0x100050d87
// > EditorUI::init @ 0x100009a2d
//
// 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 __fastcall EditorUI::toggleFreeMove(EditorUI *a1, cocos2d::CCObject *a2)
{
ButtonSprite *v2; // rax
const char *v3; // rsi
GameManager *v4; // rax
a1->m_freeMoveEnabled ^= 1u;
v2 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_freeMoveBtn->getNormalImage)(
a1->m_freeMoveBtn,
a2);
v3 = "GJ_button_01.png";
if ( a1->m_freeMoveEnabled )
v3 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v2, v3);
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0004", a1->m_freeMoveEnabled);
}