	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	js	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	16(%rdi), %edi
	callq	_IP_TO_CP
	movl	%eax, %r15d
	movl	(%rbx), %ecx
	movl	12(%rbx), %edx
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	4(%rbx), %ecx
	movq	_PTRX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_emu10k1_ptr_write
	movq	_CPF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	_DCYSUSV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	_DCYSUSV_CHANNELENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	8(%rbx), %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_emu10k1_ptr_write          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRX,4,2                       ## @PTRX
	.comm	_CPF,4,2                        ## @CPF
	.comm	_DCYSUSV,4,2                    ## @DCYSUSV
	.comm	_DCYSUSV_CHANNELENABLE_MASK,4,2 ## @DCYSUSV_CHANNELENABLE_MASK
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldr	w0, [x0, #16]
	bl	_IP_TO_CP
	mov	x21, x0
	ldp	w8, w9, [x19]
	orr	w8, w0, w8, lsl #8
	orr	w3, w8, w9
Lloh0:
	adrp	x8, _PTRX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	x0, x20
	bl	_snd_emu10k1_ptr_write
Lloh3:
	adrp	x8, _CPF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	x0, x20
	mov	x3, x21
	bl	_snd_emu10k1_ptr_write
Lloh6:
	adrp	x8, _DCYSUSV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCYSUSV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	w8, w2, [x19, #8]
Lloh9:
	adrp	x9, _DCYSUSV_CHANNELENABLE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DCYSUSV_CHANNELENABLE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, 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	_snd_emu10k1_ptr_write
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRX,4,2                       ; @PTRX
	.comm	_CPF,4,2                        ; @CPF
	.comm	_DCYSUSV,4,2                    ; @DCYSUSV
	.comm	_DCYSUSV_CHANNELENABLE_MASK,4,2 ; @DCYSUSV_CHANNELENABLE_MASK
	.no_dead_strip	_trigger_voice
.subsections_via_symbols
