; ; FMOD::Sound::setLoopCount from 0x1800a9ab0 to 0x1800a9baf (255 bytes) ; ; 3 xrefs: ; > FMOD_Sound_SetLoopCount @ 0x1800c67a9 ; > @ 0x180194348 ; > @ 0x1801fbda8 ; ; 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, 0x1800a9ab0 mov [rsp+arg_18], rsi ; +0x5, 0x1800a9ab5 push rdi ; +0xa, 0x1800a9aba sub rsp, 150h ; +0xb, 0x1800a9abb mov rax, cs:__security_cookie ; +0x12, 0x1800a9ac2 xor rax, rsp ; +0x19, 0x1800a9ac9 mov [rsp+158h+var_18], rax ; +0x1c, 0x1800a9acc mov edi, edx ; +0x24, 0x1800a9ad4 mov [rsp+158h+var_120], 0 ; +0x26, 0x1800a9ad6 lea rdx, [rsp+158h+var_128] ; +0x2f, 0x1800a9adf mov rsi, rcx ; +0x34, 0x1800a9ae4 lea r8, [rsp+158h+var_120] ; +0x37, 0x1800a9ae7 call sub_1800E1460 ; +0x3c, 0x1800a9aec mov ebx, eax ; +0x41, 0x1800a9af1 test eax, eax ; +0x43, 0x1800a9af3 jnz short loc_1800A9B35 ; +0x45, 0x1800a9af5 mov rax, [rsp+158h+var_128] ; +0x47, 0x1800a9af7 mov ecx, [rax+110h] ; +0x4c, 0x1800a9afc nop ; +0x52, 0x1800a9b02 test ecx, ecx ; +0x53, 0x1800a9b03 jz short loc_1800A9B1F ; +0x55, 0x1800a9b05 mov rax, [rsp+158h+var_128] ; +0x57, 0x1800a9b07 mov ecx, [rax+110h] ; +0x5c, 0x1800a9b0c nop ; +0x62, 0x1800a9b12 cmp ecx, 7 ; +0x63, 0x1800a9b13 jz short loc_1800A9B1F ; +0x66, 0x1800a9b16 mov ebx, 2Eh ; '.' ; +0x68, 0x1800a9b18 jmp short loc_1800A9B35 ; +0x6d, 0x1800a9b1d mov rcx, [rsp+158h+var_128] ; +0x6f, 0x1800a9b1f mov edx, edi ; +0x74, 0x1800a9b24 mov rax, [rcx] ; +0x76, 0x1800a9b26 call qword ptr [rax+128h] ; +0x79, 0x1800a9b29 mov ebx, eax ; +0x7f, 0x1800a9b2f test eax, eax ; +0x81, 0x1800a9b31 jz short loc_1800A9B74 ; +0x83, 0x1800a9b33 mov rax, cs:off_1801AED20 ; +0x85, 0x1800a9b35 test byte ptr [rax+10h], 80h ; +0x8c, 0x1800a9b3c jz short loc_1800A9B74 ; +0x90, 0x1800a9b40 mov r8d, edi ; +0x92, 0x1800a9b42 lea rcx, [rsp+158h+var_118] ; +0x95, 0x1800a9b45 mov edx, 100h ; +0x9a, 0x1800a9b4a call sub_1800F2EC0 ; +0x9f, 0x1800a9b4f lea rax, [rsp+158h+var_118] ; +0xa4, 0x1800a9b54 mov r8, rsi ; +0xa9, 0x1800a9b59 lea r9, aSoundSetloopco; "Sound::setLoopCount" ; +0xac, 0x1800a9b5c mov [rsp+158h+var_138], rax ; +0xb3, 0x1800a9b63 mov edx, 5 ; +0xb8, 0x1800a9b68 mov ecx, ebx ; +0xbd, 0x1800a9b6d call sub_1800B20E0 ; +0xbf, 0x1800a9b6f mov rcx, [rsp+158h+var_120] ; +0xc4, 0x1800a9b74 test rcx, rcx ; +0xc9, 0x1800a9b79 jz short loc_1800A9B88 ; +0xcc, 0x1800a9b7c mov edx, 0Ch ; +0xce, 0x1800a9b7e call sub_180102300 ; +0xd3, 0x1800a9b83 mov eax, ebx ; +0xd8, 0x1800a9b88 mov rcx, [rsp+158h+var_18] ; +0xda, 0x1800a9b8a xor rcx, rsp; StackCookie ; +0xe2, 0x1800a9b92 call __security_check_cookie ; +0xe5, 0x1800a9b95 lea r11, [rsp+158h+var_8] ; +0xea, 0x1800a9b9a mov rbx, [r11+20h] ; +0xf2, 0x1800a9ba2 mov rsi, [r11+28h] ; +0xf6, 0x1800a9ba6 mov rsp, r11 ; +0xfa, 0x1800a9baa pop rdi ; +0xfd, 0x1800a9bad retn ; +0xfe, 0x1800a9bae