//
// EditorUI::deactivateScaleControl from 0x1001600b8 to 0x100160138 (128 bytes)
//
// 8 xrefs:
// > EditorUI::activateTransformControl @ 0x10015f918
// > EditorUI::activateScaleControl @ 0x10015ff68
// > EditorUI::deselectAll @ 0x1001a5cdc
// > EditorUI::selectAll @ 0x1001a6460
// > EditorUI::selectAllWithDirection @ 0x1001a6594
// > EditorUI::init @ 0x10046e734
// > EditorUI::updateSpecialUIElements @ 0x100474860
// > EditorUI::deleteObject @ 0x100476500
//
// 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
//
void __fastcall EditorUI::deactivateScaleControl(__int64 a1)
{
int v2; // w8
__int64 v3; // x0
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 352LL))(*(_QWORD *)(a1 + 784));
v3 = *(_QWORD *)(a1 + 784);
if ( v2 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
sub_1001585B4(*(_QWORD *)(a1 + 784));
sub_100158E98(*(_QWORD **)(a1 + 784));
v3 = *(_QWORD *)(a1 + 784);
*(_QWORD *)(v3 + 584) = 0x3F00000040000000LL;
}
EditorUI::updateEditButtonColor(a1, *(_DWORD *)(v3 + 592), 0xFFFFFF);
*(_DWORD *)(*(_QWORD *)(a1 + 784) + 592LL) = 0;
}