//
// GameObject::updateHSVState from 0x1006906c0 to 0x10069077b (187 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::getLevelString @ 0x1000b318a
//
// This function is hookable on this platform (idp: pc, 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:35:07 +0000
//
__int64 __fastcall GameObject::updateHSVState(__int64 a1)
{
__int64 v1; // rcx
__int64 result; // rax
bool v3; // dl
bool v4; // cl
v1 = *(_QWORD *)(a1 + 1096);
result = *(_QWORD *)(a1 + 1104);
if ( v1 )
{
v3 = 1;
if ( *(float *)(v1 + 16) == *(float *)&xmmword_100BE5C20
&& *(float *)(v1 + 20) == *((float *)&xmmword_100BE5C20 + 1)
&& *(float *)(v1 + 24) == *((float *)&xmmword_100BE5C20 + 2)
&& *(_BYTE *)(v1 + 28) == BYTE12(xmmword_100BE5C20) )
{
v3 = *(_BYTE *)(v1 + 29) != BYTE13(xmmword_100BE5C20);
}
*(_BYTE *)(v1 + 32) = v3;
}
if ( result )
{
v4 = 1;
if ( *(float *)(result + 16) == *(float *)&xmmword_100BE5C20
&& *(float *)(result + 20) == *((float *)&xmmword_100BE5C20 + 1)
&& *(float *)(result + 24) == *((float *)&xmmword_100BE5C20 + 2)
&& *(_BYTE *)(result + 28) == BYTE12(xmmword_100BE5C20) )
{
v4 = *(_BYTE *)(result + 29) != BYTE13(xmmword_100BE5C20);
}
*(_BYTE *)(result + 32) = v4;
}
return result;
}