//
// SetupPulsePopup::updateHSVValue from 0x100398a60 to 0x100398b03 (163 bytes)
//
// 0 xrefs:
//
// 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:29:17 +0000
//
__int64 __fastcall SetupPulsePopup::updateHSVValue(_QWORD *a1)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rdi
unsigned int v5; // r14d
__int64 v6; // rax
__int64 v7; // rcx
result = a1[85];
if ( result )
{
v3 = a1[164];
*(_QWORD *)(result + 1612) = a1[163];
*(_QWORD *)(result + 1620) = v3;
}
else
{
v4 = a1[86];
if ( v4 )
{
result = sub_1007FEF90(v4);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(a1[86], v5);
v7 = a1[164];
*(_QWORD *)(v6 + 1612) = a1[163];
*(_QWORD *)(v6 + 1620) = v7;
++v5;
result = sub_1007FEF90(a1[86]);
}
while ( v5 < (unsigned int)result );
}
}
}
return result;
}