{"type": "func", "start": 6443216432, "end": 6443216765, "name": "kmMat3RotationQuaternion", "pseudocode": "// \n// kmMat3RotationQuaternion from 0x1800bae30 to 0x1800baf7d (333 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:23 +0000\n// \n\nfloat *__fastcall kmMat3RotationQuaternion(float *a1, float *a2)\n{\n  float v3; // xmm1_4\n  float v4; // xmm1_4\n  float v5; // xmm2_4\n  float v6; // xmm1_4\n  float v7; // xmm2_4\n  float v8; // xmm1_4\n  float v9; // xmm2_4\n  float v10; // xmm1_4\n  float v11; // xmm0_4\n\n  if ( !a2 || !a1 )\n    return nullptr;\n  v3 = (float)(a2[2] * a2[2]) + (float)(a2[1] * a2[1]);\n  *a1 = 1.0 - (float)(v3 + v3);\n  v4 = (float)(a2[1] * *a2) - (float)(a2[3] * a2[2]);\n  a1[1] = v4 + v4;\n  v5 = (float)(a2[2] * *a2) + (float)(a2[1] * a2[3]);\n  a1[2] = v5 + v5;\n  v6 = (float)(a2[3] * a2[2]) + (float)(a2[1] * *a2);\n  a1[3] = v6 + v6;\n  v7 = (float)(*a2 * *a2) + (float)(a2[2] * a2[2]);\n  a1[4] = 1.0 - (float)(v7 + v7);\n  v8 = (float)(a2[1] * a2[2]) - (float)(a2[3] * *a2);\n  a1[5] = v8 + v8;\n  v9 = (float)(a2[2] * *a2) - (float)(a2[1] * a2[3]);\n  a1[6] = v9 + v9;\n  v10 = (float)(a2[3] * *a2) + (float)(a2[1] * a2[2]);\n  a1[7] = v10 + v10;\n  v11 = a2[1] * a2[1];\n  a1[8] = 1.0 - (float)((float)((float)(*a2 * *a2) + v11) + (float)((float)(*a2 * *a2) + v11));\n  return a1;\n}", "assembly": "; \n; kmMat3RotationQuaternion from 0x1800bae30 to 0x1800baf7d (333 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:23 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1800bae30\njz      loc_1800BAF7A                                                  ; +0x3, 0x1800bae33\ntest    rcx, rcx                                                       ; +0x9, 0x1800bae39\njz      loc_1800BAF7A                                                  ; +0xc, 0x1800bae3c\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x12, 0x1800bae42\nmov     rax, rcx                                                       ; +0x17, 0x1800bae47\nmovss   xmm1, dword ptr [rdx+8]                                        ; +0x1a, 0x1800bae4a\nmovss   xmm3, cs:flt_1800EC208                                         ; +0x1f, 0x1800bae4f\nmulss   xmm0, xmm0                                                     ; +0x27, 0x1800bae57\nmulss   xmm1, xmm1                                                     ; +0x2b, 0x1800bae5b\naddss   xmm1, xmm0                                                     ; +0x2f, 0x1800bae5f\nmovaps  xmm0, xmm3                                                     ; +0x33, 0x1800bae63\naddss   xmm1, xmm1                                                     ; +0x36, 0x1800bae66\nsubss   xmm0, xmm1                                                     ; +0x3a, 0x1800bae6a\nmovss   dword ptr [rcx], xmm0                                          ; +0x3e, 0x1800bae6e\nmovss   xmm1, dword ptr [rdx+4]                                        ; +0x42, 0x1800bae72\nmulss   xmm1, dword ptr [rdx]                                          ; +0x47, 0x1800bae77\nmovss   xmm0, dword ptr [rdx+0Ch]                                      ; +0x4b, 0x1800bae7b\nmulss   xmm0, dword ptr [rdx+8]                                        ; +0x50, 0x1800bae80\nsubss   xmm1, xmm0                                                     ; +0x55, 0x1800bae85\naddss   xmm1, xmm1                                                     ; +0x59, 0x1800bae89\nmovss   dword ptr [rcx+4], xmm1                                        ; +0x5d, 0x1800bae8d\nmovss   xmm2, dword ptr [rdx+8]                                        ; +0x62, 0x1800bae92\nmulss   xmm2, dword ptr [rdx]                                          ; +0x67, 0x1800bae97\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x6b, 0x1800bae9b\nmulss   xmm0, dword ptr [rdx+0Ch]                                      ; +0x70, 0x1800baea0\naddss   xmm2, xmm0                                                     ; +0x75, 0x1800baea5\naddss   xmm2, xmm2                                                     ; +0x79, 0x1800baea9\nmovss   dword ptr [rcx+8], xmm2                                        ; +0x7d, 0x1800baead\nmovss   xmm1, dword ptr [rdx+0Ch]                                      ; +0x82, 0x1800baeb2\nmulss   xmm1, dword ptr [rdx+8]                                        ; +0x87, 0x1800baeb7\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x8c, 0x1800baebc\nmulss   xmm0, dword ptr [rdx]                                          ; +0x91, 0x1800baec1\naddss   xmm1, xmm0                                                     ; +0x95, 0x1800baec5\naddss   xmm1, xmm1                                                     ; +0x99, 0x1800baec9\nmovss   dword ptr [rcx+0Ch], xmm1                                      ; +0x9d, 0x1800baecd\nmovss   xmm2, dword ptr [rdx]                                          ; +0xa2, 0x1800baed2\nmovss   xmm0, dword ptr [rdx+8]                                        ; +0xa6, 0x1800baed6\nmulss   xmm0, xmm0                                                     ; +0xab, 0x1800baedb\nmulss   xmm2, xmm2                                                     ; +0xaf, 0x1800baedf\naddss   xmm2, xmm0                                                     ; +0xb3, 0x1800baee3\nmovaps  xmm0, xmm3                                                     ; +0xb7, 0x1800baee7\naddss   xmm2, xmm2                                                     ; +0xba, 0x1800baeea\nsubss   xmm0, xmm2                                                     ; +0xbe, 0x1800baeee\nmovss   dword ptr [rcx+10h], xmm0                                      ; +0xc2, 0x1800baef2\nmovss   xmm1, dword ptr [rdx+4]                                        ; +0xc7, 0x1800baef7\nmulss   xmm1, dword ptr [rdx+8]                                        ; +0xcc, 0x1800baefc\nmovss   xmm0, dword ptr [rdx+0Ch]                                      ; +0xd1, 0x1800baf01\nmulss   xmm0, dword ptr [rdx]                                          ; +0xd6, 0x1800baf06\nsubss   xmm1, xmm0                                                     ; +0xda, 0x1800baf0a\naddss   xmm1, xmm1                                                     ; +0xde, 0x1800baf0e\nmovss   dword ptr [rcx+14h], xmm1                                      ; +0xe2, 0x1800baf12\nmovss   xmm2, dword ptr [rdx+8]                                        ; +0xe7, 0x1800baf17\nmulss   xmm2, dword ptr [rdx]                                          ; +0xec, 0x1800baf1c\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0xf0, 0x1800baf20\nmulss   xmm0, dword ptr [rdx+0Ch]                                      ; +0xf5, 0x1800baf25\nsubss   xmm2, xmm0                                                     ; +0xfa, 0x1800baf2a\naddss   xmm2, xmm2                                                     ; +0xfe, 0x1800baf2e\nmovss   dword ptr [rcx+18h], xmm2                                      ; +0x102, 0x1800baf32\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x107, 0x1800baf37\nmulss   xmm0, dword ptr [rdx+8]                                        ; +0x10c, 0x1800baf3c\nmovss   xmm1, dword ptr [rdx+0Ch]                                      ; +0x111, 0x1800baf41\nmulss   xmm1, dword ptr [rdx]                                          ; +0x116, 0x1800baf46\naddss   xmm1, xmm0                                                     ; +0x11a, 0x1800baf4a\naddss   xmm1, xmm1                                                     ; +0x11e, 0x1800baf4e\nmovss   dword ptr [rcx+1Ch], xmm1                                      ; +0x122, 0x1800baf52\nmovss   xmm2, dword ptr [rdx]                                          ; +0x127, 0x1800baf57\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x12b, 0x1800baf5b\nmulss   xmm2, xmm2                                                     ; +0x130, 0x1800baf60\nmulss   xmm0, xmm0                                                     ; +0x134, 0x1800baf64\naddss   xmm2, xmm0                                                     ; +0x138, 0x1800baf68\naddss   xmm2, xmm2                                                     ; +0x13c, 0x1800baf6c\nsubss   xmm3, xmm2                                                     ; +0x140, 0x1800baf70\nmovss   dword ptr [rcx+20h], xmm3                                      ; +0x144, 0x1800baf74\nretn                                                                   ; +0x149, 0x1800baf79\nxor     eax, eax                                                       ; +0x14a, 0x1800baf7a\nretn                                                                   ; +0x14c, 0x1800baf7c", "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"}