//
// ColorSelectPopup::updateHSVValue from 0x10041f9b8 to 0x10041fa40 (136 bytes)
//
// 1 xrefs:
// > ColorSelectPopup::closeColorSelect @ 0x10041e73c
//
// 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 __fastcall ColorSelectPopup::updateHSVValue(ColorSelectPopup *a1)
{
EffectGameObject *m_gameObject; // x8
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v4; // w20
ColorAction *m_colorAction; // x8
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_hsvValue = a1->m_hsv;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )
{
v4 = 0;
do
*(cocos2d::ccHSVValue *)(sub_10024A388((__int64)a1->m_gameObjects, v4++) + 1612) = a1->m_hsv;
while ( v4 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );
}
}
else
{
m_colorAction = a1->m_colorAction;
if ( m_colorAction )
m_colorAction->m_copyHSV = a1->m_hsv;
}
}
}