//
// CreateParticlePopup::sliderChanged from 0x100469860 to 0x10046994b (235 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::createParticleSlider @ 0x1004685b5
//
// 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
//
void __fastcall CreateParticlePopup::sliderChanged(__int64 a1, float *a2)
{
__int64 v2; // r14
__m128 Value; // xmm0
__int64 v4; // rcx
__m128 v5; // xmm1
float v6; // xmm0_4
__m128 v7; // xmm2
float v8; // [rsp+8h] [rbp-18h]
float v9; // [rsp+Ch] [rbp-14h]
Value = SliderThumb::getValue(a2);
v8 = Value.f32[0];
v2 = (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 64LL))(a2);
v9 = CreateParticlePopup::minSliderValueForType(a2, v2);
Value.f32[0] = (float)((float)(CreateParticlePopup::maxSliderValueForType(a2, (unsigned int)v2) - v9) * v8) + v9;
if ( (unsigned int)(v2 - 5) < 0x15
|| (unsigned int)v2 <= 0x37 && (v4 = 0xFC000000000002LL, _bittest64(&v4, (unsigned int)v2)) )
{
v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, Value), (__m128)xmmword_100A03600);
v5.f32[0] = v5.f32[0] + Value.f32[0];
v6 = _mm_round_ss((__m128)0LL, v5, 11).f32[0];
}
else
{
Value.f32[0] = Value.f32[0] * 100.0;
v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, Value), (__m128)xmmword_100A03600);
v7.f32[0] = v7.f32[0] + Value.f32[0];
v6 = _mm_round_ss((__m128)0LL, v7, 11).f32[0] / 100.0;
}
CreateParticlePopup::updateParticleValueForType(a1, (unsigned int)v2, 0, v6);
CreateParticlePopup::updateSliderForType(a1, (unsigned int)v2);
CreateParticlePopup::updateInputNodeStringForType(a1, v2);
}