//
// SetupPulsePopup::updateHSVValue from 0x5ec15c to 0x5ec1b8 (92 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::onClose @ 0x5ec2a6
//
// 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::updateHSVValue(_DWORD *this)
{
_DWORD *v1; // r5
unsigned int v2; // r4
_DWORD *v3; // r5
_DWORD *v4; // r4
_DWORD *v5; // r0
int v6; // [sp+4h] [bp-20h]
int v7; // [sp+8h] [bp-1Ch]
int v8; // [sp+Ch] [bp-18h]
int v9; // [sp+14h] [bp-10h]
int v10; // [sp+18h] [bp-Ch]
int v11; // [sp+1Ch] [bp-8h]
v1 = this;
v2 = *(this + 132);
if ( v2 )
{
v3 = this + 219;
v4 = (_DWORD *)(v2 + 1432);
this = (_DWORD *)*(this + 219);
v6 = v3[1];
v7 = v3[2];
v8 = v3[3];
*v4 = this;
v4[1] = v6;
v4[2] = v7;
v4[3] = v8;
}
else if ( *(this + 133) )
{
while ( 1 )
{
this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v1[133]);
if ( v2 >= (unsigned int)this )
break;
v5 = (_DWORD *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v1[133], v2++);
v9 = v1[220];
v10 = v1[221];
v11 = v1[222];
v5[358] = v1[219];
v5[359] = v9;
v5[360] = v10;
v5[361] = v11;
}
}
return this;
}