//
// CustomizeObjectSettingsPopup::onClose from 0x100051068 to 0x10005110c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x100771ca0
//
// 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 CustomizeObjectSettingsPopup::onClose(CustomizeObjectSettingsPopup *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_settingsChanged; // w21
cocos2d::CCDirector *v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCTouchDispatcher *v8; // x0
if ( a1->m_customizeLayer )
{
m_settingsChanged = a1->m_settingsChanged;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
SetupTriggerPopup::onClose(a1, a2);
if ( m_settingsChanged )
CustomizeObjectLayer::recreateLayer(a1->m_customizeLayer);
}
else
{
v7 = cocos2d::CCDirector::sharedDirector();
v8 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v7->getTouchDispatcher)(v7);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, a1);
SetupTriggerPopup::onClose(a1, a2);
}
}