//
// SetupAreaTintTriggerPopup::onClose from 0x140410810 to 0x1404108ba (170 bytes)
//
// 5 xrefs:
// > ??> @ 0x1405dd220
// > ??> @ 0x1405de1c0
// > ??> @ 0x14069f5e8
// > ??> @ 0x14069f5f8
// > ??> @ 0x1406d8c90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupAreaTintTriggerPopup::onClose(SetupAreaTintTriggerPopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v6; // edi
struct cocos2d::CCObject *v7; // rax
if ( a1->m_hsvChanged )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_hsvValue = a1->m_hsvValue;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v6 = 0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);
*(cocos2d::ccHSVValue *)((char *)&v7[29].__vftable + 4) = a1->m_hsvValue;
}
while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}