//
// SetupCameraOffsetTrigger::sliderValueFromPos from 0x100742360 to 0x1007423c9 (105 bytes)
//
// 0 xrefs:
//
// 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:36:29 +0000
//
__m128 __fastcall SetupCameraOffsetTrigger::sliderValueFromPos(__m128 a1, __m128 a2, __int64 a3, int a4)
{
__m128 v4; // xmm1
__m128 v5; // xmm0
__m128 result; // xmm0
__m128 v7; // xmm3
a1.f32[0] = (float)a4 / 3.0;
v4 = _mm_round_ss(a2, a1, 9);
v4.f32[0] = (float)(v4.f32[0] / 200.0) + 0.5;
v5 = _mm_cmpge_ss(v4, (__m128)0x3F800000u);
result = _mm_or_ps(
_mm_and_ps(v5, (__m128)0x3F800000u),
_mm_andnot_ps(v5, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, v4), (__m128)0x3F800000u)));
v7 = v4;
if ( v4.f32[0] > 0.0 )
{
if ( v4.f32[0] >= 1.0 )
return result;
return v7;
}
v7 = result;
if ( v4.f32[0] < 1.0 )
return v7;
return result;
}