//
// SetupMoveCommandPopup::triggerSliderValueFromValue from 0x1003128b0 to 0x100312920 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092cf28
//
// 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 11:03:13 +0000
//
float __fastcall SetupMoveCommandPopup::triggerSliderValueFromValue(__int64 a1, int a2, float a3)
{
float result; // s0
float v4; // s1
_BOOL4 v5; // w8
_BOOL4 v6; // w9
if ( (*(_BYTE *)(a1 + 1012) & 1) != 0 || (unsigned int)(a2 - 28) >= 2 && a2 != 396 )
{
SetupTriggerPopup::triggerSliderValueFromValue(a1, a2);
}
else
{
result = (float)(floorf(a3 / 3.0) / 200.0) + 0.5;
v4 = 1.0;
v5 = result >= 1.0;
v6 = result > 0.0 || result >= 1.0;
if ( result <= 0.0 )
v5 = 1;
if ( !v6 )
v4 = 0.0;
if ( v5 )
return v4;
}
return result;
}