// // kmVec2Normalize from 0x100316b80 to 0x100316bd9 (89 bytes) // // 4 xrefs: // > sub_1004CD1E0 @ 0x1004cd225 // > kmRay2IntersectTriangle @ 0x1004cd30d // > kmRay2IntersectTriangle @ 0x1004cd3bc // > kmRay2IntersectTriangle @ 0x1004cd465 // // 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:28:40 +0000 // double *__fastcall kmVec2Normalize(double *a1, float *a2) { __m128 v2; // xmm1 float v4; // [rsp+Ch] [rbp-14h] v4 = kmSQR(*a2); v2 = (__m128)0x3F800000u; v2.f32[0] = 1.0 / fsqrt(kmSQR(a2[1]) + v4); _mm_storel_ps(a1, _mm_mul_ps(_mm_moveldup_ps(v2), (__m128)*(unsigned __int64 *)a2)); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source