//
// ColorSelectPopup::onUpdateCopyColor from 0x1400934e0 to 0x14009354a (106 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::init @ 0x14008fc2b
// > ColorSelectPopup::init @ 0x14008fcd5
// > ??> @ 0x1406c7128
//
// 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 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;
ColorSelectPopup::updateCopyColor(a1);
ColorSelectPopup::updateCopyColorTextInputLabel(a1);
}