//
// HSVLiveOverlay::hsvChanged from 0x1402ba2d0 to 0x1402ba3b6 (230 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405805c8
// > ??> @ 0x1406d278c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void HSVLiveOverlay::hsvChanged(HSVLiveOverlay *a1, ConfigureHSVWidget *a2)
{
int v4; // eax
struct cocos2d::CCObject *v5; // rcx
unsigned int v6; // edi
int v7; // ebp
_BOOL8 v8; // r14
cocos2d::CCArray *v9; // rbx
struct cocos2d::CCObject *v10; // rcx
cocos2d::CCObjectType m_eObjType; // eax
GJSpriteColor *RelativeSpriteColor; // rax
cocos2d::ccHSVValue m_hsv; // [rsp+20h] [rbp-18h]
v4 = a2->getTag(a2);
v5 = *(struct cocos2d::CCObject **)&a1->m_uID;
v6 = 0;
v7 = v4;
v8 = v4 != 1;
m_hsv = a2->m_hsv;
if ( v5 )
v9 = cocos2d::CCArray::createWithObject(v5);
else
v9 = *(cocos2d::CCArray **)&a1->m_nTag;
if ( v9 && cocos2d::CCArray::count(v9) )
{
do
{
v10 = cocos2d::CCArray::objectAtIndex(v9, v6);
m_eObjType = v10[18].m_eObjType;
if ( m_eObjType == 1006 || m_eObjType == 899 )
{
if ( v7 == 1 )
*(cocos2d::ccHSVValue *)((char *)&v10[29].__vftable + 4) = m_hsv;
}
else
{
RelativeSpriteColor = GameObject::getRelativeSpriteColor((GameObject *)v10, (int)v8 + 1);
if ( RelativeSpriteColor )
RelativeSpriteColor->m_hsv = m_hsv;
}
++v6;
}
while ( v6 < cocos2d::CCArray::count(v9) );
}
}