	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	32(%rdi), %r12
	movl	24(%rdi), %edi
	callq	_calc_pitch_target
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$65280, %edx                    ## imm = 0xFF00
	callq	_EMU8000_IFATN_WRITE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_EMU8000_VTFT_WRITE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_EMU8000_CVCF_WRITE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$32639, %edx                    ## imm = 0x7F7F
	callq	_EMU8000_DCYSUSV_WRITE
	movq	(%r14), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %eax
	negl	%eax
	movzbl	%al, %eax
	movl	$255, %edx
	cmovbl	%eax, %edx
	shll	$16, %r15d
	orl	%r15d, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_EMU8000_PTRX_WRITE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_EMU8000_CPF_WRITE
	leaq	12(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 8(%r14)
	jne	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	leaq	16(%r14), %rdi
	movq	%rax, 16(%r14)
	callq	_add_timer
	movl	$1, 8(%r14)
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
	ldr	w0, [x0, #24]
	bl	_calc_pitch_target
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #65280
	bl	_EMU8000_IFATN_WRITE
	mov	x0, x21
	mov	x1, x20
	mov	w2, #65535
	bl	_EMU8000_VTFT_WRITE
	mov	x0, x21
	mov	x1, x20
	mov	w2, #65535
	bl	_EMU8000_CVCF_WRITE
	mov	x0, x21
	mov	x1, x20
	mov	w2, #32639
	bl	_EMU8000_DCYSUSV_WRITE
	ldr	x8, [x19]
	ldr	w8, [x8, w20, sxtw #2]
	neg	w9, w8
	and	w9, w9, #0xff
	mov	w10, #255
	cmp	w8, #0
	csel	w2, w10, w9, eq
	lsl	w23, w22, #16
	bfi	w2, w22, #16, #16
	mov	x0, x21
	mov	x1, x20
	bl	_EMU8000_PTRX_WRITE
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_EMU8000_CPF_WRITE
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, #1
	str	x8, [x19, #16]!
	mov	x0, x19
	bl	_add_timer
	mov	w8, #1
	stur	w8, [x19, #-8]
LBB0_2:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_start_voice
.subsections_via_symbols
