//
// EditorUI::deactivateScaleControl from 0x100612e60 to 0x100612ee9 (137 bytes)
//
// 19 xrefs:
// > EditorUI::init @ 0x1000055a4
// > EditorUI::undoLastAction @ 0x100008199
// > EditorUI::redoLastAction @ 0x100008239
// > EditorUI::onDeleteSelected @ 0x100008389
// > EditorUI::onDeleteSelected @ 0x100008460
// > EditorUI::onDeleteSelected @ 0x1000084c7
// > EditorUI::clickOnPosition @ 0x10000c8ce
// > EditorUI::onDelete @ 0x10000cd20
// > EditorUI::onDelete @ 0x10000cdab
// > EditorUI::updateSpecialUIElements @ 0x10000d56e
// > sub_10000FEF0 @ 0x10000ff36
// > EditorUI::addObjectsToSmartTemplate @ 0x10001388d
// > EditorUI::createSmartObjectsFromTemplate @ 0x100014588
// > EditorUI::deleteSmartBlocksFromObjects @ 0x100014721
// > EditorUI::deleteTypeFromObjects @ 0x100014dbf
// > EditorUI::createSmartObjectsFromType @ 0x100015298
// > EditorUI::deselectAll @ 0x1005b89ba
// > EditorUI::selectAll @ 0x1005b91f6
// > EditorUI::selectAllWithDirection @ 0x1005b939d
//
// 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 12:34:35 +0000
//
__int64 __fastcall EditorUI::deactivateScaleControl(__int64 a1)
{
char v2; // al
__int64 v3; // rdi
__int64 result; // rax
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_100642300(*(_QWORD *)(a1 + 784));
sub_100643040(*(_QWORD *)(a1 + 784));
v3 = *(_QWORD *)(a1 + 784);
*(_QWORD *)(v3 + 584) = 0x3F00000040000000LL;
}
EditorUI::updateEditButtonColor(a1, *(unsigned int *)(v3 + 592), 0xFFFFFF);
result = *(_QWORD *)(a1 + 784);
*(_DWORD *)(result + 592) = 0;
return result;
}