; ; FMODAudioEngine::loadAndPlayMusic from 0x14005a040 to 0x14005a135 (245 bytes) ; ; 4 xrefs: ; > CreateGuidelinesLayer::playMusic @ 0x14009ad4f ; > FindBPMLayer::playMusic @ 0x14009bd96 ; > SongOptionsLayer::onPlayback @ 0x1400c52af ; > @ 0x1406c52b0 ; ; 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 rbx ; +0x0, 0x14005a040 push rsi ; +0x2, 0x14005a042 push rdi ; +0x3, 0x14005a043 sub rsp, 90h ; +0x4, 0x14005a044 mov rax, cs:__security_cookie ; +0xb, 0x14005a04b xor rax, rsp ; +0x12, 0x14005a052 mov [rsp+0A8h+var_28], rax ; +0x15, 0x14005a055 mov esi, r8d ; +0x1d, 0x14005a05d mov rdi, rdx ; +0x20, 0x14005a060 mov rbx, rcx ; +0x23, 0x14005a063 mov [rsp+0A8h+var_30], rdx ; +0x26, 0x14005a066 lea rcx, [rsp+0A8h+var_50] ; +0x2b, 0x14005a06b call sub_14003BDB0 ; +0x30, 0x14005a070 mov [rsp+0A8h+var_68], 0 ; +0x35, 0x14005a075 mov [rsp+0A8h+var_70], 0 ; +0x3a, 0x14005a07a mov [rsp+0A8h+var_78], 0 ; +0x42, 0x14005a082 mov [rsp+0A8h+var_80], 0 ; +0x4a, 0x14005a08a movss xmm2, cs:flt_140622C24 ; +0x4f, 0x14005a08f movss [rsp+0A8h+var_88], xmm2 ; +0x57, 0x14005a097 xorps xmm3, xmm3 ; +0x5d, 0x14005a09d mov rdx, rax ; +0x60, 0x14005a0a0 mov rcx, rbx ; +0x63, 0x14005a0a3 call FMODAudioEngine__loadMusic ; +0x66, 0x14005a0a6 test esi, esi ; +0x6b, 0x14005a0ab jz short loc_14005A0BF ; +0x6d, 0x14005a0ad xor r9d, r9d ; +0x6f, 0x14005a0af xor r8d, r8d ; +0x72, 0x14005a0b2 mov edx, esi ; +0x75, 0x14005a0b5 mov rcx, rbx ; +0x77, 0x14005a0b7 call FMODAudioEngine__setMusicTimeMS ; +0x7a, 0x14005a0ba mov [rsp+0A8h+var_58], 0 ; +0x7f, 0x14005a0bf lea rdx, [rsp+0A8h+var_58] ; +0x87, 0x14005a0c7 lea rcx, [rbx+140h] ; +0x8c, 0x14005a0cc call sub_14005F8D0 ; +0x93, 0x14005a0d3 test rax, rax ; +0x98, 0x14005a0d8 jz short loc_14005A112 ; +0x9b, 0x14005a0db lea r8, [rsp+0A8h+var_58] ; +0x9d, 0x14005a0dd lea rdx, [rsp+0A8h+var_50] ; +0xa2, 0x14005a0e2 lea rcx, [rbx+140h] ; +0xa7, 0x14005a0e7 call sub_140061560 ; +0xae, 0x14005a0ee mov rdx, [rax] ; +0xb3, 0x14005a0f3 mov edx, [rdx+18h] ; +0xb6, 0x14005a0f6 mov rcx, rbx ; +0xb9, 0x14005a0f9 call FMODAudioEngine__channelForChannelID ; +0xbc, 0x14005a0fc test rax, rax ; +0xc1, 0x14005a101 jz short loc_14005A112 ; +0xc4, 0x14005a104 xor edx, edx ; +0xc6, 0x14005a106 mov rcx, rax ; +0xc8, 0x14005a108 call cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0xcb, 0x14005a10b nop ; +0xd1, 0x14005a111 mov rcx, rdi ; +0xd2, 0x14005a112 call sub_14003A830 ; +0xd5, 0x14005a115 mov rcx, [rsp+0A8h+var_28] ; +0xda, 0x14005a11a xor rcx, rsp; StackCookie ; +0xe2, 0x14005a122 call __security_check_cookie ; +0xe5, 0x14005a125 add rsp, 90h ; +0xea, 0x14005a12a pop rdi ; +0xf1, 0x14005a131 pop rsi ; +0xf2, 0x14005a132 pop rbx ; +0xf3, 0x14005a133 retn ; +0xf4, 0x14005a134