	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trigger_voice
_trigger_voice:                         ## @trigger_voice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	movq	32(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	_MIDI_CTL_E1_REVERB_DEPTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %eax
	leal	(%rax,%rax,8), %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	addl	12(%rdi), %ebx
	movl	%ebx, %edi
	movl	$255, %esi
	callq	_LIMITMAX
	shll	$8, %ebx
	movl	4(%r12), %edx
	shll	$16, %edx
	orl	8(%r12), %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_PTRX_WRITE
	movl	4(%r12), %edx
	shll	$16, %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_CPF_WRITE
	movl	16(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EMU8000_DCYSUSV_WRITE          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_CTL_E1_REVERB_DEPTH,8,3   ## @MIDI_CTL_E1_REVERB_DEPTH
	.no_dead_strip	_trigger_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trigger_voice
_trigger_voice:                         ; @trigger_voice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w20, [x0]
	ldr	w8, [x0, #12]
	ldp	x9, x21, [x0, #24]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _MIDI_CTL_E1_REVERB_DEPTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MIDI_CTL_E1_REVERB_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	add	w9, w9, w9, lsl #3
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #2
	add	w22, w9, w8
	mov	x0, x22
	mov	w1, #255
	bl	_LIMITMAX
	ldp	w8, w9, [x19, #4]
	orr	w8, w9, w8, lsl #16
	orr	w2, w8, w22, lsl #8
	mov	x0, x21
	mov	x1, x20
	bl	_EMU8000_PTRX_WRITE
	ldr	w8, [x19, #4]
	lsl	w2, w8, #16
	mov	x0, x21
	mov	x1, x20
	bl	_EMU8000_CPF_WRITE
	ldr	w2, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EMU8000_DCYSUSV_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_CTL_E1_REVERB_DEPTH,8,3   ; @MIDI_CTL_E1_REVERB_DEPTH
	.no_dead_strip	_trigger_voice
.subsections_via_symbols
