//
// EditorUI::deactivateRotationControl from 0xc01bb0 to 0xc01c20 (112 bytes)
//
// 10 xrefs:
// > EditorUI::deleteObject @ 0x7c1c28
// > EditorUI::toggleSpecialEditButtons @ 0x7c7fd8
// > EditorUI::toggleEnableRotate @ 0x7c8a8c
// > EditorUI::init @ 0x7ceeb4
// > EditorUI::updateSpecialUIElements @ 0x7d1798
// > EditorUI::deselectAll @ 0xbdc684
// > EditorUI::selectAll @ 0xbdd2cc
// > EditorUI::selectAllWithDirection @ 0xbdd40c
// > EditorUI::activateTransformControl @ 0xc029dc
// > ??> @ 0x8d628
//
// 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 13:03:49 +0000
//
__int64 __fastcall EditorUI::deactivateRotationControl(EditorUI *this)
{
__int64 v2; // x1
__int64 result; // x0
v2 = *((_QWORD *)this + 95);
*((_DWORD *)this + 174) = -1;
result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 352LL))(v2);
if ( (_BYTE)result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 95) + 344LL))(*((_QWORD *)this + 95), 0);
GJRotationControl::finishTouch(*((GJRotationControl **)this + 95));
return GJRotationControl::releaseInputFocus(*((GJRotationControl **)this + 95));
}
return result;
}