//
// SetupPulsePopup::onUpdateCopyColor from 0x8f1dac to 0x8f1e24 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x844e0
// > SetupPulsePopup::init @ 0x8f1164
// > SetupPulsePopup::init @ 0x8f1218
// > ??> @ 0x122c760
//
// 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; // w0
int m_copyColorID; // w1
int v5; // w1
if ( a1->m_copyColorID > 999 )
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;
if ( v5 < 0 )
v5 = 0;
if ( v5 > 999 )
v5 = 999;
a1->m_copyColorID = v5;
SetupPulsePopup::updateCopyColor(a1);
SetupPulsePopup::updateCopyColorTextInputLabel(a1);
}