; ; FMODAudioEngine::activateQueuedMusic from 0x140064960 to 0x140064b00 (416 bytes) ; ; 2 xrefs: ; > GJBaseGameLayer::activateSongTrigger @ 0x14034b888 ; > @ 0x140910d18 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:45 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x140064960 mov [rsp+arg_8], edx ; +0x5, 0x140064965 push rdi ; +0x9, 0x140064969 sub rsp, 0A0h ; +0xa, 0x14006496a mov r8d, edx ; +0x11, 0x140064971 mov rbx, rcx ; +0x14, 0x140064974 movzx r9d, dl ; +0x17, 0x140064977 mov r10, 100000001B3h ; +0x1b, 0x14006497b mov rax, 0CBF29CE484222325h ; +0x25, 0x140064985 xor r9, rax ; +0x2f, 0x14006498f mov eax, edx ; +0x32, 0x140064992 sar eax, 8 ; +0x34, 0x140064994 movzx edx, al ; +0x37, 0x140064997 mov eax, r8d ; +0x3a, 0x14006499a sar eax, 10h ; +0x3d, 0x14006499d movzx ecx, al ; +0x40, 0x1400649a0 mov eax, r8d ; +0x43, 0x1400649a3 imul r9, r10 ; +0x46, 0x1400649a6 sar eax, 18h ; +0x4a, 0x1400649aa xor rdx, r9 ; +0x4d, 0x1400649ad imul rdx, r10 ; +0x50, 0x1400649b0 xor rdx, rcx ; +0x54, 0x1400649b4 movzx ecx, al ; +0x57, 0x1400649b7 imul rdx, r10 ; +0x5a, 0x1400649ba xor rcx, rdx ; +0x5e, 0x1400649be xor edx, edx ; +0x61, 0x1400649c1 imul rcx, r10 ; +0x63, 0x1400649c3 and rcx, [rbx+5B8h] ; +0x67, 0x1400649c7 shl rcx, 4 ; +0x6e, 0x1400649ce add rcx, [rbx+5A0h] ; +0x72, 0x1400649d2 mov rax, [rcx+8] ; +0x79, 0x1400649d9 cmp rax, [rbx+590h] ; +0x7d, 0x1400649dd jz short loc_140064A01 ; +0x84, 0x1400649e4 mov rcx, [rcx] ; +0x86, 0x1400649e6 cmp r8d, [rax+10h] ; +0x89, 0x1400649e9 jz short loc_140064A04 ; +0x8d, 0x1400649ed nop ; +0x8f, 0x1400649ef cmp rax, rcx ; +0x90, 0x1400649f0 jz short loc_140064A01 ; +0x93, 0x1400649f3 mov rax, [rax+8] ; +0x95, 0x1400649f5 cmp r8d, [rax+10h] ; +0x99, 0x1400649f9 jnz short loc_1400649F0 ; +0x9d, 0x1400649fd jmp short loc_140064A04 ; +0x9f, 0x1400649ff mov rax, rdx ; +0xa1, 0x140064a01 test rax, rax ; +0xa4, 0x140064a04 jz short loc_140064A63 ; +0xa7, 0x140064a07 lea r8, [rsp+0A8h+arg_8] ; +0xa9, 0x140064a09 lea rdx, [rsp+0A8h+var_88] ; +0xb1, 0x140064a11 lea rcx, [rbx+588h] ; +0xb6, 0x140064a16 call sub_140068B70 ; +0xbd, 0x140064a1d lea rcx, [rsp+0A8h+var_78] ; +0xc2, 0x140064a22 mov rdx, [rax] ; +0xc7, 0x140064a27 add rdx, 18h ; +0xca, 0x140064a2a call sub_14005F170 ; +0xce, 0x140064a2e mov rdx, rax ; +0xd3, 0x140064a33 mov rcx, rbx ; +0xd6, 0x140064a36 call FMODAudioEngine__triggerQueuedMusic ; +0xd9, 0x140064a39 lea rdx, [rsp+0A8h+arg_8] ; +0xde, 0x140064a3e lea rcx, [rbx+588h] ; +0xe6, 0x140064a46 call sub_1400672C0 ; +0xed, 0x140064a4d mov rbx, [rsp+0A8h+arg_10] ; +0xf2, 0x140064a52 add rsp, 0A0h ; +0xfa, 0x140064a5a pop rdi ; +0x101, 0x140064a61 retn ; +0x102, 0x140064a62 movzx eax, byte ptr [rsp+0A8h+arg_8+2] ; +0x103, 0x140064a63 movzx ecx, byte ptr [rsp+0A8h+arg_8+1] ; +0x10b, 0x140064a6b xor rcx, r9 ; +0x113, 0x140064a73 imul rcx, r10 ; +0x116, 0x140064a76 xor rcx, rax ; +0x11a, 0x140064a7a movzx eax, byte ptr [rsp+0A8h+arg_8+3] ; +0x11d, 0x140064a7d imul rcx, r10 ; +0x125, 0x140064a85 xor rcx, rax ; +0x129, 0x140064a89 imul rcx, r10 ; +0x12c, 0x140064a8c and rcx, [rbx+578h] ; +0x130, 0x140064a90 shl rcx, 4 ; +0x137, 0x140064a97 add rcx, [rbx+560h] ; +0x13b, 0x140064a9b mov rax, [rcx+8] ; +0x142, 0x140064aa2 cmp rax, [rbx+550h] ; +0x146, 0x140064aa6 jz short loc_140064ACA ; +0x14d, 0x140064aad mov rcx, [rcx] ; +0x14f, 0x140064aaf cmp r8d, [rax+10h] ; +0x152, 0x140064ab2 jz short loc_140064AC7 ; +0x156, 0x140064ab6 cmp rax, rcx ; +0x158, 0x140064ab8 jz short loc_140064ACA ; +0x15b, 0x140064abb mov rax, [rax+8] ; +0x15d, 0x140064abd cmp r8d, [rax+10h] ; +0x161, 0x140064ac1 jnz short loc_140064AB8 ; +0x165, 0x140064ac5 mov rdx, rax ; +0x167, 0x140064ac7 test rdx, rdx ; +0x16a, 0x140064aca jz short loc_140064AEF ; +0x16d, 0x140064acd lea rcx, [rbx+548h] ; +0x16f, 0x140064acf lea r8, [rsp+0A8h+arg_8] ; +0x176, 0x140064ad6 lea rdx, [rsp+0A8h+var_88] ; +0x17e, 0x140064ade call sub_140068B70 ; +0x183, 0x140064ae3 mov rcx, [rax] ; +0x188, 0x140064ae8 mov byte ptr [rcx+64h], 1 ; +0x18b, 0x140064aeb mov rbx, [rsp+0A8h+arg_10] ; +0x18f, 0x140064aef add rsp, 0A0h ; +0x197, 0x140064af7 pop rdi ; +0x19e, 0x140064afe retn ; +0x19f, 0x140064aff