{"type": "func", "start": 6442505296, "end": 6442505605, "name": "FMOD::ChannelControl::setDSPIndex", "pseudocode": "// \n// FMOD::ChannelControl::setDSPIndex from 0x18000d450 to 0x18000d585 (309 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_SetDSPIndex @ 0x1800c5299\n// > FMOD_Channel_SetDSPIndex @ 0x1800c58b9\n// > <???> @ 0x18017e2bc\n// > <???> @ 0x18017e2f0\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6a80\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 FMOD::ChannelControl::setDSPIndex(__int64 a1, __int64 a2, unsigned int a3)\n{\n  int v5; // r14d\n  unsigned int v6; // esi\n  int v7; // ebx\n  int v8; // eax\n  __int64 v10; // [rsp+30h] [rbp-148h] BYREF\n  __int64 v11; // [rsp+38h] [rbp-140h] BYREF\n  _BYTE v12[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v10 = 0;\n  v5 = a1;\n  v6 = sub_180012360(a1, &v11, &v10);\n  if ( (v6 || (v6 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v11 + 304LL))(v11, a2, a3)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F3230(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F2EC0(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 4, v5, (unsigned int)\"ChannelControl::setDSPIndex\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320();\n  return v6;\n}", "assembly": "; \n; FMOD::ChannelControl::setDSPIndex from 0x18000d450 to 0x18000d585 (309 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_SetDSPIndex @ 0x1800c5299\n; > FMOD_Channel_SetDSPIndex @ 0x1800c58b9\n; > <???> @ 0x18017e2bc\n; > <???> @ 0x18017e2f0\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6a80\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     r11, rsp                                                       ; +0x0, 0x18000d450\npush    rsi                                                            ; +0x3, 0x18000d453\nsub     rsp, 170h                                                      ; +0x4, 0x18000d454\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000d45b\nxor     rax, rsp                                                       ; +0x12, 0x18000d462\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000d465\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x18000d46d\nmov     rbx, rdx                                                       ; +0x21, 0x18000d471\nmov     [r11-18h], rbp                                                 ; +0x24, 0x18000d474\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x18000d478\nmov     ebp, r8d                                                       ; +0x2d, 0x18000d47d\nmov     [r11-28h], r14                                                 ; +0x30, 0x18000d480\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x18000d484\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000d489\nmov     r14, rcx                                                       ; +0x42, 0x18000d492\ncall    sub_180012360                                                  ; +0x45, 0x18000d495\nmov     esi, eax                                                       ; +0x4a, 0x18000d49a\ntest    eax, eax                                                       ; +0x4c, 0x18000d49c\njnz     short loc_18000D4BE                                            ; +0x4e, 0x18000d49e\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000d4a0\nmov     r8d, ebp                                                       ; +0x55, 0x18000d4a5\nmov     rdx, rbx                                                       ; +0x58, 0x18000d4a8\nmov     rax, [rcx]                                                     ; +0x5b, 0x18000d4ab\ncall    qword ptr [rax+130h]                                           ; +0x5e, 0x18000d4ae\nmov     esi, eax                                                       ; +0x64, 0x18000d4b4\ntest    eax, eax                                                       ; +0x66, 0x18000d4b6\njz      loc_18000D543                                                  ; +0x68, 0x18000d4b8\nmov     rax, cs:off_1801AED20                                          ; +0x6e, 0x18000d4be\ntest    byte ptr [rax+10h], 80h                                        ; +0x75, 0x18000d4c5\njz      short loc_18000D543                                            ; +0x79, 0x18000d4c9\nmov     [rsp+178h+var_20], rdi                                         ; +0x7b, 0x18000d4cb\nlea     rcx, [rsp+178h+var_138]                                        ; +0x83, 0x18000d4d3\nmov     edi, 100h                                                      ; +0x88, 0x18000d4d8\nmov     r8, rbx                                                        ; +0x8d, 0x18000d4dd\nmov     edx, edi                                                       ; +0x90, 0x18000d4e0\ncall    sub_1800F3230                                                  ; +0x92, 0x18000d4e2\nmovsxd  rbx, eax                                                       ; +0x97, 0x18000d4e7\nlea     rcx, [rsp+178h+var_138]                                        ; +0x9a, 0x18000d4ea\nmov     edx, edi                                                       ; +0x9f, 0x18000d4ef\nlea     r8, asc_18014572C; \", \"                                        ; +0xa1, 0x18000d4f1\nsub     edx, ebx                                                       ; +0xa8, 0x18000d4f8\nadd     rcx, rbx; void *                                               ; +0xaa, 0x18000d4fa\ncall    sub_1800F2F70                                                  ; +0xad, 0x18000d4fd\nadd     ebx, eax                                                       ; +0xb2, 0x18000d502\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb4, 0x18000d504\nmovsxd  rax, ebx                                                       ; +0xb9, 0x18000d509\nsub     edi, ebx                                                       ; +0xbc, 0x18000d50c\nadd     rcx, rax                                                       ; +0xbe, 0x18000d50e\nmov     edx, edi                                                       ; +0xc1, 0x18000d511\nmov     r8d, ebp                                                       ; +0xc3, 0x18000d513\ncall    sub_1800F2EC0                                                  ; +0xc6, 0x18000d516\nlea     rax, [rsp+178h+var_138]                                        ; +0xcb, 0x18000d51b\nmov     r8, r14                                                        ; +0xd0, 0x18000d520\nlea     r9, aChannelcontrol_43; \"ChannelControl::setDSPIndex\"          ; +0xd3, 0x18000d523\nmov     [rsp+178h+var_158], rax                                        ; +0xda, 0x18000d52a\nmov     edx, 4                                                         ; +0xdf, 0x18000d52f\nmov     ecx, esi                                                       ; +0xe4, 0x18000d534\ncall    sub_1800B20E0                                                  ; +0xe6, 0x18000d536\nmov     rdi, [rsp+178h+var_20]                                         ; +0xeb, 0x18000d53b\nmov     rcx, [rsp+178h+var_148]                                        ; +0xf3, 0x18000d543\nmov     r14, [rsp+178h+var_28]                                         ; +0xf8, 0x18000d548\nmov     rbp, [rsp+178h+var_18]                                         ; +0x100, 0x18000d550\nmov     rbx, [rsp+178h+var_10]                                         ; +0x108, 0x18000d558\ntest    rcx, rcx                                                       ; +0x110, 0x18000d560\njz      short loc_18000D56A                                            ; +0x113, 0x18000d563\ncall    sub_180102320                                                  ; +0x115, 0x18000d565\nmov     eax, esi                                                       ; +0x11a, 0x18000d56a\nmov     rcx, [rsp+178h+var_38]                                         ; +0x11c, 0x18000d56c\nxor     rcx, rsp; StackCookie                                          ; +0x124, 0x18000d574\ncall    __security_check_cookie                                        ; +0x127, 0x18000d577\nadd     rsp, 170h                                                      ; +0x12c, 0x18000d57c\npop     rsi                                                            ; +0x133, 0x18000d583\nretn                                                                   ; +0x134, 0x18000d584", "xrefs": ["FMOD_ChannelGroup_SetDSPIndex @ 0x1800c5299", "FMOD_Channel_SetDSPIndex @ 0x1800c58b9", "<???> @ 0x18017e2bc", "<???> @ 0x18017e2f0", "<???> @ 0x180194348", "<???> @ 0x1801f6a80"], "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"}