; ; EditorSFXManager::hasSoundsForAction from 0x1008e2640 to 0x1008e2795 (341 bytes) ; ; 10 xrefs: ; > EditorUI::playSoundForCreatedObject @ 0x1000119dd ; > EditorSFXManager::playAction @ 0x1008e2612 ; > PlayLayer::tryShowDeathMarkers @ 0x10096206a ; > PlayLayer::tryShowDeathMarkers @ 0x100962080 ; > PlayLayer::tryShowDeathMarkers @ 0x100962131 ; > PlayLayer::tryShowDeathMarkers @ 0x100962147 ; > PlayLayer::tryShowDeathMarkers @ 0x1009623bf ; > PlayLayer::tryShowDeathMarkers @ 0x10096240b ; > PlayLayer::tryShowDeathMarkers @ 0x100962427 ; > PlayLayer::tryShowDeathMarkers @ 0x100962461 ; ; 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 12:37:46 +0000 ; mov r9, [rdi+8] ; +0x0, 0x1008e2640 test r9, r9 ; +0x4, 0x1008e2644 jz short loc_1008E26B7 ; +0x7, 0x1008e2647 movsxd rcx, esi ; +0x9, 0x1008e2649 mov rax, r9 ; +0xc, 0x1008e264c shr rax, 1 ; +0xf, 0x1008e264f mov rdx, 5555555555555555h ; +0x12, 0x1008e2652 and rdx, rax ; +0x1c, 0x1008e265c mov rax, r9 ; +0x1f, 0x1008e265f sub rax, rdx ; +0x22, 0x1008e2662 mov rdx, 3333333333333333h ; +0x25, 0x1008e2665 mov r8, rax ; +0x2f, 0x1008e266f and r8, rdx ; +0x32, 0x1008e2672 shr rax, 2 ; +0x35, 0x1008e2675 and rax, rdx ; +0x39, 0x1008e2679 add rax, r8 ; +0x3c, 0x1008e267c mov rdx, rax ; +0x3f, 0x1008e267f shr rdx, 4 ; +0x42, 0x1008e2682 add rdx, rax ; +0x46, 0x1008e2686 mov rax, 0F0F0F0F0F0F0F0Fh ; +0x49, 0x1008e2689 and rax, rdx ; +0x53, 0x1008e2693 mov r10, 101010101010101h ; +0x56, 0x1008e2696 imul r10, rax ; +0x60, 0x1008e26a0 shr r10, 38h ; +0x64, 0x1008e26a4 cmp r10, 1 ; +0x68, 0x1008e26a8 ja short loc_1008E26BA ; +0x6c, 0x1008e26ac lea r8, [r9-1] ; +0x6e, 0x1008e26ae and r8, rcx ; +0x72, 0x1008e26b2 jmp short loc_1008E26E5 ; +0x75, 0x1008e26b5 xor eax, eax ; +0x77, 0x1008e26b7 retn ; +0x79, 0x1008e26b9 mov r8, rcx ; +0x7a, 0x1008e26ba cmp r9, rcx ; +0x7d, 0x1008e26bd ja short loc_1008E26E5 ; +0x80, 0x1008e26c0 mov rax, rcx ; +0x82, 0x1008e26c2 or rax, r9 ; +0x85, 0x1008e26c5 shr rax, 20h ; +0x88, 0x1008e26c8 jz short loc_1008E26DB ; +0x8c, 0x1008e26cc mov rax, rcx ; +0x8e, 0x1008e26ce xor edx, edx ; +0x91, 0x1008e26d1 div r9 ; +0x93, 0x1008e26d3 mov r8, rdx ; +0x96, 0x1008e26d6 jmp short loc_1008E26E5 ; +0x99, 0x1008e26d9 mov eax, esi ; +0x9b, 0x1008e26db xor edx, edx ; +0x9d, 0x1008e26dd div r9d ; +0x9f, 0x1008e26df mov r8d, edx ; +0xa2, 0x1008e26e2 push rbp ; +0xa5, 0x1008e26e5 mov rbp, rsp ; +0xa6, 0x1008e26e6 mov rax, [rdi] ; +0xa9, 0x1008e26e9 mov rax, [rax+r8*8] ; +0xac, 0x1008e26ec test rax, rax ; +0xb0, 0x1008e26f0 jz loc_1008E2791 ; +0xb3, 0x1008e26f3 mov rdi, [rax] ; +0xb9, 0x1008e26f9 test rdi, rdi ; +0xbc, 0x1008e26fc jz loc_1008E2791 ; +0xbf, 0x1008e26ff cmp r10d, 2 ; +0xc5, 0x1008e2705 jnb short loc_1008E273D ; +0xc9, 0x1008e2709 dec r9 ; +0xcb, 0x1008e270b jmp short loc_1008E271D ; +0xce, 0x1008e270e cmp [rdi+10h], esi ; +0xd0, 0x1008e2710 jz short loc_1008E2774 ; +0xd3, 0x1008e2713 mov rdi, [rdi] ; +0xd5, 0x1008e2715 test rdi, rdi ; +0xd8, 0x1008e2718 jz short loc_1008E2791 ; +0xdb, 0x1008e271b mov rax, [rdi+8] ; +0xdd, 0x1008e271d cmp rax, rcx ; +0xe1, 0x1008e2721 jz short loc_1008E2710 ; +0xe4, 0x1008e2724 and rax, r9 ; +0xe6, 0x1008e2726 cmp rax, r8 ; +0xe9, 0x1008e2729 jz short loc_1008E2715 ; +0xec, 0x1008e272c jmp short loc_1008E2791 ; +0xee, 0x1008e272e cmp [rdi+10h], esi ; +0xf0, 0x1008e2730 jz short loc_1008E2774 ; +0xf3, 0x1008e2733 mov rdi, [rdi] ; +0xf5, 0x1008e2735 test rdi, rdi ; +0xf8, 0x1008e2738 jz short loc_1008E2791 ; +0xfb, 0x1008e273b mov rax, [rdi+8] ; +0xfd, 0x1008e273d cmp rax, rcx ; +0x101, 0x1008e2741 jz short loc_1008E2730 ; +0x104, 0x1008e2744 cmp rax, r9 ; +0x106, 0x1008e2746 jb short loc_1008E275F ; +0x109, 0x1008e2749 mov rdx, rax ; +0x10b, 0x1008e274b or rdx, r9 ; +0x10e, 0x1008e274e shr rdx, 20h ; +0x111, 0x1008e2751 jz short loc_1008E2766 ; +0x115, 0x1008e2755 xor edx, edx ; +0x117, 0x1008e2757 div r9 ; +0x119, 0x1008e2759 mov rax, rdx ; +0x11c, 0x1008e275c cmp rax, r8 ; +0x11f, 0x1008e275f jz short loc_1008E2735 ; +0x122, 0x1008e2762 jmp short loc_1008E2791 ; +0x124, 0x1008e2764 xor edx, edx ; +0x126, 0x1008e2766 div r9d ; +0x128, 0x1008e2768 mov eax, edx ; +0x12b, 0x1008e276b cmp rax, r8 ; +0x12d, 0x1008e276d jz short loc_1008E2735 ; +0x130, 0x1008e2770 jmp short loc_1008E2791 ; +0x132, 0x1008e2772 mov rax, [rdi+18h] ; +0x134, 0x1008e2774 test rax, rax ; +0x138, 0x1008e2778 jz short loc_1008E2791 ; +0x13b, 0x1008e277b mov rdi, [rax] ; +0x13d, 0x1008e277d test rdi, rdi ; +0x140, 0x1008e2780 jz short loc_1008E2791 ; +0x143, 0x1008e2783 call sub_1007FEF90 ; +0x145, 0x1008e2785 test eax, eax ; +0x14a, 0x1008e278a setnz al ; +0x14c, 0x1008e278c pop rbp ; +0x14f, 0x1008e278f retn ; +0x150, 0x1008e2790 xor eax, eax ; +0x151, 0x1008e2791 pop rbp ; +0x153, 0x1008e2793 retn ; +0x154, 0x1008e2794