//
// SetupPulsePopup::updateCopyColor from 0x5ec440 to 0x5ec480 (64 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::textChanged @ 0x5ec6a2
// > SetupPulsePopup::colorSelectClosed @ 0x5eccac
// > SetupPulsePopup::onUpdateCopyColor @ 0x5ed098
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:54:23 +0000
//
_DWORD *__fastcall SetupPulsePopup::updateCopyColor(_DWORD *this)
{
_DWORD *v1; // r5
unsigned int v2; // r4
int v3; // r0
v1 = this;
v2 = *(this + 132);
if ( v2 )
{
*(_DWORD *)(v2 + 1448) = *(this + 211);
}
else if ( *(this + 133) )
{
while ( 1 )
{
this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v1[133]);
if ( v2 >= (unsigned int)this )
break;
v3 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v1[133], v2++);
*(_DWORD *)(v3 + 1448) = v1[211];
}
}
return this;
}