//
// EditorUI::deactivateTransformControl from 0x1402034c0 to 0x140203582 (194 bytes)
//
// 24 xrefs:
// > EditorUI::init @ 0x1401a9eaf
// > EditorUI::onDelete @ 0x1401b039a
// > EditorUI::onDelete @ 0x1401b04ea
// > EditorUI::onDeleteSelected @ 0x1401b0b24
// > EditorUI::onDeleteSelected @ 0x1401b0de5
// > EditorUI::onDeleteSelected @ 0x1401b0e14
// > EditorUI::updateSpecialUIElements @ 0x1401b3b97
// > EditorUI::addObjectsToSmartTemplate @ 0x1401b65c5
// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b7225
// > EditorUI::deleteSmartBlocksFromObjects @ 0x1401b7821
// > EditorUI::createSmartObjectsFromType @ 0x1401b7ce5
// > EditorUI::selectAll @ 0x1401c7ffe
// > EditorUI::selectAllWithDirection @ 0x1401c81b4
// > EditorUI::deselectAll @ 0x1401c8389
// > EditorUI::spriteFromObjectString @ 0x1401f0be3
// > EditorUI::alignObjects @ 0x140201c5f
// > EditorUI::updateControlsAfterAlign @ 0x140201d10
// > EditorUI::activateRotationControl @ 0x140202635
// > EditorUI::activateScaleControl @ 0x140202c16
// > EditorUI::activateTransformControl @ 0x14020330d
// > LevelEditorLayer::handleAction @ 0x1403f2e76
// > ??> @ 0x1408a4048
// > ??> @ 0x1408a4058
// > ??> @ 0x14091b020
//
// This function is hookable on this platform (idp: pc, 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:28:14 +0000
//
void __fastcall EditorUI::deactivateTransformControl(__int64 a1)
{
__int64 v2; // rbx
__int64 v3; // rcx
__int64 v4; // rcx
__int16 v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+32h] [rbp+Ah]
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 840) + 336LL))(*(_QWORD *)(a1 + 840), 0);
v2 = *(_QWORD *)(a1 + 840);
v3 = *(_QWORD *)(v2 + 584);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)(v3 + 320) + 32LL))(v3 + 320, 0, 0);
*(_QWORD *)(v2 + 584) = 0;
if ( *(_DWORD *)(v2 + 432) != -1 )
{
v4 = *(_QWORD *)(v2 + 440);
*(_DWORD *)(v2 + 432) = -1;
*(_WORD *)(v2 + 436) = 0;
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);
}
}
v5 = -1;
v6 = -1;
EditorUI::updateEditButtonColor(a1, 47, &v5);
}