//
// SetupPulsePopup::colorValueChanged from 0x1003b74e4 to 0x1003b7558 (116 bytes)
//
// 2 xrefs:
// > sub_1003B77B4 @ 0x1003b77b8
// > ??> @ 0x10080f3e8
//
// 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 SetupPulsePopup::colorValueChanged(SetupPulsePopup *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCSprite *m_currentColorSprite; // x0
cocos2d::extension::CCControlColourPicker *m_colorPicker; // x8
__int16 v5; // w9
m_currentColorSprite = a1->m_currentColorSprite;
if ( m_currentColorSprite )
{
m_colorPicker = a1->m_colorPicker;
v5 = *(_WORD *)&m_colorPicker->m_rgb.r;
a1->m_currentColor.b = m_colorPicker->m_rgb.b;
*(_WORD *)&a1->m_currentColor.r = v5;
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_currentColorSprite->setColor)(
m_currentColorSprite,
&a1->m_currentColor);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_originalColorSprite->setColor)(
a1->m_originalColorSprite,
&a1->m_originalColor);
SetupPulsePopup::updateColorValue(a1);
SetupPulsePopup::updateColorLabels(a1);
}
}