{"type": "func", "start": 6443210160, "end": 6443210415, "name": "kmQuaternionInverse", "pseudocode": "// \n// kmQuaternionInverse from 0x1800b95b0 to 0x1800b96af (255 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8d60\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 kmQuaternionInverse(float *a1, float *a2)\n{\n  float v3; // xmm6_4\n  float v4; // xmm7_4\n  float v5; // xmm8_4\n  float v6; // xmm9_4\n  float v7; // xmm2_4\n  float v8; // xmm0_4\n\n  v3 = *a2;\n  v4 = a2[1];\n  v5 = a2[2];\n  v6 = a2[3];\n  v7 = (float)((float)((float)(v3 * v3) + (float)(v4 * v4)) + (float)(v5 * v5)) + (float)(v6 * v6);\n  if ( v7 < 0.0 )\n    v8 = sqrtf(v7);\n  else\n    v8 = fsqrt(v7);\n  if ( fabs(v8) <= 0.015625 )\n  {\n    *a1 = (float)-v3 * (float)(1.0 / v8);\n    a1[1] = (float)-v4 * (float)(1.0 / v8);\n    a1[2] = (float)-v5 * (float)(1.0 / v8);\n    a1[3] = (float)(1.0 / v8) * v6;\n  }\n  else\n  {\n    *(_QWORD *)a1 = 0;\n    *((_QWORD *)a1 + 1) = 0;\n  }\n  return a1;\n}", "assembly": "; \n; kmQuaternionInverse from 0x1800b95b0 to 0x1800b96af (255 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8d60\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\npush    rbx                                                            ; +0x0, 0x1800b95b0\nsub     rsp, 60h                                                       ; +0x2, 0x1800b95b2\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x6, 0x1800b95b6\nmov     rbx, rcx                                                       ; +0xb, 0x1800b95bb\nmovss   xmm6, dword ptr [rdx]                                          ; +0xe, 0x1800b95be\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x12, 0x1800b95c2\nmovaps  xmm2, xmm6                                                     ; +0x17, 0x1800b95c7\nmovss   xmm7, dword ptr [rdx+4]                                        ; +0x1a, 0x1800b95ca\nmulss   xmm2, xmm6                                                     ; +0x1f, 0x1800b95cf\nmovaps  xmm0, xmm7                                                     ; +0x23, 0x1800b95d3\nmulss   xmm0, xmm7                                                     ; +0x26, 0x1800b95d6\nmovaps  [rsp+68h+var_38], xmm8                                         ; +0x2a, 0x1800b95da\nmovss   xmm8, dword ptr [rdx+8]                                        ; +0x30, 0x1800b95e0\naddss   xmm2, xmm0                                                     ; +0x36, 0x1800b95e6\nmovaps  [rsp+68h+var_48], xmm9                                         ; +0x3a, 0x1800b95ea\nmovss   xmm9, dword ptr [rdx+0Ch]                                      ; +0x40, 0x1800b95f0\nmovaps  xmm1, xmm8                                                     ; +0x46, 0x1800b95f6\nmovaps  xmm0, xmm9                                                     ; +0x4a, 0x1800b95fa\nmulss   xmm1, xmm8                                                     ; +0x4e, 0x1800b95fe\nmulss   xmm0, xmm9                                                     ; +0x53, 0x1800b9603\naddss   xmm2, xmm1                                                     ; +0x58, 0x1800b9608\naddss   xmm2, xmm0                                                     ; +0x5c, 0x1800b960c\nxorps   xmm0, xmm0                                                     ; +0x60, 0x1800b9610\nucomiss xmm0, xmm2                                                     ; +0x63, 0x1800b9613\nja      short loc_1800B9621                                            ; +0x66, 0x1800b9616\nxorps   xmm0, xmm0                                                     ; +0x68, 0x1800b9618\nsqrtss  xmm0, xmm2                                                     ; +0x6b, 0x1800b961b\njmp     short loc_1800B9629                                            ; +0x6f, 0x1800b961f\nmovaps  xmm0, xmm2; X                                                  ; +0x71, 0x1800b9621\ncall    sqrtf                                                          ; +0x74, 0x1800b9624\nxorps   xmm1, xmm1                                                     ; +0x79, 0x1800b9629\ncvtss2sd xmm1, xmm0                                                    ; +0x7c, 0x1800b962c\nandps   xmm1, cs:xmmword_180106F60                                     ; +0x80, 0x1800b9630\ncomisd  xmm1, cs:qword_180106EE8                                       ; +0x87, 0x1800b9637\njbe     short loc_1800B964C                                            ; +0x8f, 0x1800b963f\nxor     eax, eax                                                       ; +0x91, 0x1800b9641\nmov     [rbx], rax                                                     ; +0x93, 0x1800b9643\nmov     [rbx+8], rax                                                   ; +0x96, 0x1800b9646\njmp     short loc_1800B9690                                            ; +0x9a, 0x1800b964a\nmovss   xmm1, cs:flt_1800E61A8                                         ; +0x9c, 0x1800b964c\ndivss   xmm1, xmm0                                                     ; +0xa4, 0x1800b9654\nmovss   xmm0, dword ptr cs:xmmword_1800E61C0                           ; +0xa8, 0x1800b9658\nxorps   xmm6, xmm0                                                     ; +0xb0, 0x1800b9660\nxorps   xmm7, xmm0                                                     ; +0xb3, 0x1800b9663\nmulss   xmm6, xmm1                                                     ; +0xb6, 0x1800b9666\nxorps   xmm8, xmm0                                                     ; +0xba, 0x1800b966a\nmulss   xmm7, xmm1                                                     ; +0xbe, 0x1800b966e\nmovss   dword ptr [rbx], xmm6                                          ; +0xc2, 0x1800b9672\nmulss   xmm8, xmm1                                                     ; +0xc6, 0x1800b9676\nmovss   dword ptr [rbx+4], xmm7                                        ; +0xcb, 0x1800b967b\nmulss   xmm1, xmm9                                                     ; +0xd0, 0x1800b9680\nmovss   dword ptr [rbx+8], xmm8                                        ; +0xd5, 0x1800b9685\nmovss   dword ptr [rbx+0Ch], xmm1                                      ; +0xdb, 0x1800b968b\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xe0, 0x1800b9690\nmov     rax, rbx                                                       ; +0xe5, 0x1800b9695\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0xe8, 0x1800b9698\nmovaps  xmm8, [rsp+68h+var_38]                                         ; +0xed, 0x1800b969d\nmovaps  xmm9, [rsp+68h+var_48]                                         ; +0xf3, 0x1800b96a3\nadd     rsp, 60h                                                       ; +0xf9, 0x1800b96a9\npop     rbx                                                            ; +0xfd, 0x1800b96ad\nretn                                                                   ; +0xfe, 0x1800b96ae", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b8d60"], "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"}