//
// SetupPulsePopup::updateColorValue from 0x100398df0 to 0x100398e90 (160 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
//
void __fastcall SetupPulsePopup::updateColorValue(__int64 a1)
{
__int64 v2; // rax
__int16 v3; // cx
__int64 v4; // rdi
unsigned int v5; // r14d
__int64 v6; // rax
__int16 v7; // cx
if ( !*(_BYTE *)(a1 + 1276) )
{
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
v3 = *(_WORD *)(a1 + 1136);
*(_BYTE *)(v2 + 1450) = *(_BYTE *)(a1 + 1138);
*(_WORD *)(v2 + 1448) = v3;
}
else
{
v4 = *(_QWORD *)(a1 + 688);
if ( v4 && (unsigned int)sub_1007FEF90(v4) )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v5);
v7 = *(_WORD *)(a1 + 1136);
*(_BYTE *)(v6 + 1450) = *(_BYTE *)(a1 + 1138);
*(_WORD *)(v6 + 1448) = v7;
++v5;
}
while ( v5 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
}
}
}