; ; FMODAudioEngine::channelIDForUniqueID from 0x1003e46f0 to 0x1003e486e (382 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::activateSFXEditTrigger @ 0x10015adf5 ; > FMODAudioEngine::playEffectAdvanced @ 0x1003e1dfe ; > FMODAudioEngine::channelForUniqueID @ 0x1003e5759 ; ; 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, 0x1003e46f0 mov rbp, rsp ; +0x1, 0x1003e46f1 sub rsp, 10h ; +0x4, 0x1003e46f4 mov [rbp+var_8], esi ; +0x8, 0x1003e46f8 mov r9, [rdi+550h] ; +0xb, 0x1003e46fb xor eax, eax ; +0x12, 0x1003e4702 test r9, r9 ; +0x14, 0x1003e4704 jz loc_1003E4819 ; +0x17, 0x1003e4707 add rdi, 548h ; +0x1d, 0x1003e470d movsxd rcx, esi ; +0x24, 0x1003e4714 mov rdx, r9 ; +0x27, 0x1003e4717 shr rdx, 1 ; +0x2a, 0x1003e471a mov r8, 5555555555555555h ; +0x2d, 0x1003e471d and r8, rdx ; +0x37, 0x1003e4727 mov rdx, r9 ; +0x3a, 0x1003e472a sub rdx, r8 ; +0x3d, 0x1003e472d mov r8, 3333333333333333h ; +0x40, 0x1003e4730 mov r10, rdx ; +0x4a, 0x1003e473a and r10, r8 ; +0x4d, 0x1003e473d shr rdx, 2 ; +0x50, 0x1003e4740 and rdx, r8 ; +0x54, 0x1003e4744 add rdx, r10 ; +0x57, 0x1003e4747 mov r8, rdx ; +0x5a, 0x1003e474a shr r8, 4 ; +0x5d, 0x1003e474d add r8, rdx ; +0x61, 0x1003e4751 mov rdx, 0F0F0F0F0F0F0F0Fh ; +0x64, 0x1003e4754 and rdx, r8 ; +0x6e, 0x1003e475e mov r11, 101010101010101h ; +0x71, 0x1003e4761 imul r11, rdx ; +0x7b, 0x1003e476b shr r11, 38h ; +0x7f, 0x1003e476f cmp r11, 1 ; +0x83, 0x1003e4773 ja short loc_1003E4782 ; +0x87, 0x1003e4777 lea r8, [r9-1] ; +0x89, 0x1003e4779 and r8, rcx ; +0x8d, 0x1003e477d jmp short loc_1003E47AF ; +0x90, 0x1003e4780 mov r8, rcx ; +0x92, 0x1003e4782 cmp r9, rcx ; +0x95, 0x1003e4785 ja short loc_1003E47AF ; +0x98, 0x1003e4788 mov rax, rcx ; +0x9a, 0x1003e478a or rax, r9 ; +0x9d, 0x1003e478d shr rax, 20h ; +0xa0, 0x1003e4790 jz short loc_1003E47A3 ; +0xa4, 0x1003e4794 mov rax, rcx ; +0xa6, 0x1003e4796 xor edx, edx ; +0xa9, 0x1003e4799 div r9 ; +0xab, 0x1003e479b mov r8, rdx ; +0xae, 0x1003e479e jmp short loc_1003E47AD ; +0xb1, 0x1003e47a1 mov eax, esi ; +0xb3, 0x1003e47a3 xor edx, edx ; +0xb5, 0x1003e47a5 div r9d ; +0xb7, 0x1003e47a7 mov r8d, edx ; +0xba, 0x1003e47aa xor eax, eax ; +0xbd, 0x1003e47ad mov rdx, [rdi] ; +0xbf, 0x1003e47af mov rdx, [rdx+r8*8] ; +0xc2, 0x1003e47b2 test rdx, rdx ; +0xc6, 0x1003e47b6 jz short loc_1003E4819 ; +0xc9, 0x1003e47b9 mov r10, [rdx] ; +0xcb, 0x1003e47bb test r10, r10 ; +0xce, 0x1003e47be jz short loc_1003E4819 ; +0xd1, 0x1003e47c1 cmp r11d, 2 ; +0xd3, 0x1003e47c3 jnb short loc_1003E47E2 ; +0xd7, 0x1003e47c7 dec r9 ; +0xd9, 0x1003e47c9 jmp short loc_1003E482E ; +0xdc, 0x1003e47cc align 10h ; +0xde, 0x1003e47ce cmp [r10+10h], esi ; +0xe0, 0x1003e47d0 jz short loc_1003E4841 ; +0xe4, 0x1003e47d4 mov r10, [r10] ; +0xe6, 0x1003e47d6 test r10, r10 ; +0xe9, 0x1003e47d9 jz loc_1003E4866 ; +0xec, 0x1003e47dc mov rax, [r10+8] ; +0xf2, 0x1003e47e2 cmp rax, rcx ; +0xf6, 0x1003e47e6 jz short loc_1003E47D0 ; +0xf9, 0x1003e47e9 cmp rax, r9 ; +0xfb, 0x1003e47eb jb short loc_1003E4804 ; +0xfe, 0x1003e47ee mov rdx, rax ; +0x100, 0x1003e47f0 or rdx, r9 ; +0x103, 0x1003e47f3 shr rdx, 20h ; +0x106, 0x1003e47f6 jz short loc_1003E480B ; +0x10a, 0x1003e47fa xor edx, edx ; +0x10c, 0x1003e47fc div r9 ; +0x10e, 0x1003e47fe mov rax, rdx ; +0x111, 0x1003e4801 cmp rax, r8 ; +0x114, 0x1003e4804 jz short loc_1003E47D6 ; +0x117, 0x1003e4807 jmp short loc_1003E4817 ; +0x119, 0x1003e4809 xor edx, edx ; +0x11b, 0x1003e480b div r9d ; +0x11d, 0x1003e480d mov eax, edx ; +0x120, 0x1003e4810 cmp rax, r8 ; +0x122, 0x1003e4812 jz short loc_1003E47D6 ; +0x125, 0x1003e4815 xor eax, eax ; +0x127, 0x1003e4817 add rsp, 10h ; +0x129, 0x1003e4819 pop rbp ; +0x12d, 0x1003e481d retn ; +0x12e, 0x1003e481e align 20h ; +0x12f, 0x1003e481f cmp [r10+10h], esi ; +0x130, 0x1003e4820 jz short loc_1003E4841 ; +0x134, 0x1003e4824 mov r10, [r10] ; +0x136, 0x1003e4826 test r10, r10 ; +0x139, 0x1003e4829 jz short loc_1003E4819 ; +0x13c, 0x1003e482c mov rdx, [r10+8] ; +0x13e, 0x1003e482e cmp rdx, rcx ; +0x142, 0x1003e4832 jz short loc_1003E4820 ; +0x145, 0x1003e4835 and rdx, r9 ; +0x147, 0x1003e4837 cmp rdx, r8 ; +0x14a, 0x1003e483a jz short loc_1003E4826 ; +0x14d, 0x1003e483d jmp short loc_1003E4819 ; +0x14f, 0x1003e483f lea rsi, [rbp+var_8] ; +0x151, 0x1003e4841 mov [rbp+var_10], rsi ; +0x155, 0x1003e4845 lea rdx, unk_10081B0A2 ; +0x159, 0x1003e4849 lea rcx, [rbp+var_10] ; +0x160, 0x1003e4850 lea r8, [rbp+var_1] ; +0x164, 0x1003e4854 call sub_100055BA0 ; +0x168, 0x1003e4858 mov eax, [rax+14h] ; +0x16d, 0x1003e485d add rsp, 10h ; +0x170, 0x1003e4860 pop rbp ; +0x174, 0x1003e4864 retn ; +0x175, 0x1003e4865 xor eax, eax ; +0x176, 0x1003e4866 add rsp, 10h ; +0x178, 0x1003e4868 pop rbp ; +0x17c, 0x1003e486c retn ; +0x17d, 0x1003e486d