//
// HSVLiveOverlay::closeColorSelect from 0x1402ba060 to 0x1402ba0a8 (72 bytes)
//
// 2 xrefs:
// > HSVLiveOverlay::init @ 0x1402b9a92
// > ??> @ 0x1406d272c
//
// 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 HSVLiveOverlay::closeColorSelect(HSVLiveOverlay *a1, cocos2d::CCObject *a2)
{
_BOOL8 v3; // rdx
ColorSelectDelegate *m_delegate; // rcx
a1->m_unkBool3 = a2 != nullptr;
a1->setKeypadEnabled(a1, 0);
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->colorSelectClosed(m_delegate, a1);
LOBYTE(v3) = 1;
a1->removeFromParentAndCleanup(a1, v3);
}