	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_voice
_start_voice:                           ## @start_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	72(%rdi), %r12
	movl	(%rdi), %r14d
	movq	64(%rdi), %rbx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$128, %edx
	callq	_EMU8000_DCYSUSV_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_EMU8000_VTFT_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_EMU8000_CVCF_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_EMU8000_PTRX_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_EMU8000_CPF_WRITE
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_pitch
	movl	56(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_ENVVAL_WRITE
	movl	52(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_ATKHLD_WRITE
	movl	48(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_DCYSUS_WRITE
	movl	44(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_ENVVOL_WRITE
	movl	40(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_ATKHLDV_WRITE
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_volume
	movl	36(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_PEFE_WRITE
	movl	32(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_LFO1VAL_WRITE
	movl	28(%r15), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_LFO2VAL_WRITE
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_fmmod
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_tremfreq
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_fm2frq2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_pan
	movl	12(%r15), %r13d
	decl	%r13d
	movq	(%rbx), %rax
	movq	_MIDI_CTL_E3_CHORUS_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	20(%r15), %ebx
	movl	%ebx, %edi
	movl	$255, %esi
	callq	_LIMITMAX
	shll	$24, %ebx
	orl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_EMU8000_CSL_WRITE
	movl	16(%r15), %eax
	movl	24(%r15), %edx
	decl	%eax
	shll	$28, %edx
	orl	%eax, %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_CCCA_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_EMU8000_00A0_WRITE
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_EMU8000_0080_WRITE
	movl	4(%r15), %ebx
	shll	$16, %ebx
	movl	8(%r15), %edx
	orl	%ebx, %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_EMU8000_VTFT_WRITE
	orl	$65280, %ebx                    ## imm = 0xFF00
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_EMU8000_CVCF_WRITE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_CTL_E3_CHORUS_DEPTH,8,3   ## @MIDI_CTL_E3_CHORUS_DEPTH
	.no_dead_strip	_start_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_voice
_start_voice:                           ; @start_voice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	w19, [x0]
	ldp	x22, x20, [x0, #64]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #128
	bl	_EMU8000_DCYSUSV_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #65535
	bl	_EMU8000_VTFT_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #65535
	bl	_EMU8000_CVCF_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_EMU8000_PTRX_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_EMU8000_CPF_WRITE
	mov	x0, x20
	mov	x1, x21
	bl	_set_pitch
	ldr	w2, [x21, #56]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_ENVVAL_WRITE
	ldr	w2, [x21, #52]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_ATKHLD_WRITE
	ldr	w2, [x21, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_DCYSUS_WRITE
	ldr	w2, [x21, #44]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_ENVVOL_WRITE
	ldr	w2, [x21, #40]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_ATKHLDV_WRITE
	mov	x0, x20
	mov	x1, x21
	bl	_set_volume
	ldr	w2, [x21, #36]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_PEFE_WRITE
	ldr	w2, [x21, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_LFO1VAL_WRITE
	ldr	w2, [x21, #28]
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_LFO2VAL_WRITE
	mov	x0, x20
	mov	x1, x21
	bl	_set_fmmod
	mov	x0, x20
	mov	x1, x21
	bl	_set_tremfreq
	mov	x0, x20
	mov	x1, x21
	bl	_set_fm2frq2
	mov	x0, x20
	mov	x1, x21
	bl	_set_pan
	ldr	w8, [x21, #12]
	sub	w23, w8, #1
	ldr	w8, [x21, #20]
	ldr	x9, [x22]
Lloh0:
	adrp	x10, _MIDI_CTL_E3_CHORUS_DEPTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MIDI_CTL_E3_CHORUS_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
	orr	w2, w23, w22, lsl #24
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_CSL_WRITE
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	ldr	w9, [x21, #24]
	orr	w2, w8, w9, lsl #28
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_CCCA_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_EMU8000_00A0_WRITE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_EMU8000_0080_WRITE
	ldp	w22, w8, [x21, #4]
	lsl	w9, w22, #16
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_VTFT_WRITE
	mov	w2, #65280
	bfi	w2, w22, #16, #16
	mov	x0, x20
	mov	x1, x19
	bl	_EMU8000_CVCF_WRITE
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_CTL_E3_CHORUS_DEPTH,8,3   ; @MIDI_CTL_E3_CHORUS_DEPTH
	.no_dead_strip	_start_voice
.subsections_via_symbols
