; ; FMODAudioEngine::channelForChannelID from 0x1003dfdd0 to 0x1003dff9e (462 bytes) ; ; 24 xrefs: ; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100161895 ; > FMODAudioEngine::stopAllMusic @ 0x1003de6de ; > FMODAudioEngine::updateQueuedMusic @ 0x1003df3d3 ; > FMODAudioEngine::saveAudioState @ 0x1003dfbf7 ; > FMODAudioEngine::loadAudioState @ 0x1003e037b ; > FMODAudioEngine::loadMusic @ 0x1003e1371 ; > FMODAudioEngine::getActiveMusicChannel @ 0x1003e19ef ; > FMODAudioEngine::playEffectAdvanced @ 0x1003e1a99 ; > FMODAudioEngine::setMusicTimeMS @ 0x1003e27bc ; > FMODAudioEngine::setChannelVolume @ 0x1003e3373 ; > FMODAudioEngine::setChannelVolume @ 0x1003e33c3 ; > FMODAudioEngine::setChannelPitch @ 0x1003e34e1 ; > FMODAudioEngine::setChannelPitch @ 0x1003e3538 ; > FMODAudioEngine::channelForUniqueID @ 0x1003e5769 ; > FMODAudioEngine::setChannelVolumeMod @ 0x1003e6483 ; > FMODAudioEngine::setChannelVolumeMod @ 0x1003e64d3 ; > FMODAudioEngine::pauseAllMusic @ 0x1003e6a7f ; > FMODAudioEngine::pauseAllMusic @ 0x1003e6ab6 ; > FMODAudioEngine::resumeAllMusic @ 0x1003e6b16 ; > FMODAudioEngine::startMusic @ 0x1003e7870 ; > FMODAudioEngine::getMusicTimeMS @ 0x1003e97ff ; > FMODAudioEngine::getMusicTime @ 0x1003e986f ; > FMODAudioEngine::getMusicLengthMS @ 0x1003e98ef ; > FMODAudioEngine::stopAndRemoveMusic @ 0x1003e9d1e ; ; 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, 0x1003dfdd0 mov rbp, rsp ; +0x1, 0x1003dfdd1 sub rsp, 10h ; +0x4, 0x1003dfdd4 mov [rbp+var_8], esi ; +0x8, 0x1003dfdd8 mov r10, [rdi+4D0h] ; +0xb, 0x1003dfddb test r10, r10 ; +0x12, 0x1003dfde2 jz loc_1003DFE6F ; +0x15, 0x1003dfde5 add rdi, 4C8h ; +0x1b, 0x1003dfdeb movsxd rcx, esi ; +0x22, 0x1003dfdf2 mov rax, r10 ; +0x25, 0x1003dfdf5 shr rax, 1 ; +0x28, 0x1003dfdf8 mov rdx, 5555555555555555h ; +0x2b, 0x1003dfdfb and rdx, rax ; +0x35, 0x1003dfe05 mov rax, r10 ; +0x38, 0x1003dfe08 sub rax, rdx ; +0x3b, 0x1003dfe0b mov rdx, 3333333333333333h ; +0x3e, 0x1003dfe0e mov r8, rax ; +0x48, 0x1003dfe18 and r8, rdx ; +0x4b, 0x1003dfe1b shr rax, 2 ; +0x4e, 0x1003dfe1e and rax, rdx ; +0x52, 0x1003dfe22 add rax, r8 ; +0x55, 0x1003dfe25 mov rdx, rax ; +0x58, 0x1003dfe28 shr rdx, 4 ; +0x5b, 0x1003dfe2b add rdx, rax ; +0x5f, 0x1003dfe2f mov rax, 0F0F0F0F0F0F0F0Fh ; +0x62, 0x1003dfe32 and rax, rdx ; +0x6c, 0x1003dfe3c mov r9, 101010101010101h ; +0x6f, 0x1003dfe3f imul r9, rax ; +0x79, 0x1003dfe49 shr r9, 38h ; +0x7d, 0x1003dfe4d cmp r9, 1 ; +0x81, 0x1003dfe51 ja short loc_1003DFE7B ; +0x85, 0x1003dfe55 lea r8, [r10-1] ; +0x87, 0x1003dfe57 and r8, rcx ; +0x8b, 0x1003dfe5b mov rax, [rdi] ; +0x8e, 0x1003dfe5e mov rax, [rax+r8*8] ; +0x91, 0x1003dfe61 test rax, rax ; +0x95, 0x1003dfe65 jnz short loc_1003DFEAE ; +0x98, 0x1003dfe68 jmp loc_1003DFF92 ; +0x9a, 0x1003dfe6a xor r9d, r9d ; +0x9f, 0x1003dfe6f mov rax, r9 ; +0xa2, 0x1003dfe72 add rsp, 10h ; +0xa5, 0x1003dfe75 pop rbp ; +0xa9, 0x1003dfe79 retn ; +0xaa, 0x1003dfe7a mov r8, rcx ; +0xab, 0x1003dfe7b cmp r10, rcx ; +0xae, 0x1003dfe7e ja short loc_1003DFE9E ; +0xb1, 0x1003dfe81 mov rax, rcx ; +0xb3, 0x1003dfe83 or rax, r10 ; +0xb6, 0x1003dfe86 shr rax, 20h ; +0xb9, 0x1003dfe89 jz loc_1003DFF78 ; +0xbd, 0x1003dfe8d mov rax, rcx ; +0xc3, 0x1003dfe93 xor edx, edx ; +0xc6, 0x1003dfe96 div r10 ; +0xc8, 0x1003dfe98 mov r8, rdx ; +0xcb, 0x1003dfe9b mov rax, [rdi] ; +0xce, 0x1003dfe9e mov rax, [rax+r8*8] ; +0xd1, 0x1003dfea1 test rax, rax ; +0xd5, 0x1003dfea5 jz loc_1003DFF92 ; +0xd8, 0x1003dfea8 mov r11, [rax] ; +0xde, 0x1003dfeae test r11, r11 ; +0xe1, 0x1003dfeb1 jz loc_1003DFF92 ; +0xe4, 0x1003dfeb4 cmp r9d, 2 ; +0xea, 0x1003dfeba jnb short loc_1003DFEF1 ; +0xee, 0x1003dfebe dec r10 ; +0xf0, 0x1003dfec0 xor r9d, r9d ; +0xf3, 0x1003dfec3 jmp short loc_1003DFEDE ; +0xf6, 0x1003dfec6 align 10h ; +0xf8, 0x1003dfec8 cmp [r11+10h], esi ; +0x100, 0x1003dfed0 jz short loc_1003DFF4F ; +0x104, 0x1003dfed4 mov r11, [r11] ; +0x106, 0x1003dfed6 test r11, r11 ; +0x109, 0x1003dfed9 jz short loc_1003DFE72 ; +0x10c, 0x1003dfedc mov rax, [r11+8] ; +0x10e, 0x1003dfede cmp rax, rcx ; +0x112, 0x1003dfee2 jz short loc_1003DFED0 ; +0x115, 0x1003dfee5 and rax, r10 ; +0x117, 0x1003dfee7 cmp rax, r8 ; +0x11a, 0x1003dfeea jz short loc_1003DFED6 ; +0x11d, 0x1003dfeed jmp short loc_1003DFE72 ; +0x11f, 0x1003dfeef xor r9d, r9d ; +0x121, 0x1003dfef1 jmp short loc_1003DFF12 ; +0x124, 0x1003dfef4 align 20h ; +0x126, 0x1003dfef6 cmp [r11+10h], esi ; +0x130, 0x1003dff00 jz short loc_1003DFF4F ; +0x134, 0x1003dff04 mov r11, [r11] ; +0x136, 0x1003dff06 test r11, r11 ; +0x139, 0x1003dff09 jz loc_1003DFE72 ; +0x13c, 0x1003dff0c mov rax, [r11+8] ; +0x142, 0x1003dff12 cmp rax, rcx ; +0x146, 0x1003dff16 jz short loc_1003DFF00 ; +0x149, 0x1003dff19 cmp rax, r10 ; +0x14b, 0x1003dff1b jb short loc_1003DFF34 ; +0x14e, 0x1003dff1e mov rdx, rax ; +0x150, 0x1003dff20 or rdx, r10 ; +0x153, 0x1003dff23 shr rdx, 20h ; +0x156, 0x1003dff26 jz short loc_1003DFF3E ; +0x15a, 0x1003dff2a xor edx, edx ; +0x15c, 0x1003dff2c div r10 ; +0x15e, 0x1003dff2e mov rax, rdx ; +0x161, 0x1003dff31 cmp rax, r8 ; +0x164, 0x1003dff34 jz short loc_1003DFF06 ; +0x167, 0x1003dff37 jmp loc_1003DFE72 ; +0x169, 0x1003dff39 xor edx, edx ; +0x16e, 0x1003dff3e div r10d ; +0x170, 0x1003dff40 mov eax, edx ; +0x173, 0x1003dff43 cmp rax, r8 ; +0x175, 0x1003dff45 jz short loc_1003DFF06 ; +0x178, 0x1003dff48 jmp loc_1003DFE72 ; +0x17a, 0x1003dff4a lea rsi, [rbp+var_8] ; +0x17f, 0x1003dff4f mov [rbp+var_10], rsi ; +0x183, 0x1003dff53 lea rdx, unk_10081B0A2 ; +0x187, 0x1003dff57 lea rcx, [rbp+var_10] ; +0x18e, 0x1003dff5e lea r8, [rbp+var_1] ; +0x192, 0x1003dff62 call sub_1003EDB70 ; +0x196, 0x1003dff66 mov r9, [rax+18h] ; +0x19b, 0x1003dff6b mov rax, r9 ; +0x19f, 0x1003dff6f add rsp, 10h ; +0x1a2, 0x1003dff72 pop rbp ; +0x1a6, 0x1003dff76 retn ; +0x1a7, 0x1003dff77 mov eax, esi ; +0x1a8, 0x1003dff78 xor edx, edx ; +0x1aa, 0x1003dff7a div r10d ; +0x1ac, 0x1003dff7c mov r8d, edx ; +0x1af, 0x1003dff7f mov rax, [rdi] ; +0x1b2, 0x1003dff82 mov rax, [rax+r8*8] ; +0x1b5, 0x1003dff85 test rax, rax ; +0x1b9, 0x1003dff89 jnz loc_1003DFEAE ; +0x1bc, 0x1003dff8c xor r9d, r9d ; +0x1c2, 0x1003dff92 mov rax, r9 ; +0x1c5, 0x1003dff95 add rsp, 10h ; +0x1c8, 0x1003dff98 pop rbp ; +0x1cc, 0x1003dff9c retn ; +0x1cd, 0x1003dff9d