; ; FMODAudioEngine::stopAndRemoveMusic from 0x140065a30 to 0x140065b14 (228 bytes) ; ; 7 xrefs: ; > FMODAudioEngine::triggerQueuedMusic @ 0x140064869 ; > FMODAudioEngine::stopMusicNotInSet @ 0x14006531c ; > FMODAudioEngine::preloadMusic @ 0x14006585f ; > GJBaseGameLayer::processSongState @ 0x14034f9d9 ; > MusicBrowser::onPlaybackControl @ 0x14047c155 ; > @ 0x140910dfc ; > @ 0x140910e08 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:45 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140065a30 mov [rsp+arg_8], edx ; +0x5, 0x140065a35 push rdi ; +0x9, 0x140065a39 sub rsp, 30h ; +0xa, 0x140065a3a mov rdi, rcx ; +0xe, 0x140065a3e lea rdx, [rsp+38h+arg_8] ; +0x11, 0x140065a41 add rcx, 140h ; +0x16, 0x140065a46 call sub_140066B50 ; +0x1d, 0x140065a4d test rax, rax ; +0x22, 0x140065a52 jz loc_140065B09 ; +0x25, 0x140065a55 lea r8, [rsp+38h+arg_8] ; +0x2b, 0x140065a5b lea rdx, [rsp+38h+var_18] ; +0x30, 0x140065a60 lea rcx, [rdi+140h] ; +0x35, 0x140065a65 call sub_140068620 ; +0x3c, 0x140065a6c mov rcx, rdi ; +0x41, 0x140065a71 mov rdx, [rax] ; +0x44, 0x140065a74 mov edx, [rdx+18h] ; +0x47, 0x140065a77 call FMODAudioEngine__channelForChannelID ; +0x4a, 0x140065a7a test rax, rax ; +0x4f, 0x140065a7f jz short loc_140065A98 ; +0x52, 0x140065a82 mov rcx, rax ; +0x54, 0x140065a84 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x57, 0x140065a87 mov rbx, [rsp+38h+arg_0] ; +0x5d, 0x140065a8d add rsp, 30h ; +0x62, 0x140065a92 pop rdi ; +0x66, 0x140065a96 retn ; +0x67, 0x140065a97 lea r8, [rsp+38h+arg_8] ; +0x68, 0x140065a98 lea rdx, [rsp+38h+var_18] ; +0x6d, 0x140065a9d lea rcx, [rdi+140h] ; +0x72, 0x140065aa2 call sub_140068620 ; +0x79, 0x140065aa9 mov rcx, [rax] ; +0x7e, 0x140065aae cmp qword ptr [rcx+20h], 0 ; +0x81, 0x140065ab1 jz short loc_140065AF8 ; +0x86, 0x140065ab6 lea r8, [rsp+38h+arg_8] ; +0x88, 0x140065ab8 lea rdx, [rsp+38h+var_18] ; +0x8d, 0x140065abd lea rcx, [rdi+140h] ; +0x92, 0x140065ac2 call sub_140068620 ; +0x99, 0x140065ac9 lea rcx, [rdi+610h] ; +0x9e, 0x140065ace mov rdx, [rcx+8] ; +0xa5, 0x140065ad5 mov r8, [rax] ; +0xa9, 0x140065ad9 add r8, 20h ; ' ' ; +0xac, 0x140065adc cmp rdx, [rcx+10h] ; +0xb0, 0x140065ae0 jz short loc_140065AF3 ; +0xb4, 0x140065ae4 mov rax, [r8] ; +0xb6, 0x140065ae6 mov [rdx], rax ; +0xb9, 0x140065ae9 add qword ptr [rcx+8], 8 ; +0xbc, 0x140065aec jmp short loc_140065AF8 ; +0xc1, 0x140065af1 call sub_1400699B0 ; +0xc3, 0x140065af3 lea rdx, [rsp+38h+arg_8] ; +0xc8, 0x140065af8 lea rcx, [rdi+140h] ; +0xcd, 0x140065afd call sub_140066F10 ; +0xd4, 0x140065b04 mov rbx, [rsp+38h+arg_0] ; +0xd9, 0x140065b09 add rsp, 30h ; +0xde, 0x140065b0e pop rdi ; +0xe2, 0x140065b12 retn ; +0xe3, 0x140065b13