//
// CustomizeObjectSettingsPopup::onClose from 0x100059888 to 0x10005992c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008be558
//
// 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 10:57:47 +0000
//
__int64 __fastcall CustomizeObjectSettingsPopup::onClose(__int64 a1, __int64 a2)
{
int v4; // w21
__int64 v5; // x0
__int64 v6; // x0
__int64 result; // x0
__int64 v8; // x0
__int64 v9; // x0
if ( *(_QWORD *)(a1 + 1016) )
{
v4 = *(unsigned __int8 *)(a1 + 1024);
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
result = SetupTriggerPopup::onClose(a1, a2);
if ( v4 == 1 )
return sub_100058C00(*(_QWORD *)(a1 + 1016));
}
else
{
v8 = cocos2d::CCDirector::sharedDirector(a1);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, a1);
return SetupTriggerPopup::onClose(a1, a2);
}
return result;
}