//
// EditorUI::toggleFreeMove from 0x100470db0 to 0x100470e28 (120 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x100162f4c
// > EditorUI::init @ 0x100470954
// > EditorUI::init @ 0x10046edd0
//
// This function is hookable on this platform (idp: arm, 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 11:05:38 +0000
//
__int64 __fastcall EditorUI::toggleFreeMove(__int64 a1)
{
__int64 v2; // x0
const char *v3; // x1
__int64 v4; // x0
__n128 v5; // q0
__int64 v6; // x0
*(_BYTE *)(a1 + 864) ^= 1u;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 1072LL))(*(_QWORD *)(a1 + 960));
if ( *(_BYTE *)(a1 + 864) )
v3 = "GJ_button_02.png";
else
v3 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v2, (__int64)v3);
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0004", *(unsigned __int8 *)(a1 + 864));
v6 = EditorSFXManager::sharedState(v5);
return EditorSFXManager::playAction(v6, 191, 189);
}