//
// sub_1004E85B0 from 0x1004e85b0 to 0x1004e8632 (130 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:31:20 +0000
//
__m128 *__fastcall sub_1004E85B0(__m128 *a1, float *a2)
{
__m128 v2; // xmm1
float v4; // [rsp+Ch] [rbp-14h]
float v5; // [rsp+Ch] [rbp-14h]
float v6; // [rsp+Ch] [rbp-14h]
v4 = kmSQR(*a2);
v5 = kmSQR(a2[1]) + v4;
v6 = kmSQR(a2[2]) + v5;
v2 = (__m128)0x3F800000u;
v2.f32[0] = 1.0 / fsqrt(kmSQR(a2[3]) + v6);
*a1 = _mm_mul_ps(_mm_shuffle_ps(v2, v2, 0), *a1);
return a1;
}