//
// SetupPulsePopup::onUpdateCopyColor from 0x4c08e8 to 0x4c0936 (78 bytes)
//
// 0 xrefs:
//
// 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 v3; // r0
int m_copyColorID; // r3
int v5; // r3
int v6; // r3
if ( a1->m_copyColorID >= 1000 )
a1->m_copyColorID = 0;
v3 = a2->getTag(a2);
m_copyColorID = a1->m_copyColorID;
if ( v3 == 1 )
v5 = m_copyColorID - 1;
else
v5 = m_copyColorID + 1;
v6 = v5 & ~(v5 >> 31);
if ( v6 > 999 )
a1->m_copyColorID = 999;
else
a1->m_copyColorID = v6;
SetupPulsePopup::updateCopyColor(a1);
SetupPulsePopup::updateCopyColorTextInputLabel(a1);
}