//
// HSVLiveOverlay::hsvChanged from 0x69c1ea to 0x69c28e (164 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'HSVLiveOverlay::hsvChanged @ 0x69c292
//
// 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:56:19 +0000
//
cocos2d::CCArray *__fastcall HSVLiveOverlay::hsvChanged(HSVLiveOverlay *this, ConfigureHSVWidget *a2)
{
int v4; // r9
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v6; // r7
unsigned int i; // r8
GameObject *v8; // r0
int v9; // r3
_DWORD *RelativeSpriteColor; // r0
int v11; // [sp+0h] [bp-24h]
int v12; // [sp+4h] [bp-20h]
int v13; // [sp+8h] [bp-1Ch]
int v14; // [sp+Ch] [bp-18h]
if ( (*(int (__fastcall **)(ConfigureHSVWidget *))(*(_DWORD *)a2 + 32))(a2) == 1 )
v4 = 1;
else
v4 = 2;
v11 = *((_DWORD *)a2 + 73);
v12 = *((_DWORD *)a2 + 74);
v13 = *((_DWORD *)a2 + 75);
v14 = *((_DWORD *)a2 + 76);
result = *((cocos2d::CCArray **)this + 131);
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(result, *((cocos2d::CCObject **)a2 + 74));
v6 = result;
}
else
{
v6 = *((cocos2d::CCArray **)this + 132);
}
if ( v6 )
{
for ( i = 0; ; ++i )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v6);
if ( i >= (unsigned int)result )
break;
v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(v6, i);
v9 = *((_DWORD *)v8 + 223);
if ( v9 == 1006 || v9 == 899 )
{
if ( v4 == 1 )
{
*((_DWORD *)v8 + 358) = v11;
*((_DWORD *)v8 + 359) = v12;
*((_DWORD *)v8 + 360) = v13;
*((_DWORD *)v8 + 361) = v14;
}
}
else
{
RelativeSpriteColor = (_DWORD *)GameObject::getRelativeSpriteColor(v8, v4);
if ( RelativeSpriteColor )
{
RelativeSpriteColor[4] = v11;
RelativeSpriteColor[5] = v12;
RelativeSpriteColor[6] = v13;
RelativeSpriteColor[7] = v14;
}
}
}
}
return result;
}