{"type": "func", "start": 6443071008, "end": 6443071157, "name": "sub_180097620", "pseudocode": "// \n// sub_180097620 from 0x180097620 to 0x1800976b5 (149 bytes)\n// \n// 5 xrefs:\n// > sub_18007C130 @ 0x18007c1dd\n// > FMOD::DSP::getNumOutputs @ 0x1800a23b6\n// > sub_1800E1F40 @ 0x1800e223f\n// > sub_1800E3A10 @ 0x1800e3b2f\n// > <???> @ 0x1801fa9f8\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\n__int64 __fastcall sub_180097620(__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 + 430);\n  else\n    v9 = *(_WORD *)(a1 + 426);\n  *v6 = v9;\n  if ( a4 )\n    sub_180102300(*(_QWORD *)(a1 + 168), 1);\n  return 0;\n}", "assembly": "; \n; sub_180097620 from 0x180097620 to 0x1800976b5 (149 bytes)\n; \n; 5 xrefs:\n; > sub_18007C130 @ 0x18007c1dd\n; > FMOD::DSP::getNumOutputs @ 0x1800a23b6\n; > sub_1800E1F40 @ 0x1800e223f\n; > sub_1800E3A10 @ 0x1800e3b2f\n; > <???> @ 0x1801fa9f8\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     [rsp+arg_0], rbx                                               ; +0x0, 0x180097620\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180097625\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009762a\npush    rdi                                                            ; +0xf, 0x18009762f\nsub     rsp, 20h                                                       ; +0x10, 0x180097630\nmovzx   edi, r9b                                                       ; +0x14, 0x180097634\nmovzx   ebp, r8b                                                       ; +0x18, 0x180097638\nmov     rsi, rdx                                                       ; +0x1c, 0x18009763c\nmov     rbx, rcx                                                       ; +0x1f, 0x18009763f\ntest    rdx, rdx                                                       ; +0x22, 0x180097642\njnz     short loc_18009764C                                            ; +0x25, 0x180097645\nlea     eax, [rdx+1Fh]                                                 ; +0x27, 0x180097647\njmp     short loc_1800976A0                                            ; +0x2a, 0x18009764a\ntest    dil, dil                                                       ; +0x2c, 0x18009764c\njz      short loc_180097670                                            ; +0x2f, 0x18009764f\nmov     rcx, [rcx+0A8h]                                                ; +0x31, 0x180097651\nmov     dl, 1                                                          ; +0x38, 0x180097658\ncall    sub_1800FC980                                                  ; +0x3a, 0x18009765a\nmov     rcx, [rbx+0A8h]                                                ; +0x3f, 0x18009765f\nmov     edx, 1                                                         ; +0x46, 0x180097666\ncall    sub_1801021C0                                                  ; +0x4b, 0x18009766b\ntest    bpl, bpl                                                       ; +0x50, 0x180097670\njz      short loc_18009767E                                            ; +0x53, 0x180097673\nmovzx   eax, word ptr [rbx+1AEh]                                       ; +0x55, 0x180097675\njmp     short loc_180097685                                            ; +0x5c, 0x18009767c\nmovzx   eax, word ptr [rbx+1AAh]                                       ; +0x5e, 0x18009767e\ncwde                                                                   ; +0x65, 0x180097685\nmov     [rsi], eax                                                     ; +0x66, 0x180097686\ntest    dil, dil                                                       ; +0x68, 0x180097688\njz      short loc_18009769E                                            ; +0x6b, 0x18009768b\nmov     rcx, [rbx+0A8h]                                                ; +0x6d, 0x18009768d\nmov     edx, 1                                                         ; +0x74, 0x180097694\ncall    sub_180102300                                                  ; +0x79, 0x180097699\nxor     eax, eax                                                       ; +0x7e, 0x18009769e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x1800976a0\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x85, 0x1800976a5\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8a, 0x1800976aa\nadd     rsp, 20h                                                       ; +0x8f, 0x1800976af\npop     rdi                                                            ; +0x93, 0x1800976b3\nretn                                                                   ; +0x94, 0x1800976b4", "xrefs": ["sub_18007C130 @ 0x18007c1dd", "FMOD::DSP::getNumOutputs @ 0x1800a23b6", "sub_1800E1F40 @ 0x1800e223f", "sub_1800E3A10 @ 0x1800e3b2f", "<???> @ 0x1801fa9f8"], "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"}