//
// SetupPulsePopup::onUpdateCopyColor from 0x14043c3b0 to 0x14043c41a (106 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::init @ 0x14043a64d
// > ??> @ 0x1406da0a0
// > ??> @ 0x1406da0ac
//
// 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::onUpdateCopyColor(SetupPulsePopup *a1, cocos2d::CCObject *a2)
{
int v2; // edi
int v4; // eax
int m_copyColorID; // ecx
int v6; // edx
int v7; // ecx
v2 = 0;
if ( a1->m_copyColorID >= 1000 )
a1->m_copyColorID = 0;
v4 = a2->getTag(a2);
m_copyColorID = a1->m_copyColorID;
v6 = m_copyColorID + 1;
v7 = m_copyColorID - 1;
if ( v4 != 1 )
v7 = v6;
if ( v7 >= 0 )
v2 = v7;
if ( v2 > 999 )
v2 = 999;
a1->m_copyColorID = v2;
SetupPulsePopup::updateCopyColor(a1);
SetupPulsePopup::updateCopyColorTextInputLabel(a1);
}