; ; FMODAudioEngine::stopChannel_1 from 0x1003e5d40 to 0x1003e5ef4 (436 bytes) ; ; 1 xrefs: ; > FMODAudioEngine::stopChannel @ 0x1003e5834 ; ; 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 ; push rbp ; +0x0, 0x1003e5d40 mov rbp, rsp ; +0x1, 0x1003e5d41 push r15 ; +0x4, 0x1003e5d44 push r14 ; +0x6, 0x1003e5d46 push rbx ; +0x8, 0x1003e5d48 sub rsp, 18h ; +0x9, 0x1003e5d49 test rsi, rsi ; +0xd, 0x1003e5d4d jz loc_1003E5EE9 ; +0x10, 0x1003e5d50 mov r14, rsi ; +0x16, 0x1003e5d56 xorps xmm1, xmm1 ; +0x19, 0x1003e5d59 ucomiss xmm1, xmm0 ; +0x1c, 0x1003e5d5c setb al ; +0x1f, 0x1003e5d5f or al, dl ; +0x22, 0x1003e5d62 jz loc_1003E5DF1 ; +0x24, 0x1003e5d64 mov rbx, rdi ; +0x2a, 0x1003e5d6a movss [rbp+var_1C], xmm0 ; +0x2d, 0x1003e5d6d lea rsi, [rbp+var_28]; void ** ; +0x32, 0x1003e5d72 mov rdi, r14; this ; +0x36, 0x1003e5d76 mov r15d, edx ; +0x39, 0x1003e5d79 call __ZN4FMOD14ChannelControl11getUserDataEPPv; FMOD::ChannelControl::getUserData(void **) ; +0x3c, 0x1003e5d7c mov eax, dword ptr [rbp+var_28] ; +0x41, 0x1003e5d81 mov [rbp+var_30], eax ; +0x44, 0x1003e5d84 lea rdi, [rbx+4F0h] ; +0x47, 0x1003e5d87 lea rdx, [rbp+var_30] ; +0x4e, 0x1003e5d8e mov rsi, rdx ; +0x52, 0x1003e5d92 call sub_100054F50 ; +0x55, 0x1003e5d95 test r15b, r15b ; +0x5a, 0x1003e5d9a jz short loc_1003E5DA9 ; +0x5d, 0x1003e5d9d mov rdi, r14; this ; +0x5f, 0x1003e5d9f xor esi, esi; int ; +0x62, 0x1003e5da2 call __ZN4FMOD7Channel12setLoopCountEi; FMOD::Channel::setLoopCount(int) ; +0x64, 0x1003e5da4 xorps xmm0, xmm0 ; +0x69, 0x1003e5da9 movss xmm1, [rbp+var_1C] ; +0x6c, 0x1003e5dac ucomiss xmm1, xmm0 ; +0x71, 0x1003e5db1 jbe loc_1003E5EE9 ; +0x74, 0x1003e5db4 lea rdx, [rbp+var_28]; unsigned __int64 * ; +0x7a, 0x1003e5dba mov rdi, r14; this ; +0x7e, 0x1003e5dbe xor esi, esi; unsigned __int64 * ; +0x81, 0x1003e5dc1 call __ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x83, 0x1003e5dc3 mov [rbx+210h], eax ; +0x88, 0x1003e5dc8 mov rdi, rbx ; +0x8e, 0x1003e5dce mov rsi, r14 ; +0x91, 0x1003e5dd1 call FMODAudioEngine__stopAndGetFade ; +0x94, 0x1003e5dd4 movss [rbp+var_2C], xmm0 ; +0x99, 0x1003e5dd9 mov rax, [rbp+var_28] ; +0x9e, 0x1003e5dde test rax, rax ; +0xa2, 0x1003e5de2 js short loc_1003E5E03 ; +0xa5, 0x1003e5de5 xorps xmm0, xmm0 ; +0xa7, 0x1003e5de7 cvtsi2ss xmm0, rax ; +0xaa, 0x1003e5dea jmp short loc_1003E5E1B ; +0xaf, 0x1003e5def mov rdi, r14; this ; +0xb1, 0x1003e5df1 add rsp, 18h ; +0xb4, 0x1003e5df4 pop rbx ; +0xb8, 0x1003e5df8 pop r14 ; +0xb9, 0x1003e5df9 pop r15 ; +0xbb, 0x1003e5dfb pop rbp ; +0xbd, 0x1003e5dfd jmp __ZN4FMOD14ChannelControl4stopEv; FMOD::ChannelControl::stop(void) ; +0xbe, 0x1003e5dfe mov rcx, rax ; +0xc3, 0x1003e5e03 shr rcx, 1 ; +0xc6, 0x1003e5e06 and eax, 1 ; +0xc9, 0x1003e5e09 or rax, rcx ; +0xcc, 0x1003e5e0c xorps xmm0, xmm0 ; +0xcf, 0x1003e5e0f cvtsi2ss xmm0, rax ; +0xd2, 0x1003e5e12 addss xmm0, xmm0 ; +0xd7, 0x1003e5e17 xorps xmm1, xmm1 ; +0xdb, 0x1003e5e1b cvtsi2ss xmm1, dword ptr [rbx+214h] ; +0xde, 0x1003e5e1e mulss xmm1, [rbp+var_1C] ; +0xe6, 0x1003e5e26 addss xmm1, xmm0 ; +0xeb, 0x1003e5e2b cvttss2si rax, xmm1 ; +0xef, 0x1003e5e2f mov rcx, rax ; +0xf4, 0x1003e5e34 sar rcx, 3Fh ; +0xf7, 0x1003e5e37 subss xmm1, cs:dword_100815438 ; +0xfb, 0x1003e5e3b cvttss2si rdx, xmm1 ; +0x103, 0x1003e5e43 and rdx, rcx ; +0x108, 0x1003e5e48 or rdx, rax; unsigned __int64 ; +0x10b, 0x1003e5e4b mov rdi, r14; this ; +0x10e, 0x1003e5e4e xor esi, esi; unsigned __int64 ; +0x111, 0x1003e5e51 mov ecx, 1; bool ; +0x113, 0x1003e5e53 call __ZN4FMOD14ChannelControl8setDelayEyyb; FMOD::ChannelControl::setDelay(ulong long,ulong long,bool) ; +0x118, 0x1003e5e58 mov [rbx+210h], eax ; +0x11d, 0x1003e5e5d mov rsi, [rbp+var_28]; unsigned __int64 ; +0x123, 0x1003e5e63 mov rdi, r14; this ; +0x127, 0x1003e5e67 movss xmm0, [rbp+var_2C]; float ; +0x12a, 0x1003e5e6a call __ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x12f, 0x1003e5e6f mov [rbx+210h], eax ; +0x134, 0x1003e5e74 mov rax, [rbp+var_28] ; +0x13a, 0x1003e5e7a test rax, rax ; +0x13e, 0x1003e5e7e js short loc_1003E5E8D ; +0x141, 0x1003e5e81 xorps xmm0, xmm0 ; +0x143, 0x1003e5e83 cvtsi2ss xmm0, rax ; +0x146, 0x1003e5e86 jmp short loc_1003E5EA5 ; +0x14b, 0x1003e5e8b mov rcx, rax ; +0x14d, 0x1003e5e8d shr rcx, 1 ; +0x150, 0x1003e5e90 and eax, 1 ; +0x153, 0x1003e5e93 or rax, rcx ; +0x156, 0x1003e5e96 xorps xmm0, xmm0 ; +0x159, 0x1003e5e99 cvtsi2ss xmm0, rax ; +0x15c, 0x1003e5e9c addss xmm0, xmm0 ; +0x161, 0x1003e5ea1 xorps xmm1, xmm1 ; +0x165, 0x1003e5ea5 cvtsi2ss xmm1, dword ptr [rbx+214h] ; +0x168, 0x1003e5ea8 mulss xmm1, [rbp+var_1C] ; +0x170, 0x1003e5eb0 addss xmm1, xmm0 ; +0x175, 0x1003e5eb5 cvttss2si rax, xmm1 ; +0x179, 0x1003e5eb9 mov rcx, rax ; +0x17e, 0x1003e5ebe sar rcx, 3Fh ; +0x181, 0x1003e5ec1 subss xmm1, cs:dword_100815438 ; +0x185, 0x1003e5ec5 cvttss2si rsi, xmm1 ; +0x18d, 0x1003e5ecd and rsi, rcx ; +0x192, 0x1003e5ed2 or rsi, rax; unsigned __int64 ; +0x195, 0x1003e5ed5 xorps xmm0, xmm0; float ; +0x198, 0x1003e5ed8 mov rdi, r14; this ; +0x19b, 0x1003e5edb call __ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x19e, 0x1003e5ede mov [rbx+210h], eax ; +0x1a3, 0x1003e5ee3 add rsp, 18h ; +0x1a9, 0x1003e5ee9 pop rbx ; +0x1ad, 0x1003e5eed pop r14 ; +0x1ae, 0x1003e5eee pop r15 ; +0x1b0, 0x1003e5ef0 pop rbp ; +0x1b2, 0x1003e5ef2 retn ; +0x1b3, 0x1003e5ef3