{"type": "func", "start": 6442997616, "end": 6442997928, "name": "sub_180085770", "pseudocode": "// \n// sub_180085770 from 0x180085770 to 0x1800858a8 (312 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801847fc\n// > <???> @ 0x180184830\n// > <???> @ 0x1801ae2e8\n// > <???> @ 0x1801fa20c\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_180085770(__m128 *a1, int a2, __int64 a3, __m128i *a4, const __m128i *a5)\n{\n  __int64 result; // rax\n  __m128i v8; // xmm2\n  int v9; // esi\n  __m128i v10; // xmm2\n  __m128i v11; // xmm4\n  __m128i v12; // xmm3\n  unsigned int v13; // eax\n  __int64 v14; // rdi\n  __m128i v15; // xmm0\n  int v16; // eax\n  __int64 v17; // rdx\n  __m128i v18; // xmm2\n  int v19; // r11d\n  float v20; // xmm1_4\n\n  result = (unsigned int)(a2 - 1);\n  v8 = _mm_loadl_epi64(a5);\n  v9 = 0;\n  v10 = _mm_unpacklo_epi64(v8, v8);\n  v11 = _mm_add_epi64(v10, v10);\n  v12 = _mm_add_epi64(_mm_shuffle_epi32(_mm_loadl_epi64(a4), 68), _mm_unpacklo_epi64((__m128i)0LL, v10));\n  if ( (int)result > 0 )\n  {\n    v13 = ((unsigned int)(a2 - 2) >> 1) + 1;\n    v14 = v13;\n    v9 = 2 * v13;\n    do\n    {\n      v15 = _mm_shuffle_epi32(v12, 13);\n      v12 = _mm_add_epi64(v12, v11);\n      v16 = _mm_cvtsi128_si32(v15);\n      v17 = 2 * v15.m128i_i32[1];\n      v18 = _mm_unpacklo_epi32(\n              _mm_cvtsi32_si128(*(__int16 *)(a3 + 4LL * v16)),\n              _mm_cvtsi32_si128(*(__int16 *)(a3 + 4LL * v16 + 2)));\n      result = (unsigned int)*(__int16 *)(a3 + 2 * v17 + 2);\n      *a1++ = _mm_mul_ps(\n                _mm_cvtepi32_ps(\n                  _mm_unpacklo_epi64(\n                    v18,\n                    _mm_unpacklo_epi32(_mm_cvtsi32_si128(*(__int16 *)(a3 + 2 * v17)), _mm_cvtsi32_si128(result)))),\n                (__m128)xmmword_180169010);\n      --v14;\n    }\n    while ( v14 );\n  }\n  v19 = a2 - v9;\n  for ( a4->m128i_i64[0] = v12.m128i_i64[0]; v19; --v19 )\n  {\n    a1 = (__m128 *)((char *)a1 + 8);\n    v20 = (float)*(__int16 *)(a3 + 2LL * (unsigned int)(2 * a4->m128i_i32[1] + 1)) * 0.000030517578;\n    a1[-1].m128_f32[2] = (float)*(__int16 *)(a3 + 2LL * (unsigned int)(2 * a4->m128i_i32[1])) * 0.000030517578;\n    a1[-1].m128_f32[3] = v20;\n    result = a5->m128i_i64[0];\n    a4->m128i_i64[0] += a5->m128i_i64[0];\n  }\n  return result;\n}", "assembly": "; \n; sub_180085770 from 0x180085770 to 0x1800858a8 (312 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801847fc\n; > <???> @ 0x180184830\n; > <???> @ 0x1801ae2e8\n; > <???> @ 0x1801fa20c\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; \npush    rbx                                                            ; +0x0, 0x180085770\nmov     rbx, [rsp+8+arg_20]                                            ; +0x2, 0x180085772\nlea     eax, [rdx-1]                                                   ; +0x7, 0x180085777\nmovq    xmm0, qword ptr [r9]                                           ; +0xa, 0x18008577a\nxorps   xmm1, xmm1                                                     ; +0xf, 0x18008577f\nmovaps  xmm5, cs:xmmword_180169010                                     ; +0x12, 0x180085782\nmov     r11d, edx                                                      ; +0x19, 0x180085789\nmov     [rsp+8+arg_0], rsi                                             ; +0x1c, 0x18008578c\nmov     r10, rcx                                                       ; +0x21, 0x180085791\nmovq    xmm2, qword ptr [rbx]                                          ; +0x24, 0x180085794\nxor     esi, esi                                                       ; +0x28, 0x180085798\npunpcklqdq xmm2, xmm2                                                  ; +0x2a, 0x18008579a\npunpcklqdq xmm1, xmm2                                                  ; +0x2e, 0x18008579e\nmovdqa  xmm4, xmm2                                                     ; +0x32, 0x1800857a2\npshufd  xmm3, xmm0, 44h ; 'D'                                          ; +0x36, 0x1800857a6\npaddq   xmm4, xmm2                                                     ; +0x3b, 0x1800857ab\npaddq   xmm3, xmm1                                                     ; +0x3f, 0x1800857af\ntest    eax, eax                                                       ; +0x43, 0x1800857b3\njle     loc_18008583B                                                  ; +0x45, 0x1800857b5\ndec     eax                                                            ; +0x4b, 0x1800857bb\nmov     [rsp+8+arg_8], rdi                                             ; +0x4d, 0x1800857bd\nshr     eax, 1                                                         ; +0x52, 0x1800857c2\ninc     eax                                                            ; +0x54, 0x1800857c4\nmov     edi, eax                                                       ; +0x56, 0x1800857c6\nlea     esi, [rax+rax]                                                 ; +0x58, 0x1800857c8\nnop     dword ptr [rax+rax+00h]                                        ; +0x5b, 0x1800857cb\npshufd  xmm0, xmm3, 0Dh                                                ; +0x60, 0x1800857d0\npaddq   xmm3, xmm4                                                     ; +0x65, 0x1800857d5\nmovd    eax, xmm0                                                      ; +0x69, 0x1800857d9\npsrldq  xmm0, 4                                                        ; +0x6d, 0x1800857dd\nadd     eax, eax                                                       ; +0x72, 0x1800857e2\nmovsxd  rcx, eax                                                       ; +0x74, 0x1800857e4\nmovd    eax, xmm0                                                      ; +0x77, 0x1800857e7\nadd     eax, eax                                                       ; +0x7b, 0x1800857eb\nmovsxd  rdx, eax                                                       ; +0x7d, 0x1800857ed\nmovsx   eax, word ptr [r8+rcx*2]                                       ; +0x80, 0x1800857f0\nmovd    xmm2, eax                                                      ; +0x85, 0x1800857f5\nmovsx   eax, word ptr [r8+rcx*2+2]                                     ; +0x89, 0x1800857f9\nmovd    xmm0, eax                                                      ; +0x8f, 0x1800857ff\nmovsx   eax, word ptr [r8+rdx*2]                                       ; +0x93, 0x180085803\npunpckldq xmm2, xmm0                                                   ; +0x98, 0x180085808\nmovd    xmm1, eax                                                      ; +0x9c, 0x18008580c\nmovsx   eax, word ptr [r8+rdx*2+2]                                     ; +0xa0, 0x180085810\nmovd    xmm0, eax                                                      ; +0xa6, 0x180085816\npunpckldq xmm1, xmm0                                                   ; +0xaa, 0x18008581a\npunpcklqdq xmm2, xmm1                                                  ; +0xae, 0x18008581e\ncvtdq2ps xmm0, xmm2                                                    ; +0xb2, 0x180085822\nmulps   xmm0, xmm5                                                     ; +0xb5, 0x180085825\nmovups  xmmword ptr [r10], xmm0                                        ; +0xb8, 0x180085828\nadd     r10, 10h                                                       ; +0xbc, 0x18008582c\nsub     rdi, 1                                                         ; +0xc0, 0x180085830\njnz     short loc_1800857D0                                            ; +0xc4, 0x180085834\nmov     rdi, [rsp+8+arg_8]                                             ; +0xc6, 0x180085836\nsub     r11d, esi                                                      ; +0xcb, 0x18008583b\nmovq    qword ptr [r9], xmm3                                           ; +0xce, 0x18008583e\nmov     rsi, [rsp+8+arg_0]                                             ; +0xd3, 0x180085843\njz      short loc_1800858A6                                            ; +0xd8, 0x180085848\nmovss   xmm2, cs:dword_180165504                                       ; +0xda, 0x18008584a\nnop     dword ptr [rax+00h]                                            ; +0xe2, 0x180085852\nnop     word ptr [rax+rax+00000000h]                                   ; +0xe6, 0x180085856\nmov     eax, [r9+4]                                                    ; +0xf0, 0x180085860\nlea     r10, [r10+8]                                                   ; +0xf4, 0x180085864\nlea     edx, [rax+rax]                                                 ; +0xf8, 0x180085868\nmovsx   ecx, word ptr [r8+rdx*2]                                       ; +0xfb, 0x18008586b\nlea     eax, [rdx+1]                                                   ; +0x100, 0x180085870\nmovsx   eax, word ptr [r8+rax*2]                                       ; +0x103, 0x180085873\nmovd    xmm0, ecx                                                      ; +0x108, 0x180085878\nmovd    xmm1, eax                                                      ; +0x10c, 0x18008587c\ncvtdq2ps xmm0, xmm0                                                    ; +0x110, 0x180085880\ncvtdq2ps xmm1, xmm1                                                    ; +0x113, 0x180085883\nmulss   xmm0, xmm2                                                     ; +0x116, 0x180085886\nmulss   xmm1, xmm2                                                     ; +0x11a, 0x18008588a\nmovss   dword ptr [r10-8], xmm0                                        ; +0x11e, 0x18008588e\nmovss   dword ptr [r10-4], xmm1                                        ; +0x124, 0x180085894\nmov     rax, [rbx]                                                     ; +0x12a, 0x18008589a\nadd     [r9], rax                                                      ; +0x12d, 0x18008589d\nsub     r11d, 1                                                        ; +0x130, 0x1800858a0\njnz     short loc_180085860                                            ; +0x134, 0x1800858a4\npop     rbx                                                            ; +0x136, 0x1800858a6\nretn                                                                   ; +0x137, 0x1800858a7", "xrefs": ["<???> @ 0x1801847fc", "<???> @ 0x180184830", "<???> @ 0x1801ae2e8", "<???> @ 0x1801fa20c"], "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"}