// // SetupMoveCommandPopup::triggerSliderValueFromValue from 0x100608be0 to 0x100608c64 (132 bytes) // // 1 xrefs: // > @ 0x10097f878 // // 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 SetupMoveCommandPopup::triggerSliderValueFromValue(SetupMoveCommandPopup *a1, int a2, float a3) { __m128 v3; // xmm1 float result; // xmm0_4 __m128 v5; // xmm0 __m128 v6; // xmm1 __m128 v7; // xmm0 float v8; // xmm3_4 if ( a1->m_smallStep || (unsigned int)(a2 - 28) >= 2 && a2 != 396 ) return SetupTriggerPopup::triggerSliderValueFromValue(a1, a2, a3); v5.f32[0] = a3 / 3.0; v6 = _mm_round_ss(v3, v5, 9); v6.f32[0] = (float)(v6.f32[0] / 200.0) + 0.5; v7 = _mm_cmpge_ss(v6, (__m128)0x3F800000u); LODWORD(result) = v7.i32[0] & 0x3F800000 | _mm_andnot_ps(v7, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, v6), (__m128)0x3F800000u)).u32[0]; v8 = v6.f32[0]; if ( v6.f32[0] > 0.0 ) { if ( v6.f32[0] >= 1.0 ) return result; return v8; } v8 = result; if ( v6.f32[0] < 1.0 ) return v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source