{"type": "func", "start": 6443526480, "end": 6443526789, "name": "sub_180106950", "pseudocode": "// \n// sub_180106950 from 0x180106950 to 0x180106a85 (309 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18018fec8\n// > <???> @ 0x18018fed8\n// > <???> @ 0x1801b0090\n// > <???> @ 0x1802014cc\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 10:54:31 +0000\n// \n\nunsigned __int64 __fastcall sub_180106950(__m128 *a1, __int64 a2, __int64 a3, int a4)\n{\n  unsigned __int64 result; // rax\n  __m128 v5; // xmm7\n  __int64 v6; // r8\n  __int64 v7; // r11\n  __m128 *v8; // rdx\n  __m128 v9; // xmm5\n  __m128 v10; // xmm0\n  __m128 v11; // xmm7\n  __m128 v12; // xmm4\n  __m128 v13; // xmm2\n  __m128 v14; // xmm6\n  __m128 v15; // xmm5\n\n  result = a4 / 2;\n  v5 = *(__m128 *)((char *)a1 + 8 * (a4 / 2));\n  if ( (int)result > 0 )\n  {\n    v6 = a3 - (_QWORD)a1;\n    v7 = a2 - (_QWORD)a1;\n    v8 = (__m128 *)((char *)a1 + 8 * (int)result - 16);\n    result = ((unsigned __int64)((int)result - 1LL) >> 1) + 1;\n    do\n    {\n      v9 = *(__m128 *)((char *)a1 + v6);\n      v10 = *v8--;\n      v11 = _mm_shuffle_ps(v5, v10, 228);\n      v12 = _mm_shuffle_ps(v11, v11, 245);\n      v13 = _mm_shuffle_ps(v11, v11, 160);\n      v5 = v10;\n      v14 = _mm_xor_ps(_mm_add_ps(_mm_shuffle_ps(v9, v9, 68), (__m128)xmmword_18016EDF0), (__m128)xmmword_18016ED00);\n      v15 = _mm_xor_ps(_mm_add_ps(_mm_shuffle_ps(v9, v9, 238), (__m128)xmmword_18016EDF0), (__m128)xmmword_18016ED00);\n      *(__m128 *)((char *)a1 + v7) = _mm_add_ps(\n                                       _mm_add_ps(\n                                         _mm_add_ps(\n                                           _mm_mul_ps(\n                                             _mm_xor_ps(v12, (__m128)xmmword_18016ED20),\n                                             _mm_shuffle_ps(v14, v15, 187)),\n                                           _mm_mul_ps(_mm_shuffle_ps(v14, v15, 238), v13)),\n                                         _mm_mul_ps(\n                                           _mm_xor_ps(_mm_shuffle_ps(*a1, *a1, 177), (__m128)xmmword_18016ED10),\n                                           _mm_shuffle_ps(v14, v15, 85))),\n                                       _mm_mul_ps(_mm_shuffle_ps(v14, v15, 0), *a1));\n      ++a1;\n      --result;\n    }\n    while ( result );\n  }\n  return result;\n}", "assembly": "; \n; sub_180106950 from 0x180106950 to 0x180106a85 (309 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18018fec8\n; > <???> @ 0x18018fed8\n; > <???> @ 0x1801b0090\n; > <???> @ 0x1802014cc\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 10:54:31 +0000\n; \nsub     rsp, 68h                                                       ; +0x0, 0x180106950\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x4, 0x180106954\nmov     eax, r9d                                                       ; +0x9, 0x180106959\nmovaps  [rsp+68h+var_38], xmm8                                         ; +0xc, 0x18010695c\nmov     r11, rdx                                                       ; +0x12, 0x180106962\nmovaps  xmm8, cs:xmmword_18016ED00                                     ; +0x15, 0x180106965\ncdq                                                                    ; +0x1d, 0x18010696d\nsub     eax, edx                                                       ; +0x1e, 0x18010696e\nmovaps  [rsp+68h+var_48], xmm9                                         ; +0x20, 0x180106970\nmovaps  xmm9, cs:xmmword_18016EDF0                                     ; +0x26, 0x180106976\nsar     eax, 1                                                         ; +0x2e, 0x18010697e\nmovaps  [rsp+68h+var_58], xmm10                                        ; +0x30, 0x180106980\nmovaps  xmm10, cs:xmmword_18016ED10                                    ; +0x36, 0x180106986\nmovaps  [rsp+68h+var_68], xmm11                                        ; +0x3e, 0x18010698e\nmovaps  xmm11, cs:xmmword_18016ED20                                    ; +0x43, 0x180106993\nlea     r9d, [rax+rax]                                                 ; +0x4b, 0x18010699b\nmovsxd  r10, r9d                                                       ; +0x4f, 0x18010699f\ncdqe                                                                   ; +0x52, 0x1801069a2\nmovups  xmm7, xmmword ptr [rcx+r10*4]                                  ; +0x54, 0x1801069a4\ntest    rax, rax                                                       ; +0x59, 0x1801069a9\njle     loc_180106A64                                                  ; +0x5c, 0x1801069ac\nsub     r8, rcx                                                        ; +0x62, 0x1801069b2\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x65, 0x1801069b5\nsub     r11, rcx                                                       ; +0x6a, 0x1801069ba\nlea     rdx, [rcx-10h]                                                 ; +0x6d, 0x1801069bd\nlea     rdx, [rdx+rax*8]                                               ; +0x71, 0x1801069c1\ndec     rax                                                            ; +0x75, 0x1801069c5\nshr     rax, 1                                                         ; +0x78, 0x1801069c8\ninc     rax                                                            ; +0x7b, 0x1801069cb\nxchg    ax, ax                                                         ; +0x7e, 0x1801069ce\nmovups  xmm5, xmmword ptr [r8+rcx]                                     ; +0x80, 0x1801069d0\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x85, 0x1801069d5\nsub     rdx, 10h                                                       ; +0x88, 0x1801069d8\nmovups  xmm3, xmmword ptr [rcx]                                        ; +0x8c, 0x1801069dc\nshufps  xmm7, xmm0, 0E4h                                               ; +0x8f, 0x1801069df\nmovaps  xmm6, xmm5                                                     ; +0x93, 0x1801069e3\nshufps  xmm6, xmm5, 44h ; 'D'                                          ; +0x96, 0x1801069e6\nmovaps  xmm2, xmm7                                                     ; +0x9a, 0x1801069ea\nmovaps  xmm4, xmm2                                                     ; +0x9d, 0x1801069ed\nshufps  xmm5, xmm5, 0EEh                                               ; +0xa0, 0x1801069f0\nshufps  xmm4, xmm2, 0F5h                                               ; +0xa4, 0x1801069f4\naddps   xmm6, xmm9                                                     ; +0xa8, 0x1801069f8\nshufps  xmm2, xmm2, 0A0h                                               ; +0xac, 0x1801069fc\naddps   xmm5, xmm9                                                     ; +0xb0, 0x180106a00\nmovaps  xmm7, xmm0                                                     ; +0xb4, 0x180106a04\nxorps   xmm4, xmm11                                                    ; +0xb7, 0x180106a07\nxorps   xmm6, xmm8                                                     ; +0xbb, 0x180106a0b\nxorps   xmm5, xmm8                                                     ; +0xbf, 0x180106a0f\nmovaps  xmm1, xmm6                                                     ; +0xc3, 0x180106a13\nmovaps  xmm0, xmm6                                                     ; +0xc6, 0x180106a16\nshufps  xmm1, xmm5, 0EEh                                               ; +0xc9, 0x180106a19\nmulps   xmm1, xmm2                                                     ; +0xcd, 0x180106a1d\nmovaps  xmm2, xmm3                                                     ; +0xd0, 0x180106a20\nshufps  xmm0, xmm5, 0BBh                                               ; +0xd3, 0x180106a23\nmulps   xmm4, xmm0                                                     ; +0xd7, 0x180106a27\nmovaps  xmm0, xmm6                                                     ; +0xda, 0x180106a2a\nshufps  xmm2, xmm3, 0B1h                                               ; +0xdd, 0x180106a2d\nxorps   xmm2, xmm10                                                    ; +0xe1, 0x180106a31\nshufps  xmm0, xmm5, 55h ; 'U'                                          ; +0xe5, 0x180106a35\nmulps   xmm2, xmm0                                                     ; +0xe9, 0x180106a39\naddps   xmm4, xmm1                                                     ; +0xec, 0x180106a3c\nshufps  xmm6, xmm5, 0                                                  ; +0xef, 0x180106a3f\nmulps   xmm6, xmm3                                                     ; +0xf3, 0x180106a43\naddps   xmm4, xmm2                                                     ; +0xf6, 0x180106a46\naddps   xmm4, xmm6                                                     ; +0xf9, 0x180106a49\nmovups  xmmword ptr [r11+rcx], xmm4                                    ; +0xfc, 0x180106a4c\nadd     rcx, 10h                                                       ; +0x101, 0x180106a51\nsub     rax, 1                                                         ; +0x105, 0x180106a55\njnz     loc_1801069D0                                                  ; +0x109, 0x180106a59\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x10f, 0x180106a5f\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0x114, 0x180106a64\nmovaps  xmm8, [rsp+68h+var_38]                                         ; +0x119, 0x180106a69\nmovaps  xmm9, [rsp+68h+var_48]                                         ; +0x11f, 0x180106a6f\nmovaps  xmm10, [rsp+68h+var_58]                                        ; +0x125, 0x180106a75\nmovaps  xmm11, [rsp+68h+var_68]                                        ; +0x12b, 0x180106a7b\nadd     rsp, 68h                                                       ; +0x130, 0x180106a80\nretn                                                                   ; +0x134, 0x180106a84", "xrefs": ["<???> @ 0x18018fec8", "<???> @ 0x18018fed8", "<???> @ 0x1801b0090", "<???> @ 0x1802014cc"], "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"}