//
// SetupAreaMoveTriggerPopup::triggerValueFromSliderValue from 0x1004d05a0 to 0x1004d05dd (61 bytes)
//
// 7 xrefs:
// > ??> @ 0x100b5cdf0
// > ??> @ 0x100b5d618
// > ??> @ 0x100b5de40
// > ??> @ 0x100b5e668
// > ??> @ 0x100b5ee90
// > ??> @ 0x100b5f700
// > ??> @ 0x100b5ff28
//
// This function is hookable on this platform (idp: pc, 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 12:31:12 +0000
//
float __fastcall SetupAreaMoveTriggerPopup::triggerValueFromSliderValue(__int64 a1, int a2, __m128 a3)
{
unsigned __int64 v3; // rbx
__int64 v4; // rax
a3.f32[0] = SetupTriggerPopup::triggerValueFromSliderValue(a1, a3.f32[0]);
v3 = (unsigned int)(a2 - 218);
if ( (unsigned int)v3 <= 0x23 )
{
v4 = 0xC0078003FLL;
if ( _bittest64(&v4, v3) )
a3.f32[0] = _mm_round_ss(a3, a3, 9).f32[0] * 3.0;
}
return a3.f32[0];
}