	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs46xx_dsp_pcm_link            ## -- Begin function cs46xx_dsp_pcm_link
	.p2align	4, 0x90
_cs46xx_dsp_pcm_link:                   ## @cs46xx_dsp_pcm_link
	.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
	movq	8(%rdi), %r12
	movq	8(%rsi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	16(%r15), %rcx
	movq	16(%rbx), %rax
	cmpq	(%r12), %rcx
	je	LBB0_4
## %bb.3:
	movq	%rax, 8(%rcx)
	movq	%rcx, 24(%rax)
LBB0_4:
	movq	%rax, 16(%r15)
	movq	8(%rax), %rdi
	callq	_snd_BUG_ON
	movq	16(%rbx), %rax
	movq	%r15, 8(%rax)
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cs46xx_dsp_spos_update_scb
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cs46xx_dsp_spos_update_scb
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	8(%rbx), %rdi
	callq	_spin_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_link            ; -- Begin function cs46xx_dsp_pcm_link
	.p2align	2
_cs46xx_dsp_pcm_link:                   ; @cs46xx_dsp_pcm_link
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x21, [x1, #8]
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x21, #16]
	ldr	x10, [x22]
	ldr	x8, [x19, #16]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
	str	x8, [x9, #8]
	str	x9, [x8, #24]
LBB0_3:
	str	x8, [x21, #16]
	ldr	x0, [x8, #8]
	bl	_snd_BUG_ON
	ldr	x8, [x19, #16]
	str	x21, [x8, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_cs46xx_dsp_spos_update_scb
	mov	x0, x20
	mov	x1, x21
	bl	_cs46xx_dsp_spos_update_scb
	str	xzr, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_spin_unlock
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
