; ; FMOD::System::getSpeakerModeChannels from 0x1800af010 to 0x1800af0d2 (194 bytes) ; ; 3 xrefs: ; > FMOD_System_GetSpeakerModeChannels @ 0x1800c6c69 ; > @ 0x180194348 ; > @ 0x1801fc714 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_18], rbx ; +0x0, 0x1800af010 push rbp ; +0x5, 0x1800af015 push rsi ; +0x6, 0x1800af016 push rdi ; +0x7, 0x1800af017 sub rsp, 150h ; +0x8, 0x1800af018 mov rax, cs:__security_cookie ; +0xf, 0x1800af01f xor rax, rsp ; +0x16, 0x1800af026 mov [rsp+168h+var_28], rax ; +0x19, 0x1800af029 mov rbp, r8 ; +0x21, 0x1800af031 mov [rsp+168h+var_138], 0 ; +0x24, 0x1800af034 mov esi, edx ; +0x2d, 0x1800af03d lea r8, [rsp+168h+var_138] ; +0x2f, 0x1800af03f lea rdx, [rsp+168h+var_130] ; +0x34, 0x1800af044 mov rdi, rcx ; +0x39, 0x1800af049 call ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x3c, 0x1800af04c mov ebx, eax ; +0x41, 0x1800af051 test eax, eax ; +0x43, 0x1800af053 jnz short loc_1800AF06C ; +0x45, 0x1800af055 mov rcx, [rsp+168h+var_130] ; +0x47, 0x1800af057 mov r8, rbp ; +0x4c, 0x1800af05c mov edx, esi ; +0x4f, 0x1800af05f call sub_180101100 ; +0x51, 0x1800af061 mov ebx, eax ; +0x56, 0x1800af066 test eax, eax ; +0x58, 0x1800af068 jz short loc_1800AF09E ; +0x5a, 0x1800af06a mov rax, cs:off_1801AED20 ; +0x5c, 0x1800af06c test byte ptr [rax+10h], 80h ; +0x63, 0x1800af073 jz short loc_1800AF09E ; +0x67, 0x1800af077 lea rax, [rsp+168h+var_128] ; +0x69, 0x1800af079 mov [rsp+168h+var_128], 0 ; +0x6e, 0x1800af07e lea r9, aSystemGetspeak; "System::getSpeakerModeChannels" ; +0x73, 0x1800af083 mov [rsp+168h+var_148], rax ; +0x7a, 0x1800af08a mov r8, rdi ; +0x7f, 0x1800af08f mov edx, 1 ; +0x82, 0x1800af092 mov ecx, ebx ; +0x87, 0x1800af097 call sub_1800B20E0 ; +0x89, 0x1800af099 mov rcx, [rsp+168h+var_138] ; +0x8e, 0x1800af09e test rcx, rcx ; +0x93, 0x1800af0a3 jz short loc_1800AF0AD ; +0x96, 0x1800af0a6 call sub_180102320 ; +0x98, 0x1800af0a8 mov eax, ebx ; +0x9d, 0x1800af0ad mov rcx, [rsp+168h+var_28] ; +0x9f, 0x1800af0af xor rcx, rsp; StackCookie ; +0xa7, 0x1800af0b7 call __security_check_cookie ; +0xaa, 0x1800af0ba mov rbx, [rsp+168h+arg_18] ; +0xaf, 0x1800af0bf add rsp, 150h ; +0xb7, 0x1800af0c7 pop rdi ; +0xbe, 0x1800af0ce pop rsi ; +0xbf, 0x1800af0cf pop rbp ; +0xc0, 0x1800af0d0 retn ; +0xc1, 0x1800af0d1