//
// kmVec3Cross from 0x1006e09f0 to 0x1006e0a3c (76 bytes)
//
// 8 xrefs:
// > kmMat4LookAt @ 0x1003bd881
// > kmMat4LookAt @ 0x1003bd89b
// > kmPlaneFromPoints @ 0x10047eb0b
// > kmQuaternionRotationBetweenVec3 @ 0x10051095e
// > kmQuaternionRotationBetweenVec3 @ 0x100510a2e
// > kmQuaternionRotationBetweenVec3 @ 0x100510a6e
// > kmQuaternionMultiplyVec3 @ 0x100510af8
// > kmQuaternionMultiplyVec3 @ 0x100510b0b
//
// 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:35:44 +0000
//
__int64 __fastcall kmVec3Cross(__int64 a1, unsigned int *a2, unsigned int *a3)
{
__m128 v4; // xmm0
__m128 v5; // xmm1
__m128 v6; // xmm2
__m128 v7; // xmm3
v4 = (__m128)*a3;
v5 = (__m128)*a2;
v6 = (__m128)*(unsigned __int64 *)(a2 + 1);
v7 = (__m128)*(unsigned __int64 *)(a3 + 1);
_mm_storel_ps(
(double *)a1,
_mm_sub_ps(
_mm_mul_ps(_mm_insert_ps(_mm_movehdup_ps(v7), v4, 16), v6),
_mm_mul_ps(_mm_insert_ps(_mm_movehdup_ps(v6), v5, 16), v7)));
*(float *)(a1 + 8) = (float)(v5.f32[0] * v7.f32[0]) - (float)(v4.f32[0] * v6.f32[0]);
return a1;
}