//
// SetupTriggerPopup::triggerSliderValueFromValue from 0x9e9a6c to 0x9e9ae8 (124 bytes)
//
// 101 xrefs:
// > SetupMoveCommandPopup::triggerSliderValueFromValue @ 0x8e422c
// > SetupRotateCommandPopup::triggerSliderValueFromValue @ 0x9257a8
// > SetupGameplayOffsetPopup::triggerSliderValueFromValue @ 0x9f0f78
// > SetupGameplayOffsetPopup::triggerSliderValueFromValue @ 0x9f0f90
// > SetupAreaMoveTriggerPopup::triggerSliderValueFromValue @ 0xa0c660
// > SetupAreaMoveTriggerPopup::triggerSliderValueFromValue @ 0xa0c678
// > SetupEnterEffectPopup::triggerSliderValueFromValue @ 0xa15d38
// > SetupEnterEffectPopup::triggerSliderValueFromValue @ 0xa15d50
// > ??> @ 0x8b110
// > ??> @ 0x11612c8
// > ??> @ 0x1187988
// > ??> @ 0x118d138
// > ??> @ 0x1193d98
// > ??> @ 0x11951b8
// > ??> @ 0x1195998
// > ??> @ 0x1196178
// > ??> @ 0x1196978
// > ??> @ 0x119a2c8
// > ??> @ 0x119d8c8
// > ??> @ 0x119e0c8
// > ??> @ 0x119e8c8
// > ??> @ 0x119fe58
// > ??> @ 0x11a3088
// > ??> @ 0x11a3888
// > ??> @ 0x11a4088
// > ??> @ 0x11a48b8
// > ??> @ 0x11ad908
// > ??> @ 0x11ae108
// > ??> @ 0x11ae918
// > ??> @ 0x11b4a98
// > ??> @ 0x11b5298
// > ??> @ 0x11b5a98
// > ??> @ 0x11b6298
// > ??> @ 0x11b6ac8
// > ??> @ 0x11b72a8
// > ??> @ 0x11b7a88
// > ??> @ 0x11b8288
// > ??> @ 0x11b8a88
// > ??> @ 0x11b9288
// > ??> @ 0x11b9a88
// > ??> @ 0x11ba288
// > ??> @ 0x11baa88
// > ??> @ 0x11bb288
// > ??> @ 0x11be0a8
// > ??> @ 0x11befe8
// > ??> @ 0x11bf7e8
// > ??> @ 0x11bffe8
// > ??> @ 0x11c07f8
// > ??> @ 0x11c0fd8
// > ??> @ 0x11c30f8
// > ??> @ 0x11c4cf8
// > ??> @ 0x11c5558
// > ??> @ 0x11c5dd8
// > ??> @ 0x11c65e8
// > ??> @ 0x11c6dc8
// > ??> @ 0x11c75c8
// > ??> @ 0x11cc5f8
// > ??> @ 0x11cce38
// > ??> @ 0x11cd638
// > ??> @ 0x11cde48
// > ??> @ 0x11cee28
// > ??> @ 0x11cfbb8
// > ??> @ 0x11d03b8
// > ??> @ 0x11d4c58
// > ??> @ 0x11d54e8
// > ??> @ 0x11d6398
// > ??> @ 0x11d6b78
// > ??> @ 0x11d7388
// > ??> @ 0x11d7b68
// > ??> @ 0x11d8368
// > ??> @ 0x11dcc38
// > ??> @ 0x11dd438
// > ??> @ 0x11ddc68
// > ??> @ 0x11de448
// > ??> @ 0x11dece8
// > ??> @ 0x11df4c8
// > ??> @ 0x11dfca8
// > ??> @ 0x11e04e8
// > ??> @ 0x11e0ed8
// > ??> @ 0x11e16b8
// > ??> @ 0x11e1e98
// > ??> @ 0x11e2678
// > ??> @ 0x11e2e58
// > ??> @ 0x11e3638
// > ??> @ 0x11e3e18
// > ??> @ 0x11e45f8
// > ??> @ 0x11e4dd8
// > ??> @ 0x11e55b8
// > ??> @ 0x11e5d98
// > ??> @ 0x11e6578
// > ??> @ 0x11e6d58
// > ??> @ 0x11e7538
// > ??> @ 0x11e7d18
// > ??> @ 0x11e84f8
// > ??> @ 0x11e8cf8
// > ??> @ 0x11e94d8
// > ??> @ 0x11e9cd8
// > ??> @ 0x11ea4d8
// > ??> @ 0x11f18e8
// > ??> @ 0x11f20c8
// > ??> @ 0x11f28a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float SetupTriggerPopup::triggerSliderValueFromValue(SetupTriggerPopup *a1, int a2, float a3)
{
float MinSliderValue; // s9
float result; // s0
MinSliderValue = SetupTriggerPopup::getMinSliderValue(a1, a2);
result = (float)(a3 - MinSliderValue) / (float)(SetupTriggerPopup::getMaxSliderValue(a1, a2) - MinSliderValue);
if ( result >= 1.0 )
return 1.0;
if ( result <= 0.0 )
return 0.0;
return result;
}