//
// SetupPulsePopup::colorValueChanged from 0x100398cf0 to 0x100398df0 (256 bytes)
//
// 2 xrefs:
// > sub_100399290 @ 0x10039929c
// > ??> @ 0x100b316f0
//
// 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::colorValueChanged(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rax
__int16 v4; // cx
__int64 v5; // rax
__int16 v6; // cx
__int64 v7; // rdi
unsigned int v8; // r14d
__int64 v9; // rax
__int16 v10; // cx
v2 = *(_QWORD *)(a1 + 1120);
if ( v2 )
{
v3 = *(_QWORD *)(a1 + 1032);
v4 = *(_WORD *)(v3 + 472);
*(_BYTE *)(a1 + 1138) = *(_BYTE *)(v3 + 474);
*(_WORD *)(a1 + 1136) = v4;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 960LL))(v2, a1 + 1136);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1128) + 960LL))(*(_QWORD *)(a1 + 1128), a1 + 1112);
if ( !*(_BYTE *)(a1 + 1276) )
{
v5 = *(_QWORD *)(a1 + 680);
if ( v5 )
{
v6 = *(_WORD *)(a1 + 1136);
*(_BYTE *)(v5 + 1450) = *(_BYTE *)(a1 + 1138);
*(_WORD *)(v5 + 1448) = v6;
}
else
{
v7 = *(_QWORD *)(a1 + 688);
if ( v7 && (unsigned int)sub_1007FEF90(v7) )
{
v8 = 0;
do
{
v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v8);
v10 = *(_WORD *)(a1 + 1136);
*(_BYTE *)(v9 + 1450) = *(_BYTE *)(a1 + 1138);
*(_WORD *)(v9 + 1448) = v10;
++v8;
}
while ( v8 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
}
}
sub_100398E90(a1);
}
}