{"type": "func", "start": 6443210480, "end": 6443210551, "name": "kmQuaternionLength", "pseudocode": "// \n// kmQuaternionLength from 0x1800b96f0 to 0x1800b9737 (71 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nfloat __fastcall kmQuaternionLength(float *a1)\n{\n  float v1; // xmm3_4\n\n  v1 = (float)((float)((float)(*a1 * *a1) + (float)(a1[1] * a1[1])) + (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 0x1800b96f0 to 0x1800b9737 (71 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmovss   xmm0, dword ptr [rcx+4]                                        ; +0x0, 0x1800b96f0\nmovss   xmm3, dword ptr [rcx]                                          ; +0x5, 0x1800b96f5\nmovss   xmm1, dword ptr [rcx+8]                                        ; +0x9, 0x1800b96f9\nmovss   xmm2, dword ptr [rcx+0Ch]                                      ; +0xe, 0x1800b96fe\nmulss   xmm3, xmm3                                                     ; +0x13, 0x1800b9703\nmulss   xmm0, xmm0                                                     ; +0x17, 0x1800b9707\nmulss   xmm1, xmm1                                                     ; +0x1b, 0x1800b970b\naddss   xmm3, xmm0                                                     ; +0x1f, 0x1800b970f\nmulss   xmm2, xmm2                                                     ; +0x23, 0x1800b9713\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1800b9717\naddss   xmm3, xmm1                                                     ; +0x2a, 0x1800b971a\naddss   xmm3, xmm2                                                     ; +0x2e, 0x1800b971e\nucomiss xmm0, xmm3                                                     ; +0x32, 0x1800b9722\nja      short loc_1800B972F                                            ; +0x35, 0x1800b9725\nxorps   xmm0, xmm0                                                     ; +0x37, 0x1800b9727\nsqrtss  xmm0, xmm3                                                     ; +0x3a, 0x1800b972a\nretn                                                                   ; +0x3e, 0x1800b972e\nmovaps  xmm0, xmm3; X                                                  ; +0x3f, 0x1800b972f\njmp     sqrtf                                                          ; +0x42, 0x1800b9732", "xrefs": ["<???> @ 0x1801438a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}