{"type": "func", "start": 6443070848, "end": 6443070997, "name": "sub_180097580", "pseudocode": "// \n// sub_180097580 from 0x180097580 to 0x180097615 (149 bytes)\n// \n// 3 xrefs:\n// > FMOD::DSP::getNumInputs @ 0x1800a22d6\n// > sub_1800DB2E0 @ 0x1800db619\n// > <???> @ 0x1801fa9ec\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_180097580(__int64 a1, _DWORD *a2, char a3, char a4)\n{\n  _DWORD *v6; // rsi\n  __int16 v9; // ax\n\n  v6 = a2;\n  if ( !a2 )\n    return 31;\n  if ( a4 )\n  {\n    LOBYTE(a2) = 1;\n    sub_1800FC980(*(_QWORD *)(a1 + 168), a2);\n    sub_1801021C0(*(_QWORD *)(a1 + 168), 1);\n  }\n  if ( a3 )\n    v9 = *(_WORD *)(a1 + 428);\n  else\n    v9 = *(_WORD *)(a1 + 424);\n  *v6 = v9;\n  if ( a4 )\n    sub_180102300(*(_QWORD *)(a1 + 168), 1);\n  return 0;\n}", "assembly": "; \n; sub_180097580 from 0x180097580 to 0x180097615 (149 bytes)\n; \n; 3 xrefs:\n; > FMOD::DSP::getNumInputs @ 0x1800a22d6\n; > sub_1800DB2E0 @ 0x1800db619\n; > <???> @ 0x1801fa9ec\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, 0x180097580\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180097585\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009758a\npush    rdi                                                            ; +0xf, 0x18009758f\nsub     rsp, 20h                                                       ; +0x10, 0x180097590\nmovzx   edi, r9b                                                       ; +0x14, 0x180097594\nmovzx   ebp, r8b                                                       ; +0x18, 0x180097598\nmov     rsi, rdx                                                       ; +0x1c, 0x18009759c\nmov     rbx, rcx                                                       ; +0x1f, 0x18009759f\ntest    rdx, rdx                                                       ; +0x22, 0x1800975a2\njnz     short loc_1800975AC                                            ; +0x25, 0x1800975a5\nlea     eax, [rdx+1Fh]                                                 ; +0x27, 0x1800975a7\njmp     short loc_180097600                                            ; +0x2a, 0x1800975aa\ntest    dil, dil                                                       ; +0x2c, 0x1800975ac\njz      short loc_1800975D0                                            ; +0x2f, 0x1800975af\nmov     rcx, [rcx+0A8h]                                                ; +0x31, 0x1800975b1\nmov     dl, 1                                                          ; +0x38, 0x1800975b8\ncall    sub_1800FC980                                                  ; +0x3a, 0x1800975ba\nmov     rcx, [rbx+0A8h]                                                ; +0x3f, 0x1800975bf\nmov     edx, 1                                                         ; +0x46, 0x1800975c6\ncall    sub_1801021C0                                                  ; +0x4b, 0x1800975cb\ntest    bpl, bpl                                                       ; +0x50, 0x1800975d0\njz      short loc_1800975DE                                            ; +0x53, 0x1800975d3\nmovzx   eax, word ptr [rbx+1ACh]                                       ; +0x55, 0x1800975d5\njmp     short loc_1800975E5                                            ; +0x5c, 0x1800975dc\nmovzx   eax, word ptr [rbx+1A8h]                                       ; +0x5e, 0x1800975de\ncwde                                                                   ; +0x65, 0x1800975e5\nmov     [rsi], eax                                                     ; +0x66, 0x1800975e6\ntest    dil, dil                                                       ; +0x68, 0x1800975e8\njz      short loc_1800975FE                                            ; +0x6b, 0x1800975eb\nmov     rcx, [rbx+0A8h]                                                ; +0x6d, 0x1800975ed\nmov     edx, 1                                                         ; +0x74, 0x1800975f4\ncall    sub_180102300                                                  ; +0x79, 0x1800975f9\nxor     eax, eax                                                       ; +0x7e, 0x1800975fe\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x180097600\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x85, 0x180097605\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8a, 0x18009760a\nadd     rsp, 20h                                                       ; +0x8f, 0x18009760f\npop     rdi                                                            ; +0x93, 0x180097613\nretn                                                                   ; +0x94, 0x180097614", "xrefs": ["FMOD::DSP::getNumInputs @ 0x1800a22d6", "sub_1800DB2E0 @ 0x1800db619", "<???> @ 0x1801fa9ec"], "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"}