{"type": "func", "start": 6443071216, "end": 6443071377, "name": "sub_1800976F0", "pseudocode": "// \n// sub_1800976F0 from 0x1800976f0 to 0x180097791 (161 bytes)\n// \n// 2 xrefs:\n// > FMOD::DSP::getOutputChannelFormat @ 0x1800a2724\n// > <???> @ 0x1801faa04\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:47 +0000\n// \n\n__int64 __fastcall sub_1800976F0(__int64 a1, __int64 a2, int a3, int a4, _DWORD *a5, __int64 a6, __int64 a7)\n{\n  if ( a5 )\n    *a5 = 0;\n  if ( *(_QWORD *)(a1 + 288) && (*(_BYTE *)(a1 + 282) & 1) != 0 )\n  {\n    sub_1801023B0(*(_QWORD *)(a1 + 168), a2);\n    *(_QWORD *)(a1 + 176) = a1;\n    (*(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 288))(a1 + 176, 1, 0);\n    sub_1801023F0(*(_QWORD *)(a1 + 168));\n  }\n  return sub_1800977A0(a1, a3, a4, a6, a7, 0);\n}", "assembly": "; \n; sub_1800976F0 from 0x1800976f0 to 0x180097791 (161 bytes)\n; \n; 2 xrefs:\n; > FMOD::DSP::getOutputChannelFormat @ 0x1800a2724\n; > <???> @ 0x1801faa04\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:47 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800976f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800976f5\npush    rdi                                                            ; +0xa, 0x1800976fa\nsub     rsp, 30h                                                       ; +0xb, 0x1800976fb\nmov     rax, [rsp+38h+arg_20]                                          ; +0xf, 0x1800976ff\nmov     edi, r9d                                                       ; +0x14, 0x180097704\nmov     esi, r8d                                                       ; +0x17, 0x180097707\nmov     rbx, rcx                                                       ; +0x1a, 0x18009770a\ntest    rax, rax                                                       ; +0x1d, 0x18009770d\njz      short loc_180097718                                            ; +0x20, 0x180097710\nmov     dword ptr [rax], 0                                             ; +0x22, 0x180097712\ncmp     qword ptr [rcx+120h], 0                                        ; +0x28, 0x180097718\njz      short loc_18009775D                                            ; +0x30, 0x180097720\ntest    byte ptr [rcx+11Ah], 1                                         ; +0x32, 0x180097722\njz      short loc_18009775D                                            ; +0x39, 0x180097729\nmov     rcx, [rcx+0A8h]                                                ; +0x3b, 0x18009772b\ncall    sub_1801023B0                                                  ; +0x42, 0x180097732\nxor     r9d, r9d                                                       ; +0x47, 0x180097737\nlea     rcx, [rbx+0B0h]                                                ; +0x4a, 0x18009773a\nxor     r8d, r8d                                                       ; +0x51, 0x180097741\nmov     [rcx], rbx                                                     ; +0x54, 0x180097744\nlea     edx, [r9+1]                                                    ; +0x57, 0x180097747\ncall    qword ptr [rbx+120h]                                           ; +0x5b, 0x18009774b\nmov     rcx, [rbx+0A8h]                                                ; +0x61, 0x180097751\ncall    sub_1801023F0                                                  ; +0x68, 0x180097758\nmov     rax, [rsp+38h+arg_30]                                          ; +0x6d, 0x18009775d\nmov     r8d, edi                                                       ; +0x72, 0x180097762\nmov     r9, [rsp+38h+arg_28]                                           ; +0x75, 0x180097765\nmov     edx, esi                                                       ; +0x7a, 0x18009776a\nmov     [rsp+38h+arg_28], 0                                            ; +0x7c, 0x18009776c\nmov     rcx, rbx                                                       ; +0x85, 0x180097775\nmov     [rsp+38h+arg_20], rax                                          ; +0x88, 0x180097778\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8d, 0x18009777d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x92, 0x180097782\nadd     rsp, 30h                                                       ; +0x97, 0x180097787\npop     rdi                                                            ; +0x9b, 0x18009778b\njmp     sub_1800977A0                                                  ; +0x9c, 0x18009778c", "xrefs": ["FMOD::DSP::getOutputChannelFormat @ 0x1800a2724", "<???> @ 0x1801faa04"], "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"}