{"type": "func", "start": 6443232032, "end": 6443232116, "name": "kmVec3Normalize", "pseudocode": "// \n// kmVec3Normalize from 0x1800beb20 to 0x1800beb74 (84 bytes)\n// \n// 16 xrefs:\n// > kmMat4GetForwardVec3 @ 0x1800bb97d\n// > kmMat4GetRightVec3 @ 0x1800bb9ac\n// > kmMat4GetUpVec3 @ 0x1800bb9dd\n// > kmMat4LookAt @ 0x1800bbb82\n// > kmMat4LookAt @ 0x1800bbb9b\n// > kmMat4LookAt @ 0x1800bbbb9\n// > kmMat4LookAt @ 0x1800bbbd7\n// > kmMat4RotationAxisAngle @ 0x1800bc4ae\n// > kmPlaneFromPoints @ 0x1800bce71\n// > kmPlaneNormalize @ 0x1800bcf84\n// > kmQuaternionRotationBetweenVec3 @ 0x1800bd5e3\n// > kmQuaternionRotationBetweenVec3 @ 0x1800bd5f0\n// > kmQuaternionRotationBetweenVec3 @ 0x1800bd715\n// > kmQuaternionToAxisAngle @ 0x1800bdf44\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3180\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:24 +0000\n// \n\nfloat *__fastcall kmVec3Normalize(float *a1, float *a2)\n{\n  float v4; // xmm0_4\n  float v6; // xmm2_4\n  float v7; // xmm1_4\n  float v8; // xmm0_4\n  float v9; // xmm2_4\n\n  v4 = kmVec3Length(a2);\n  v6 = 1.0 / v4;\n  v7 = (float)(1.0 / v4) * a2[1];\n  v8 = (float)(1.0 / v4) * a2[2];\n  v9 = v6 * *a2;\n  a1[1] = v7;\n  a1[2] = v8;\n  *a1 = v9;\n  return a1;\n}", "assembly": "; \n; kmVec3Normalize from 0x1800beb20 to 0x1800beb74 (84 bytes)\n; \n; 16 xrefs:\n; > kmMat4GetForwardVec3 @ 0x1800bb97d\n; > kmMat4GetRightVec3 @ 0x1800bb9ac\n; > kmMat4GetUpVec3 @ 0x1800bb9dd\n; > kmMat4LookAt @ 0x1800bbb82\n; > kmMat4LookAt @ 0x1800bbb9b\n; > kmMat4LookAt @ 0x1800bbbb9\n; > kmMat4LookAt @ 0x1800bbbd7\n; > kmMat4RotationAxisAngle @ 0x1800bc4ae\n; > kmPlaneFromPoints @ 0x1800bce71\n; > kmPlaneNormalize @ 0x1800bcf84\n; > kmQuaternionRotationBetweenVec3 @ 0x1800bd5e3\n; > kmQuaternionRotationBetweenVec3 @ 0x1800bd5f0\n; > kmQuaternionRotationBetweenVec3 @ 0x1800bd715\n; > kmQuaternionToAxisAngle @ 0x1800bdf44\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3180\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:24 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800beb20\npush    rdi                                                            ; +0x5, 0x1800beb25\nsub     rsp, 20h                                                       ; +0x6, 0x1800beb26\nmov     rdi, rcx                                                       ; +0xa, 0x1800beb2a\nmov     rbx, rdx                                                       ; +0xd, 0x1800beb2d\nmov     rcx, rdx                                                       ; +0x10, 0x1800beb30\ncall    kmVec3Length                                                   ; +0x13, 0x1800beb33\nmovss   xmm2, cs:flt_1800EC208                                         ; +0x18, 0x1800beb38\nmov     rax, rdi                                                       ; +0x20, 0x1800beb40\ndivss   xmm2, xmm0                                                     ; +0x23, 0x1800beb43\nmovaps  xmm1, xmm2                                                     ; +0x27, 0x1800beb47\nmovaps  xmm0, xmm2                                                     ; +0x2a, 0x1800beb4a\nmulss   xmm1, dword ptr [rbx+4]                                        ; +0x2d, 0x1800beb4d\nmulss   xmm0, dword ptr [rbx+8]                                        ; +0x32, 0x1800beb52\nmulss   xmm2, dword ptr [rbx]                                          ; +0x37, 0x1800beb57\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3b, 0x1800beb5b\nmovss   dword ptr [rdi+4], xmm1                                        ; +0x40, 0x1800beb60\nmovss   dword ptr [rdi+8], xmm0                                        ; +0x45, 0x1800beb65\nmovss   dword ptr [rdi], xmm2                                          ; +0x4a, 0x1800beb6a\nadd     rsp, 20h                                                       ; +0x4e, 0x1800beb6e\npop     rdi                                                            ; +0x52, 0x1800beb72\nretn                                                                   ; +0x53, 0x1800beb73", "xrefs": ["kmMat4GetForwardVec3 @ 0x1800bb97d", "kmMat4GetRightVec3 @ 0x1800bb9ac", "kmMat4GetUpVec3 @ 0x1800bb9dd", "kmMat4LookAt @ 0x1800bbb82", "kmMat4LookAt @ 0x1800bbb9b", "kmMat4LookAt @ 0x1800bbbb9", "kmMat4LookAt @ 0x1800bbbd7", "kmMat4RotationAxisAngle @ 0x1800bc4ae", "kmPlaneFromPoints @ 0x1800bce71", "kmPlaneNormalize @ 0x1800bcf84", "kmQuaternionRotationBetweenVec3 @ 0x1800bd5e3", "kmQuaternionRotationBetweenVec3 @ 0x1800bd5f0", "kmQuaternionRotationBetweenVec3 @ 0x1800bd715", "kmQuaternionToAxisAngle @ 0x1800bdf44", "<???> @ 0x18014cf68", "<???> @ 0x1801c3180"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}