//
// sub_100609270 from 0x100609270 to 0x1006092f3 (131 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
//
__int64 __fastcall sub_100609270(__int64 a1, unsigned int *a2, float *a3)
{
__m128 v3; // xmm1
__m128 v4; // xmm2
__m128 v6; // xmm0
__m128 v7; // xmm3
__m128 v8; // xmm4
__m128 v9; // xmm2
v3 = (__m128)*a2;
v4 = (__m128)a2[1];
v3.f32[0] = v3.f32[0] - a3[12];
v4.f32[0] = v4.f32[0] - a3[13];
v6 = (__m128)a2[2];
v6.f32[0] = v6.f32[0] - a3[14];
v7 = _mm_moveldup_ps(v4);
v8 = _mm_moveldup_ps(v3);
v3.f32[0] = (float)(v3.f32[0] * a3[8]) + (float)(v4.f32[0] * a3[9]);
v9 = _mm_moveldup_ps(v6);
v6.f32[0] = (float)(v6.f32[0] * a3[10]) + v3.f32[0];
_mm_storel_ps(
(double *)a1,
_mm_add_ps(
_mm_mul_ps(_mm_insert_ps((__m128)*((unsigned int *)a3 + 2), (__m128)*((unsigned int *)a3 + 6), 16), v9),
_mm_add_ps(
_mm_mul_ps(_mm_insert_ps((__m128)*(unsigned int *)a3, (__m128)*((unsigned int *)a3 + 4), 16), v8),
_mm_mul_ps(_mm_insert_ps((__m128)*((unsigned int *)a3 + 1), (__m128)*((unsigned int *)a3 + 5), 16), v7))));
*(_DWORD *)(a1 + 8) = v6.i32[0];
return a1;
}