//
// EditorUI::activateTransformControl from 0x70efb0 to 0x70f006 (86 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x6f1ae6
// > EditorUI::updateControlsAfterAlign @ 0x70f022
//
// 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:57:43 +0000
//
EditorSFXManager *__fastcall EditorUI::activateTransformControl(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
EditorSFXManager *result; // r0
EditorSFXManager *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
result = (EditorSFXManager *)cocos2d::CCArray::count(*(this + 167));
if ( result || *(this + 249) )
{
v4 = (EditorSFXManager *)EditorSFXManager::sharedState(result);
EditorSFXManager::playAction(v4, 189);
EditorUI::deactivateScaleControl((EditorUI *)this);
EditorUI::deactivateRotationControl((EditorUI *)this);
if ( (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 149) + 176))(*(this + 149)) )
{
EditorUI::deactivateTransformControl((EditorUI *)this);
return (EditorSFXManager *)EditorUI::toggleSpecialEditButtons(this, 0);
}
else
{
return (EditorSFXManager *)EditorUI::showTransformControl(this, v5, v6, v7);
}
}
return result;
}