{"type": "func", "start": 6442820368, "end": 6442820731, "name": "sub_18005A310", "pseudocode": "// \n// sub_18005A310 from 0x18005a310 to 0x18005a47b (363 bytes)\n// \n// 2 xrefs:\n// > sub_1800FC980 @ 0x1800fccad\n// > <???> @ 0x1801f8f70\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:21 +0000\n// \n\n__int64 __fastcall sub_18005A310(__int64 a1, __int64 a2, __int64 a3, __int16 a4, __int16 a5)\n{\n  __int64 v7; // rdx\n  __int64 v10; // rdx\n  __int64 v11; // rdx\n  __int64 v12; // rcx\n  int v14; // [rsp+20h] [rbp-18h]\n  char v15; // [rsp+20h] [rbp-18h]\n\n  v7 = *(_QWORD *)(a1 + 64);\n  if ( v7 )\n  {\n    v15 = 1;\n    sub_1800B6AA0(*(_QWORD *)a1 + 67784LL, v7, &byte_18014572F, 0, v15);\n  }\n  *(_WORD *)(a1 + 58) = a5;\n  *(_WORD *)(a1 + 56) = a4;\n  *(_QWORD *)(a1 + 64) = a2;\n  v10 = *(_QWORD *)(a1 + 80);\n  if ( v10 )\n  {\n    LOBYTE(v14) = 1;\n    sub_1800B6AA0(*(_QWORD *)a1 + 67784LL, v10, &byte_18014572F, 0, v14);\n  }\n  *(_WORD *)(a1 + 72) = a4;\n  *(_WORD *)(a1 + 74) = a5;\n  *(_QWORD *)(a1 + 80) = a3;\n  v11 = *(__int16 *)(a1 + 56) * *(__int16 *)(a1 + 58);\n  v12 = 0;\n  if ( v11 >= 4 )\n  {\n    do\n    {\n      *(float *)(*(_QWORD *)(a1 + 80) + 4 * v12) = *(float *)(*(_QWORD *)(a1 + 64) + 4 * v12) * *(float *)(a1 + 128);\n      *(float *)(*(_QWORD *)(a1 + 80) + 4 * v12 + 4) = *(float *)(*(_QWORD *)(a1 + 64) + 4 * v12 + 4)\n                                                     * *(float *)(a1 + 128);\n      *(float *)(*(_QWORD *)(a1 + 80) + 4 * v12 + 8) = *(float *)(*(_QWORD *)(a1 + 64) + 4 * v12 + 8)\n                                                     * *(float *)(a1 + 128);\n      *(float *)(*(_QWORD *)(a1 + 80) + 4 * v12 + 12) = *(float *)(*(_QWORD *)(a1 + 64) + 4 * v12 + 12)\n                                                      * *(float *)(a1 + 128);\n      v12 += 4;\n    }\n    while ( v12 < v11 - 3 );\n  }\n  for ( ; v12 < v11; ++v12 )\n    *(float *)(*(_QWORD *)(a1 + 80) + 4 * v12) = *(float *)(*(_QWORD *)(a1 + 64) + 4 * v12) * *(float *)(a1 + 128);\n  return 0;\n}", "assembly": "; \n; sub_18005A310 from 0x18005a310 to 0x18005a47b (363 bytes)\n; \n; 2 xrefs:\n; > sub_1800FC980 @ 0x1800fccad\n; > <???> @ 0x1801f8f70\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:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005a310\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005a315\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005a31a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005a31f\npush    r14                                                            ; +0x14, 0x18005a324\nsub     rsp, 30h                                                       ; +0x16, 0x18005a326\nmov     rbp, rdx                                                       ; +0x1a, 0x18005a32a\nmov     esi, r9d                                                       ; +0x1d, 0x18005a32d\nmov     rdx, [rcx+40h]                                                 ; +0x20, 0x18005a330\nmov     r14, r8                                                        ; +0x24, 0x18005a334\nmov     rbx, rcx                                                       ; +0x27, 0x18005a337\ntest    rdx, rdx                                                       ; +0x2a, 0x18005a33a\njz      short loc_18005A35D                                            ; +0x2d, 0x18005a33d\nmov     rcx, [rcx]                                                     ; +0x2f, 0x18005a33f\nlea     r8, byte_18014572F                                             ; +0x32, 0x18005a342\nadd     rcx, 108C8h                                                    ; +0x39, 0x18005a349\nmov     byte ptr [rsp+38h+var_18], 1                                   ; +0x40, 0x18005a350\nxor     r9d, r9d                                                       ; +0x45, 0x18005a355\ncall    sub_1800B6AA0                                                  ; +0x48, 0x18005a358\nmovzx   edi, [rsp+38h+arg_20]                                          ; +0x4d, 0x18005a35d\nmov     [rbx+3Ah], di                                                  ; +0x52, 0x18005a362\nmov     [rbx+38h], si                                                  ; +0x56, 0x18005a366\nmov     [rbx+40h], rbp                                                 ; +0x5a, 0x18005a36a\nmov     rdx, [rbx+50h]                                                 ; +0x5e, 0x18005a36e\ntest    rdx, rdx                                                       ; +0x62, 0x18005a372\njz      short loc_18005A395                                            ; +0x65, 0x18005a375\nmov     rcx, [rbx]                                                     ; +0x67, 0x18005a377\nlea     r8, byte_18014572F                                             ; +0x6a, 0x18005a37a\nadd     rcx, 108C8h                                                    ; +0x71, 0x18005a381\nmov     byte ptr [rsp+38h+var_18], 1                                   ; +0x78, 0x18005a388\nxor     r9d, r9d                                                       ; +0x7d, 0x18005a38d\ncall    sub_1800B6AA0                                                  ; +0x80, 0x18005a390\nmov     [rbx+48h], si                                                  ; +0x85, 0x18005a395\nmov     [rbx+4Ah], di                                                  ; +0x89, 0x18005a399\nmov     [rbx+50h], r14                                                 ; +0x8d, 0x18005a39d\nmovsx   ecx, word ptr [rbx+3Ah]                                        ; +0x91, 0x18005a3a1\nmovsx   eax, word ptr [rbx+38h]                                        ; +0x95, 0x18005a3a5\nimul    ecx, eax                                                       ; +0x99, 0x18005a3a9\nmovsxd  rdx, ecx                                                       ; +0x9c, 0x18005a3ac\nxor     ecx, ecx                                                       ; +0x9f, 0x18005a3af\ncmp     rdx, 4                                                         ; +0xa1, 0x18005a3b1\njl      loc_18005A437                                                  ; +0xa5, 0x18005a3b5\nlea     r8, [rdx-3]                                                    ; +0xab, 0x18005a3bb\nnop                                                                    ; +0xaf, 0x18005a3bf\nmov     rax, [rbx+40h]                                                 ; +0xb0, 0x18005a3c0\nmovss   xmm0, dword ptr [rax+rcx*4]                                    ; +0xb4, 0x18005a3c4\nmulss   xmm0, dword ptr [rbx+80h]                                      ; +0xb9, 0x18005a3c9\nmov     rax, [rbx+50h]                                                 ; +0xc1, 0x18005a3d1\nmovss   dword ptr [rax+rcx*4], xmm0                                    ; +0xc5, 0x18005a3d5\nmov     rax, [rbx+40h]                                                 ; +0xca, 0x18005a3da\nmovss   xmm1, dword ptr [rax+rcx*4+4]                                  ; +0xce, 0x18005a3de\nmulss   xmm1, dword ptr [rbx+80h]                                      ; +0xd4, 0x18005a3e4\nmov     rax, [rbx+50h]                                                 ; +0xdc, 0x18005a3ec\nmovss   dword ptr [rax+rcx*4+4], xmm1                                  ; +0xe0, 0x18005a3f0\nmov     rax, [rbx+40h]                                                 ; +0xe6, 0x18005a3f6\nmovss   xmm0, dword ptr [rax+rcx*4+8]                                  ; +0xea, 0x18005a3fa\nmov     rax, [rbx+50h]                                                 ; +0xf0, 0x18005a400\nmulss   xmm0, dword ptr [rbx+80h]                                      ; +0xf4, 0x18005a404\nmovss   dword ptr [rax+rcx*4+8], xmm0                                  ; +0xfc, 0x18005a40c\nmov     rax, [rbx+40h]                                                 ; +0x102, 0x18005a412\nmovss   xmm1, dword ptr [rax+rcx*4+0Ch]                                ; +0x106, 0x18005a416\nmulss   xmm1, dword ptr [rbx+80h]                                      ; +0x10c, 0x18005a41c\nmov     rax, [rbx+50h]                                                 ; +0x114, 0x18005a424\nmovss   dword ptr [rax+rcx*4+0Ch], xmm1                                ; +0x118, 0x18005a428\nadd     rcx, 4                                                         ; +0x11e, 0x18005a42e\ncmp     rcx, r8                                                        ; +0x122, 0x18005a432\njl      short loc_18005A3C0                                            ; +0x125, 0x18005a435\ncmp     rcx, rdx                                                       ; +0x127, 0x18005a437\njge     short loc_18005A45E                                            ; +0x12a, 0x18005a43a\nmov     rax, [rbx+40h]                                                 ; +0x12c, 0x18005a43c\nmovss   xmm0, dword ptr [rax+rcx*4]                                    ; +0x130, 0x18005a440\nmulss   xmm0, dword ptr [rbx+80h]                                      ; +0x135, 0x18005a445\nmov     rax, [rbx+50h]                                                 ; +0x13d, 0x18005a44d\nmovss   dword ptr [rax+rcx*4], xmm0                                    ; +0x141, 0x18005a451\ninc     rcx                                                            ; +0x146, 0x18005a456\ncmp     rcx, rdx                                                       ; +0x149, 0x18005a459\njl      short loc_18005A43C                                            ; +0x14c, 0x18005a45c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x14e, 0x18005a45e\nxor     eax, eax                                                       ; +0x153, 0x18005a463\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x155, 0x18005a465\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x15a, 0x18005a46a\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x15f, 0x18005a46f\nadd     rsp, 30h                                                       ; +0x164, 0x18005a474\npop     r14                                                            ; +0x168, 0x18005a478\nretn                                                                   ; +0x16a, 0x18005a47a", "xrefs": ["sub_1800FC980 @ 0x1800fccad", "<???> @ 0x1801f8f70"], "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"}