//
// ColorSelectLiveOverlay::closeColorSelect from 0x14008d0e0 to 0x14008d128 (72 bytes)
//
// 2 xrefs:
// > ColorSelectLiveOverlay::init @ 0x14008ca2b
// > ??> @ 0x1406c6e28
//
// 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 ColorSelectLiveOverlay::closeColorSelect(ColorSelectLiveOverlay *a1, cocos2d::CCObject *a2)
{
_BOOL8 v3; // rdx
ColorSelectDelegate *m_delegate; // rcx
a1->m_closeButtonPressed = 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);
}