; ; FMODAudioEngine::fadeInMusic from 0x1003e70c0 to 0x1003e7192 (210 bytes) ; ; 3 xrefs: ; > PlayLayer::startMusic @ 0x1000b32d9 ; > GJPathPage::unlockAnimationStep3 @ 0x1003027e1 ; > GauntletSelectLayer::unlockAnimationStep3 @ 0x100573f97 ; ; 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, 0x1003e70c0 mov rbp, rsp ; +0x1, 0x1003e70c1 push r14 ; +0x4, 0x1003e70c4 push rbx ; +0x6, 0x1003e70c6 sub rsp, 10h ; +0x7, 0x1003e70c7 movss [rbp+var_14], xmm0 ; +0xb, 0x1003e70cb mov rbx, rdi ; +0x10, 0x1003e70d0 call FMODAudioEngine__getActiveMusicChannel ; +0x13, 0x1003e70d3 test rax, rax ; +0x18, 0x1003e70d8 jz loc_1003E7189 ; +0x1b, 0x1003e70db mov r14, rax ; +0x21, 0x1003e70e1 mov rdi, rbx ; +0x24, 0x1003e70e4 mov rsi, rax ; +0x27, 0x1003e70e7 call FMODAudioEngine__stopAndGetFade ; +0x2a, 0x1003e70ea lea rdx, [rbp+var_20]; unsigned __int64 * ; +0x2f, 0x1003e70ef mov rdi, r14; this ; +0x33, 0x1003e70f3 xor esi, esi; unsigned __int64 * ; +0x36, 0x1003e70f6 call __ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x38, 0x1003e70f8 mov [rbx+210h], eax ; +0x3d, 0x1003e70fd mov rsi, [rbp+var_20]; unsigned __int64 ; +0x43, 0x1003e7103 xorps xmm0, xmm0; float ; +0x47, 0x1003e7107 mov rdi, r14; this ; +0x4a, 0x1003e710a call __ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x4d, 0x1003e710d mov [rbx+210h], eax ; +0x52, 0x1003e7112 mov rax, [rbp+var_20] ; +0x58, 0x1003e7118 test rax, rax ; +0x5c, 0x1003e711c js short loc_1003E712B ; +0x5f, 0x1003e711f xorps xmm0, xmm0 ; +0x61, 0x1003e7121 cvtsi2ss xmm0, rax ; +0x64, 0x1003e7124 jmp short loc_1003E7143 ; +0x69, 0x1003e7129 mov rcx, rax ; +0x6b, 0x1003e712b shr rcx, 1 ; +0x6e, 0x1003e712e and eax, 1 ; +0x71, 0x1003e7131 or rax, rcx ; +0x74, 0x1003e7134 xorps xmm0, xmm0 ; +0x77, 0x1003e7137 cvtsi2ss xmm0, rax ; +0x7a, 0x1003e713a addss xmm0, xmm0 ; +0x7f, 0x1003e713f cvtsi2ss xmm1, dword ptr [rbx+214h] ; +0x83, 0x1003e7143 mulss xmm1, [rbp+var_14] ; +0x8b, 0x1003e714b addss xmm1, xmm0 ; +0x90, 0x1003e7150 cvttss2si rax, xmm1 ; +0x94, 0x1003e7154 mov rcx, rax ; +0x99, 0x1003e7159 sar rcx, 3Fh ; +0x9c, 0x1003e715c subss xmm1, cs:dword_100815438 ; +0xa0, 0x1003e7160 cvttss2si rsi, xmm1 ; +0xa8, 0x1003e7168 and rsi, rcx ; +0xad, 0x1003e716d or rsi, rax; unsigned __int64 ; +0xb0, 0x1003e7170 movss xmm0, cs:alpha; float ; +0xb3, 0x1003e7173 mov rdi, r14; this ; +0xbb, 0x1003e717b call __ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0xbe, 0x1003e717e mov [rbx+210h], eax ; +0xc3, 0x1003e7183 add rsp, 10h ; +0xc9, 0x1003e7189 pop rbx ; +0xcd, 0x1003e718d pop r14 ; +0xce, 0x1003e718e pop rbp ; +0xd0, 0x1003e7190 retn ; +0xd1, 0x1003e7191