{"type": "func", "start": 6443178144, "end": 6443178350, "name": "FMOD::System::setSoftwareChannels", "pseudocode": "// \n// FMOD::System::setSoftwareChannels from 0x1800b18a0 to 0x1800b196e (206 bytes)\n// \n// 3 xrefs:\n// > FMOD_System_SetSoftwareChannels @ 0x1800c6f39\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fcbdc\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::System::setSoftwareChannels(__int64 a1, unsigned int a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-120h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v6 = 0;\n  v3 = a1;\n  v4 = FMOD::SystemI::validate(a1, &v7, &v6);\n  if ( (v4 || (v4 = sub_1800E78C0(v7, a2)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F2EC0(v8, 256, a2);\n    sub_1800B20E0(v4, 1, v3, (unsigned int)\"System::setSoftwareChannels\", (__int64)v8);\n  }\n  if ( v6 )\n    sub_180102320(v6);\n  return v4;\n}", "assembly": "; \n; FMOD::System::setSoftwareChannels from 0x1800b18a0 to 0x1800b196e (206 bytes)\n; \n; 3 xrefs:\n; > FMOD_System_SetSoftwareChannels @ 0x1800c6f39\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fcbdc\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_10], rbx                                              ; +0x0, 0x1800b18a0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800b18a5\npush    rdi                                                            ; +0xa, 0x1800b18aa\nsub     rsp, 150h                                                      ; +0xb, 0x1800b18ab\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800b18b2\nxor     rax, rsp                                                       ; +0x19, 0x1800b18b9\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x1800b18bc\nmov     edi, edx                                                       ; +0x24, 0x1800b18c4\nmov     [rsp+158h+var_128], 0                                          ; +0x26, 0x1800b18c6\nlea     rdx, [rsp+158h+var_120]                                        ; +0x2f, 0x1800b18cf\nmov     rsi, rcx                                                       ; +0x34, 0x1800b18d4\nlea     r8, [rsp+158h+var_128]                                         ; +0x37, 0x1800b18d7\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x3c, 0x1800b18dc\nmov     ebx, eax                                                       ; +0x41, 0x1800b18e1\ntest    eax, eax                                                       ; +0x43, 0x1800b18e3\njnz     short loc_1800B18F9                                            ; +0x45, 0x1800b18e5\nmov     rcx, [rsp+158h+var_120]                                        ; +0x47, 0x1800b18e7\nmov     edx, edi                                                       ; +0x4c, 0x1800b18ec\ncall    sub_1800E78C0                                                  ; +0x4e, 0x1800b18ee\nmov     ebx, eax                                                       ; +0x53, 0x1800b18f3\ntest    eax, eax                                                       ; +0x55, 0x1800b18f5\njz      short loc_1800B1938                                            ; +0x57, 0x1800b18f7\nmov     rax, cs:off_1801AED20                                          ; +0x59, 0x1800b18f9\ntest    byte ptr [rax+10h], 80h                                        ; +0x60, 0x1800b1900\njz      short loc_1800B1938                                            ; +0x64, 0x1800b1904\nmov     r8d, edi                                                       ; +0x66, 0x1800b1906\nlea     rcx, [rsp+158h+var_118]                                        ; +0x69, 0x1800b1909\nmov     edx, 100h                                                      ; +0x6e, 0x1800b190e\ncall    sub_1800F2EC0                                                  ; +0x73, 0x1800b1913\nlea     rax, [rsp+158h+var_118]                                        ; +0x78, 0x1800b1918\nmov     r8, rsi                                                        ; +0x7d, 0x1800b191d\nlea     r9, aSystemSetsoftw; \"System::setSoftwareChannels\"             ; +0x80, 0x1800b1920\nmov     [rsp+158h+var_138], rax                                        ; +0x87, 0x1800b1927\nmov     edx, 1                                                         ; +0x8c, 0x1800b192c\nmov     ecx, ebx                                                       ; +0x91, 0x1800b1931\ncall    sub_1800B20E0                                                  ; +0x93, 0x1800b1933\nmov     rcx, [rsp+158h+var_128]                                        ; +0x98, 0x1800b1938\ntest    rcx, rcx                                                       ; +0x9d, 0x1800b193d\njz      short loc_1800B1947                                            ; +0xa0, 0x1800b1940\ncall    sub_180102320                                                  ; +0xa2, 0x1800b1942\nmov     eax, ebx                                                       ; +0xa7, 0x1800b1947\nmov     rcx, [rsp+158h+var_18]                                         ; +0xa9, 0x1800b1949\nxor     rcx, rsp; StackCookie                                          ; +0xb1, 0x1800b1951\ncall    __security_check_cookie                                        ; +0xb4, 0x1800b1954\nlea     r11, [rsp+158h+var_8]                                          ; +0xb9, 0x1800b1959\nmov     rbx, [r11+20h]                                                 ; +0xc1, 0x1800b1961\nmov     rsi, [r11+28h]                                                 ; +0xc5, 0x1800b1965\nmov     rsp, r11                                                       ; +0xc9, 0x1800b1969\npop     rdi                                                            ; +0xcc, 0x1800b196c\nretn                                                                   ; +0xcd, 0x1800b196d", "xrefs": ["FMOD_System_SetSoftwareChannels @ 0x1800c6f39", "<???> @ 0x180194348", "<???> @ 0x1801fcbdc"], "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"}