// // SetupCameraOffsetTrigger::sliderValueFromPos from 0x100662e30 to 0x100662e99 (105 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 // float __fastcall SetupCameraOffsetTrigger::sliderValueFromPos(SetupCameraOffsetTrigger *a1, int a2) { __m128 v2; // xmm0 __m128 v3; // xmm1 __m128 v4; // xmm1 __m128 v5; // xmm0 float result; // xmm0_4 float v7; // xmm3_4 v2.f32[0] = (float)a2 / 3.0; v4 = _mm_round_ss(v3, v2, 9); v4.f32[0] = (float)(v4.f32[0] / 200.0) + 0.5; v5 = _mm_cmpge_ss(v4, (__m128)0x3F800000u); LODWORD(result) = v5.i32[0] & 0x3F800000 | _mm_andnot_ps(v5, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, v4), (__m128)0x3F800000u)).u32[0]; v7 = v4.f32[0]; 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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source