{"type": "func", "start": 6442997168, "end": 6442997609, "name": "sub_1800855B0", "pseudocode": "// \n// sub_1800855B0 from 0x1800855b0 to 0x180085769 (441 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ae2e0\n// > <???> @ 0x1801fa200\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:53:39 +0000\n// \n\n__int64 __fastcall sub_1800855B0(__m128 *a1, int a2, __int64 a3, __m128i *a4, _QWORD *a5)\n{\n  __m128i v6; // xmm3\n  __m128i v7; // xmm3\n  int v8; // r11d\n  __m128i v9; // xmm4\n  __int64 result; // rax\n  __m128i v11; // xmm5\n  __m128i v12; // xmm5\n  __m128i v13; // xmm6\n  unsigned int v14; // eax\n  __int64 v15; // r10\n  __m128i v16; // xmm0\n  __m128i v17; // xmm2\n  __m128i v18; // xmm2\n  int i; // edx\n\n  v6 = _mm_loadl_epi64(a4);\n  v7 = _mm_unpacklo_epi64(v6, v6);\n  v8 = 0;\n  v9 = _mm_add_epi64(\n         _mm_unpacklo_epi64((__m128i)0LL, _mm_unpacklo_epi32(_mm_cvtsi32_si128(*a5), _mm_cvtsi32_si128(HIDWORD(*a5)))),\n         v7);\n  result = (unsigned int)(a2 - 3);\n  v11 = _mm_unpacklo_epi32(_mm_cvtsi32_si128(4 * *(_DWORD *)a5), _mm_cvtsi32_si128((__int64)*a5 >> 30));\n  v12 = _mm_unpacklo_epi64(v11, v11);\n  v13 = _mm_add_epi64(\n          _mm_unpacklo_epi64(\n            _mm_unpacklo_epi32(_mm_cvtsi32_si128(2 * *(_DWORD *)a5), _mm_cvtsi32_si128((__int64)*a5 >> 31)),\n            _mm_unpacklo_epi32(\n              _mm_cvtsi32_si128(3 * *(_DWORD *)a5),\n              _mm_cvtsi32_si128((unsigned __int64)(3LL * *a5) >> 32))),\n          v7);\n  if ( a2 - 3 > 0 )\n  {\n    v14 = ((unsigned int)(a2 - 4) >> 2) + 1;\n    v15 = v14;\n    v8 = 4 * v14;\n    do\n    {\n      v16 = _mm_shuffle_epi32(v13, 13);\n      v13 = _mm_add_epi64(v13, v12);\n      v17 = _mm_shuffle_epi32(v9, 13);\n      v9 = _mm_add_epi64(v9, v12);\n      v18 = _mm_unpacklo_epi64(v17, v16);\n      result = (unsigned int)*(__int16 *)(a3 + 2LL * v18.m128i_i32[3]);\n      *a1++ = _mm_mul_ps(\n                _mm_cvtepi32_ps(\n                  _mm_unpacklo_epi64(\n                    _mm_unpacklo_epi32(\n                      _mm_cvtsi32_si128(*(__int16 *)(a3 + 2LL * _mm_cvtsi128_si32(v18))),\n                      _mm_cvtsi32_si128(*(__int16 *)(a3 + 2LL * v18.m128i_i32[1]))),\n                    _mm_unpacklo_epi32(\n                      _mm_cvtsi32_si128(*(__int16 *)(a3 + 2LL * v18.m128i_i32[2])),\n                      _mm_cvtsi32_si128(*(__int16 *)(a3 + 2LL * v18.m128i_i32[3]))))),\n                (__m128)xmmword_180169010);\n      --v15;\n    }\n    while ( v15 );\n  }\n  a4->m128i_i64[0] = v9.m128i_i64[0];\n  for ( i = a2 - v8; i; --i )\n  {\n    a1 = (__m128 *)((char *)a1 + 4);\n    a1[-1].m128_f32[3] = (float)*(__int16 *)(a3 + 2LL * a4->m128i_u32[1]) * 0.000030517578;\n    result = *a5;\n    a4->m128i_i64[0] += *a5;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800855B0 from 0x1800855b0 to 0x180085769 (441 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ae2e0\n; > <???> @ 0x1801fa200\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:53:39 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800855b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800855b5\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1800855ba\npush    r14                                                            ; +0xf, 0x1800855bf\nsub     rsp, 20h                                                       ; +0x11, 0x1800855c1\nmov     r14, [rsp+28h+arg_20]                                          ; +0x15, 0x1800855c5\nmov     rsi, rcx                                                       ; +0x1a, 0x1800855ca\nmovq    xmm3, qword ptr [r9]                                           ; +0x1d, 0x1800855cd\nxorps   xmm4, xmm4                                                     ; +0x22, 0x1800855d2\nmovaps  [rsp+28h+var_18], xmm6                                         ; +0x25, 0x1800855d5\npunpcklqdq xmm3, xmm3                                                  ; +0x2a, 0x1800855da\nmov     r10, [r14]                                                     ; +0x2e, 0x1800855de\nmov     rax, r10                                                       ; +0x31, 0x1800855e1\nmovaps  [rsp+28h+var_28], xmm7                                         ; +0x34, 0x1800855e4\nmovaps  xmm7, cs:xmmword_180169010                                     ; +0x38, 0x1800855e8\nshr     rax, 20h                                                       ; +0x3f, 0x1800855ef\nlea     r11, [r10+r10*2]                                               ; +0x43, 0x1800855f3\nmovd    xmm1, r10d                                                     ; +0x47, 0x1800855f7\nlea     rbx, [r10+r10]                                                 ; +0x4c, 0x1800855fc\nmovd    xmm2, r11d                                                     ; +0x50, 0x180085600\nlea     rdi, ds:0[r10*4]                                               ; +0x55, 0x180085605\nmovd    xmm6, ebx                                                      ; +0x5d, 0x18008560d\nmovd    xmm0, eax                                                      ; +0x61, 0x180085611\nmov     rcx, rbx                                                       ; +0x65, 0x180085615\npunpckldq xmm1, xmm0                                                   ; +0x68, 0x180085618\nmov     rax, r11                                                       ; +0x6c, 0x18008561c\nsar     rax, 20h                                                       ; +0x6f, 0x18008561f\nxor     r11d, r11d                                                     ; +0x73, 0x180085623\npunpcklqdq xmm4, xmm1                                                  ; +0x76, 0x180085626\nsar     rcx, 20h                                                       ; +0x7a, 0x18008562a\npaddq   xmm4, xmm3                                                     ; +0x7e, 0x18008562e\nmovd    xmm5, edi                                                      ; +0x82, 0x180085632\nmovd    xmm1, eax                                                      ; +0x86, 0x180085636\nmov     rax, rdi                                                       ; +0x8a, 0x18008563a\nsar     rax, 20h                                                       ; +0x8d, 0x18008563d\nmovd    xmm0, ecx                                                      ; +0x91, 0x180085641\npunpckldq xmm6, xmm0                                                   ; +0x95, 0x180085645\npunpckldq xmm2, xmm1                                                   ; +0x99, 0x180085649\nmovd    xmm0, eax                                                      ; +0x9d, 0x18008564d\nlea     eax, [rdx-3]                                                   ; +0xa1, 0x180085651\npunpckldq xmm5, xmm0                                                   ; +0xa4, 0x180085654\npunpcklqdq xmm6, xmm2                                                  ; +0xa8, 0x180085658\npunpcklqdq xmm5, xmm5                                                  ; +0xac, 0x18008565c\npaddq   xmm6, xmm3                                                     ; +0xb0, 0x180085660\ntest    eax, eax                                                       ; +0xb4, 0x180085664\njle     loc_180085710                                                  ; +0xb6, 0x180085666\ndec     eax                                                            ; +0xbc, 0x18008566c\nshr     eax, 2                                                         ; +0xbe, 0x18008566e\ninc     eax                                                            ; +0xc1, 0x180085671\nmov     r10d, eax                                                      ; +0xc3, 0x180085673\nlea     r11d, ds:0[rax*4]                                              ; +0xc6, 0x180085676\nxchg    ax, ax                                                         ; +0xce, 0x18008567e\npshufd  xmm0, xmm6, 0Dh                                                ; +0xd0, 0x180085680\npaddq   xmm6, xmm5                                                     ; +0xd5, 0x180085685\npshufd  xmm2, xmm4, 0Dh                                                ; +0xd9, 0x180085689\npaddq   xmm4, xmm5                                                     ; +0xde, 0x18008568e\npunpcklqdq xmm2, xmm0                                                  ; +0xe2, 0x180085692\nmovd    eax, xmm2                                                      ; +0xe6, 0x180085696\nmovdqa  xmm0, xmm2                                                     ; +0xea, 0x18008569a\npsrldq  xmm0, 4                                                        ; +0xee, 0x18008569e\nmovdqa  xmm1, xmm2                                                     ; +0xf3, 0x1800856a3\npsrldq  xmm1, 8                                                        ; +0xf7, 0x1800856a7\nmovsxd  rcx, eax                                                       ; +0xfc, 0x1800856ac\npsrldq  xmm2, 0Ch                                                      ; +0xff, 0x1800856af\nmovsx   eax, word ptr [r8+rcx*2]                                       ; +0x104, 0x1800856b4\nmovd    xmm3, eax                                                      ; +0x109, 0x1800856b9\nmovd    eax, xmm0                                                      ; +0x10d, 0x1800856bd\nmovsxd  rcx, eax                                                       ; +0x111, 0x1800856c1\nmovsx   eax, word ptr [r8+rcx*2]                                       ; +0x114, 0x1800856c4\nmovd    xmm0, eax                                                      ; +0x119, 0x1800856c9\nmovd    eax, xmm1                                                      ; +0x11d, 0x1800856cd\npunpckldq xmm3, xmm0                                                   ; +0x121, 0x1800856d1\nmovsxd  rcx, eax                                                       ; +0x125, 0x1800856d5\nmovsx   eax, word ptr [r8+rcx*2]                                       ; +0x128, 0x1800856d8\nmovd    xmm1, eax                                                      ; +0x12d, 0x1800856dd\nmovd    eax, xmm2                                                      ; +0x131, 0x1800856e1\nmovsxd  rcx, eax                                                       ; +0x135, 0x1800856e5\nmovsx   eax, word ptr [r8+rcx*2]                                       ; +0x138, 0x1800856e8\nmovd    xmm0, eax                                                      ; +0x13d, 0x1800856ed\npunpckldq xmm1, xmm0                                                   ; +0x141, 0x1800856f1\npunpcklqdq xmm3, xmm1                                                  ; +0x145, 0x1800856f5\ncvtdq2ps xmm0, xmm3                                                    ; +0x149, 0x1800856f9\nmulps   xmm0, xmm7                                                     ; +0x14c, 0x1800856fc\nmovups  xmmword ptr [rsi], xmm0                                        ; +0x14f, 0x1800856ff\nadd     rsi, 10h                                                       ; +0x152, 0x180085702\nsub     r10, 1                                                         ; +0x156, 0x180085706\njnz     loc_180085680                                                  ; +0x15a, 0x18008570a\nmovq    qword ptr [r9], xmm4                                           ; +0x160, 0x180085710\nsub     edx, r11d                                                      ; +0x165, 0x180085715\njz      short loc_18008574A                                            ; +0x168, 0x180085718\nmovss   xmm1, cs:dword_180165504                                       ; +0x16a, 0x18008571a\nmov     eax, [r9+4]                                                    ; +0x172, 0x180085722\nlea     rsi, [rsi+4]                                                   ; +0x176, 0x180085726\nmovsx   ecx, word ptr [r8+rax*2]                                       ; +0x17a, 0x18008572a\nmovd    xmm0, ecx                                                      ; +0x17f, 0x18008572f\ncvtdq2ps xmm0, xmm0                                                    ; +0x183, 0x180085733\nmulss   xmm0, xmm1                                                     ; +0x186, 0x180085736\nmovss   dword ptr [rsi-4], xmm0                                        ; +0x18a, 0x18008573a\nmov     rax, [r14]                                                     ; +0x18f, 0x18008573f\nadd     [r9], rax                                                      ; +0x192, 0x180085742\nsub     edx, 1                                                         ; +0x195, 0x180085745\njnz     short loc_180085722                                            ; +0x198, 0x180085748\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x19a, 0x18008574a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x19f, 0x18008574f\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x1a4, 0x180085754\nmovaps  xmm6, [rsp+28h+var_18]                                         ; +0x1a9, 0x180085759\nmovaps  xmm7, [rsp+28h+var_28]                                         ; +0x1ae, 0x18008575e\nadd     rsp, 20h                                                       ; +0x1b2, 0x180085762\npop     r14                                                            ; +0x1b6, 0x180085766\nretn                                                                   ; +0x1b8, 0x180085768", "xrefs": ["<???> @ 0x1801ae2e0", "<???> @ 0x1801fa200"], "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"}