{"type": "func", "start": 6443167760, "end": 6443167954, "name": "FMOD::System::getSpeakerModeChannels", "pseudocode": "// \n// FMOD::System::getSpeakerModeChannels from 0x1800af010 to 0x1800af0d2 (194 bytes)\n// \n// 3 xrefs:\n// > FMOD_System_GetSpeakerModeChannels @ 0x1800c6c69\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc714\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::getSpeakerModeChannels(__int64 a1, unsigned int a2, __int64 a3)\n{\n  int v5; // edi\n  unsigned int v6; // ebx\n  __int64 v8; // [rsp+30h] [rbp-138h] BYREF\n  __int64 v9; // [rsp+38h] [rbp-130h] BYREF\n  _BYTE v10[256]; // [rsp+40h] [rbp-128h] BYREF\n\n  v8 = 0;\n  v5 = a1;\n  v6 = FMOD::SystemI::validate(a1, &v9, &v8);\n  if ( (v6 || (v6 = sub_180101100(v9, a2, a3)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v10[0] = 0;\n    sub_1800B20E0(v6, 1, v5, (unsigned int)\"System::getSpeakerModeChannels\", (__int64)v10);\n  }\n  if ( v8 )\n    sub_180102320(v8);\n  return v6;\n}", "assembly": "; \n; FMOD::System::getSpeakerModeChannels from 0x1800af010 to 0x1800af0d2 (194 bytes)\n; \n; 3 xrefs:\n; > FMOD_System_GetSpeakerModeChannels @ 0x1800c6c69\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc714\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_18], rbx                                              ; +0x0, 0x1800af010\npush    rbp                                                            ; +0x5, 0x1800af015\npush    rsi                                                            ; +0x6, 0x1800af016\npush    rdi                                                            ; +0x7, 0x1800af017\nsub     rsp, 150h                                                      ; +0x8, 0x1800af018\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800af01f\nxor     rax, rsp                                                       ; +0x16, 0x1800af026\nmov     [rsp+168h+var_28], rax                                         ; +0x19, 0x1800af029\nmov     rbp, r8                                                        ; +0x21, 0x1800af031\nmov     [rsp+168h+var_138], 0                                          ; +0x24, 0x1800af034\nmov     esi, edx                                                       ; +0x2d, 0x1800af03d\nlea     r8, [rsp+168h+var_138]                                         ; +0x2f, 0x1800af03f\nlea     rdx, [rsp+168h+var_130]                                        ; +0x34, 0x1800af044\nmov     rdi, rcx                                                       ; +0x39, 0x1800af049\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x3c, 0x1800af04c\nmov     ebx, eax                                                       ; +0x41, 0x1800af051\ntest    eax, eax                                                       ; +0x43, 0x1800af053\njnz     short loc_1800AF06C                                            ; +0x45, 0x1800af055\nmov     rcx, [rsp+168h+var_130]                                        ; +0x47, 0x1800af057\nmov     r8, rbp                                                        ; +0x4c, 0x1800af05c\nmov     edx, esi                                                       ; +0x4f, 0x1800af05f\ncall    sub_180101100                                                  ; +0x51, 0x1800af061\nmov     ebx, eax                                                       ; +0x56, 0x1800af066\ntest    eax, eax                                                       ; +0x58, 0x1800af068\njz      short loc_1800AF09E                                            ; +0x5a, 0x1800af06a\nmov     rax, cs:off_1801AED20                                          ; +0x5c, 0x1800af06c\ntest    byte ptr [rax+10h], 80h                                        ; +0x63, 0x1800af073\njz      short loc_1800AF09E                                            ; +0x67, 0x1800af077\nlea     rax, [rsp+168h+var_128]                                        ; +0x69, 0x1800af079\nmov     [rsp+168h+var_128], 0                                          ; +0x6e, 0x1800af07e\nlea     r9, aSystemGetspeak; \"System::getSpeakerModeChannels\"          ; +0x73, 0x1800af083\nmov     [rsp+168h+var_148], rax                                        ; +0x7a, 0x1800af08a\nmov     r8, rdi                                                        ; +0x7f, 0x1800af08f\nmov     edx, 1                                                         ; +0x82, 0x1800af092\nmov     ecx, ebx                                                       ; +0x87, 0x1800af097\ncall    sub_1800B20E0                                                  ; +0x89, 0x1800af099\nmov     rcx, [rsp+168h+var_138]                                        ; +0x8e, 0x1800af09e\ntest    rcx, rcx                                                       ; +0x93, 0x1800af0a3\njz      short loc_1800AF0AD                                            ; +0x96, 0x1800af0a6\ncall    sub_180102320                                                  ; +0x98, 0x1800af0a8\nmov     eax, ebx                                                       ; +0x9d, 0x1800af0ad\nmov     rcx, [rsp+168h+var_28]                                         ; +0x9f, 0x1800af0af\nxor     rcx, rsp; StackCookie                                          ; +0xa7, 0x1800af0b7\ncall    __security_check_cookie                                        ; +0xaa, 0x1800af0ba\nmov     rbx, [rsp+168h+arg_18]                                         ; +0xaf, 0x1800af0bf\nadd     rsp, 150h                                                      ; +0xb7, 0x1800af0c7\npop     rdi                                                            ; +0xbe, 0x1800af0ce\npop     rsi                                                            ; +0xbf, 0x1800af0cf\npop     rbp                                                            ; +0xc0, 0x1800af0d0\nretn                                                                   ; +0xc1, 0x1800af0d1", "xrefs": ["FMOD_System_GetSpeakerModeChannels @ 0x1800c6c69", "<???> @ 0x180194348", "<???> @ 0x1801fc714"], "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"}