//
// HSVLiveOverlay::closeColorSelect from 0x10026ad40 to 0x10026ad8c (76 bytes)
//
// 7 xrefs:
// > EditorUI::checkLiveColorSelect @ 0x10003c721
// > EditorUI::editColor @ 0x10003c872
// > EditorUI::closeLiveHSVSelect @ 0x10003c977
// > EditorUI::editHSV @ 0x10003c9ac
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x100049ee2
// > EditorUI::showLiveColorSelectForMode @ 0x100049fe9
// > HSVLiveOverlay::init @ 0x10026aa0a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall HSVLiveOverlay::closeColorSelect(HSVLiveOverlay *a1, cocos2d::CCObject *a2)
{
ColorSelectDelegate *m_delegate; // rdi
a1->m_unkBool3 = a2 != nullptr;
((void (__fastcall *)(HSVLiveOverlay *, _QWORD))a1->setKeypadEnabled)(a1, 0);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(ColorSelectDelegate *, HSVLiveOverlay *))m_delegate->colorSelectClosed)(m_delegate, a1);
((void (__fastcall *)(HSVLiveOverlay *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}