; ; FMOD::Sound::getMusicNumChannels from 0x1800a7bf0 to 0x1800a7d02 (274 bytes) ; ; 3 xrefs: ; > FMOD_Sound_GetMusicNumChannels @ 0x1800c65e9 ; > @ 0x180194348 ; > @ 0x1801fba54 ; ; 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_10], rbx ; +0x0, 0x1800a7bf0 mov [rsp+arg_18], rsi ; +0x5, 0x1800a7bf5 push rdi ; +0xa, 0x1800a7bfa sub rsp, 150h ; +0xb, 0x1800a7bfb mov rax, cs:__security_cookie ; +0x12, 0x1800a7c02 xor rax, rsp ; +0x19, 0x1800a7c09 mov [rsp+158h+var_18], rax ; +0x1c, 0x1800a7c0c mov rdi, rdx ; +0x24, 0x1800a7c14 mov [rsp+158h+var_120], 0 ; +0x27, 0x1800a7c17 lea rdx, [rsp+158h+var_128] ; +0x30, 0x1800a7c20 mov rsi, rcx ; +0x35, 0x1800a7c25 lea r8, [rsp+158h+var_120] ; +0x38, 0x1800a7c28 call sub_1800E1460 ; +0x3d, 0x1800a7c2d mov ebx, eax ; +0x42, 0x1800a7c32 test eax, eax ; +0x44, 0x1800a7c34 jnz short loc_1800A7C88 ; +0x46, 0x1800a7c36 mov rax, [rsp+158h+var_128] ; +0x48, 0x1800a7c38 mov ecx, [rax+110h] ; +0x4d, 0x1800a7c3d nop ; +0x53, 0x1800a7c43 test ecx, ecx ; +0x54, 0x1800a7c44 jz short loc_1800A7C71 ; +0x56, 0x1800a7c46 mov rax, [rsp+158h+var_128] ; +0x58, 0x1800a7c48 mov ecx, [rax+110h] ; +0x5d, 0x1800a7c4d nop ; +0x63, 0x1800a7c53 cmp ecx, 7 ; +0x64, 0x1800a7c54 jz short loc_1800A7C71 ; +0x67, 0x1800a7c57 mov rax, [rsp+158h+var_128] ; +0x69, 0x1800a7c59 mov ecx, [rax+110h] ; +0x6e, 0x1800a7c5e nop ; +0x74, 0x1800a7c64 cmp ecx, 5 ; +0x75, 0x1800a7c65 jz short loc_1800A7C71 ; +0x78, 0x1800a7c68 mov ebx, 2Eh ; '.' ; +0x7a, 0x1800a7c6a jmp short loc_1800A7C88 ; +0x7f, 0x1800a7c6f mov rcx, [rsp+158h+var_128] ; +0x81, 0x1800a7c71 mov rdx, rdi ; +0x86, 0x1800a7c76 mov rax, [rcx] ; +0x89, 0x1800a7c79 call qword ptr [rax+148h] ; +0x8c, 0x1800a7c7c mov ebx, eax ; +0x92, 0x1800a7c82 test eax, eax ; +0x94, 0x1800a7c84 jz short loc_1800A7CC7 ; +0x96, 0x1800a7c86 mov rax, cs:off_1801AED20 ; +0x98, 0x1800a7c88 test byte ptr [rax+10h], 80h ; +0x9f, 0x1800a7c8f jz short loc_1800A7CC7 ; +0xa3, 0x1800a7c93 mov r8, rdi ; +0xa5, 0x1800a7c95 lea rcx, [rsp+158h+var_118] ; +0xa8, 0x1800a7c98 mov edx, 100h ; +0xad, 0x1800a7c9d call sub_1800F3020 ; +0xb2, 0x1800a7ca2 lea rax, [rsp+158h+var_118] ; +0xb7, 0x1800a7ca7 mov r8, rsi ; +0xbc, 0x1800a7cac lea r9, aSoundGetmusicn; "Sound::getMusicNumChannels" ; +0xbf, 0x1800a7caf mov [rsp+158h+var_138], rax ; +0xc6, 0x1800a7cb6 mov edx, 5 ; +0xcb, 0x1800a7cbb mov ecx, ebx ; +0xd0, 0x1800a7cc0 call sub_1800B20E0 ; +0xd2, 0x1800a7cc2 mov rcx, [rsp+158h+var_120] ; +0xd7, 0x1800a7cc7 test rcx, rcx ; +0xdc, 0x1800a7ccc jz short loc_1800A7CDB ; +0xdf, 0x1800a7ccf mov edx, 0Ch ; +0xe1, 0x1800a7cd1 call sub_180102300 ; +0xe6, 0x1800a7cd6 mov eax, ebx ; +0xeb, 0x1800a7cdb mov rcx, [rsp+158h+var_18] ; +0xed, 0x1800a7cdd xor rcx, rsp; StackCookie ; +0xf5, 0x1800a7ce5 call __security_check_cookie ; +0xf8, 0x1800a7ce8 lea r11, [rsp+158h+var_8] ; +0xfd, 0x1800a7ced mov rbx, [r11+20h] ; +0x105, 0x1800a7cf5 mov rsi, [r11+28h] ; +0x109, 0x1800a7cf9 mov rsp, r11 ; +0x10d, 0x1800a7cfd pop rdi ; +0x110, 0x1800a7d00 retn ; +0x111, 0x1800a7d01