; ; EditorSFXActionConfigLayer::onPreviewSound from 0x1008e06e0 to 0x1008e0786 (166 bytes) ; ; 1 xrefs: ; > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0375 ; ; 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:45 +0000 ; push rbp ; +0x0, 0x1008e06e0 mov rbp, rsp ; +0x1, 0x1008e06e1 push r15 ; +0x4, 0x1008e06e4 push r14 ; +0x6, 0x1008e06e6 push rbx ; +0x8, 0x1008e06e8 push rax ; +0x9, 0x1008e06e9 mov r14, rdi ; +0xa, 0x1008e06ea mov rax, [rsi] ; +0xd, 0x1008e06ed mov rdi, rsi ; +0x10, 0x1008e06f0 call qword ptr [rax+40h] ; +0x13, 0x1008e06f3 mov r15d, eax ; +0x16, 0x1008e06f6 lea eax, [r15-3E8h] ; +0x19, 0x1008e06f9 lea ebx, [r15-3E1h] ; +0x20, 0x1008e0700 test eax, eax ; +0x27, 0x1008e0707 cmovns ebx, eax ; +0x29, 0x1008e0709 call EditorSFXManager__sharedState ; +0x2c, 0x1008e070c mov esi, [r14+400h] ; +0x31, 0x1008e0711 mov rdi, rax ; +0x38, 0x1008e0718 call EditorSFXManager__soundsForAction ; +0x3b, 0x1008e071b mov r14, rax ; +0x40, 0x1008e0720 test rax, rax ; +0x43, 0x1008e0723 setz al ; +0x46, 0x1008e0726 cmp r15d, 3E1h ; +0x49, 0x1008e0729 setl cl ; +0x50, 0x1008e0730 or cl, al ; +0x53, 0x1008e0733 jnz short loc_1008E077B ; +0x55, 0x1008e0735 sar ebx, 3 ; +0x57, 0x1008e0737 mov rdi, r14 ; +0x5a, 0x1008e073a call sub_1007FEF90 ; +0x5d, 0x1008e073d cmp ebx, eax ; +0x62, 0x1008e0742 jge short loc_1008E077B ; +0x64, 0x1008e0744 mov rdi, r14 ; +0x66, 0x1008e0746 mov esi, ebx ; +0x69, 0x1008e0749 call sub_1007FEFE0 ; +0x6b, 0x1008e074b test rax, rax ; +0x70, 0x1008e0750 jz short loc_1008E077B ; +0x73, 0x1008e0753 mov rbx, rax ; +0x75, 0x1008e0755 cmp dword ptr [rax+748h], 0 ; +0x78, 0x1008e0758 jle short loc_1008E077B ; +0x7f, 0x1008e075f call GameManager__sharedState ; +0x81, 0x1008e0761 mov rdi, rax ; +0x86, 0x1008e0766 mov rsi, rbx ; +0x89, 0x1008e0769 add rsp, 8 ; +0x8c, 0x1008e076c pop rbx ; +0x90, 0x1008e0770 pop r14 ; +0x91, 0x1008e0771 pop r15 ; +0x93, 0x1008e0773 pop rbp ; +0x95, 0x1008e0775 jmp GameManager__playSFXTrigger ; +0x96, 0x1008e0776 add rsp, 8 ; +0x9b, 0x1008e077b pop rbx ; +0x9f, 0x1008e077f pop r14 ; +0xa0, 0x1008e0780 pop r15 ; +0xa2, 0x1008e0782 pop rbp ; +0xa4, 0x1008e0784 retn ; +0xa5, 0x1008e0785