//
// GameObject::updateHSVState from 0x770424 to 0x7704d8 (180 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::getLevelString @ 0x7a79c4
// > ??> @ 0xfa828
//
// 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:53:12 +0000
//
__int64 __fastcall GameObject::updateHSVState(GameObject *this)
{
__int64 v1; // x1
__int64 result; // x0
bool v3; // w3
bool v4; // w2
v1 = *((_QWORD *)this + 137);
result = *((_QWORD *)this + 138);
if ( v1 )
{
v3 = 1;
if ( *(float *)(v1 + 16) == *(float *)&qword_155C670
&& *(float *)(v1 + 20) == *((float *)&qword_155C670 + 1)
&& *(float *)(v1 + 24) == *(float *)&qword_155C678 )
{
v3 = *(unsigned __int16 *)(v1 + 28) != WORD2(qword_155C678);
}
*(_BYTE *)(v1 + 32) = v3;
}
if ( result )
{
v4 = 1;
if ( *(float *)(result + 16) == *(float *)&qword_155C670
&& *(float *)(result + 20) == *((float *)&qword_155C670 + 1)
&& *(float *)(result + 24) == *(float *)&qword_155C678 )
{
v4 = *(unsigned __int16 *)(result + 28) != WORD2(qword_155C678);
}
*(_BYTE *)(result + 32) = v4;
}
return result;
}