{"type": "func", "start": 6442980944, "end": 6442981532, "name": "sub_180081650", "pseudocode": "// \n// sub_180081650 from 0x180081650 to 0x18008189c (588 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1801ae150\n// > <???> @ 0x1801ae1b0\n// > <???> @ 0x1801ae210\n// > <???> @ 0x1801ae270\n// > <???> @ 0x1801fa0bc\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_180081650(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 *a5)\n{\n  char v6; // r11\n  int i; // esi\n  __int64 v9; // rcx\n  unsigned __int64 v10; // rdx\n  __m128i v11; // xmm5\n  int v12; // eax\n  float v13; // xmm1_4\n  unsigned __int64 v14; // r8\n  __m128i v15; // xmm4\n  int v16; // eax\n  float v17; // xmm1_4\n  unsigned __int64 v18; // rdx\n  int v19; // eax\n  float v20; // xmm3_4\n  float v21; // xmm3_4\n  float v22; // xmm2_4\n  __int64 result; // rax\n  int j; // r11d\n\n  v6 = a2;\n  for ( i = a2 >> 2; i; --i )\n  {\n    v9 = *(unsigned int *)(a4 + 4);\n    v10 = *a5 + *(_QWORD *)a4;\n    v11 = _mm_cvtsi32_si128(*(char *)(v9 + a3));\n    v12 = *(char *)((unsigned int)(v9 + 1) + a3);\n    v13 = (float)*(int *)a4 * 2.3283064e-10;\n    *(_QWORD *)a4 = v10;\n    v14 = v10 + *a5;\n    *(float *)v11.m128i_i32 = (float)((float)(_mm_cvtepi32_ps(v11).m128_f32[0] * 0.0078125) * (float)(1.0 - v13))\n                            + (float)((float)((float)v12 * 0.0078125) * v13);\n    v15 = _mm_cvtsi32_si128(*(char *)(HIDWORD(v10) + a3));\n    v16 = *(char *)((unsigned int)(HIDWORD(v10) + 1) + a3);\n    v17 = (float)(int)v10 * 2.3283064e-10;\n    *(_QWORD *)a4 = v14;\n    v18 = v14 + *a5;\n    *(float *)v15.m128i_i32 = (float)((float)(_mm_cvtepi32_ps(v15).m128_f32[0] * 0.0078125) * (float)(1.0 - v17))\n                            + (float)((float)((float)v16 * 0.0078125) * v17);\n    v19 = *(char *)((unsigned int)(HIDWORD(v14) + 1) + a3);\n    v20 = (float)*(char *)(HIDWORD(v14) + a3);\n    *(_QWORD *)a4 = v18;\n    v21 = (float)((float)(v20 * 0.0078125) * (float)(1.0 - (float)((float)(int)v14 * 2.3283064e-10)))\n        + (float)((float)((float)v19 * 0.0078125) * (float)((float)(int)v14 * 2.3283064e-10));\n    v22 = (float)*(char *)(HIDWORD(v18) + a3);\n    result = (unsigned int)*(char *)((unsigned int)(HIDWORD(v18) + 1) + a3);\n    *(_QWORD *)a4 = v18 + *a5;\n    *(_DWORD *)a1 = v11.m128i_i32[0];\n    *(_DWORD *)(a1 + 4) = v15.m128i_i32[0];\n    *(float *)(a1 + 8) = v21;\n    *(float *)(a1 + 12) = (float)((float)(v22 * 0.0078125) * (float)(1.0 - (float)((float)(int)v18 * 2.3283064e-10)))\n                        + (float)((float)((float)(int)result * 0.0078125) * (float)((float)(int)v18 * 2.3283064e-10));\n    a1 += 16;\n  }\n  for ( j = v6 & 3; j; --j )\n  {\n    *(float *)a1 = (float)((float)((float)*(char *)(*(unsigned int *)(a4 + 4) + a3) * 0.0078125)\n                         * (float)(1.0 - (float)((float)*(int *)a4 * 2.3283064e-10)))\n                 + (float)((float)((float)*(char *)((unsigned int)(*(_DWORD *)(a4 + 4) + 1) + a3) * 0.0078125)\n                         * (float)((float)*(int *)a4 * 2.3283064e-10));\n    a1 += 4;\n    result = *a5;\n    *(_QWORD *)a4 += *a5;\n  }\n  return result;\n}", "assembly": "; \n; sub_180081650 from 0x180081650 to 0x18008189c (588 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1801ae150\n; > <???> @ 0x1801ae1b0\n; > <???> @ 0x1801ae210\n; > <???> @ 0x1801ae270\n; > <???> @ 0x1801fa0bc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180081650\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180081655\npush    rdi                                                            ; +0xa, 0x18008165a\nsub     rsp, 30h                                                       ; +0xb, 0x18008165b\nmov     rdi, [rsp+38h+arg_20]                                          ; +0xf, 0x18008165f\nmov     esi, edx                                                       ; +0x14, 0x180081664\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x16, 0x180081666\nmov     rbx, r8                                                        ; +0x1b, 0x18008166b\nmovss   xmm6, cs:dword_180164A10                                       ; +0x1e, 0x18008166e\nmov     r11d, edx                                                      ; +0x26, 0x180081676\nmovaps  [rsp+38h+var_28], xmm7                                         ; +0x29, 0x180081679\nmov     r10, rcx                                                       ; +0x2e, 0x18008167e\nmovss   xmm7, cs:dword_180168F48                                       ; +0x31, 0x180081681\nsar     esi, 2                                                         ; +0x39, 0x180081689\nmovaps  [rsp+38h+var_38], xmm8                                         ; +0x3c, 0x18008168c\nmovss   xmm8, cs:dword_180145744                                       ; +0x41, 0x180081691\ntest    esi, esi                                                       ; +0x4a, 0x18008169a\njz      loc_180081811                                                  ; +0x4c, 0x18008169c\nmov     eax, [r9]                                                      ; +0x52, 0x1800816a2\nxorps   xmm1, xmm1                                                     ; +0x55, 0x1800816a5\nmov     ecx, [r9+4]                                                    ; +0x58, 0x1800816a8\nmovaps  xmm0, xmm8                                                     ; +0x5c, 0x1800816ac\nmov     rdx, [r9]                                                      ; +0x60, 0x1800816b0\nadd     rdx, [rdi]                                                     ; +0x63, 0x1800816b3\ncvtsi2ss xmm1, rax                                                     ; +0x66, 0x1800816b6\nmovsx   eax, byte ptr [rcx+rbx]                                        ; +0x6b, 0x1800816bb\nmovd    xmm5, eax                                                      ; +0x6f, 0x1800816bf\nlea     eax, [rcx+1]                                                   ; +0x73, 0x1800816c3\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0x76, 0x1800816c6\nmov     rcx, rdx                                                       ; +0x7a, 0x1800816ca\nmulss   xmm1, xmm7                                                     ; +0x7d, 0x1800816cd\nmov     [r9], rdx                                                      ; +0x81, 0x1800816d1\nmov     r8, [rdi]                                                      ; +0x84, 0x1800816d4\nshr     rcx, 20h                                                       ; +0x87, 0x1800816d7\nadd     r8, rdx                                                        ; +0x8b, 0x1800816db\nsubss   xmm0, xmm1                                                     ; +0x8e, 0x1800816de\ncvtdq2ps xmm5, xmm5                                                    ; +0x92, 0x1800816e2\nmulss   xmm5, xmm6                                                     ; +0x95, 0x1800816e5\nmulss   xmm5, xmm0                                                     ; +0x99, 0x1800816e9\nmovd    xmm0, eax                                                      ; +0x9d, 0x1800816ed\ncvtdq2ps xmm0, xmm0                                                    ; +0xa1, 0x1800816f1\nmov     eax, edx                                                       ; +0xa4, 0x1800816f4\nmulss   xmm0, xmm6                                                     ; +0xa6, 0x1800816f6\nmulss   xmm0, xmm1                                                     ; +0xaa, 0x1800816fa\nxorps   xmm1, xmm1                                                     ; +0xae, 0x1800816fe\ncvtsi2ss xmm1, rax                                                     ; +0xb1, 0x180081701\nmovsx   eax, byte ptr [rcx+rbx]                                        ; +0xb6, 0x180081706\naddss   xmm5, xmm0                                                     ; +0xba, 0x18008170a\nmovd    xmm4, eax                                                      ; +0xbe, 0x18008170e\nlea     eax, [rcx+1]                                                   ; +0xc2, 0x180081712\nmovaps  xmm0, xmm8                                                     ; +0xc5, 0x180081715\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0xc9, 0x180081719\nmov     rcx, r8                                                        ; +0xcd, 0x18008171d\nmulss   xmm1, xmm7                                                     ; +0xd0, 0x180081720\nmov     [r9], r8                                                       ; +0xd4, 0x180081724\nmov     rdx, [rdi]                                                     ; +0xd7, 0x180081727\nshr     rcx, 20h                                                       ; +0xda, 0x18008172a\nadd     rdx, r8                                                        ; +0xde, 0x18008172e\nsubss   xmm0, xmm1                                                     ; +0xe1, 0x180081731\ncvtdq2ps xmm4, xmm4                                                    ; +0xe5, 0x180081735\nmulss   xmm4, xmm6                                                     ; +0xe8, 0x180081738\nmulss   xmm4, xmm0                                                     ; +0xec, 0x18008173c\nmovd    xmm0, eax                                                      ; +0xf0, 0x180081740\ncvtdq2ps xmm0, xmm0                                                    ; +0xf4, 0x180081744\nmov     eax, r8d                                                       ; +0xf7, 0x180081747\nmulss   xmm0, xmm6                                                     ; +0xfa, 0x18008174a\nmulss   xmm0, xmm1                                                     ; +0xfe, 0x18008174e\nxorps   xmm1, xmm1                                                     ; +0x102, 0x180081752\ncvtsi2ss xmm1, rax                                                     ; +0x105, 0x180081755\nmovsx   eax, byte ptr [rcx+rbx]                                        ; +0x10a, 0x18008175a\naddss   xmm4, xmm0                                                     ; +0x10e, 0x18008175e\nmovd    xmm3, eax                                                      ; +0x112, 0x180081762\nlea     eax, [rcx+1]                                                   ; +0x116, 0x180081766\nmovaps  xmm0, xmm8                                                     ; +0x119, 0x180081769\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0x11d, 0x18008176d\nmov     rcx, rdx                                                       ; +0x121, 0x180081771\nmulss   xmm1, xmm7                                                     ; +0x124, 0x180081774\nshr     rcx, 20h                                                       ; +0x128, 0x180081778\ncvtdq2ps xmm3, xmm3                                                    ; +0x12c, 0x18008177c\nmov     [r9], rdx                                                      ; +0x12f, 0x18008177f\nsubss   xmm0, xmm1                                                     ; +0x132, 0x180081782\nmulss   xmm3, xmm6                                                     ; +0x136, 0x180081786\nmulss   xmm3, xmm0                                                     ; +0x13a, 0x18008178a\nmovd    xmm0, eax                                                      ; +0x13e, 0x18008178e\ncvtdq2ps xmm0, xmm0                                                    ; +0x142, 0x180081792\nmov     eax, edx                                                       ; +0x145, 0x180081795\nmulss   xmm0, xmm6                                                     ; +0x147, 0x180081797\nmulss   xmm0, xmm1                                                     ; +0x14b, 0x18008179b\nxorps   xmm1, xmm1                                                     ; +0x14f, 0x18008179f\ncvtsi2ss xmm1, rax                                                     ; +0x152, 0x1800817a2\nmovsx   eax, byte ptr [rcx+rbx]                                        ; +0x157, 0x1800817a7\naddss   xmm3, xmm0                                                     ; +0x15b, 0x1800817ab\nmovd    xmm2, eax                                                      ; +0x15f, 0x1800817af\nmovaps  xmm0, xmm8                                                     ; +0x163, 0x1800817b3\ncvtdq2ps xmm2, xmm2                                                    ; +0x167, 0x1800817b7\nmulss   xmm1, xmm7                                                     ; +0x16a, 0x1800817ba\nmulss   xmm2, xmm6                                                     ; +0x16e, 0x1800817be\nsubss   xmm0, xmm1                                                     ; +0x172, 0x1800817c2\nmulss   xmm2, xmm0                                                     ; +0x176, 0x1800817c6\nlea     eax, [rcx+1]                                                   ; +0x17a, 0x1800817ca\nmov     rcx, [rdi]                                                     ; +0x17d, 0x1800817cd\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0x180, 0x1800817d0\nadd     rcx, rdx                                                       ; +0x184, 0x1800817d4\nmov     [r9], rcx                                                      ; +0x187, 0x1800817d7\nmovss   dword ptr [r10], xmm5                                          ; +0x18a, 0x1800817da\nmovss   dword ptr [r10+4], xmm4                                        ; +0x18f, 0x1800817df\nmovd    xmm0, eax                                                      ; +0x195, 0x1800817e5\ncvtdq2ps xmm0, xmm0                                                    ; +0x199, 0x1800817e9\nmovss   dword ptr [r10+8], xmm3                                        ; +0x19c, 0x1800817ec\nmulss   xmm0, xmm6                                                     ; +0x1a2, 0x1800817f2\nmulss   xmm0, xmm1                                                     ; +0x1a6, 0x1800817f6\naddss   xmm2, xmm0                                                     ; +0x1aa, 0x1800817fa\nmovss   dword ptr [r10+0Ch], xmm2                                      ; +0x1ae, 0x1800817fe\nadd     r10, 10h                                                       ; +0x1b4, 0x180081804\nsub     esi, 1                                                         ; +0x1b8, 0x180081808\njnz     loc_1800816A2                                                  ; +0x1bb, 0x18008180b\nand     r11d, 3                                                        ; +0x1c1, 0x180081811\njz      short loc_18008187D                                            ; +0x1c5, 0x180081815\nnop     word ptr [rax+rax+00000000h]                                   ; +0x1c7, 0x180081817\nmov     eax, [r9]                                                      ; +0x1d0, 0x180081820\nxorps   xmm2, xmm2                                                     ; +0x1d3, 0x180081823\nmov     ecx, [r9+4]                                                    ; +0x1d6, 0x180081826\nmovaps  xmm0, xmm8                                                     ; +0x1da, 0x18008182a\ncvtsi2ss xmm2, rax                                                     ; +0x1de, 0x18008182e\nmovsx   eax, byte ptr [rcx+rbx]                                        ; +0x1e3, 0x180081833\nmovd    xmm1, eax                                                      ; +0x1e7, 0x180081837\nlea     eax, [rcx+1]                                                   ; +0x1eb, 0x18008183b\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0x1ee, 0x18008183e\ncvtdq2ps xmm1, xmm1                                                    ; +0x1f2, 0x180081842\nmulss   xmm2, xmm7                                                     ; +0x1f5, 0x180081845\nmulss   xmm1, xmm6                                                     ; +0x1f9, 0x180081849\nsubss   xmm0, xmm2                                                     ; +0x1fd, 0x18008184d\nmulss   xmm1, xmm0                                                     ; +0x201, 0x180081851\nmovd    xmm0, eax                                                      ; +0x205, 0x180081855\ncvtdq2ps xmm0, xmm0                                                    ; +0x209, 0x180081859\nmulss   xmm0, xmm6                                                     ; +0x20c, 0x18008185c\nmulss   xmm0, xmm2                                                     ; +0x210, 0x180081860\naddss   xmm1, xmm0                                                     ; +0x214, 0x180081864\nmovss   dword ptr [r10], xmm1                                          ; +0x218, 0x180081868\nadd     r10, 4                                                         ; +0x21d, 0x18008186d\nmov     rax, [rdi]                                                     ; +0x221, 0x180081871\nadd     [r9], rax                                                      ; +0x224, 0x180081874\nsub     r11d, 1                                                        ; +0x227, 0x180081877\njnz     short loc_180081820                                            ; +0x22b, 0x18008187b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x22d, 0x18008187d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x232, 0x180081882\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x237, 0x180081887\nmovaps  xmm7, [rsp+38h+var_28]                                         ; +0x23c, 0x18008188c\nmovaps  xmm8, [rsp+38h+var_38]                                         ; +0x241, 0x180081891\nadd     rsp, 30h                                                       ; +0x246, 0x180081896\npop     rdi                                                            ; +0x24a, 0x18008189a\nretn                                                                   ; +0x24b, 0x18008189b", "xrefs": ["<???> @ 0x1801ae150", "<???> @ 0x1801ae1b0", "<???> @ 0x1801ae210", "<???> @ 0x1801ae270", "<???> @ 0x1801fa0bc"], "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"}