{"type": "func", "start": 6442846944, "end": 6442847374, "name": "sub_180060AE0", "pseudocode": "// \n// sub_180060AE0 from 0x180060ae0 to 0x180060c8e (430 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801ac510\n// > <???> @ 0x1801ac580\n// > <???> @ 0x1801f9138\n// > <???> @ 0x1801f9144\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\n__int64 __fastcall sub_180060AE0(\n        unsigned int *a1,\n        __m128 *a2,\n        unsigned int a3,\n        unsigned int *a4,\n        int a5,\n        int a6,\n        int a7)\n{\n  __m128 v7; // xmm5\n  __m128 v8; // xmm1\n  __m128 v9; // xmm9\n  __m128 v10; // xmm3\n  __int64 result; // rax\n  __m128 v12; // xmm4\n  __m128 v13; // xmm1\n  __m128 v14; // xmm2\n  __m128 v15; // xmm0\n  __m128 v16; // xmm2\n  int i; // r8d\n  __m128 v18; // xmm1\n  __m128 v19; // xmm2\n  __m128 v20; // xmm1\n  __m128 v21; // xmm2\n  __m128 v22; // xmm1\n  __m128 v23; // xmm0\n  __m128 v24; // xmm1\n  int j; // r8d\n  __m128 v26; // xmm2\n  __m128 v27; // xmm1\n  __m128 v28; // xmm2\n  __m128 v29; // xmm1\n\n  v7 = (__m128)a4[160];\n  v8 = (__m128)a4[32];\n  v9 = _mm_movelh_ps(_mm_unpacklo_ps((__m128)*a4, v8), _mm_unpacklo_ps((__m128)a4[64], (__m128)a4[96]));\n  v10 = _mm_movelh_ps(_mm_unpacklo_ps((__m128)a4[128], v7), _mm_unpacklo_ps((__m128)*a4, v8));\n  result = a3 >> 1;\n  v12 = _mm_movelh_ps(_mm_unpacklo_ps((__m128)a4[64], (__m128)a4[96]), _mm_unpacklo_ps((__m128)a4[128], v7));\n  if ( a7 )\n  {\n    for ( ; (_DWORD)result; result = (unsigned int)(result - 1) )\n    {\n      v13 = (__m128)*a1;\n      v14 = (__m128)a1[1];\n      a1 += 2;\n      v15 = _mm_shuffle_ps(v13, v13, 0);\n      v16 = _mm_shuffle_ps(v14, v14, 0);\n      *a2 = _mm_mul_ps(v15, v9);\n      a2[1] = _mm_mul_ps(_mm_shuffle_ps(v15, v16, 0), v10);\n      a2[2] = _mm_mul_ps(v16, v12);\n      a2 += 3;\n    }\n    for ( i = a3 & 1; i; --i )\n    {\n      a2 = (__m128 *)((char *)a2 + 24);\n      v18 = _mm_shuffle_ps((__m128)*a1, (__m128)*a1, 0);\n      ++a1;\n      *(__m128 *)((char *)a2 - 24) = _mm_mul_ps(v18, v9);\n      _mm_storel_ps((double *)&a2[-1].m128_u64[1], _mm_mul_ps(v18, v10));\n    }\n  }\n  else\n  {\n    for ( ; (_DWORD)result; result = (unsigned int)(result - 1) )\n    {\n      v19 = (__m128)*a1;\n      v20 = (__m128)a1[1];\n      a1 += 2;\n      v21 = _mm_shuffle_ps(v19, v19, 0);\n      v22 = _mm_shuffle_ps(v20, v20, 0);\n      v23 = _mm_add_ps(_mm_mul_ps(_mm_shuffle_ps(v21, v22, 0), v10), a2[1]);\n      v24 = _mm_add_ps(_mm_mul_ps(v22, v12), a2[2]);\n      *a2 = _mm_add_ps(_mm_mul_ps(v21, v9), *a2);\n      a2[1] = v23;\n      a2[2] = v24;\n      a2 += 3;\n    }\n    for ( j = a3 & 1; j; --j )\n    {\n      v26 = (__m128)*a1++;\n      v27 = _mm_shuffle_ps(v26, v26, 0);\n      v28 = _mm_mul_ps(v27, v9);\n      v29 = _mm_add_ps(_mm_mul_ps(v27, v10), a2[1]);\n      *a2 = _mm_add_ps(v28, *a2);\n      _mm_storel_ps((double *)a2[1].m128_u64, v29);\n      a2 = (__m128 *)((char *)a2 + 24);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180060AE0 from 0x180060ae0 to 0x180060c8e (430 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801ac510\n; > <???> @ 0x1801ac580\n; > <???> @ 0x1801f9138\n; > <???> @ 0x1801f9144\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\nsub     rsp, 18h                                                       ; +0x0, 0x180060ae0\nmovss   xmm4, dword ptr [r9]                                           ; +0x4, 0x180060ae4\nmov     eax, r8d                                                       ; +0x9, 0x180060ae9\nmovss   xmm3, dword ptr [r9+80h]                                       ; +0xc, 0x180060aec\nmovss   xmm1, dword ptr [r9+180h]                                      ; +0x15, 0x180060af5\nmovss   xmm5, dword ptr [r9+280h]                                      ; +0x1e, 0x180060afe\nmovss   xmm2, dword ptr [r9+100h]                                      ; +0x27, 0x180060b07\nmovss   xmm0, dword ptr [r9+180h]                                      ; +0x30, 0x180060b10\nunpcklps xmm2, xmm1                                                    ; +0x39, 0x180060b19\nmovaps  xmm1, xmm3                                                     ; +0x3c, 0x180060b1c\nmovaps  [rsp+18h+var_18], xmm9                                         ; +0x3f, 0x180060b1f\nmovaps  xmm9, xmm4                                                     ; +0x44, 0x180060b24\nunpcklps xmm9, xmm3                                                    ; +0x48, 0x180060b28\nmovss   xmm3, dword ptr [r9+200h]                                      ; +0x4c, 0x180060b2c\nmovlhps xmm9, xmm2                                                     ; +0x55, 0x180060b35\nmovaps  xmm2, xmm4                                                     ; +0x59, 0x180060b39\nmovss   xmm4, dword ptr [r9+100h]                                      ; +0x5c, 0x180060b3c\nunpcklps xmm2, xmm1                                                    ; +0x65, 0x180060b45\nunpcklps xmm3, xmm5                                                    ; +0x68, 0x180060b48\nmovlhps xmm3, xmm2                                                     ; +0x6b, 0x180060b4b\nmovss   xmm2, dword ptr [r9+200h]                                      ; +0x6e, 0x180060b4e\nshr     eax, 1                                                         ; +0x77, 0x180060b57\ncmp     [rsp+18h+arg_30], 0                                            ; +0x79, 0x180060b59\nunpcklps xmm2, xmm5                                                    ; +0x7e, 0x180060b5e\nunpcklps xmm4, xmm0                                                    ; +0x81, 0x180060b61\nmovlhps xmm4, xmm2                                                     ; +0x84, 0x180060b64\njz      loc_180060BF2                                                  ; +0x87, 0x180060b67\ntest    eax, eax                                                       ; +0x8d, 0x180060b6d\njz      short loc_180060BAB                                            ; +0x8f, 0x180060b6f\nmovss   xmm1, dword ptr [rcx]                                          ; +0x91, 0x180060b71\nmovss   xmm2, dword ptr [rcx+4]                                        ; +0x95, 0x180060b75\nadd     rcx, 8                                                         ; +0x9a, 0x180060b7a\nshufps  xmm1, xmm1, 0                                                  ; +0x9e, 0x180060b7e\nmovaps  xmm0, xmm1                                                     ; +0xa2, 0x180060b82\nshufps  xmm2, xmm2, 0                                                  ; +0xa5, 0x180060b85\nshufps  xmm1, xmm2, 0                                                  ; +0xa9, 0x180060b89\nmulps   xmm0, xmm9                                                     ; +0xad, 0x180060b8d\nmulps   xmm1, xmm3                                                     ; +0xb1, 0x180060b91\nmulps   xmm2, xmm4                                                     ; +0xb4, 0x180060b94\nmovups  xmmword ptr [rdx], xmm0                                        ; +0xb7, 0x180060b97\nmovups  xmmword ptr [rdx+10h], xmm1                                    ; +0xba, 0x180060b9a\nmovups  xmmword ptr [rdx+20h], xmm2                                    ; +0xbe, 0x180060b9e\nadd     rdx, 30h ; '0'                                                 ; +0xc2, 0x180060ba2\nsub     eax, 1                                                         ; +0xc6, 0x180060ba6\njnz     short loc_180060B71                                            ; +0xc9, 0x180060ba9\nand     r8d, 1                                                         ; +0xcb, 0x180060bab\njz      loc_180060C84                                                  ; +0xcf, 0x180060baf\nnop     word ptr [rax+rax+00000000h]                                   ; +0xd5, 0x180060bb5\nmovss   xmm1, dword ptr [rcx]                                          ; +0xe0, 0x180060bc0\nlea     rdx, [rdx+18h]                                                 ; +0xe4, 0x180060bc4\nshufps  xmm1, xmm1, 0                                                  ; +0xe8, 0x180060bc8\nlea     rcx, [rcx+4]                                                   ; +0xec, 0x180060bcc\nmovaps  xmm0, xmm1                                                     ; +0xf0, 0x180060bd0\nmulps   xmm1, xmm3                                                     ; +0xf3, 0x180060bd3\nmulps   xmm0, xmm9                                                     ; +0xf6, 0x180060bd6\nmovups  xmmword ptr [rdx-18h], xmm0                                    ; +0xfa, 0x180060bda\nmovlps  qword ptr [rdx-8], xmm1                                        ; +0xfe, 0x180060bde\nsub     r8d, 1                                                         ; +0x102, 0x180060be2\njnz     short loc_180060BC0                                            ; +0x106, 0x180060be6\nmovaps  xmm9, [rsp+18h+var_18]                                         ; +0x108, 0x180060be8\nadd     rsp, 18h                                                       ; +0x10d, 0x180060bed\nretn                                                                   ; +0x111, 0x180060bf1\ntest    eax, eax                                                       ; +0x112, 0x180060bf2\njz      short loc_180060C45                                            ; +0x114, 0x180060bf4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x116, 0x180060bf6\nmovss   xmm2, dword ptr [rcx]                                          ; +0x120, 0x180060c00\nmovss   xmm1, dword ptr [rcx+4]                                        ; +0x124, 0x180060c04\nadd     rcx, 8                                                         ; +0x129, 0x180060c09\nshufps  xmm2, xmm2, 0                                                  ; +0x12d, 0x180060c0d\nmovaps  xmm0, xmm2                                                     ; +0x131, 0x180060c11\nshufps  xmm1, xmm1, 0                                                  ; +0x134, 0x180060c14\nshufps  xmm0, xmm1, 0                                                  ; +0x138, 0x180060c18\nmulps   xmm2, xmm9                                                     ; +0x13c, 0x180060c1c\nmulps   xmm0, xmm3                                                     ; +0x140, 0x180060c20\nmulps   xmm1, xmm4                                                     ; +0x143, 0x180060c23\naddps   xmm2, xmmword ptr [rdx]                                        ; +0x146, 0x180060c26\naddps   xmm0, xmmword ptr [rdx+10h]                                    ; +0x149, 0x180060c29\naddps   xmm1, xmmword ptr [rdx+20h]                                    ; +0x14d, 0x180060c2d\nmovups  xmmword ptr [rdx], xmm2                                        ; +0x151, 0x180060c31\nmovups  xmmword ptr [rdx+10h], xmm0                                    ; +0x154, 0x180060c34\nmovups  xmmword ptr [rdx+20h], xmm1                                    ; +0x158, 0x180060c38\nadd     rdx, 30h ; '0'                                                 ; +0x15c, 0x180060c3c\nsub     eax, 1                                                         ; +0x160, 0x180060c40\njnz     short loc_180060C00                                            ; +0x163, 0x180060c43\nand     r8d, 1                                                         ; +0x165, 0x180060c45\njz      short loc_180060C84                                            ; +0x169, 0x180060c49\nnop     dword ptr [rax+rax+00h]                                        ; +0x16b, 0x180060c4b\nmovups  xmm0, xmmword ptr [rdx+10h]                                    ; +0x170, 0x180060c50\nmovss   xmm2, dword ptr [rcx]                                          ; +0x174, 0x180060c54\nadd     rcx, 4                                                         ; +0x178, 0x180060c58\nshufps  xmm2, xmm2, 0                                                  ; +0x17c, 0x180060c5c\nmovaps  xmm1, xmm2                                                     ; +0x180, 0x180060c60\nmulps   xmm2, xmm9                                                     ; +0x183, 0x180060c63\nmulps   xmm1, xmm3                                                     ; +0x187, 0x180060c67\naddps   xmm1, xmm0                                                     ; +0x18a, 0x180060c6a\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x18d, 0x180060c6d\naddps   xmm2, xmm0                                                     ; +0x190, 0x180060c70\nmovups  xmmword ptr [rdx], xmm2                                        ; +0x193, 0x180060c73\nmovlps  qword ptr [rdx+10h], xmm1                                      ; +0x196, 0x180060c76\nadd     rdx, 18h                                                       ; +0x19a, 0x180060c7a\nsub     r8d, 1                                                         ; +0x19e, 0x180060c7e\njnz     short loc_180060C50                                            ; +0x1a2, 0x180060c82\nmovaps  xmm9, [rsp+18h+var_18]                                         ; +0x1a4, 0x180060c84\nadd     rsp, 18h                                                       ; +0x1a9, 0x180060c89\nretn                                                                   ; +0x1ad, 0x180060c8d", "xrefs": ["<???> @ 0x1801ac510", "<???> @ 0x1801ac580", "<???> @ 0x1801f9138", "<???> @ 0x1801f9144"], "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"}