//
// SetupAreaTintTriggerPopup::onClose from 0xa08f98 to 0xa09074 (220 bytes)
//
// 3 xrefs:
// > ??> @ 0x4a790
// > ??> @ 0x11d2b68
// > ??> @ 0x11d3b58
//
// 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; // x0
float h; // w3
float s; // w2
bool absoluteBrightness; // w4
float v; // w1
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v10; // w20
__int64 v11; // x1
float v12; // w4
float v13; // w3
bool v14; // w5
float v15; // w2
bool v16; // cf
unsigned int v17; // w1
if ( a1->m_hsvChanged )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
h = a1->m_hsvValue.h;
s = a1->m_hsvValue.s;
absoluteBrightness = a1->m_hsvValue.absoluteBrightness;
v = a1->m_hsvValue.v;
m_gameObject->m_hsvValue.absoluteSaturation = a1->m_hsvValue.absoluteSaturation;
m_gameObject->m_hsvValue.absoluteBrightness = absoluteBrightness;
m_gameObject->m_hsvValue.h = h;
m_gameObject->m_hsvValue.s = s;
m_gameObject->m_hsvValue.v = v;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v10 = 0;
while ( 1 )
{
v16 = v10 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v17 = v10++;
if ( v16 )
break;
v11 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v17);
v12 = a1->m_hsvValue.h;
v13 = a1->m_hsvValue.s;
v14 = a1->m_hsvValue.absoluteBrightness;
v15 = a1->m_hsvValue.v;
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v11 + 1608) = a1->m_hsvValue.absoluteSaturation;
*(_BYTE *)(v11 + 1609) = v14;
*(float *)(v11 + 1596) = v12;
*(float *)(v11 + 1600) = v13;
*(float *)(v11 + 1604) = v15;
}
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}