//
// SetupPulsePopup::onUpdateCopyColor from 0x1003b676c to 0x1003b67d8 (108 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::init @ 0x1003b58ec
//
// 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 __fastcall SetupPulsePopup::onUpdateCopyColor(SetupPulsePopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_copyColorID; // w8
int v5; // w8
int v6; // w8
if ( a1->m_copyColorID >= 1000 )
a1->m_copyColorID = 0;
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))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 )
v6 = 999;
a1->m_copyColorID = v6;
SetupPulsePopup::updateCopyColor(a1);
SetupPulsePopup::updateCopyColorTextInputLabel(a1);
}