//
// SetupPulsePopup::onUpdateCustomColor from 0x1003add50 to 0x1003ade33 (227 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::init @ 0x1003ab609
// > SetupPulsePopup::init @ 0x1003ab6ba
//
// 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; // eax
unsigned int v4; // edx
unsigned int v5; // esi
EffectGameObject *m_gameObject; // rdi
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v8; // r14d
EffectGameObject *v9; // rax
if ( a1->m_targetGroupID >= 1000 && a1->m_pulseTargetType != 1 )
a1->m_targetGroupID = 0;
v3 = a1->m_targetGroupID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1) - 1;
v4 = 999;
if ( a1->m_pulseTargetType == 1 )
v4 = 9999;
v5 = 0;
if ( v3 > 0 )
v5 = v3;
if ( v4 < v5 )
v5 = v4;
a1->m_targetGroupID = v5;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, v5);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v8 = 0;
do
{
v9 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v8);
EffectGameObject::setTargetID(v9, a1->m_targetGroupID);
++v8;
}
while ( v8 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupTriggerPopup::updateEditorLabel(a1);
SetupPulsePopup::updateTextInputLabel(a1);
}