//
// HSVLiveOverlay::determineStartValues from 0xa23aa8 to 0xa23b74 (204 bytes)
//
// 2 xrefs:
// > HSVLiveOverlay::init @ 0xa23e7c
// > ??> @ 0xbaff0
//
// 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::determineStartValues(HSVLiveOverlay *a1)
{
GameObject *m_object; // x0
unsigned int v3; // w20
bool v4; // zf
GameObject *v5; // x0
bool v6; // w2
GJSpriteColor *RelativeSpriteColor; // x0
_BOOL4 m_unkBool2; // w1
GameObject *v9; // x0
GameObject *v10; // x21
m_object = a1->m_object;
v3 = 0;
if ( !m_object )
{
while ( 1 )
{
while ( 1 )
{
if ( v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_objects) )
return;
v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_objects, v3);
v10 = v9;
if ( a1->m_unkBool1 )
break;
RelativeSpriteColor = GameObject::getRelativeSpriteColor(v9, 1);
m_unkBool2 = a1->m_unkBool2;
a1->m_unkBool1 = RelativeSpriteColor != nullptr;
if ( !m_unkBool2 )
goto LABEL_12;
LABEL_8:
++v3;
}
if ( a1->m_unkBool2 )
goto LABEL_8;
LABEL_12:
++v3;
a1->m_unkBool2 = GameObject::getRelativeSpriteColor(v10, 2) != nullptr;
}
}
v4 = GameObject::getRelativeSpriteColor(m_object, 1) == nullptr;
v5 = a1->m_object;
v6 = !v4;
a1->m_unkBool1 = v6;
a1->m_unkBool2 = GameObject::getRelativeSpriteColor(v5, 2) != nullptr;
}