//
// EditorUI::deselectObjectsColor from 0x1005b9d60 to 0x1005b9de0 (128 bytes)
//
// 1 xrefs:
// > EditorUI::checkLiveColorSelect @ 0x1005b8f53
//
// 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:32:43 +0000
//
__int64 __fastcall EditorUI::deselectObjectsColor(__int64 a1)
{
__int64 v2; // rdi
__int64 result; // rax
unsigned int v4; // r14d
__int64 v5; // rax
v2 = *(_QWORD *)(a1 + 1496);
if ( v2 )
return GameObject::deselectObject(v2);
result = sub_1007FEF90(*(_QWORD *)(a1 + 896));
if ( (_DWORD)result )
{
result = sub_1007FEF90(*(_QWORD *)(a1 + 896));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v4);
GameObject::deselectObject(v5);
++v4;
result = sub_1007FEF90(*(_QWORD *)(a1 + 896));
}
while ( v4 < (unsigned int)result );
}
}
return result;
}