; ; FMODAudioEngine::loadAndPlayMusic from 0x1003e6e30 to 0x1003e6ed7 (167 bytes) ; ; 3 xrefs: ; > SongOptionsLayer::onPlayback @ 0x100217448 ; > CreateGuidelinesLayer::playMusic @ 0x10050c6c9 ; > FindBPMLayer::playMusic @ 0x10050d93f ; ; 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, 0x1003e6e30 mov rbp, rsp ; +0x1, 0x1003e6e31 push r15 ; +0x4, 0x1003e6e34 push r14 ; +0x6, 0x1003e6e36 push rbx ; +0x8, 0x1003e6e38 sub rsp, 18h ; +0x9, 0x1003e6e39 mov ebx, ecx ; +0xd, 0x1003e6e3d mov r15d, edx ; +0xf, 0x1003e6e3f mov r14, rdi ; +0x12, 0x1003e6e42 test byte ptr [rsi], 1 ; +0x15, 0x1003e6e45 jnz short loc_1003E6E5B ; +0x18, 0x1003e6e48 mov rax, [rsi+10h] ; +0x1a, 0x1003e6e4a mov [rbp+__p], rax ; +0x1e, 0x1003e6e4e movups xmm0, xmmword ptr [rsi] ; +0x22, 0x1003e6e52 movaps [rbp+var_30], xmm0 ; +0x25, 0x1003e6e55 jmp short loc_1003E6E6C ; +0x29, 0x1003e6e59 mov rdx, [rsi+8] ; +0x2b, 0x1003e6e5b mov rsi, [rsi+10h] ; +0x2f, 0x1003e6e5f lea rdi, [rbp+var_30] ; +0x33, 0x1003e6e63 call sub_100006B70 ; +0x37, 0x1003e6e67 lea rsi, [rbp+var_30] ; +0x3c, 0x1003e6e6c movss xmm0, cs:alpha ; +0x40, 0x1003e6e70 xorps xmm1, xmm1 ; +0x48, 0x1003e6e78 mov rdi, r14 ; +0x4b, 0x1003e6e7b movaps xmm2, xmm0 ; +0x4e, 0x1003e6e7e xor edx, edx ; +0x51, 0x1003e6e81 mov ecx, ebx ; +0x53, 0x1003e6e83 xor r8d, r8d ; +0x55, 0x1003e6e85 xor r9d, r9d ; +0x58, 0x1003e6e88 call FMODAudioEngine__loadMusic ; +0x5b, 0x1003e6e8b test byte ptr [rbp+var_30], 1 ; +0x60, 0x1003e6e90 jz short loc_1003E6E9F ; +0x64, 0x1003e6e94 mov rdi, [rbp+__p]; __p ; +0x66, 0x1003e6e96 call __ZdlPv; operator delete(void *) ; +0x6a, 0x1003e6e9a test r15d, r15d ; +0x6f, 0x1003e6e9f jz short loc_1003E6EB3 ; +0x72, 0x1003e6ea2 mov rdi, r14 ; +0x74, 0x1003e6ea4 mov esi, r15d ; +0x77, 0x1003e6ea7 xor edx, edx ; +0x7a, 0x1003e6eaa mov ecx, ebx ; +0x7c, 0x1003e6eac call FMODAudioEngine__setMusicTimeMS ; +0x7e, 0x1003e6eae mov rdi, r14 ; +0x83, 0x1003e6eb3 mov esi, ebx ; +0x86, 0x1003e6eb6 call FMODAudioEngine__getActiveMusicChannel ; +0x88, 0x1003e6eb8 test rax, rax ; +0x8d, 0x1003e6ebd jz short loc_1003E6ECC ; +0x90, 0x1003e6ec0 mov rdi, rax; this ; +0x92, 0x1003e6ec2 xor esi, esi; bool ; +0x95, 0x1003e6ec5 call __ZN4FMOD14ChannelControl9setPausedEb; FMOD::ChannelControl::setPaused(bool) ; +0x97, 0x1003e6ec7 add rsp, 18h ; +0x9c, 0x1003e6ecc pop rbx ; +0xa0, 0x1003e6ed0 pop r14 ; +0xa1, 0x1003e6ed1 pop r15 ; +0xa3, 0x1003e6ed3 pop rbp ; +0xa5, 0x1003e6ed5 retn ; +0xa6, 0x1003e6ed6