//
// SetupTriggerPopup::getTruncatedValue from 0x100237120 to 0x100237186 (102 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
float __fastcall SetupTriggerPopup::getTruncatedValue(SetupTriggerPopup *a1, float a2, int a3)
{
__m128 v3; // xmm2
float v4; // xmm0_4
__m128 v6; // xmm1
v3 = *(__m128 *)&a2;
if ( a3 <= 0 )
return _mm_cvtepi32_ps(_mm_cvttps_epi32(*(__m128 *)&a2)).f32[0];
if ( a3 == 1 )
v4 = 10.0;
else
v4 = __exp10f((float)a3);
v3.f32[0] = v3.f32[0] * v4;
v6 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v3), (__m128)xmmword_1008150C0);
v6.f32[0] = v6.f32[0] + v3.f32[0];
return _mm_round_ss(v6, v6, 11).f32[0] / v4;
}