//
// EditorUI::toggleFreeMove from 0x480f48 to 0x480f98 (80 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x48bf56
// > EditorUI::handleEditorAction @ 0x6f1b8e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:22 +0000
//
int __fastcall EditorUI::toggleFreeMove(EditorUI *this, cocos2d::CCObject *a2)
{
char *v3; // r0
const char *v4; // r1
char *updated; // r0
GameManager *v6; // r0
EditorSFXManager *v7; // r0
EditorSFXManager *v8; // r0
*((_BYTE *)this + 640) ^= 1u;
v3 = (char *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 175) + 536))(
*((_DWORD *)this + 175),
a2);
if ( *((_BYTE *)this + 640) )
v4 = "GJ_button_02.png";
else
v4 = "GJ_button_01.png";
updated = ButtonSprite::updateBGImage(v3, v4);
v6 = (GameManager *)GameManager::sharedState((GameManager *)updated);
v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, "0004", (const char *)*((unsigned __int8 *)this + 640));
v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);
return EditorSFXManager::playAction(v8, 191, 189);
}