//
// SetupAreaTintTriggerPopup::onClose from 0x1405a7ea0 to 0x1405a7f4a (170 bytes)
//
// 5 xrefs:
// > ??> @ 0x1407ebe68
// > ??> @ 0x1407ecdc8
// > ??> @ 0x1408decc4
// > ??> @ 0x1408decd4
// > ??> @ 0x14092d620
//
// 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:39 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rax
cocos2d::CCArray *v5; // rcx
unsigned int v6; // edi
struct cocos2d::CCObject *v7; // rax
if ( *(_BYTE *)(a1 + 1048) )
{
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
*(_OWORD *)(v4 + 1628) = *(_OWORD *)(a1 + 1032);
}
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 + 1032);
}
while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}