//
// ColorSelectLiveOverlay::closeColorSelect from 0x4ce080 to 0x4ce0b6 (54 bytes)
//
// 2 xrefs:
// > EditorUI::closeLiveColorSelect @ 0x37fe7e
// > ColorSelectLiveOverlay::keyBackClicked @ 0x4ce0b8
//
// 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)
{
ColorSelectLiveOverlay_vtbl *v2; // r3
ColorSelectDelegate *m_delegate; // r0
v2 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_closeButtonPressed = a2 != nullptr;
((void (*)(void))v2->setKeypadEnabled)();
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->colorSelectClosed(m_delegate, a1);
a1->removeFromParentAndCleanup(a1, 1);
}