{"type": "func", "start": 6442827440, "end": 6442828079, "name": "sub_18005BEB0", "pseudocode": "// \n// sub_18005BEB0 from 0x18005beb0 to 0x18005c12f (639 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1801ac4b8\n// > <???> @ 0x1801ac528\n// > <???> @ 0x1801ac598\n// > <???> @ 0x1801f906c\n// > <???> @ 0x1801f9078\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\nunsigned __int64 __fastcall sub_18005BEB0(\n        float *a1,\n        float *a2,\n        unsigned int a3,\n        float *a4,\n        __int64 a5,\n        __int64 a6,\n        int a7)\n{\n  float *v8; // rbx\n  float v9; // xmm6_4\n  float v11; // xmm7_4\n  float v12; // xmm8_4\n  float v13; // xmm9_4\n  float v14; // xmm10_4\n  float v15; // xmm11_4\n  unsigned __int64 result; // rax\n  float v17; // xmm4_4\n  float v18; // xmm1_4\n  float v19; // xmm2_4\n  float v20; // xmm3_4\n  float v21; // xmm0_4\n  float v22; // xmm4_4\n  float v23; // xmm1_4\n  float v24; // xmm2_4\n  float v25; // xmm3_4\n  float v26; // xmm4_4\n  float v27; // xmm1_4\n  float v28; // xmm2_4\n  bool v29; // zf\n  int v30; // edi\n  float v31; // xmm3_4\n  float v32; // xmm1_4\n  float v33; // xmm2_4\n\n  v8 = a2;\n  v9 = *a4;\n  v11 = a4[1];\n  v12 = a4[2];\n  v13 = a4[3];\n  v14 = a4[4];\n  v15 = a4[5];\n  if ( a7 )\n    memset(a2, 0, 24LL * a3);\n  result = a3 >> 2;\n  if ( (_DWORD)result )\n  {\n    do\n    {\n      v17 = (float)((float)(v14 * a1[10]) + (float)(v13 * a1[9])) + (float)((float)(v15 * a1[11]) + v8[6]);\n      v18 = v11 * a1[7];\n      v19 = (float)(v12 * a1[8]) + (float)(v9 * a1[6]);\n      *v8 = (float)((float)((float)(v14 * a1[4]) + (float)(v13 * a1[3])) + (float)((float)(v15 * a1[5]) + *v8))\n          + (float)((float)((float)(v12 * a1[2]) + (float)(v9 * *a1)) + (float)(v11 * a1[1]));\n      v20 = (float)(v14 * a1[16]) + (float)(v13 * a1[15]);\n      v21 = v9 * a1[12];\n      v22 = v17 + (float)(v19 + v18);\n      v23 = (float)(v15 * a1[17]) + v8[12];\n      v24 = v12 * a1[14];\n      v8[6] = v22;\n      v25 = (float)(v20 + v23) + (float)((float)(v24 + v21) + (float)(v11 * a1[13]));\n      v26 = (float)((float)(v14 * a1[22]) + (float)(v13 * a1[21])) + (float)((float)(v15 * a1[23]) + v8[18]);\n      v27 = v11 * a1[19];\n      v28 = (float)(v12 * a1[20]) + (float)(v9 * a1[18]);\n      a1 += 24;\n      v8[12] = v25;\n      v8[18] = v26 + (float)(v28 + v27);\n      v8 += 24;\n      v29 = (_DWORD)result == 1;\n      result = (unsigned int)(result - 1);\n    }\n    while ( !v29 );\n  }\n  v30 = a3 & 3;\n  if ( v30 )\n  {\n    result = (unsigned __int64)(a1 + 2);\n    do\n    {\n      v31 = (float)((float)(v14 * *(float *)(result + 8)) + (float)(v13 * *(float *)(result + 4)))\n          + (float)((float)(v15 * *(float *)(result + 12)) + *v8);\n      v32 = v11 * *(float *)(result - 4);\n      v33 = (float)(v9 * *(float *)(result - 8)) + (float)(v12 * *(float *)result);\n      result += 24LL;\n      *v8 = v31 + (float)(v33 + v32);\n      v8 += 6;\n      --v30;\n    }\n    while ( v30 );\n  }\n  return result;\n}", "assembly": "; \n; sub_18005BEB0 from 0x18005beb0 to 0x18005c12f (639 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1801ac4b8\n; > <???> @ 0x1801ac528\n; > <???> @ 0x1801ac598\n; > <???> @ 0x1801f906c\n; > <???> @ 0x1801f9078\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     rax, rsp                                                       ; +0x0, 0x18005beb0\nmov     [rax+8], rbx                                                   ; +0x3, 0x18005beb3\nmov     [rax+10h], rsi                                                 ; +0x7, 0x18005beb7\npush    rdi                                                            ; +0xb, 0x18005bebb\nsub     rsp, 80h                                                       ; +0xc, 0x18005bebc\ncmp     [rsp+88h+arg_30], 0                                            ; +0x13, 0x18005bec3\nmov     edi, r8d                                                       ; +0x1b, 0x18005becb\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x1e, 0x18005bece\nmov     rbx, rdx                                                       ; +0x22, 0x18005bed2\nmovss   xmm6, dword ptr [r9]                                           ; +0x25, 0x18005bed5\nmov     rsi, rcx                                                       ; +0x2a, 0x18005beda\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x2d, 0x18005bedd\nmovss   xmm7, dword ptr [r9+4]                                         ; +0x31, 0x18005bee1\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x37, 0x18005bee7\nmovss   xmm8, dword ptr [r9+8]                                         ; +0x3c, 0x18005beec\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x42, 0x18005bef2\nmovss   xmm9, dword ptr [r9+0Ch]                                       ; +0x47, 0x18005bef7\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x4d, 0x18005befd\nmovss   xmm10, dword ptr [r9+10h]                                      ; +0x52, 0x18005bf02\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x58, 0x18005bf08\nmovss   xmm11, dword ptr [r9+14h]                                      ; +0x5d, 0x18005bf0d\njz      short loc_18005BF2B                                            ; +0x63, 0x18005bf13\nlea     eax, [r8+r8*2]                                                 ; +0x65, 0x18005bf15\nxor     edx, edx; Val                                                  ; +0x69, 0x18005bf19\nlea     r8d, [rax+rax]                                                 ; +0x6b, 0x18005bf1b\nmov     rcx, rbx; void *                                               ; +0x6f, 0x18005bf1f\nshl     r8, 2; Size                                                    ; +0x72, 0x18005bf22\ncall    memset                                                         ; +0x76, 0x18005bf26\nmov     eax, edi                                                       ; +0x7b, 0x18005bf2b\nshr     eax, 2                                                         ; +0x7d, 0x18005bf2d\ntest    eax, eax                                                       ; +0x80, 0x18005bf30\njz      loc_18005C096                                                  ; +0x82, 0x18005bf32\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x88, 0x18005bf38\nmovaps  xmm3, xmm10                                                    ; +0x90, 0x18005bf40\nmovaps  xmm0, xmm9                                                     ; +0x94, 0x18005bf44\nmulss   xmm0, dword ptr [rsi+0Ch]                                      ; +0x98, 0x18005bf48\nmovaps  xmm1, xmm11                                                    ; +0x9d, 0x18005bf4d\nmulss   xmm1, dword ptr [rsi+14h]                                      ; +0xa1, 0x18005bf51\nmovaps  xmm2, xmm8                                                     ; +0xa6, 0x18005bf56\nmulss   xmm2, dword ptr [rsi+8]                                        ; +0xaa, 0x18005bf5a\nmovaps  xmm4, xmm10                                                    ; +0xaf, 0x18005bf5f\naddss   xmm1, dword ptr [rbx]                                          ; +0xb3, 0x18005bf63\nmulss   xmm3, dword ptr [rsi+10h]                                      ; +0xb7, 0x18005bf67\nmulss   xmm4, dword ptr [rsi+28h]                                      ; +0xbc, 0x18005bf6c\naddss   xmm3, xmm0                                                     ; +0xc1, 0x18005bf71\nmovaps  xmm0, xmm6                                                     ; +0xc5, 0x18005bf75\nmulss   xmm0, dword ptr [rsi]                                          ; +0xc8, 0x18005bf78\naddss   xmm2, xmm0                                                     ; +0xcc, 0x18005bf7c\nmovaps  xmm0, xmm9                                                     ; +0xd0, 0x18005bf80\nmulss   xmm0, dword ptr [rsi+24h]                                      ; +0xd4, 0x18005bf84\naddss   xmm3, xmm1                                                     ; +0xd9, 0x18005bf89\nmovaps  xmm1, xmm7                                                     ; +0xdd, 0x18005bf8d\nmulss   xmm1, dword ptr [rsi+4]                                        ; +0xe0, 0x18005bf90\naddss   xmm4, xmm0                                                     ; +0xe5, 0x18005bf95\nmovaps  xmm0, xmm6                                                     ; +0xe9, 0x18005bf99\nmulss   xmm0, dword ptr [rsi+18h]                                      ; +0xec, 0x18005bf9c\naddss   xmm2, xmm1                                                     ; +0xf1, 0x18005bfa1\nmovaps  xmm1, xmm11                                                    ; +0xf5, 0x18005bfa5\nmulss   xmm1, dword ptr [rsi+2Ch]                                      ; +0xf9, 0x18005bfa9\naddss   xmm1, dword ptr [rbx+18h]                                      ; +0xfe, 0x18005bfae\naddss   xmm3, xmm2                                                     ; +0x103, 0x18005bfb3\nmovaps  xmm2, xmm8                                                     ; +0x107, 0x18005bfb7\nmulss   xmm2, dword ptr [rsi+20h]                                      ; +0x10b, 0x18005bfbb\naddss   xmm4, xmm1                                                     ; +0x110, 0x18005bfc0\nmovaps  xmm1, xmm7                                                     ; +0x114, 0x18005bfc4\nmulss   xmm1, dword ptr [rsi+1Ch]                                      ; +0x117, 0x18005bfc7\naddss   xmm2, xmm0                                                     ; +0x11c, 0x18005bfcc\nmovss   dword ptr [rbx], xmm3                                          ; +0x120, 0x18005bfd0\nmovaps  xmm0, xmm9                                                     ; +0x124, 0x18005bfd4\nmulss   xmm0, dword ptr [rsi+3Ch]                                      ; +0x128, 0x18005bfd8\nmovaps  xmm3, xmm10                                                    ; +0x12d, 0x18005bfdd\nmulss   xmm3, dword ptr [rsi+40h]                                      ; +0x131, 0x18005bfe1\naddss   xmm2, xmm1                                                     ; +0x136, 0x18005bfe6\nmovaps  xmm1, xmm11                                                    ; +0x13a, 0x18005bfea\nmulss   xmm1, dword ptr [rsi+44h]                                      ; +0x13e, 0x18005bfee\naddss   xmm3, xmm0                                                     ; +0x143, 0x18005bff3\nmovaps  xmm0, xmm6                                                     ; +0x147, 0x18005bff7\nmulss   xmm0, dword ptr [rsi+30h]                                      ; +0x14a, 0x18005bffa\naddss   xmm4, xmm2                                                     ; +0x14f, 0x18005bfff\naddss   xmm1, dword ptr [rbx+30h]                                      ; +0x153, 0x18005c003\nmovaps  xmm2, xmm8                                                     ; +0x158, 0x18005c008\nmulss   xmm2, dword ptr [rsi+38h]                                      ; +0x15c, 0x18005c00c\nmovss   dword ptr [rbx+18h], xmm4                                      ; +0x161, 0x18005c011\nmovaps  xmm4, xmm10                                                    ; +0x166, 0x18005c016\nmulss   xmm4, dword ptr [rsi+58h]                                      ; +0x16a, 0x18005c01a\naddss   xmm3, xmm1                                                     ; +0x16f, 0x18005c01f\naddss   xmm2, xmm0                                                     ; +0x173, 0x18005c023\nmovaps  xmm1, xmm7                                                     ; +0x177, 0x18005c027\nmulss   xmm1, dword ptr [rsi+34h]                                      ; +0x17a, 0x18005c02a\nmovaps  xmm0, xmm9                                                     ; +0x17f, 0x18005c02f\nmulss   xmm0, dword ptr [rsi+54h]                                      ; +0x183, 0x18005c033\naddss   xmm2, xmm1                                                     ; +0x188, 0x18005c038\nmovaps  xmm1, xmm11                                                    ; +0x18c, 0x18005c03c\nmulss   xmm1, dword ptr [rsi+5Ch]                                      ; +0x190, 0x18005c040\naddss   xmm4, xmm0                                                     ; +0x195, 0x18005c045\nmovaps  xmm0, xmm6                                                     ; +0x199, 0x18005c049\nmulss   xmm0, dword ptr [rsi+48h]                                      ; +0x19c, 0x18005c04c\naddss   xmm1, dword ptr [rbx+48h]                                      ; +0x1a1, 0x18005c051\naddss   xmm3, xmm2                                                     ; +0x1a6, 0x18005c056\nmovaps  xmm2, xmm8                                                     ; +0x1aa, 0x18005c05a\nmulss   xmm2, dword ptr [rsi+50h]                                      ; +0x1ae, 0x18005c05e\naddss   xmm4, xmm1                                                     ; +0x1b3, 0x18005c063\nmovaps  xmm1, xmm7                                                     ; +0x1b7, 0x18005c067\nmulss   xmm1, dword ptr [rsi+4Ch]                                      ; +0x1ba, 0x18005c06a\naddss   xmm2, xmm0                                                     ; +0x1bf, 0x18005c06f\nadd     rsi, 60h ; '`'                                                 ; +0x1c3, 0x18005c073\nmovss   dword ptr [rbx+30h], xmm3                                      ; +0x1c7, 0x18005c077\naddss   xmm2, xmm1                                                     ; +0x1cc, 0x18005c07c\naddss   xmm4, xmm2                                                     ; +0x1d0, 0x18005c080\nmovss   dword ptr [rbx+48h], xmm4                                      ; +0x1d4, 0x18005c084\nadd     rbx, 60h ; '`'                                                 ; +0x1d9, 0x18005c089\nadd     eax, 0FFFFFFFFh                                                ; +0x1dd, 0x18005c08d\njnz     loc_18005BF40                                                  ; +0x1e0, 0x18005c090\nand     edi, 3                                                         ; +0x1e6, 0x18005c096\njz      short loc_18005C0FC                                            ; +0x1e9, 0x18005c099\nlea     rax, [rsi+8]                                                   ; +0x1eb, 0x18005c09b\nnop                                                                    ; +0x1ef, 0x18005c09f\nmovaps  xmm0, xmm9                                                     ; +0x1f0, 0x18005c0a0\nmovaps  xmm1, xmm11                                                    ; +0x1f4, 0x18005c0a4\nmulss   xmm0, dword ptr [rax+4]                                        ; +0x1f8, 0x18005c0a8\nmovaps  xmm3, xmm10                                                    ; +0x1fd, 0x18005c0ad\nmulss   xmm3, dword ptr [rax+8]                                        ; +0x201, 0x18005c0b1\nmovaps  xmm2, xmm6                                                     ; +0x206, 0x18005c0b6\nmulss   xmm1, dword ptr [rax+0Ch]                                      ; +0x209, 0x18005c0b9\nmulss   xmm2, dword ptr [rax-8]                                        ; +0x20e, 0x18005c0be\naddss   xmm3, xmm0                                                     ; +0x213, 0x18005c0c3\naddss   xmm1, dword ptr [rbx]                                          ; +0x217, 0x18005c0c7\nmovaps  xmm0, xmm8                                                     ; +0x21b, 0x18005c0cb\nmulss   xmm0, dword ptr [rax]                                          ; +0x21f, 0x18005c0cf\naddss   xmm3, xmm1                                                     ; +0x223, 0x18005c0d3\nmovaps  xmm1, xmm7                                                     ; +0x227, 0x18005c0d7\nmulss   xmm1, dword ptr [rax-4]                                        ; +0x22a, 0x18005c0da\naddss   xmm2, xmm0                                                     ; +0x22f, 0x18005c0df\nadd     rax, 18h                                                       ; +0x233, 0x18005c0e3\naddss   xmm2, xmm1                                                     ; +0x237, 0x18005c0e7\naddss   xmm3, xmm2                                                     ; +0x23b, 0x18005c0eb\nmovss   dword ptr [rbx], xmm3                                          ; +0x23f, 0x18005c0ef\nadd     rbx, 18h                                                       ; +0x243, 0x18005c0f3\nadd     edi, 0FFFFFFFFh                                                ; +0x247, 0x18005c0f7\njnz     short loc_18005C0A0                                            ; +0x24a, 0x18005c0fa\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x24c, 0x18005c0fc\nlea     r11, [rsp+88h+var_8]                                           ; +0x251, 0x18005c101\nmov     rbx, [r11+10h]                                                 ; +0x259, 0x18005c109\nmov     rsi, [r11+18h]                                                 ; +0x25d, 0x18005c10d\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x261, 0x18005c111\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x266, 0x18005c116\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x26b, 0x18005c11b\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x270, 0x18005c120\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x275, 0x18005c125\nmov     rsp, r11                                                       ; +0x27a, 0x18005c12a\npop     rdi                                                            ; +0x27d, 0x18005c12d\nretn                                                                   ; +0x27e, 0x18005c12e", "xrefs": ["<???> @ 0x1801ac4b8", "<???> @ 0x1801ac528", "<???> @ 0x1801ac598", "<???> @ 0x1801f906c", "<???> @ 0x1801f9078"], "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"}