//
// HSVLiveOverlay::determineStartValues from 0xb506cc to 0xb50798 (204 bytes)
//
// 2 xrefs:
// > HSVLiveOverlay::init @ 0xb50ae8
// > ??> @ 0xf3e20
//
// 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 13:01:58 +0000
//
__int64 __fastcall HSVLiveOverlay::determineStartValues(HSVLiveOverlay *this)
{
unsigned int v2; // w20
GameObject *v3; // x0
bool v4; // zf
GameObject *v5; // x0
char v6; // w2
__int64 result; // x0
__int64 RelativeSpriteColor; // x0
int v9; // w1
GameObject *v10; // x0
GameObject *v11; // x21
v2 = 0;
v3 = *((GameObject **)this + 84);
if ( !v3 )
{
while ( 1 )
{
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
if ( v2 >= (unsigned int)result )
return result;
v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v2);
v11 = v10;
if ( *((_BYTE *)this + 728) )
break;
RelativeSpriteColor = GameObject::getRelativeSpriteColor(v10, 1);
v9 = *((unsigned __int8 *)this + 729);
*((_BYTE *)this + 728) = RelativeSpriteColor != 0;
if ( !v9 )
goto LABEL_12;
LABEL_8:
++v2;
}
if ( *((_BYTE *)this + 729) )
goto LABEL_8;
LABEL_12:
++v2;
*((_BYTE *)this + 729) = GameObject::getRelativeSpriteColor(v11, 2) != 0;
}
}
v4 = GameObject::getRelativeSpriteColor(v3, 1) == 0;
v5 = *((GameObject **)this + 84);
v6 = !v4;
*((_BYTE *)this + 728) = v6;
result = GameObject::getRelativeSpriteColor(v5, 2) != 0;
*((_BYTE *)this + 729) = result;
return result;
}