//
// SetupEnterEffectPopup::onClose from 0x1405b5dd0 to 0x1405b5e7a (170 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407f2f58
// > ??> @ 0x1408dfa34
// > ??> @ 0x1408dfa44
// > ??> @ 0x14092dc80
//
// 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 11:34:43 +0000
//
__int64 __fastcall SetupEnterEffectPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rax
cocos2d::CCArray *v5; // rcx
unsigned int v6; // edi
struct cocos2d::CCObject *v7; // rax
if ( *(_DWORD *)(a1 + 1008) == 3021 && *(_BYTE *)(a1 + 1064) )
{
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
*(_OWORD *)(v4 + 1628) = *(_OWORD *)(a1 + 1048);
}
else
{
v5 = *(cocos2d::CCArray **)(a1 + 688);
if ( v5 )
{
v6 = 0;
if ( cocos2d::CCArray::count(v5) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v6++);
*(_OWORD *)((char *)v7 + 1628) = *(_OWORD *)(a1 + 1048);
}
while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}