{"type": "func", "start": 6443395120, "end": 6443395450, "name": "sub_1800E6830", "pseudocode": "// \n// sub_1800E6830 from 0x1800e6830 to 0x1800e697a (330 bytes)\n// \n// 5 xrefs:\n// > FMOD::System::registerDSP @ 0x1800b04db\n// > <???> @ 0x18018d570\n// > <???> @ 0x18018d580\n// > <???> @ 0x18018d594\n// > <???> @ 0x1801ffe40\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:54:18 +0000\n// \n\n__int64 __fastcall sub_1800E6830(__int64 a1, __int64 a2, _DWORD *a3)\n{\n  __int64 result; // rax\n  int v7; // ebx\n  __int64 v8; // rcx\n  int v9; // [rsp+30h] [rbp-68h] BYREF\n  _QWORD *v10; // [rsp+38h] [rbp-60h] BYREF\n  __int128 v11; // [rsp+40h] [rbp-58h] BYREF\n  __int128 v12; // [rsp+50h] [rbp-48h]\n  __int128 v13; // [rsp+60h] [rbp-38h]\n  __int128 v14; // [rsp+70h] [rbp-28h]\n  int v15; // [rsp+A8h] [rbp+10h] BYREF\n  int v16; // [rsp+B8h] [rbp+20h] BYREF\n\n  if ( !a2 )\n    return 31;\n  if ( *(_BYTE *)(a1 + 9) || (result = sub_1800E7B20(), !(_DWORD)result) )\n  {\n    if ( a3 )\n      *a3 = 0;\n    result = sub_1800D7CF0(*(_QWORD *)(a1 + 69128), &v15);\n    if ( !(_DWORD)result )\n    {\n      v7 = 0;\n      if ( v15 <= 0 )\n      {\nLABEL_13:\n        v8 = *(_QWORD *)(a1 + 69128);\n        v12 = 0;\n        LODWORD(v12) = 544;\n        v11 = 0;\n        v13 = 0;\n        v14 = 0;\n        result = sub_1800D9050(v8, (__int64)&v11, a2, &v9, 0);\n        if ( !(_DWORD)result )\n        {\n          if ( a3 )\n            *a3 = v9;\n          return 0;\n        }\n      }\n      else\n      {\n        while ( 1 )\n        {\n          result = sub_1800D7C00(*(_QWORD *)(a1 + 69128), v7, &v16);\n          if ( (_DWORD)result )\n            break;\n          result = sub_1800D7B90(*(_QWORD *)(a1 + 69128), v16, &v10);\n          if ( (_DWORD)result )\n            break;\n          if ( !(unsigned int)sub_1800B7CF0(*v10 + 4LL, (char *)(a2 + 4)) )\n            return 8;\n          if ( ++v7 >= v15 )\n            goto LABEL_13;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E6830 from 0x1800e6830 to 0x1800e697a (330 bytes)\n; \n; 5 xrefs:\n; > FMOD::System::registerDSP @ 0x1800b04db\n; > <???> @ 0x18018d570\n; > <???> @ 0x18018d580\n; > <???> @ 0x18018d594\n; > <???> @ 0x1801ffe40\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:54:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x1800e6830\npush    rsi                                                            ; +0x2, 0x1800e6832\npush    rdi                                                            ; +0x3, 0x1800e6833\nsub     rsp, 80h                                                       ; +0x4, 0x1800e6834\nmov     rsi, r8                                                        ; +0xb, 0x1800e683b\nmov     rbp, rdx                                                       ; +0xe, 0x1800e683e\nmov     rdi, rcx                                                       ; +0x11, 0x1800e6841\ntest    rdx, rdx                                                       ; +0x14, 0x1800e6844\njnz     short loc_1800E6857                                            ; +0x17, 0x1800e6847\nlea     eax, [rdx+1Fh]                                                 ; +0x19, 0x1800e6849\nadd     rsp, 80h                                                       ; +0x1c, 0x1800e684c\npop     rdi                                                            ; +0x23, 0x1800e6853\npop     rsi                                                            ; +0x24, 0x1800e6854\npop     rbp                                                            ; +0x25, 0x1800e6855\nretn                                                                   ; +0x26, 0x1800e6856\ncmp     byte ptr [rcx+9], 0                                            ; +0x27, 0x1800e6857\njnz     short loc_1800E686A                                            ; +0x2b, 0x1800e685b\ncall    sub_1800E7B20                                                  ; +0x2d, 0x1800e685d\ntest    eax, eax                                                       ; +0x32, 0x1800e6862\njnz     loc_1800E6968                                                  ; +0x34, 0x1800e6864\ntest    rsi, rsi                                                       ; +0x3a, 0x1800e686a\njz      short loc_1800E6875                                            ; +0x3d, 0x1800e686d\nmov     dword ptr [rsi], 0                                             ; +0x3f, 0x1800e686f\nmov     rcx, [rdi+10E08h]                                              ; +0x45, 0x1800e6875\nlea     rdx, [rsp+98h+arg_8]                                           ; +0x4c, 0x1800e687c\ncall    sub_1800D7CF0                                                  ; +0x54, 0x1800e6884\ntest    eax, eax                                                       ; +0x59, 0x1800e6889\njnz     loc_1800E6968                                                  ; +0x5b, 0x1800e688b\nmov     [rsp+98h+arg_0], rbx                                           ; +0x61, 0x1800e6891\nxor     ebx, ebx                                                       ; +0x69, 0x1800e6899\ncmp     [rsp+98h+arg_8], ebx                                           ; +0x6b, 0x1800e689b\njle     short loc_1800E690E                                            ; +0x72, 0x1800e68a2\nnop     dword ptr [rax+00h]                                            ; +0x74, 0x1800e68a4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x78, 0x1800e68a8\nmov     rcx, [rdi+10E08h]                                              ; +0x80, 0x1800e68b0\nlea     r8, [rsp+98h+arg_18]                                           ; +0x87, 0x1800e68b7\nmov     edx, ebx                                                       ; +0x8f, 0x1800e68bf\ncall    sub_1800D7C00                                                  ; +0x91, 0x1800e68c1\ntest    eax, eax                                                       ; +0x96, 0x1800e68c6\njnz     loc_1800E6960                                                  ; +0x98, 0x1800e68c8\nmov     edx, [rsp+98h+arg_18]                                          ; +0x9e, 0x1800e68ce\nlea     r8, [rsp+98h+var_60]                                           ; +0xa5, 0x1800e68d5\nmov     rcx, [rdi+10E08h]                                              ; +0xaa, 0x1800e68da\ncall    sub_1800D7B90                                                  ; +0xb1, 0x1800e68e1\ntest    eax, eax                                                       ; +0xb6, 0x1800e68e6\njnz     short loc_1800E6960                                            ; +0xb8, 0x1800e68e8\nmov     rax, [rsp+98h+var_60]                                          ; +0xba, 0x1800e68ea\nlea     rdx, [rbp+4]                                                   ; +0xbf, 0x1800e68ef\nmov     rcx, [rax]                                                     ; +0xc3, 0x1800e68f3\nadd     rcx, 4                                                         ; +0xc6, 0x1800e68f6\ncall    sub_1800B7CF0                                                  ; +0xca, 0x1800e68fa\ntest    eax, eax                                                       ; +0xcf, 0x1800e68ff\njz      short loc_1800E6973                                            ; +0xd1, 0x1800e6901\ninc     ebx                                                            ; +0xd3, 0x1800e6903\ncmp     ebx, [rsp+98h+arg_8]                                           ; +0xd5, 0x1800e6905\njl      short loc_1800E68B0                                            ; +0xdc, 0x1800e690c\nmov     rcx, [rdi+10E08h]                                              ; +0xde, 0x1800e690e\nlea     r9, [rsp+98h+var_68]                                           ; +0xe5, 0x1800e6915\nxorps   xmm0, xmm0                                                     ; +0xea, 0x1800e691a\nmov     [rsp+98h+var_78], 0                                            ; +0xed, 0x1800e691d\nmovups  [rsp+98h+var_48], xmm0                                         ; +0xf6, 0x1800e6926\nmov     r8, rbp                                                        ; +0xfb, 0x1800e692b\nmov     dword ptr [rsp+98h+var_48], 220h                               ; +0xfe, 0x1800e692e\nlea     rdx, [rsp+98h+var_58]                                          ; +0x106, 0x1800e6936\nmovups  [rsp+98h+var_58], xmm0                                         ; +0x10b, 0x1800e693b\nmovups  [rsp+98h+var_38], xmm0                                         ; +0x110, 0x1800e6940\nmovups  [rsp+98h+var_28], xmm0                                         ; +0x115, 0x1800e6945\ncall    sub_1800D9050                                                  ; +0x11a, 0x1800e694a\ntest    eax, eax                                                       ; +0x11f, 0x1800e694f\njnz     short loc_1800E6960                                            ; +0x121, 0x1800e6951\ntest    rsi, rsi                                                       ; +0x123, 0x1800e6953\njz      short loc_1800E695E                                            ; +0x126, 0x1800e6956\nmov     eax, [rsp+98h+var_68]                                          ; +0x128, 0x1800e6958\nmov     [rsi], eax                                                     ; +0x12c, 0x1800e695c\nxor     eax, eax                                                       ; +0x12e, 0x1800e695e\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x130, 0x1800e6960\nadd     rsp, 80h                                                       ; +0x138, 0x1800e6968\npop     rdi                                                            ; +0x13f, 0x1800e696f\npop     rsi                                                            ; +0x140, 0x1800e6970\npop     rbp                                                            ; +0x141, 0x1800e6971\nretn                                                                   ; +0x142, 0x1800e6972\nmov     eax, 8                                                         ; +0x143, 0x1800e6973\njmp     short loc_1800E6960                                            ; +0x148, 0x1800e6978", "xrefs": ["FMOD::System::registerDSP @ 0x1800b04db", "<???> @ 0x18018d570", "<???> @ 0x18018d580", "<???> @ 0x18018d594", "<???> @ 0x1801ffe40"], "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"}