//
// CustomizeObjectSettingsPopup::onClose from 0x1001f9c70 to 0x1001f9d11 (161 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008da0b0
//
// 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)
{
bool m_settingsChanged; // r15
cocos2d::CCDirector *v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
cocos2d::CCDirector *v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
if ( a1->m_customizeLayer )
{
m_settingsChanged = a1->m_settingsChanged;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
SetupTriggerPopup::onClose(a1, a2);
if ( m_settingsChanged )
CustomizeObjectLayer::recreateLayer(a1->m_customizeLayer);
}
else
{
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
SetupTriggerPopup::onClose(a1, a2);
}
}