//
// sub_1003B2E90 from 0x1003b2e90 to 0x1003b2efa (106 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:29:27 +0000
//
float __fastcall sub_1003B2E90(__m128 a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5)
{
__m128 inserted; // xmm0
__m128 v6; // xmm4
__m128 v7; // xmm0
__m128 v8; // xmm4
__m128 v9; // xmm0
inserted = _mm_insert_ps(a1, a3, 16);
v6 = _mm_div_ps(_mm_sub_ps(_mm_moveldup_ps(a5), inserted), _mm_sub_ps(_mm_insert_ps(a2, a4, 16), inserted));
v7 = _mm_cmplt_ps((__m128)xmmword_100A038B0, v6);
v8 = _mm_blendv_ps(
v6,
_mm_and_ps(_mm_and_ps(_mm_cmpnlt_ps(v6, (__m128)0LL), v7), (__m128)xmmword_100A038B0),
_mm_or_ps(v7, _mm_cmplt_ps(v6, (__m128)0LL)));
v9 = _mm_mul_ps(_mm_sub_ps((__m128)xmmword_100A04DA0, _mm_add_ps(v8, v8)), _mm_mul_ps(v8, v8));
return v9.f32[0] - _mm_movehdup_ps(v9).f32[0];
}