//
// EditorUI::toggleEnableRotate from 0x4865a4 to 0x486608 (100 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x48bf66
// > EditorUI::handleEditorAction @ 0x6f1b7c
//
// 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:25 +0000
//
int __fastcall EditorUI::toggleEnableRotate(EditorUI *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *GameVariable; // r5
GameManager *v5; // r0
EditorSFXManager *v6; // r0
EditorSFXManager *v7; // r0
char *v8; // r0
v3 = (GameManager *)GameManager::sharedState(this);
GameVariable = (GameManager *)GameManager::getGameVariable(v3, "0007");
v5 = (GameManager *)GameManager::sharedState(GameVariable);
v6 = (EditorSFXManager *)GameManager::setGameVariable(v5, "0007", (const char *)((unsigned __int8)GameVariable ^ 1));
v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v6);
EditorSFXManager::playAction(v7, 193, 189);
v8 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 178) + 536))(*((_DWORD *)this + 178));
if ( GameVariable )
{
ButtonSprite::updateBGImage(v8, "GJ_button_01.png");
return EditorUI::deactivateRotationControl(this);
}
else
{
ButtonSprite::updateBGImage(v8, "GJ_button_02.png");
return EditorUI::toggleSpecialEditButtons((cocos2d::CCArray **)this, 1);
}
}