//
// EditorUI::toggleFreeMove from 0x100007f50 to 0x100007fc9 (121 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c409
// > EditorUI::init @ 0x100005c77
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:18:48 +0000
//
__int64 __fastcall EditorUI::toggleFreeMove(__int64 a1)
{
__int64 v2; // rax
const char *v3; // rsi
__int64 v4; // rdi
__int64 v5; // rdx
__int64 v6; // rax
__int64 v7; // rax
*(_BYTE *)(a1 + 864) ^= 1u;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 1072LL))(*(_QWORD *)(a1 + 960));
v3 = "GJ_button_01.png";
if ( *(_BYTE *)(a1 + 864) )
v3 = "GJ_button_02.png";
v4 = v2;
ButtonSprite::updateBGImage(v2, v3);
v6 = GameManager::sharedState(v4, v3, v5);
GameManager::setGameVariable(v6, "0004", *(unsigned __int8 *)(a1 + 864));
v7 = EditorSFXManager::sharedState();
return EditorSFXManager::playAction(v7, 191, 189);
}