//
// EditorUI::activateTransformControl from 0x10015f8e4 to 0x10015f970 (140 bytes)
//
// 3 xrefs:
// > EditorUI::updateControlsAfterAlign @ 0x10015f3f4
// > EditorUI::handleEditorAction @ 0x100162dd0
// > EditorUI::createMoveMenu @ 0x100185f5c
//
// 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 10:59:45 +0000
//
__int64 __fastcall EditorUI::activateTransformControl(__int64 a1)
{
__int64 result; // x0
__n128 v3; // q0
__int64 v4; // x0
result = sub_1002E757C(*(_QWORD *)(a1 + 896));
if ( (_DWORD)result || *(_QWORD *)(a1 + 1496) )
{
v4 = EditorSFXManager::sharedState(v3);
EditorSFXManager::playAction_1(v4, 189);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateRotationControl(a1);
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )
{
EditorUI::deactivateTransformControl(a1);
return EditorUI::toggleSpecialEditButtons(a1, 0);
}
else
{
return EditorUI::showTransformControl(a1);
}
}
return result;
}