//
// kmVec4Scale from 0x1800bb450 to 0x1800bb49a (74 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8f04
//
// 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
//
// 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(_mm_shuffle_ps(v5, v5, 0), *a1), _mm_shuffle_ps(*(__m128 *)&a3, *(__m128 *)&a3, 0));
return a1;
}