//
// EditorUI::closeLiveColorSelect from 0x1401be3a0 to 0x1401be406 (102 bytes)
//
// 6 xrefs:
// > EditorUI::editObject @ 0x1401bb464
// > EditorUI::editColor @ 0x1401be1cf
// > EditorUI::showLiveColorSelectForMode @ 0x1401be2df
// > EditorUI::editHSV @ 0x1401be42f
// > EditorUI::checkLiveColorSelect @ 0x1401c96f3
// > ??> @ 0x14091a4c8
//
// 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::closeLiveColorSelect(__int64 a1)
{
__int64 *v1; // rbx
__int64 v3; // rax
__int64 v4; // rcx
__int64 v5; // rdx
void (__fastcall ***v6)(_QWORD, __int64 *); // rcx
__int64 result; // rax
v1 = *(__int64 **)(a1 + 1616);
if ( v1 )
{
v3 = *v1;
v4 = *(_QWORD *)(a1 + 1616);
*((_BYTE *)v1 + 857) = 0;
(*(void (__fastcall **)(__int64, _QWORD))(v3 + 992))(v4, 0);
v6 = (void (__fastcall ***)(_QWORD, __int64 *))v1[92];
if ( v6 )
(**v6)(v6, v1);
LOBYTE(v5) = 1;
result = (*(__int64 (__fastcall **)(__int64 *, __int64))(*v1 + 520))(v1, v5);
*(_QWORD *)(a1 + 1616) = 0;
}
return result;
}