//
// SetupPulsePopup::colorValueChanged from 0x14043c160 to 0x14043c268 (264 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405eb3b8
// > ??> @ 0x1406a1b20
// > ??> @ 0x1406a1b54
// > ??> @ 0x1406da058
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupPulsePopup::colorValueChanged(SetupPulsePopup *a1, cocos2d::ccColor3B *a2)
{
__int64 v3; // rcx
__int64 v4; // rdx
Slider *m_holdSlider; // rcx
cocos2d::CCArray *m_fadeOutSlider; // rcx
unsigned int v7; // edi
struct cocos2d::CCObject *v8; // rax
v3 = *(_QWORD *)&a1->m_obAnchorPoint.y;
if ( v3 )
{
v4 = *(_QWORD *)&a1->m_nTag;
LOWORD(a1->m_sAdditionalTransform.b) = *(_WORD *)(v4 + 472);
BYTE2(a1->m_sAdditionalTransform.b) = *(_BYTE *)(v4 + 474);
(**(void (__fastcall ***)(__int64, float *))(v3 + 320))(v3 + 320, &a1->m_sAdditionalTransform.b);
(**(void (__fastcall ***)(__int64, float *))(*(_QWORD *)&a1->m_obContentSize.height + 320LL))(
*(_QWORD *)&a1->m_obContentSize.height + 320LL,
&a1->m_obAnchorPointInPoints.y);
if ( !BYTE4(a1->m_pScheduler) )
{
m_holdSlider = a1[-1].m_holdSlider;
if ( m_holdSlider )
{
*(_WORD *)((char *)&m_holdSlider[3].m_obAnchorPointInPoints.y + 1) = LOWORD(a1->m_sAdditionalTransform.b);
HIBYTE(m_holdSlider[3].m_obAnchorPointInPoints.y) = BYTE2(a1->m_sAdditionalTransform.b);
}
else
{
m_fadeOutSlider = (cocos2d::CCArray *)a1[-1].m_fadeOutSlider;
if ( m_fadeOutSlider )
{
v7 = 0;
if ( cocos2d::CCArray::count(m_fadeOutSlider) )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)a1[-1].m_fadeOutSlider, v7++);
*(_WORD *)((char *)&v8[26].m_uID + 1) = LOWORD(a1->m_sAdditionalTransform.b);
HIBYTE(v8[26].m_uID) = BYTE2(a1->m_sAdditionalTransform.b);
}
while ( v7 < cocos2d::CCArray::count((cocos2d::CCArray *)a1[-1].m_fadeOutSlider) );
}
}
}
}
SetupPulsePopup::updateColorLabels((SetupPulsePopup *)((char *)a1 - 936));
}
}