	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_playback_trigger_voice
_snd_emu10k1_playback_trigger_voice:    ## @snd_emu10k1_playback_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	%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
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rsi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movl	(%rsi), %r15d
	movl	(%r14), %edi
	callq	_snd_emu10k1_rate_to_pitch
	movl	%eax, %r12d
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_PITCH_48000@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	callq	_emu10k1_calc_pitch_target
	movl	%eax, %r14d
LBB0_4:
	sarl	$8, %r12d
	movq	_PTRX_PITCHTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_snd_emu10k1_ptr_write
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_PLAYBACK_EFX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	_CPF_CURRENTPITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_snd_emu10k1_ptr_write
LBB0_7:
	movq	_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_snd_emu10k1_ptr_write
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_emu10k1_voice_intr_enable  ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PITCH_48000,4,2                ## @PITCH_48000
	.comm	_PTRX_PITCHTARGET,4,2           ## @PTRX_PITCHTARGET
	.comm	_PLAYBACK_EFX,8,3               ## @PLAYBACK_EFX
	.comm	_CPF_CURRENTPITCH,4,2           ## @CPF_CURRENTPITCH
	.comm	_IP,4,2                         ## @IP
	.no_dead_strip	_snd_emu10k1_playback_trigger_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_playback_trigger_voice
_snd_emu10k1_playback_trigger_voice:    ; @snd_emu10k1_playback_trigger_voice
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x1, LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	x8, [x8, #8]
	ldr	x25, [x8]
	ldr	w21, [x1]
	ldr	w0, [x25]
	bl	_snd_emu10k1_rate_to_pitch
	asr	w22, w0, #8
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PITCH_48000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PITCH_48000@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x25]
	bl	_emu10k1_calc_pitch_target
	mov	x25, x0
LBB0_4:
Lloh3:
	adrp	x8, _PTRX_PITCHTARGET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTRX_PITCHTARGET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x25
	bl	_snd_emu10k1_ptr_write
	cbnz	w24, LBB0_6
; %bb.5:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PLAYBACK_EFX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLAYBACK_EFX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _CPF_CURRENTPITCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPF_CURRENTPITCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x25
	bl	_snd_emu10k1_ptr_write
LBB0_7:
Lloh12:
	adrp	x8, _IP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_snd_emu10k1_ptr_write
	cbz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_emu10k1_voice_intr_enable
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PITCH_48000,4,2                ; @PITCH_48000
	.comm	_PTRX_PITCHTARGET,4,2           ; @PTRX_PITCHTARGET
	.comm	_PLAYBACK_EFX,8,3               ; @PLAYBACK_EFX
	.comm	_CPF_CURRENTPITCH,4,2           ; @CPF_CURRENTPITCH
	.comm	_IP,4,2                         ; @IP
	.no_dead_strip	_snd_emu10k1_playback_trigger_voice
.subsections_via_symbols
