	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate_voice
_terminate_voice:                       ## @terminate_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	16(%rbx), %rdi
	movq	_DCYSUSV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	_DCYSUSV_CHANNELENABLE_MASK@GOTPCREL(%rip), %rax
	movl	$32895, %ecx                    ## imm = 0x807F
	orl	(%rax), %ecx
	callq	_snd_emu10k1_ptr_write
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_4
## %bb.3:
	decq	%rcx
	movq	%rcx, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCYSUSV,4,2                    ## @DCYSUSV
	.comm	_DCYSUSV_CHANNELENABLE_MASK,4,2 ## @DCYSUSV_CHANNELENABLE_MASK
	.no_dead_strip	_terminate_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminate_voice
_terminate_voice:                       ; @terminate_voice
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _DCYSUSV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCYSUSV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x8, _DCYSUSV_CHANNELENABLE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCYSUSV_CHANNELENABLE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #32895
	orr	w3, w8, w9
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x8]
	subs	x9, x9, #1
	b.lt	LBB0_4
; %bb.3:
	str	x9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCYSUSV,4,2                    ; @DCYSUSV
	.comm	_DCYSUSV_CHANNELENABLE_MASK,4,2 ; @DCYSUSV_CHANNELENABLE_MASK
	.no_dead_strip	_terminate_voice
.subsections_via_symbols
