; ; FMODAudioEngine::stopAllMusic from 0x140059da0 to 0x140059eab (267 bytes) ; ; 2 xrefs: ; > PlayLayer::resumeAndRestart @ 0x1403ba479 ; > @ 0x1406c528c ; ; 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, 0x140059da0 mov [rsp+arg_8], rsi ; +0x5, 0x140059da5 push rdi ; +0xa, 0x140059daa sub rsp, 40h ; +0xb, 0x140059dab mov rsi, rcx ; +0xf, 0x140059daf test dl, dl ; +0x12, 0x140059db2 jz short loc_140059DFB ; +0x14, 0x140059db4 mov rcx, [rcx+228h] ; +0x16, 0x140059db6 test rcx, rcx ; +0x1d, 0x140059dbd jz short loc_140059DC8 ; +0x20, 0x140059dc0 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x22, 0x140059dc2 lea rcx, [rsi+428h] ; +0x28, 0x140059dc8 call sub_14005E0D0 ; +0x2f, 0x140059dcf lea rcx, [rsi+468h] ; +0x34, 0x140059dd4 call sub_14005E0D0 ; +0x3b, 0x140059ddb lea rcx, [rsi+4A8h] ; +0x40, 0x140059de0 mov rbx, [rsp+48h+arg_0] ; +0x47, 0x140059de7 mov rsi, [rsp+48h+arg_8] ; +0x4c, 0x140059dec add rsp, 40h ; +0x51, 0x140059df1 pop rdi ; +0x55, 0x140059df5 jmp sub_14005E0D0 ; +0x56, 0x140059df6 xorps xmm0, xmm0 ; +0x5b, 0x140059dfb movdqu [rsp+48h+var_28], xmm0 ; +0x5e, 0x140059dfe xor ecx, ecx ; +0x64, 0x140059e04 mov [rsp+48h+var_18], rcx ; +0x66, 0x140059e06 mov rax, [rsi+148h] ; +0x6b, 0x140059e0b mov rbx, [rax] ; +0x72, 0x140059e12 mov rdi, qword ptr [rsp+48h+var_28+8] ; +0x75, 0x140059e15 cmp rbx, rax ; +0x7a, 0x140059e1a jz short loc_140059E65 ; +0x7d, 0x140059e1d nop ; +0x7f, 0x140059e1f cmp byte ptr [rbx+49h], 0 ; +0x80, 0x140059e20 jnz short loc_140059E56 ; +0x84, 0x140059e24 lea r8, [rbx+18h] ; +0x86, 0x140059e26 cmp rdi, rcx ; +0x8a, 0x140059e2a jz short loc_140059E3F ; +0x8d, 0x140059e2d mov eax, [r8] ; +0x8f, 0x140059e2f mov [rdi], eax ; +0x92, 0x140059e32 add rdi, 4 ; +0x94, 0x140059e34 mov qword ptr [rsp+48h+var_28+8], rdi ; +0x98, 0x140059e38 jmp short loc_140059E56 ; +0x9d, 0x140059e3d mov rdx, rdi ; +0x9f, 0x140059e3f lea rcx, [rsp+48h+var_28] ; +0xa2, 0x140059e42 call sub_140063270 ; +0xa7, 0x140059e47 mov rcx, [rsp+48h+var_18] ; +0xac, 0x140059e4c mov rdi, qword ptr [rsp+48h+var_28+8] ; +0xb1, 0x140059e51 mov rax, [rbx] ; +0xb6, 0x140059e56 mov rbx, rax ; +0xb9, 0x140059e59 cmp rax, [rsi+148h] ; +0xbc, 0x140059e5c jnz short loc_140059E20 ; +0xc3, 0x140059e63 mov rbx, qword ptr [rsp+48h+var_28] ; +0xc5, 0x140059e65 cmp rbx, rdi ; +0xca, 0x140059e6a jz short loc_140059E91 ; +0xcd, 0x140059e6d nop ; +0xcf, 0x140059e6f mov edx, [rbx] ; +0xd0, 0x140059e70 mov rcx, rsi ; +0xd2, 0x140059e72 call FMODAudioEngine__channelForChannelID ; +0xd5, 0x140059e75 test rax, rax ; +0xda, 0x140059e7a jz short loc_140059E88 ; +0xdd, 0x140059e7d mov rcx, rax ; +0xdf, 0x140059e7f call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0xe2, 0x140059e82 add rbx, 4 ; +0xe8, 0x140059e88 cmp rbx, rdi ; +0xec, 0x140059e8c jnz short loc_140059E70 ; +0xef, 0x140059e8f lea rcx, [rsp+48h+var_28] ; +0xf1, 0x140059e91 call sub_14005E430 ; +0xf6, 0x140059e96 mov rbx, [rsp+48h+arg_0] ; +0xfb, 0x140059e9b mov rsi, [rsp+48h+arg_8] ; +0x100, 0x140059ea0 add rsp, 40h ; +0x105, 0x140059ea5 pop rdi ; +0x109, 0x140059ea9 retn ; +0x10a, 0x140059eaa