//
// ColorSelectPopup::updateHSVValue from 0x8631d4 to 0x8632b8 (228 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::closeColorSelect @ 0x863448
// > ??> @ 0x7b418
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:55:37 +0000
//
__int64 __fastcall ColorSelectPopup::updateHSVValue(ColorSelectPopup *this)
{
__int64 result; // x0
int v3; // w3
int v4; // w2
char v5; // w4
int v6; // w1
cocos2d::CCArray *v7; // x0
unsigned int v8; // w20
__int64 v9; // x0
int v10; // w3
int v11; // w2
char v12; // w4
int v13; // w1
bool v14; // cf
unsigned int v15; // w1
int v16; // w3
int v17; // w2
char v18; // w4
int v19; // w1
result = *((_QWORD *)this + 85);
if ( result )
{
v3 = *((_DWORD *)this + 298);
v4 = *((_DWORD *)this + 299);
v5 = *((_BYTE *)this + 1205);
v6 = *((_DWORD *)this + 300);
*(_BYTE *)(result + 1624) = *((_BYTE *)this + 1204);
*(_BYTE *)(result + 1625) = v5;
*(_DWORD *)(result + 1612) = v3;
*(_DWORD *)(result + 1616) = v4;
*(_DWORD *)(result + 1620) = v6;
}
else
{
v7 = *((cocos2d::CCArray **)this + 86);
if ( v7 )
{
v8 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(v7);
v14 = v8 >= (unsigned int)result;
v15 = v8++;
if ( v14 )
break;
v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v15);
v10 = *((_DWORD *)this + 298);
v11 = *((_DWORD *)this + 299);
v12 = *((_BYTE *)this + 1205);
v13 = *((_DWORD *)this + 300);
*(_BYTE *)(v9 + 1624) = *((_BYTE *)this + 1204);
*(_BYTE *)(v9 + 1625) = v12;
*(_DWORD *)(v9 + 1612) = v10;
*(_DWORD *)(v9 + 1616) = v11;
*(_DWORD *)(v9 + 1620) = v13;
v7 = *((cocos2d::CCArray **)this + 86);
}
}
else
{
result = *((_QWORD *)this + 143);
if ( result )
{
v16 = *((_DWORD *)this + 298);
v17 = *((_DWORD *)this + 299);
v18 = *((_BYTE *)this + 1205);
v19 = *((_DWORD *)this + 300);
*(_BYTE *)(result + 116) = *((_BYTE *)this + 1204);
*(_BYTE *)(result + 117) = v18;
*(_DWORD *)(result + 104) = v16;
*(_DWORD *)(result + 108) = v17;
*(_DWORD *)(result + 112) = v19;
}
}
}
return result;
}