// // kmVec2Normalize from 0x1800be640 to 0x1800be6c9 (137 bytes) // // 5 xrefs: // > kmRay2IntersectTriangle @ 0x1800be2d5 // > kmRay2IntersectTriangle @ 0x1800be364 // > kmRay2IntersectTriangle @ 0x1800be3f0 // > @ 0x18014cf68 // > @ 0x1801c3138 // // 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 // float *__fastcall kmVec2Normalize(float *a1, float *a2) { float v4; // xmm6_4 float v5; // xmm7_4 float v6; // xmm7_4 float v7; // xmm0_4 float v9; // xmm1_4 float v10; // xmm0_4 v4 = a2[1]; v5 = kmSQR(*a2); v6 = v5 + kmSQR(v4); if ( v6 < 0.0 ) v7 = sqrtf(v6); else v7 = fsqrt(v6); v9 = 1.0 / v7; v10 = (float)(1.0 / v7) * a2[1]; *a1 = v9 * *a2; a1[1] = v10; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source