//
// CreateParticlePopup::onDuplicateColor from 0x9c40a8 to 0x9c420c (356 bytes)
//
// 3 xrefs:
// > ??> @ 0xc6c78
// > CreateParticlePopup::init @ 0x9c6a1c
// > ??> @ 0x122ee80
//
// 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 CreateParticlePopup::onDuplicateColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
const cocos2d::ccColor4F *v3; // x0
const cocos2d::ccColor4F *v4; // x0
const cocos2d::ccColor4F *v5; // x0
const cocos2d::ccColor4F *v6; // x2
float r; // s0
cocos2d::CCSprite *m_endColorSprite; // x0
float v9; // s1
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x5
_BYTE v11[8]; // [xsp+20h] [xbp+20h] BYREF
v3 = a1->m_particle->getStartColor(a1->m_particle);
CreateParticlePopup::updateParticleValueForType(a1, v3->r, EndR, nullptr);
v4 = a1->m_particle->getStartColor(a1->m_particle);
CreateParticlePopup::updateParticleValueForType(a1, v4->g, EndG, nullptr);
v5 = a1->m_particle->getStartColor(a1->m_particle);
CreateParticlePopup::updateParticleValueForType(a1, v5->b, EndB, nullptr);
CreateParticlePopup::updateInputNodeStringForType(a1, EndR);
CreateParticlePopup::updateInputNodeStringForType(a1, EndG);
CreateParticlePopup::updateInputNodeStringForType(a1, EndB);
CreateParticlePopup::updateSliderForType(a1, EndR);
CreateParticlePopup::updateSliderForType(a1, EndG);
CreateParticlePopup::updateSliderForType(a1, EndB);
v6 = a1->m_particle->getStartColor(a1->m_particle);
r = v6->r;
m_endColorSprite = a1->m_endColorSprite;
v9 = v6->b * 255.0;
setColor = m_endColorSprite->setColor;
v11[1] = (unsigned int)(float)(v6->g * 255.0);
v11[2] = (unsigned int)v9;
v11[0] = (unsigned int)(float)(r * 255.0);
setColor(m_endColorSprite, (const cocos2d::ccColor3B *)v11);
}