//
// SetupPulsePopup::updateHSVValue from 0x8ecd2c to 0x8ecde0 (180 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::onClose @ 0x8ecf4c
// > ??> @ 0xb43c0
//
// 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 SetupPulsePopup::updateHSVValue(SetupPulsePopup *a1)
{
EffectGameObject *m_gameObject; // x0
float h; // w3
float s; // w2
bool absoluteBrightness; // w4
float v; // w1
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v8; // w20
__int64 v9; // x1
float v10; // w4
float v11; // w3
bool v12; // w5
float v13; // w2
bool v14; // cf
unsigned int v15; // w1
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
h = a1->m_hsv.h;
s = a1->m_hsv.s;
absoluteBrightness = a1->m_hsv.absoluteBrightness;
v = a1->m_hsv.v;
m_gameObject->m_hsvValue.absoluteSaturation = a1->m_hsv.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 )
{
v8 = 0;
while ( 1 )
{
v14 = v8 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v15 = v8++;
if ( v14 )
break;
v9 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v15);
v10 = a1->m_hsv.h;
v11 = a1->m_hsv.s;
v12 = a1->m_hsv.absoluteBrightness;
v13 = a1->m_hsv.v;
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v9 + 1608) = a1->m_hsv.absoluteSaturation;
*(_BYTE *)(v9 + 1609) = v12;
*(float *)(v9 + 1596) = v10;
*(float *)(v9 + 1600) = v11;
*(float *)(v9 + 1604) = v13;
}
}
}
}