	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ali_free_voice
_snd_ali_free_voice:                    ## @snd_ali_free_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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	40(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_snd_ali_printk
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.1:
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_snd_ali_clear_voices
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %r12
	movq	48(%rbx), %r15
	movq	$0, (%rbx)
	movq	$0, 48(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movl	40(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_ali_free_channel_pcm
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movq	%r12, %rax
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free_voice: channel=%d\n"

	.no_dead_strip	_snd_ali_free_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ali_free_voice
_snd_ali_free_voice:                    ; @snd_ali_free_voice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #40]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_ali_printk
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w1, [x20, #40]
	mov	x0, x19
	mov	x2, x1
	bl	_snd_ali_clear_voices
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x0, [x20]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x21, [x20, #48]
	str	xzr, [x20]
	str	xzr, [x20, #48]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x20, #40]
	mov	x0, x19
	bl	_snd_ali_free_channel_pcm
LBB0_3:
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #24]
	stur	q0, [x20, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x21
	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
	add	sp, sp, #64
	br	x1
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free_voice: channel=%d\n"

	.no_dead_strip	_snd_ali_free_voice
.subsections_via_symbols
