	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs46xx_dsp_pcm_unlink          ## -- Begin function cs46xx_dsp_pcm_unlink
	.p2align	4, 0x90
_cs46xx_dsp_pcm_unlink:                 ## @cs46xx_dsp_pcm_unlink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$0, 20(%rsi)
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_spin_lock
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rdi
	callq	_spin_unlock
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	__dsp_unlink_scb
	movq	8(%rbx), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs46xx_dsp_pcm_unlink          ; -- Begin function cs46xx_dsp_pcm_unlink
	.p2align	2
_cs46xx_dsp_pcm_unlink:                 ; @cs46xx_dsp_pcm_unlink
	.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, x1
	mov	x20, x0
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, #1
	cset	w0, lt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_5
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_spin_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_spin_unlock
LBB0_5:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	__dsp_unlink_scb
	ldr	x0, [x19, #8]
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
