//
// GJColorSetupLayer::onClose from 0x10018e4c4 to 0x10018e524 (96 bytes)
//
// 4 xrefs:
// > GJColorSetupLayer::onColor @ 0x10018e310
// > GJColorSetupLayer::keyBackClicked @ 0x10018e628
// > sub_10018E62C @ 0x10018e630
// > GJColorSetupLayer::init @ 0x10018e208
//
// 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 GJColorSetupLayer::onClose(GJColorSetupLayer *a1, cocos2d::CCObject *a2)
{
ColorSetupDelegate *m_delegate; // x0
m_delegate = a1->m_delegate;
if ( m_delegate && a1->m_colorID >= 1 )
((void (__fastcall *)(ColorSetupDelegate *))m_delegate->colorSetupClosed)(m_delegate);
((void (__fastcall *)(GJColorSetupLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(GJColorSetupLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}