//
// SetupPulsePopup::updateColorValue from 0x8ecf64 to 0x8ecffc (152 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0x8ed544
// > ??> @ 0xb6fd0
//
// 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::updateColorValue(SetupPulsePopup *a1)
{
EffectGameObject *m_gameObject; // x0
GLubyte r; // w2
GLubyte g; // w1
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v6; // w20
_BYTE *v7; // x0
GLubyte v8; // w2
GLubyte v9; // w1
bool v10; // cf
unsigned int v11; // w1
if ( !a1->m_colorInitializing )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
r = a1->m_currentColor.r;
g = a1->m_currentColor.g;
m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;
m_gameObject->m_triggerTargetColor.r = r;
m_gameObject->m_triggerTargetColor.g = g;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v6 = 0;
while ( 1 )
{
v10 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v11 = v6++;
if ( v10 )
break;
v7 = (_BYTE *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v11);
v8 = a1->m_currentColor.r;
v9 = a1->m_currentColor.g;
v7[1434] = a1->m_currentColor.b;
v7[1432] = v8;
v7[1433] = v9;
m_gameObjects = a1->m_gameObjects;
}
}
}
}
}