//
// HSVLiveOverlay::closeColorSelect from 0x10019fdd0 to 0x10019fe30 (96 bytes)
//
// 7 xrefs:
// > HSVLiveOverlay::keyBackClicked @ 0x1001a00b0
// > sub_1001A00B4 @ 0x1001a00bc
// > EditorUI::checkLiveColorSelect @ 0x1003eda98
// > EditorUI::editColor @ 0x1003edbf0
// > EditorUI::editHSV @ 0x1003edccc
// > EditorUI::showLiveColorSelectForMode @ 0x1003f5c4c
// > HSVLiveOverlay::init @ 0x10019faa0
//
// 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; // x0
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);
}