//
// SetupMoveCommandPopup::triggerSliderValueFromValue from 0x5e7264 to 0x5e72de (122 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:54:20 +0000
//
int __fastcall SetupMoveCommandPopup::triggerSliderValueFromValue(SetupMoveCommandPopup *this, int a2, float a3)
{
float v3; // s15
if ( *((_BYTE *)this + 712) || (unsigned int)(a2 - 28) > 1 && a2 != 396 )
return SetupTriggerPopup::triggerSliderValueFromValue(this, a2, a3);
v3 = (float)(floorf(a3 / 3.0) / 200.0) + 0.5;
if ( v3 >= 1.0 )
{
v3 = 1.0;
}
else if ( v3 <= 0.0 )
{
v3 = 0.0;
}
return LODWORD(v3);
}