//
// CustomizeObjectSettingsPopup::onClose from 0x58104e to 0x581086 (56 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:53 +0000
//
int __fastcall CustomizeObjectSettingsPopup::onClose(CustomizeObjectSettingsPopup *this, cocos2d::CCObject *a2)
{
int v3; // r5
int v5; // r0
cocos2d::CCTouchDispatcher *v6; // r0
int result; // r0
v3 = *((_DWORD *)this + 178);
if ( v3 )
v3 = *((unsigned __int8 *)this + 716);
v5 = cocos2d::CCDirector::sharedDirector(this);
v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, this);
result = SetupTriggerPopup::onClose(this, a2);
if ( v3 )
return CustomizeObjectLayer::recreateLayer(*((CustomizeObjectLayer ***)this + 178));
return result;
}