//
// SetupPulsePopup::updateColorValue from 0x5ec2b8 to 0x5ec320 (104 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0x5ef5a2
//
// 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
//
unsigned int __fastcall SetupPulsePopup::updateColorValue(unsigned int this)
{
unsigned int v1; // r4
_BYTE *v2; // r3
char v3; // r1
char v4; // r2
unsigned int v5; // r5
_BYTE *v6; // r0
char v7; // r2
char v8; // r3
v1 = this;
if ( !*(_BYTE *)(this + 848) )
{
v2 = *(_BYTE **)(this + 528);
if ( v2 )
{
this = *(unsigned __int8 *)(this + 772);
v3 = *(_BYTE *)(v1 + 773);
v4 = *(_BYTE *)(v1 + 774);
v2[1268] = this;
v2[1269] = v3;
v2[1270] = v4;
}
else if ( *(_DWORD *)(this + 532) )
{
v5 = *(_DWORD *)(this + 528);
while ( 1 )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 532));
if ( v5 >= this )
break;
v6 = (_BYTE *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 532), v5);
v7 = *(_BYTE *)(v1 + 773);
++v5;
v8 = *(_BYTE *)(v1 + 774);
v6[1268] = *(_BYTE *)(v1 + 772);
v6[1269] = v7;
v6[1270] = v8;
}
}
}
return this;
}