//
// SetupPulsePopup::onUpdateCopyColor from 0x1405d1a40 to 0x1405d1ab0 (112 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::init @ 0x1405cfee5
// > ??> @ 0x14092e808
//
// 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 11:34:55 +0000
//
__int64 __fastcall SetupPulsePopup::onUpdateCopyColor(__int64 a1, __int64 a2)
{
int v2; // edi
int v4; // eax
int v5; // ecx
int v6; // edx
int v7; // eax
v2 = 0;
if ( *(int *)(a1 + 1256) >= 1000 )
*(_DWORD *)(a1 + 1256) = 0;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v5 = -1;
if ( v4 != 1 )
v5 = 1;
v6 = v5 + *(_DWORD *)(a1 + 1256);
if ( v6 < 0 || (v7 = 999, v2 = v5 + *(_DWORD *)(a1 + 1256), v6 <= 999) )
v7 = v2;
*(_DWORD *)(a1 + 1256) = v7;
SetupPulsePopup::updateCopyColor(a1);
return SetupPulsePopup::updateCopyColorTextInputLabel(a1);
}