//
// SetupPulsePopup::onUpdateCustomColor from 0x1003b62cc to 0x1003b635c (144 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::init @ 0x1003b43ec
//
// 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::onUpdateCustomColor(SetupPulsePopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_targetGroupID; // w8
int v5; // w8
unsigned int v6; // w9
unsigned int v7; // w8
if ( a1->m_targetGroupID >= 1000 && a1->m_pulseTargetType != 1 )
a1->m_targetGroupID = 0;
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))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;
v7 = v5 & ~(v5 >> 31);
if ( v6 < v7 )
v7 = v6;
a1->m_targetGroupID = v7;
SetupPulsePopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
SetupPulsePopup::updateTextInputLabel(a1);
}