//
// CustomizeObjectSettingsPopup::onClose from 0x1001dc090 to 0x1001dc131 (161 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ade210
//
// This function is hookable on this platform (idp: pc, 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:26:26 +0000
//
__int64 __fastcall CustomizeObjectSettingsPopup::onClose(__int64 a1, __int64 a2)
{
char v2; // r15
__int64 v3; // rax
__int64 v4; // rax
__int64 result; // rax
__int64 v6; // rax
__int64 v7; // rax
if ( *(_QWORD *)(a1 + 1016) )
{
v2 = *(_BYTE *)(a1 + 1024);
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
result = SetupTriggerPopup::onClose(a1, a2);
if ( v2 == 1 )
return CustomizeObjectLayer::recreateLayer(*(_QWORD *)(a1 + 1016), a2);
}
else
{
v6 = cocos2d::CCDirector::sharedDirector(a1, a2);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1);
return SetupTriggerPopup::onClose(a1, a2);
}
return result;
}