//
// sub_100645530 from 0x100645530 to 0x100645598 (104 bytes)
//
// 5 xrefs:
// > EditorUI::activateRotationControl @ 0x10060eaf9
// > EditorUI::deactivateTransformControl @ 0x1006111ea
// > sub_100611790 @ 0x1006117c6
// > EditorUI::activateTransformControl @ 0x10061192b
// > EditorUI::activateScaleControl @ 0x100612c34
//
// 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:44 +0000
//
__int64 __fastcall sub_100645530(__int64 a1)
{
__int64 v2; // rdi
__int64 result; // rax
__int64 v4; // rdi
v2 = *(_QWORD *)(a1 + 584);
if ( v2 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v2 + 920LL))(v2, 0, 0);
*(_QWORD *)(a1 + 584) = 0;
if ( *(_DWORD *)(a1 + 432) != -1 )
{
*(_DWORD *)(a1 + 432) = -1;
*(_WORD *)(a1 + 436) = 0;
v4 = *(_QWORD *)(a1 + 440);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);
}
return result;
}