//
// EditorUI::deactivateRotationControl from 0x140202720 to 0x14020278f (111 bytes)
//
// 16 xrefs:
// > EditorUI::init @ 0x1401a9cae
// > EditorUI::onDelete @ 0x1401b038a
// > EditorUI::onDelete @ 0x1401b04da
// > EditorUI::onDeleteSelected @ 0x1401b0b14
// > EditorUI::onDeleteSelected @ 0x1401b0dd5
// > EditorUI::onDeleteSelected @ 0x1401b0e04
// > EditorUI::toggleEnableRotate @ 0x1401b37af
// > EditorUI::updateSpecialUIElements @ 0x1401b3b87
// > EditorUI::addObjectsToSmartTemplate @ 0x1401b65b5
// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b7215
// > EditorUI::deleteSmartBlocksFromObjects @ 0x1401b7811
// > EditorUI::createSmartObjectsFromType @ 0x1401b7cd5
// > EditorUI::deselectAll @ 0x1401c8379
// > EditorUI::spriteFromObjectString @ 0x1401f0bd3
// > EditorUI::activateTransformControl @ 0x1402032f1
// > ??> @ 0x14091af0c
//
// 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:13 +0000
//
__int64 __fastcall EditorUI::deactivateRotationControl(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
*(_DWORD *)(a1 + 744) = -1;
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 344LL))(*(_QWORD *)(a1 + 808));
if ( (_BYTE)result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0);
GJRotationControl::finishTouch(*(_QWORD *)(a1 + 808));
result = *(_QWORD *)(a1 + 808);
v3 = *(_QWORD *)(result + 464);
if ( v3 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1032LL))(v3, 0);
}
return result;
}