{"type": "func", "start": 6442978240, "end": 6442978655, "name": "sub_180080BC0", "pseudocode": "// \n// sub_180080BC0 from 0x180080bc0 to 0x180080d5f (415 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801ae190\n// > <???> @ 0x1801fa014\n// > <???> @ 0x1801fa020\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:37 +0000\n// \n\n__int64 __fastcall sub_180080BC0(float *a1, int a2, __int64 a3, __int64 a4, __int64 *a5)\n{\n  int v5; // esi\n  char i; // bl\n  __int64 v9; // r8\n  __int64 v10; // rdx\n  float v11; // xmm1_4\n  float v12; // xmm4_4\n  float v13; // xmm5_4\n  float v14; // xmm0_4\n  float v15; // xmm1_4\n  float v16; // xmm4_4\n  float v17; // xmm5_4\n  __int64 v18; // rdx\n  float v19; // xmm2_4\n  float v20; // xmm1_4\n  float v21; // xmm3_4\n  __int64 result; // rax\n  float v23; // xmm0_4\n  float v24; // xmm2_4\n  int j; // ebx\n  __int64 v26; // rdx\n  float v27; // xmm3_4\n  float v28; // xmm1_4\n\n  v5 = a2 >> 1;\n  for ( i = a2; v5; --v5 )\n  {\n    v9 = *a5 + *(_QWORD *)a4;\n    v10 = (unsigned int)(2 * *(_DWORD *)(a4 + 4));\n    v11 = (float)*(int *)a4 * 2.3283064e-10;\n    v12 = v11 * *(float *)(a3 + 4LL * (unsigned int)(v10 + 2));\n    v13 = (float)(1.0 - v11) * *(float *)(a3 + 4LL * (unsigned int)(v10 + 1));\n    v14 = (float)(1.0 - v11) * *(float *)(a3 + 4 * v10);\n    v15 = v11 * *(float *)(a3 + 4LL * (unsigned int)(v10 + 3));\n    *(_QWORD *)a4 = v9;\n    v16 = v12 + v14;\n    v17 = v13 + v15;\n    v18 = (unsigned int)(2 * HIDWORD(v9));\n    v19 = (float)(int)v9 * 2.3283064e-10;\n    v20 = v19 * *(float *)(a3 + 4LL * (unsigned int)(v18 + 2));\n    v21 = (float)(1.0 - v19) * *(float *)(a3 + 4LL * (unsigned int)(v18 + 1));\n    result = (unsigned int)(v18 + 3);\n    v23 = (float)(1.0 - v19) * *(float *)(a3 + 4 * v18);\n    v24 = v19 * *(float *)(a3 + 4 * result);\n    *(_QWORD *)a4 = v9 + *a5;\n    *a1 = v16;\n    a1[1] = v17;\n    a1[2] = v20 + v23;\n    a1[3] = v21 + v24;\n    a1 += 4;\n  }\n  for ( j = i & 1; j; --j )\n  {\n    v26 = (unsigned int)(2 * *(_DWORD *)(a4 + 4));\n    v27 = (float)*(int *)a4 * 2.3283064e-10;\n    v28 = (float)((float)(1.0 - v27) * *(float *)(a3 + 4LL * (unsigned int)(v26 + 1)))\n        + (float)(v27 * *(float *)(a3 + 4LL * (unsigned int)(v26 + 3)));\n    *a1 = (float)(v27 * *(float *)(a3 + 4LL * (unsigned int)(v26 + 2)))\n        + (float)((float)(1.0 - v27) * *(float *)(a3 + 4 * v26));\n    a1[1] = v28;\n    a1 += 2;\n    result = *a5;\n    *(_QWORD *)a4 += *a5;\n  }\n  return result;\n}", "assembly": "; \n; sub_180080BC0 from 0x180080bc0 to 0x180080d5f (415 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801ae190\n; > <???> @ 0x1801fa014\n; > <???> @ 0x1801fa020\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:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180080bc0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180080bc5\npush    rdi                                                            ; +0xa, 0x180080bca\nsub     rsp, 20h                                                       ; +0xb, 0x180080bcb\nmov     rdi, [rsp+28h+arg_20]                                          ; +0xf, 0x180080bcf\nmov     esi, edx                                                       ; +0x14, 0x180080bd4\nsar     esi, 1                                                         ; +0x16, 0x180080bd6\nmov     r11, r8                                                        ; +0x18, 0x180080bd8\nmovaps  [rsp+28h+var_18], xmm6                                         ; +0x1b, 0x180080bdb\nmov     ebx, edx                                                       ; +0x20, 0x180080be0\nmovss   xmm6, cs:dword_180168F48                                       ; +0x22, 0x180080be2\nmov     r10, rcx                                                       ; +0x2a, 0x180080bea\nmovaps  [rsp+28h+var_28], xmm7                                         ; +0x2d, 0x180080bed\nmovss   xmm7, cs:dword_180145744                                       ; +0x31, 0x180080bf1\njz      loc_180080CD1                                                  ; +0x39, 0x180080bf9\nnop                                                                    ; +0x3f, 0x180080bff\nmov     eax, [r9]                                                      ; +0x40, 0x180080c00\nxorps   xmm1, xmm1                                                     ; +0x43, 0x180080c03\nmov     r8, [r9]                                                       ; +0x46, 0x180080c06\nxorps   xmm2, xmm2                                                     ; +0x49, 0x180080c09\nadd     r8, [rdi]                                                      ; +0x4c, 0x180080c0c\nmovaps  xmm5, xmm7                                                     ; +0x4f, 0x180080c0f\nmovaps  xmm3, xmm7                                                     ; +0x52, 0x180080c12\ncvtsi2ss xmm1, rax                                                     ; +0x55, 0x180080c15\nmov     eax, [r9+4]                                                    ; +0x5a, 0x180080c1a\nlea     edx, [rax+rax]                                                 ; +0x5e, 0x180080c1e\nlea     eax, [rdx+2]                                                   ; +0x61, 0x180080c21\nmulss   xmm1, xmm6                                                     ; +0x64, 0x180080c24\nsubss   xmm5, xmm1                                                     ; +0x68, 0x180080c28\nmovaps  xmm4, xmm1                                                     ; +0x6c, 0x180080c2c\nmulss   xmm4, dword ptr [r11+rax*4]                                    ; +0x6f, 0x180080c2f\nlea     eax, [rdx+1]                                                   ; +0x75, 0x180080c35\nmovaps  xmm0, xmm5                                                     ; +0x78, 0x180080c38\nmulss   xmm5, dword ptr [r11+rax*4]                                    ; +0x7b, 0x180080c3b\nlea     eax, [rdx+3]                                                   ; +0x81, 0x180080c41\nmulss   xmm0, dword ptr [r11+rdx*4]                                    ; +0x84, 0x180080c44\nmulss   xmm1, dword ptr [r11+rax*4]                                    ; +0x8a, 0x180080c4a\nmov     [r9], r8                                                       ; +0x90, 0x180080c50\nmov     rcx, [rdi]                                                     ; +0x93, 0x180080c53\naddss   xmm4, xmm0                                                     ; +0x96, 0x180080c56\nmov     eax, r8d                                                       ; +0x9a, 0x180080c5a\nadd     rcx, r8                                                        ; +0x9d, 0x180080c5d\naddss   xmm5, xmm1                                                     ; +0xa0, 0x180080c60\ncvtsi2ss xmm2, rax                                                     ; +0xa4, 0x180080c64\nmov     rax, r8                                                        ; +0xa9, 0x180080c69\nshr     rax, 20h                                                       ; +0xac, 0x180080c6c\nlea     edx, [rax+rax]                                                 ; +0xb0, 0x180080c70\nlea     eax, [rdx+2]                                                   ; +0xb3, 0x180080c73\nmulss   xmm2, xmm6                                                     ; +0xb6, 0x180080c76\nsubss   xmm3, xmm2                                                     ; +0xba, 0x180080c7a\nmovaps  xmm1, xmm2                                                     ; +0xbe, 0x180080c7e\nmulss   xmm1, dword ptr [r11+rax*4]                                    ; +0xc1, 0x180080c81\nlea     eax, [rdx+1]                                                   ; +0xc7, 0x180080c87\nmovaps  xmm0, xmm3                                                     ; +0xca, 0x180080c8a\nmulss   xmm3, dword ptr [r11+rax*4]                                    ; +0xcd, 0x180080c8d\nlea     eax, [rdx+3]                                                   ; +0xd3, 0x180080c93\nmulss   xmm0, dword ptr [r11+rdx*4]                                    ; +0xd6, 0x180080c96\nmulss   xmm2, dword ptr [r11+rax*4]                                    ; +0xdc, 0x180080c9c\nmov     [r9], rcx                                                      ; +0xe2, 0x180080ca2\naddss   xmm1, xmm0                                                     ; +0xe5, 0x180080ca5\nmovss   dword ptr [r10], xmm4                                          ; +0xe9, 0x180080ca9\nmovss   dword ptr [r10+4], xmm5                                        ; +0xee, 0x180080cae\naddss   xmm3, xmm2                                                     ; +0xf4, 0x180080cb4\nmovss   dword ptr [r10+8], xmm1                                        ; +0xf8, 0x180080cb8\nmovss   dword ptr [r10+0Ch], xmm3                                      ; +0xfe, 0x180080cbe\nadd     r10, 10h                                                       ; +0x104, 0x180080cc4\nsub     esi, 1                                                         ; +0x108, 0x180080cc8\njnz     loc_180080C00                                                  ; +0x10b, 0x180080ccb\nand     ebx, 1                                                         ; +0x111, 0x180080cd1\njz      short loc_180080D46                                            ; +0x114, 0x180080cd4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x116, 0x180080cd6\nmov     eax, [r9]                                                      ; +0x120, 0x180080ce0\nxorps   xmm3, xmm3                                                     ; +0x123, 0x180080ce3\nmovaps  xmm2, xmm7                                                     ; +0x126, 0x180080ce6\ncvtsi2ss xmm3, rax                                                     ; +0x129, 0x180080ce9\nmov     eax, [r9+4]                                                    ; +0x12e, 0x180080cee\nlea     edx, [rax+rax]                                                 ; +0x132, 0x180080cf2\nlea     eax, [rdx+1]                                                   ; +0x135, 0x180080cf5\nmulss   xmm3, xmm6                                                     ; +0x138, 0x180080cf8\nsubss   xmm2, xmm3                                                     ; +0x13c, 0x180080cfc\nmovaps  xmm0, xmm3                                                     ; +0x140, 0x180080d00\nmovaps  xmm1, xmm2                                                     ; +0x143, 0x180080d03\nmulss   xmm2, dword ptr [r11+rdx*4]                                    ; +0x146, 0x180080d06\nmulss   xmm1, dword ptr [r11+rax*4]                                    ; +0x14c, 0x180080d0c\nlea     eax, [rdx+3]                                                   ; +0x152, 0x180080d12\nmulss   xmm0, dword ptr [r11+rax*4]                                    ; +0x155, 0x180080d15\nlea     eax, [rdx+2]                                                   ; +0x15b, 0x180080d1b\nmulss   xmm3, dword ptr [r11+rax*4]                                    ; +0x15e, 0x180080d1e\naddss   xmm1, xmm0                                                     ; +0x164, 0x180080d24\naddss   xmm3, xmm2                                                     ; +0x168, 0x180080d28\nmovss   dword ptr [r10], xmm3                                          ; +0x16c, 0x180080d2c\nmovss   dword ptr [r10+4], xmm1                                        ; +0x171, 0x180080d31\nadd     r10, 8                                                         ; +0x177, 0x180080d37\nmov     rax, [rdi]                                                     ; +0x17b, 0x180080d3b\nadd     [r9], rax                                                      ; +0x17e, 0x180080d3e\nsub     ebx, 1                                                         ; +0x181, 0x180080d41\njnz     short loc_180080CE0                                            ; +0x184, 0x180080d44\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x186, 0x180080d46\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x18b, 0x180080d4b\nmovaps  xmm6, [rsp+28h+var_18]                                         ; +0x190, 0x180080d50\nmovaps  xmm7, [rsp+28h+var_28]                                         ; +0x195, 0x180080d55\nadd     rsp, 20h                                                       ; +0x199, 0x180080d59\npop     rdi                                                            ; +0x19d, 0x180080d5d\nretn                                                                   ; +0x19e, 0x180080d5e", "xrefs": ["<???> @ 0x1801ae190", "<???> @ 0x1801fa014", "<???> @ 0x1801fa020"], "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"}