//
// kmVec4Scale from 0x1800beff0 to 0x1800bf03a (74 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c31d4
//
// 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 11:22:24 +0000
//
// local variable allocation has failed, the output may be wrong!
__m128 *__fastcall kmVec4Scale(__m128 *a1, float *a2, double a3)
{
float v4; // xmm0_4
__m128 v5; // xmm3
v4 = kmVec4Length(a2);
v5 = (__m128)0x3F800000u;
v5.m128_f32[0] = 1.0 / v4;
*a1 = _mm_mul_ps(_mm_mul_ps(*a1, _mm_shuffle_ps(v5, v5, 0)), _mm_shuffle_ps(*(__m128 *)&a3, *(__m128 *)&a3, 0));
return a1;
}