{"type": "func", "start": 6443225632, "end": 6443225703, "name": "kmQuaternionLength", "pseudocode": "// \n// kmQuaternionLength from 0x1800bd220 to 0x1800bd267 (71 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18014cf68\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 kmQuaternionLength(float *a1)\n{\n  float v1; // xmm3_4\n\n  v1 = (float)((float)((float)(a1[1] * a1[1]) + (float)(*a1 * *a1)) + (float)(a1[2] * a1[2])) + (float)(a1[3] * a1[3]);\n  if ( v1 < 0.0 )\n    return sqrtf(v1);\n  else\n    return fsqrt(v1);\n}", "assembly": "; \n; kmQuaternionLength from 0x1800bd220 to 0x1800bd267 (71 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18014cf68\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; \nmovss   xmm0, dword ptr [rcx]                                          ; +0x0, 0x1800bd220\nmovss   xmm3, dword ptr [rcx+4]                                        ; +0x4, 0x1800bd224\nmovss   xmm1, dword ptr [rcx+8]                                        ; +0x9, 0x1800bd229\nmovss   xmm2, dword ptr [rcx+0Ch]                                      ; +0xe, 0x1800bd22e\nmulss   xmm3, xmm3                                                     ; +0x13, 0x1800bd233\nmulss   xmm0, xmm0                                                     ; +0x17, 0x1800bd237\nmulss   xmm1, xmm1                                                     ; +0x1b, 0x1800bd23b\naddss   xmm3, xmm0                                                     ; +0x1f, 0x1800bd23f\nmulss   xmm2, xmm2                                                     ; +0x23, 0x1800bd243\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1800bd247\naddss   xmm3, xmm1                                                     ; +0x2a, 0x1800bd24a\naddss   xmm3, xmm2                                                     ; +0x2e, 0x1800bd24e\nucomiss xmm0, xmm3                                                     ; +0x32, 0x1800bd252\nja      short loc_1800BD25F                                            ; +0x35, 0x1800bd255\nxorps   xmm0, xmm0                                                     ; +0x37, 0x1800bd257\nsqrtss  xmm0, xmm3                                                     ; +0x3a, 0x1800bd25a\nretn                                                                   ; +0x3e, 0x1800bd25e\nmovaps  xmm0, xmm3; X                                                  ; +0x3f, 0x1800bd25f\njmp     sqrtf                                                          ; +0x42, 0x1800bd262", "xrefs": ["<???> @ 0x18014cf68"], "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"}