//
// SetupPulsePopup::onUpdateCustomColor from 0x8ee720 to 0x8ee7bc (156 bytes)
//
// 4 xrefs:
// > ??> @ 0x9d4a0
// > SetupPulsePopup::init @ 0x8efbd8
// > SetupPulsePopup::init @ 0x8efc88
// > ??> @ 0x122d618
//
// 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::onUpdateCustomColor(SetupPulsePopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_targetGroupID; // w1
int v5; // w1
int v6; // w2
if ( a1->m_targetGroupID > 999 && a1->m_pulseTargetType != 1 )
a1->m_targetGroupID = 0;
v3 = a2->getTag(a2);
m_targetGroupID = a1->m_targetGroupID;
if ( v3 == 1 )
v5 = m_targetGroupID - 1;
else
v5 = m_targetGroupID + 1;
if ( a1->m_pulseTargetType == 1 )
v6 = 9999;
else
v6 = 999;
if ( v5 < 0 )
v5 = 0;
if ( v6 > v5 )
v6 = v5;
a1->m_targetGroupID = v6;
SetupPulsePopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
SetupPulsePopup::updateTextInputLabel(a1);
}