//
// CreateParticlePopup::onDuplicateColor from 0x100468060 to 0x10046818d (301 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x100464a53
//
// 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 12:30:30 +0000
//
__int64 __fastcall CreateParticlePopup::onDuplicateColor(__int64 a1)
{
__int64 v1; // rax
float *v3; // rax
__int64 v4; // rax
__int64 v5; // rax
float *v6; // rax
__m128 v7; // xmm0
__int64 v8; // rdi
int v10; // [rsp+0h] [rbp-Ch] BYREF
v10 = HIDWORD(v1);
v3 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));
CreateParticlePopup::updateParticleValueForType(a1, 34, 0, *v3);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));
CreateParticlePopup::updateParticleValueForType(a1, 36, 0, *(float *)(v4 + 4));
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));
CreateParticlePopup::updateParticleValueForType(a1, 38, 0, *(float *)(v5 + 8));
CreateParticlePopup::updateInputNodeStringForType(a1, 34);
CreateParticlePopup::updateInputNodeStringForType(a1, 36);
CreateParticlePopup::updateInputNodeStringForType(a1, 38);
CreateParticlePopup::updateSliderForType(a1, 34);
CreateParticlePopup::updateSliderForType(a1, 36);
CreateParticlePopup::updateSliderForType(a1, 38);
v6 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));
v7 = (__m128)*(unsigned __int64 *)v6;
v8 = *(_QWORD *)(a1 + 952);
BYTE2(v10) = (int)(float)(255.0 * v6[2]);
LOWORD(v10) = ((unsigned __int8)(int)(float)(_mm_movehdup_ps(v7).f32[0] * 255.0) << 8)
| (unsigned __int8)(int)(float)(v7.f32[0] * 255.0);
return (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)v8 + 960LL))(v8, &v10);
}