{"type": "func", "start": 6443227744, "end": 6443228196, "name": "kmQuaternionRotationYawPitchRoll", "pseudocode": "// \n// kmQuaternionRotationYawPitchRoll from 0x1800bda60 to 0x1800bdc24 (452 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c30cc\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\n__m128 *__fastcall kmQuaternionRotationYawPitchRoll(__m128 *a1)\n{\n  double v2; // xmm0_8\n  float v3; // xmm10_4\n  double v4; // xmm0_8\n  float v5; // xmm9_4\n  double v6; // xmm0_8\n  float v7; // xmm6_4\n  float v8; // xmm11_4\n  float v9; // xmm13_4\n  float v10; // xmm12_4\n  float v11; // xmm7_4\n  float v12; // xmm8_4\n  float v13; // xmm5_4\n  float v14; // xmm4_4\n  float v15; // xmm1_4\n  float v16; // xmm13_4\n  float v17; // xmm1_4\n  float v18; // xmm0_4\n  __m128 v19; // xmm2\n\n  v2 = kmDegreesToRadians();\n  v3 = *(float *)&v2 * 0.5;\n  v4 = kmDegreesToRadians();\n  v5 = *(float *)&v4 * 0.5;\n  v6 = kmDegreesToRadians();\n  v7 = *(float *)&v6 * 0.5;\n  v8 = cosf(v3);\n  v9 = cosf(v5);\n  v10 = cosf(v7);\n  v11 = sinf(v3);\n  v12 = sinf(v5);\n  *(float *)&v6 = sinf(v7);\n  v13 = (float)((float)(*(float *)&v6 * v12) * v11) + (float)((float)(v10 * v9) * v8);\n  v14 = (float)((float)(v10 * v9) * v11) - (float)((float)(*(float *)&v6 * v12) * v8);\n  v15 = (float)((float)(v11 * v9) * *(float *)&v6) + (float)((float)(v12 * v8) * v10);\n  a1->m128_f32[0] = v14;\n  v16 = (float)((float)(v9 * v8) * *(float *)&v6) - (float)((float)(v12 * v11) * v10);\n  a1->m128_f32[3] = v13;\n  a1->m128_f32[1] = v15;\n  a1->m128_f32[2] = v16;\n  v17 = (float)((float)((float)(v15 * v15) + (float)(v14 * v14)) + (float)(v16 * v16)) + (float)(v13 * v13);\n  if ( v17 < 0.0 )\n    v18 = sqrtf(v17);\n  else\n    v18 = fsqrt(v17);\n  v19 = (__m128)0x3F800000u;\n  v19.m128_f32[0] = 1.0 / v18;\n  *a1 = _mm_mul_ps(_mm_shuffle_ps(v19, v19, 0), *a1);\n  return a1;\n}", "assembly": "; \n; kmQuaternionRotationYawPitchRoll from 0x1800bda60 to 0x1800bdc24 (452 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c30cc\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; \nmov     rax, rsp                                                       ; +0x0, 0x1800bda60\npush    rbx                                                            ; +0x3, 0x1800bda63\nsub     rsp, 0A0h                                                      ; +0x4, 0x1800bda64\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xb, 0x1800bda6b\nmovaps  xmm0, xmm2                                                     ; +0xf, 0x1800bda6f\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x12, 0x1800bda72\nmovaps  xmm6, xmm1                                                     ; +0x16, 0x1800bda76\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x19, 0x1800bda79\nmov     rbx, rcx                                                       ; +0x1e, 0x1800bda7e\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x21, 0x1800bda81\nmovaps  xmm8, xmm3                                                     ; +0x26, 0x1800bda86\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x2a, 0x1800bda8a\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x2f, 0x1800bda8f\nmovaps  xmmword ptr [rax-78h], xmm12                                   ; +0x34, 0x1800bda94\nmovaps  [rsp+0A8h+var_88], xmm13                                       ; +0x39, 0x1800bda99\ncall    kmDegreesToRadians                                             ; +0x3f, 0x1800bda9f\nmovss   xmm7, cs:dword_1800EC358                                       ; +0x44, 0x1800bdaa4\nmovaps  xmm10, xmm0                                                    ; +0x4c, 0x1800bdaac\nmovaps  xmm0, xmm6                                                     ; +0x50, 0x1800bdab0\nmulss   xmm10, xmm7                                                    ; +0x53, 0x1800bdab3\ncall    kmDegreesToRadians                                             ; +0x58, 0x1800bdab8\nmovaps  xmm9, xmm0                                                     ; +0x5d, 0x1800bdabd\nmovaps  xmm0, xmm8                                                     ; +0x61, 0x1800bdac1\nmulss   xmm9, xmm7                                                     ; +0x65, 0x1800bdac5\ncall    kmDegreesToRadians                                             ; +0x6a, 0x1800bdaca\nmovaps  xmm6, xmm0                                                     ; +0x6f, 0x1800bdacf\nmovaps  xmm0, xmm10; X                                                 ; +0x72, 0x1800bdad2\nmulss   xmm6, xmm7                                                     ; +0x76, 0x1800bdad6\ncall    cosf                                                           ; +0x7a, 0x1800bdada\nmovaps  xmm11, xmm0                                                    ; +0x7f, 0x1800bdadf\nmovaps  xmm0, xmm9; X                                                  ; +0x83, 0x1800bdae3\ncall    cosf                                                           ; +0x87, 0x1800bdae7\nmovaps  xmm13, xmm0                                                    ; +0x8c, 0x1800bdaec\nmovaps  xmm0, xmm6; X                                                  ; +0x90, 0x1800bdaf0\ncall    cosf                                                           ; +0x93, 0x1800bdaf3\nmovaps  xmm12, xmm0                                                    ; +0x98, 0x1800bdaf8\nmovaps  xmm0, xmm10; X                                                 ; +0x9c, 0x1800bdafc\ncall    sinf                                                           ; +0xa0, 0x1800bdb00\nmovaps  xmm7, xmm0                                                     ; +0xa5, 0x1800bdb05\nmovaps  xmm0, xmm9; X                                                  ; +0xa8, 0x1800bdb08\ncall    sinf                                                           ; +0xac, 0x1800bdb0c\nmovaps  xmm8, xmm0                                                     ; +0xb1, 0x1800bdb11\nmovaps  xmm0, xmm6; X                                                  ; +0xb5, 0x1800bdb15\ncall    sinf                                                           ; +0xb8, 0x1800bdb18\nmovaps  xmm2, xmm0                                                     ; +0xbd, 0x1800bdb1d\nmovaps  xmm3, xmm0                                                     ; +0xc0, 0x1800bdb20\nmulss   xmm2, xmm8                                                     ; +0xc3, 0x1800bdb23\nmovaps  xmm0, xmm8                                                     ; +0xc8, 0x1800bdb28\nmovaps  xmm4, xmm12                                                    ; +0xcc, 0x1800bdb2c\nmulss   xmm0, xmm11                                                    ; +0xd0, 0x1800bdb30\nmulss   xmm4, xmm13                                                    ; +0xd5, 0x1800bdb35\nmovaps  xmm5, xmm2                                                     ; +0xda, 0x1800bdb3a\nmulss   xmm5, xmm7                                                     ; +0xdd, 0x1800bdb3d\nmovaps  xmm1, xmm4                                                     ; +0xe1, 0x1800bdb41\nmulss   xmm0, xmm12                                                    ; +0xe4, 0x1800bdb44\nmulss   xmm1, xmm11                                                    ; +0xe9, 0x1800bdb49\nmulss   xmm4, xmm7                                                     ; +0xee, 0x1800bdb4e\naddss   xmm5, xmm1                                                     ; +0xf2, 0x1800bdb52\nmulss   xmm2, xmm11                                                    ; +0xf6, 0x1800bdb56\nmovaps  xmm1, xmm7                                                     ; +0xfb, 0x1800bdb5b\nmulss   xmm8, xmm7                                                     ; +0xfe, 0x1800bdb5e\nmulss   xmm1, xmm13                                                    ; +0x103, 0x1800bdb63\nsubss   xmm4, xmm2                                                     ; +0x108, 0x1800bdb68\nmulss   xmm13, xmm11                                                   ; +0x10c, 0x1800bdb6c\nmulss   xmm1, xmm3                                                     ; +0x111, 0x1800bdb71\nmulss   xmm13, xmm3                                                    ; +0x115, 0x1800bdb75\naddss   xmm1, xmm0                                                     ; +0x11a, 0x1800bdb7a\nmulss   xmm8, xmm12                                                    ; +0x11e, 0x1800bdb7e\nmovss   dword ptr [rbx], xmm4                                          ; +0x123, 0x1800bdb83\nxorps   xmm0, xmm0                                                     ; +0x127, 0x1800bdb87\nmulss   xmm4, xmm4                                                     ; +0x12a, 0x1800bdb8a\nsubss   xmm13, xmm8                                                    ; +0x12e, 0x1800bdb8e\nmovss   dword ptr [rbx+0Ch], xmm5                                      ; +0x133, 0x1800bdb93\nmovss   dword ptr [rbx+4], xmm1                                        ; +0x138, 0x1800bdb98\nmulss   xmm1, xmm1                                                     ; +0x13d, 0x1800bdb9d\nmulss   xmm5, xmm5                                                     ; +0x141, 0x1800bdba1\naddss   xmm1, xmm4                                                     ; +0x145, 0x1800bdba5\nmovss   dword ptr [rbx+8], xmm13                                       ; +0x149, 0x1800bdba9\nmulss   xmm13, xmm13                                                   ; +0x14f, 0x1800bdbaf\naddss   xmm1, xmm13                                                    ; +0x154, 0x1800bdbb4\naddss   xmm1, xmm5                                                     ; +0x159, 0x1800bdbb9\nucomiss xmm0, xmm1                                                     ; +0x15d, 0x1800bdbbd\nja      short loc_1800BDBCB                                            ; +0x160, 0x1800bdbc0\nxorps   xmm0, xmm0                                                     ; +0x162, 0x1800bdbc2\nsqrtss  xmm0, xmm1                                                     ; +0x165, 0x1800bdbc5\njmp     short loc_1800BDBD3                                            ; +0x169, 0x1800bdbc9\nmovaps  xmm0, xmm1; X                                                  ; +0x16b, 0x1800bdbcb\ncall    sqrtf                                                          ; +0x16e, 0x1800bdbce\nmovss   xmm2, cs:flt_1800EC208                                         ; +0x173, 0x1800bdbd3\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x17b, 0x1800bdbdb\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x183, 0x1800bdbe3\nmov     rax, rbx                                                       ; +0x188, 0x1800bdbe8\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x18b, 0x1800bdbeb\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x190, 0x1800bdbf0\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x195, 0x1800bdbf5\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x19a, 0x1800bdbfa\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x19f, 0x1800bdbff\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x1a4, 0x1800bdc04\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x1a9, 0x1800bdc09\ndivss   xmm2, xmm0                                                     ; +0x1ae, 0x1800bdc0e\nmovups  xmm0, xmmword ptr [rbx]                                        ; +0x1b2, 0x1800bdc12\nshufps  xmm2, xmm2, 0                                                  ; +0x1b5, 0x1800bdc15\nmulps   xmm2, xmm0                                                     ; +0x1b9, 0x1800bdc19\nmovups  xmmword ptr [rbx], xmm2                                        ; +0x1bc, 0x1800bdc1c\nmov     rsp, r11                                                       ; +0x1bf, 0x1800bdc1f\npop     rbx                                                            ; +0x1c2, 0x1800bdc22\nretn                                                                   ; +0x1c3, 0x1800bdc23", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c30cc"], "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"}