//
// CustomizeObjectSettingsPopup::onClose from 0x987244 to 0x9872c8 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0xbcc80
// > ??> @ 0x14721b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:54 +0000
//
__int64 __fastcall CustomizeObjectSettingsPopup::onClose(CustomizeObjectSettingsPopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
__int64 v8; // x0
cocos2d::CCTouchDispatcher *v9; // x0
v4 = *((cocos2d::CCDirector **)this + 127);
if ( v4 && (v4 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1024), *((_BYTE *)this + 1024)) )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, this);
SetupTriggerPopup::onClose(this, a2);
return CustomizeObjectLayer::recreateLayer(*((CustomizeObjectLayer ***)this + 127));
}
else
{
v8 = cocos2d::CCDirector::sharedDirector(v4);
v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, this);
return SetupTriggerPopup::onClose(this, a2);
}
}