//
// HSVLiveOverlay::determineStartValues from 0x100254e70 to 0x100254f5b (235 bytes)
//
// 1 xrefs:
// > HSVLiveOverlay::init @ 0x100254b9b
//
// 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:27:25 +0000
//
__int64 __fastcall HSVLiveOverlay::determineStartValues(__int64 a1)
{
__int64 v2; // rdi
__int64 result; // rax
unsigned int i; // r14d
__int64 v5; // rax
__int64 v6; // r15
v2 = *(_QWORD *)(a1 + 672);
if ( v2 )
{
*(_BYTE *)(a1 + 728) = GameObject::getRelativeSpriteColor(v2, 1) != 0;
result = GameObject::getRelativeSpriteColor(*(_QWORD *)(a1 + 672), 2);
*(_BYTE *)(a1 + 729) = result != 0;
return result;
}
result = sub_1007FEF90(*(_QWORD *)(a1 + 680));
if ( (_DWORD)result )
{
for ( i = 0; i < (unsigned int)result; ++i )
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 680), i);
v6 = v5;
if ( *(_BYTE *)(a1 + 728) == 1 )
{
if ( !*(_BYTE *)(a1 + 729) )
goto LABEL_11;
}
else
{
*(_BYTE *)(a1 + 728) = GameObject::getRelativeSpriteColor(v5, 1) != 0;
if ( (*(_BYTE *)(a1 + 729) & 1) == 0 )
LABEL_11:
*(_BYTE *)(a1 + 729) = GameObject::getRelativeSpriteColor(v6, 2) != 0;
}
result = sub_1007FEF90(*(_QWORD *)(a1 + 680));
}
}
return result;
}