//
// EditorUI::colorSelectClosed from 0x1401bed60 to 0x1401bedcf (111 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407516e8
// > ??> @ 0x14091a510
//
// 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 11:28:02 +0000
//
__int64 __fastcall EditorUI::colorSelectClosed(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
__int64 v3; // rbx
char v4; // di
__int64 v5; // rdi
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 1200);
v3 = a1 - 416;
if ( a2 == v2 )
{
v4 = *(_BYTE *)(v2 + 857);
*(_QWORD *)(a1 + 1200) = 0;
}
else
{
v5 = *(_QWORD *)(a1 + 1208);
if ( a2 != v5 )
return result;
v4 = *(_BYTE *)(v5 + 730);
*(_QWORD *)(a1 + 1208) = 0;
}
result = EditorUI::resetSelectedObjectsColor(a1 - 416);
if ( v4 )
return EditorUI::updateEditColorButton(v3);
return result;
}