; ; FMODAudioEngine::stopAndRemoveMusic from 0x14005cab0 to 0x14005cb94 (228 bytes) ; ; 6 xrefs: ; > FMODAudioEngine::triggerQueuedMusic @ 0x14005bc1f ; > FMODAudioEngine::preloadMusic @ 0x14005c8e4 ; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244113 ; > GJBaseGameLayer::processSongState @ 0x1402456e0 ; > MusicBrowser::onPlaybackControl @ 0x140339ab2 ; > @ 0x1406c5490 ; ; 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_0], rbx ; +0x0, 0x14005cab0 mov [rsp+arg_8], edx ; +0x5, 0x14005cab5 push rdi ; +0x9, 0x14005cab9 sub rsp, 30h ; +0xa, 0x14005caba mov rdi, rcx ; +0xe, 0x14005cabe lea rdx, [rsp+38h+arg_8] ; +0x11, 0x14005cac1 add rcx, 140h ; +0x16, 0x14005cac6 call sub_14005F8D0 ; +0x1d, 0x14005cacd test rax, rax ; +0x22, 0x14005cad2 jz loc_14005CB89 ; +0x25, 0x14005cad5 lea r8, [rsp+38h+arg_8] ; +0x2b, 0x14005cadb lea rdx, [rsp+38h+var_18] ; +0x30, 0x14005cae0 lea rcx, [rdi+140h] ; +0x35, 0x14005cae5 call sub_140061560 ; +0x3c, 0x14005caec mov rcx, rdi ; +0x41, 0x14005caf1 mov rdx, [rax] ; +0x44, 0x14005caf4 mov edx, [rdx+18h] ; +0x47, 0x14005caf7 call FMODAudioEngine__channelForChannelID ; +0x4a, 0x14005cafa test rax, rax ; +0x4f, 0x14005caff jz short loc_14005CB18 ; +0x52, 0x14005cb02 mov rcx, rax ; +0x54, 0x14005cb04 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x57, 0x14005cb07 mov rbx, [rsp+38h+arg_0] ; +0x5d, 0x14005cb0d add rsp, 30h ; +0x62, 0x14005cb12 pop rdi ; +0x66, 0x14005cb16 retn ; +0x67, 0x14005cb17 lea r8, [rsp+38h+arg_8] ; +0x68, 0x14005cb18 lea rdx, [rsp+38h+var_18] ; +0x6d, 0x14005cb1d lea rcx, [rdi+140h] ; +0x72, 0x14005cb22 call sub_140061560 ; +0x79, 0x14005cb29 mov rcx, [rax] ; +0x7e, 0x14005cb2e cmp qword ptr [rcx+20h], 0 ; +0x81, 0x14005cb31 jz short loc_14005CB78 ; +0x86, 0x14005cb36 lea r8, [rsp+38h+arg_8] ; +0x88, 0x14005cb38 lea rdx, [rsp+38h+var_18] ; +0x8d, 0x14005cb3d lea rcx, [rdi+140h] ; +0x92, 0x14005cb42 call sub_140061560 ; +0x99, 0x14005cb49 lea rcx, [rdi+5F0h] ; +0x9e, 0x14005cb4e mov rdx, [rcx+8] ; +0xa5, 0x14005cb55 mov r8, [rax] ; +0xa9, 0x14005cb59 add r8, 20h ; ' ' ; +0xac, 0x14005cb5c cmp rdx, [rcx+10h] ; +0xb0, 0x14005cb60 jz short loc_14005CB73 ; +0xb4, 0x14005cb64 mov rax, [r8] ; +0xb6, 0x14005cb66 mov [rdx], rax ; +0xb9, 0x14005cb69 add qword ptr [rcx+8], 8 ; +0xbc, 0x14005cb6c jmp short loc_14005CB78 ; +0xc1, 0x14005cb71 call sub_140063110 ; +0xc3, 0x14005cb73 lea rdx, [rsp+38h+arg_8] ; +0xc8, 0x14005cb78 lea rcx, [rdi+140h] ; +0xcd, 0x14005cb7d call sub_14005DA90 ; +0xd4, 0x14005cb84 mov rbx, [rsp+38h+arg_0] ; +0xd9, 0x14005cb89 add rsp, 30h ; +0xde, 0x14005cb8e pop rdi ; +0xe2, 0x14005cb92 retn ; +0xe3, 0x14005cb93