{"type": "func", "start": 6443231824, "end": 6443231943, "name": "kmVec3Length", "pseudocode": "// \n// kmVec3Length from 0x1800bea50 to 0x1800beac7 (119 bytes)\n// \n// 4 xrefs:\n// > kmPlaneNormalize @ 0x1800bcf69\n// > kmVec3Normalize @ 0x1800beb33\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3168\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 kmVec3Length(float *a1)\n{\n  float v2; // xmm6_4\n  float v3; // xmm7_4\n  float v4; // xmm7_4\n  float v5; // xmm1_4\n\n  v2 = *a1;\n  v3 = kmSQR(a1[1]);\n  v4 = v3 + kmSQR(v2);\n  v5 = kmSQR(a1[2]) + v4;\n  if ( v5 < 0.0 )\n    return sqrtf(v5);\n  else\n    return fsqrt(v5);\n}", "assembly": "; \n; kmVec3Length from 0x1800bea50 to 0x1800beac7 (119 bytes)\n; \n; 4 xrefs:\n; > kmPlaneNormalize @ 0x1800bcf69\n; > kmVec3Normalize @ 0x1800beb33\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3168\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; \npush    rbx                                                            ; +0x0, 0x1800bea50\nsub     rsp, 40h                                                       ; +0x2, 0x1800bea52\nmovss   xmm0, dword ptr [rcx+4]                                        ; +0x6, 0x1800bea56\nmov     rbx, rcx                                                       ; +0xb, 0x1800bea5b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xe, 0x1800bea5e\nmovss   xmm6, dword ptr [rcx]                                          ; +0x13, 0x1800bea63\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x17, 0x1800bea67\ncall    kmSQR                                                          ; +0x1c, 0x1800bea6c\nmovaps  xmm7, xmm0                                                     ; +0x21, 0x1800bea71\nmovaps  xmm0, xmm6                                                     ; +0x24, 0x1800bea74\ncall    kmSQR                                                          ; +0x27, 0x1800bea77\naddss   xmm7, xmm0                                                     ; +0x2c, 0x1800bea7c\nmovss   xmm0, dword ptr [rbx+8]                                        ; +0x30, 0x1800bea80\ncall    kmSQR                                                          ; +0x35, 0x1800bea85\nmovaps  xmm1, xmm0                                                     ; +0x3a, 0x1800bea8a\nxorps   xmm0, xmm0                                                     ; +0x3d, 0x1800bea8d\naddss   xmm1, xmm7                                                     ; +0x40, 0x1800bea90\nucomiss xmm0, xmm1                                                     ; +0x44, 0x1800bea94\nja      short loc_1800BEAB0                                            ; +0x47, 0x1800bea97\nxorps   xmm0, xmm0                                                     ; +0x49, 0x1800bea99\nsqrtss  xmm0, xmm1                                                     ; +0x4c, 0x1800bea9c\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x50, 0x1800beaa0\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x55, 0x1800beaa5\nadd     rsp, 40h                                                       ; +0x5a, 0x1800beaaa\npop     rbx                                                            ; +0x5e, 0x1800beaae\nretn                                                                   ; +0x5f, 0x1800beaaf\nmovaps  xmm0, xmm1; X                                                  ; +0x60, 0x1800beab0\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x63, 0x1800beab3\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x68, 0x1800beab8\nadd     rsp, 40h                                                       ; +0x6d, 0x1800beabd\npop     rbx                                                            ; +0x71, 0x1800beac1\njmp     sqrtf                                                          ; +0x72, 0x1800beac2", "xrefs": ["kmPlaneNormalize @ 0x1800bcf69", "kmVec3Normalize @ 0x1800beb33", "<???> @ 0x18014cf68", "<???> @ 0x1801c3168"], "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"}