//
// CreateParticlePopup::sliderChanged from 0xb00e94 to 0xb00f54 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0x46ca8
// > CreateParticlePopup::createParticleSlider @ 0xb003e8
// > ??> @ 0x1541578
//
// This function is hookable on this platform (idp: arm, 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 13:01:20 +0000
//
__int64 __fastcall CreateParticlePopup::sliderChanged(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
float Value; // s8
unsigned int v4; // w19
float v5; // s9
float v6; // s8
long double v7; // q0
Value = SliderThumb::getValue(a2);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v5 = CreateParticlePopup::minSliderValueForType((__int64)this, v4);
v6 = v5 + (float)(Value * (float)(CreateParticlePopup::maxSliderValueForType((__int64)this, v4) - v5));
if ( (unsigned __int8)CreateParticlePopup::particleValueIsInt((__int64)this, v4) )
*(float *)&v7 = roundf(v6);
else
*(float *)&v7 = roundf(v6 * 100.0) / 100.0;
CreateParticlePopup::updateParticleValueForType((__int64)this, v4, nullptr, v7);
CreateParticlePopup::updateSliderForType(this, v4);
return CreateParticlePopup::updateInputNodeStringForType((__int64)this, v4);
}