// // sub_1001D58C0 from 0x1001d58c0 to 0x1001d5922 (98 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 sub_1001D58C0(__m128 a1, float a2, float a3, float a4) { __m128 v4; // xmm2 __m128 v5; // xmm4 __m128 v6; // xmm2 v4 = a1; v4.f32[0] = a1.f32[0] / a2; a1.f32[0] = a1.f32[0] - (float)(_mm_round_ss(v4, v4, 9).f32[0] * a2); v5 = (__m128)0x3F000000u; v5.f32[0] = 0.5 * a2; v6 = _mm_cmplt_ss(v5, a1); a1.f32[0] = GameToolbox::getEasedValue( COERCE_FLOAT(_mm_andnot_ps(v6, a1).u32[0] | COERCE_UNSIGNED_INT(a2 - a1.f32[0]) & v6.i32[0]) / (float)(0.5 * a2), 1, a4) * a3; return a1.f32[0]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source