//
// ColorSelectPopup::onUpdateCopyColor from 0x73fd8c to 0x73fe04 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0xa3368
// > ColorSelectPopup::init @ 0x73e058
// > ColorSelectPopup::init @ 0x73e118
// > ??> @ 0x122da08
//
// 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 ColorSelectPopup::onUpdateCopyColor(ColorSelectPopup *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;
ColorSelectPopup::updateCopyColor(a1);
ColorSelectPopup::updateCopyColorTextInputLabel(a1);
}