//
// SetupMGTrigger::sliderValueFromPos from 0x69a294 to 0x69a2f0 (92 bytes)
//
// 3 xrefs:
// > SetupMGTrigger::textChanged @ 0x69a560
// > SetupMGTrigger::textChanged @ 0x69a57c
// > SetupMGTrigger::init @ 0x69b5f0
//
// 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:56:17 +0000
//
int __fastcall SetupMGTrigger::sliderValueFromPos(SetupMGTrigger *this, int a2)
{
float v2; // s15
v2 = (float)(floorf((float)a2 / 3.0) / 200.0) + 0.5;
if ( v2 >= 1.0 )
{
v2 = 1.0;
}
else if ( v2 <= 0.0 )
{
v2 = 0.0;
}
return LODWORD(v2);
}