//
// SetupPulsePopup::colorValueChanged from 0x1405d18c0 to 0x1405d19c8 (264 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407fa528
// > ??> @ 0x1408e1080
// > ??> @ 0x1408e10b4
// > ??> @ 0x14092e7c0
//
// 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
//
void __fastcall SetupPulsePopup::colorValueChanged(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // rcx
cocos2d::CCArray *v5; // rcx
unsigned int v6; // ebx
struct cocos2d::CCObject *v7; // rax
v2 = *(_QWORD *)(a1 + 104);
if ( v2 )
{
v3 = *(_QWORD *)(a1 + 16);
*(_WORD *)(a1 + 120) = *(_WORD *)(v3 + 472);
*(_BYTE *)(a1 + 122) = *(_BYTE *)(v3 + 474);
(**(void (__fastcall ***)(__int64, __int64))(v2 + 320))(v2 + 320, a1 + 120);
(**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(a1 + 112) + 320LL))(*(_QWORD *)(a1 + 112) + 320LL, a1 + 96);
if ( !*(_BYTE *)(a1 + 260) )
{
v4 = *(_QWORD *)(a1 - 320);
if ( v4 )
{
*(_WORD *)(v4 + 1465) = *(_WORD *)(a1 + 120);
*(_BYTE *)(v4 + 1467) = *(_BYTE *)(a1 + 122);
}
else
{
v5 = *(cocos2d::CCArray **)(a1 - 312);
if ( v5 )
{
v6 = 0;
if ( cocos2d::CCArray::count(v5) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 - 312), v6++);
*(_WORD *)((char *)v7 + 1465) = *(_WORD *)(a1 + 120);
*((_BYTE *)v7 + 1467) = *(_BYTE *)(a1 + 122);
}
while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 - 312)) );
}
}
}
}
SetupPulsePopup::updateColorLabels(a1 - 1000);
}
}