//
// CreateParticlePopup::onDuplicateColor from 0x66654c to 0x666644 (248 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:40 +0000
//
int __fastcall CreateParticlePopup::onDuplicateColor(CreateParticlePopup *this, cocos2d::CCObject *a2, int a3)
{
float *v4; // r0
int v5; // r0
int v6; // r0
float *v7; // r1
int v8; // r0
int (__fastcall *v9)(int, _DWORD *); // r4
unsigned int v10; // r3
float v11; // s15
_DWORD v13[3]; // [sp+0h] [bp-Ch] BYREF
v13[0] = this;
v13[1] = a2;
v13[2] = a3;
v4 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 676))(*((_DWORD *)this + 136));
CreateParticlePopup::updateParticleValueForType((unsigned int)this, *v4, 34, nullptr);
v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 676))(*((_DWORD *)this + 136));
CreateParticlePopup::updateParticleValueForType((unsigned int)this, *(float *)(v5 + 4), 36, nullptr);
v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 676))(*((_DWORD *)this + 136));
CreateParticlePopup::updateParticleValueForType((unsigned int)this, *(float *)(v6 + 8), 38, nullptr);
CreateParticlePopup::updateInputNodeStringForType((int)this, 0x22u);
CreateParticlePopup::updateInputNodeStringForType((int)this, 0x24u);
CreateParticlePopup::updateInputNodeStringForType((int)this, 0x26u);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, 34);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, 36);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, 38);
v7 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 676))(*((_DWORD *)this + 136));
v8 = *((_DWORD *)this + 168);
v9 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 480);
v10 = (unsigned int)(float)(v7[2] * 255.0);
v11 = *v7;
BYTE1(v13[0]) = (unsigned int)(float)(v7[1] * 255.0);
BYTE2(v13[0]) = v10;
LOBYTE(v13[0]) = (unsigned int)(float)(v11 * 255.0);
return v9(v8, v13);
}