//
// CustomizeObjectSettingsPopup::onClose from 0x84416c to 0x8441f0 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x8ea10
// > ??> @ 0x118d0b8
//
// 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 CustomizeObjectSettingsPopup::onClose(CustomizeObjectSettingsPopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
cocos2d::CCDirector *v6; // x0
cocos2d::CCTouchDispatcher *v7; // x0
if ( a1->m_customizeLayer && a1->m_settingsChanged )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = v4->getTouchDispatcher(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);
SetupTriggerPopup::onClose(a1, a2);
CustomizeObjectLayer::recreateLayer(a1->m_customizeLayer);
}
else
{
v6 = cocos2d::CCDirector::sharedDirector();
v7 = v6->getTouchDispatcher(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1);
SetupTriggerPopup::onClose(a1, a2);
}
}