//
// CreateParticlePopup::sliderChanged from 0x1405ca3c0 to 0x1405ca465 (165 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::createParticleSlider @ 0x1405c6395
// > ??> @ 0x14092e3f4
//
// 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:52 +0000
//
__int64 __fastcall CreateParticlePopup::sliderChanged(__int64 a1, float *a2)
{
float Value; // xmm6_4
unsigned int v5; // ebx
__int64 v6; // rcx
double v7; // xmm0_8
__int64 v8; // rcx
float v9; // xmm0_4
__int64 v10; // rcx
__int64 v11; // rdx
Value = SliderThumb::getValue(a2);
v5 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2);
v7 = CreateParticlePopup::maxSliderValueForType(v6, v5);
v9 = (float)((float)(CreateParticlePopup::minSliderValueForType(v8, v5) - *(float *)&v7) * Value) + *(float *)&v7;
if ( (unsigned __int8)CreateParticlePopup::particleValueIsInt(v10, v5) )
roundf(v9);
else
roundf(v9 * 100.0);
CreateParticlePopup::updateParticleValueForType(a1, v11, v5, nullptr);
CreateParticlePopup::updateSliderForType(a1, v5);
return CreateParticlePopup::updateInputNodeStringForType(a1, v5);
}