	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs46xx_dsp_disable_spdif_in    ## -- Begin function cs46xx_dsp_disable_spdif_in
	.p2align	4, 0x90
_cs46xx_dsp_disable_spdif_in:           ## @cs46xx_dsp_disable_spdif_in
	.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	%rdi, %r15
	movq	24(%rdi), %rbx
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_cs46xx_dsp_remove_scb
	movq	$0, 16(%rbx)
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_cs46xx_src_unlink
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	*8(%r15)
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	*(%r15)
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs46xx_dsp_disable_spdif_in    ; -- Begin function cs46xx_dsp_disable_spdif_in
	.p2align	2
_cs46xx_dsp_disable_spdif_in:           ; @cs46xx_dsp_disable_spdif_in
	.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, x0
	ldr	x21, [x0, #24]
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_4:
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_cs46xx_dsp_remove_scb
	str	xzr, [x21, #16]
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_cs46xx_src_unlink
	str	xzr, [x21]
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #-1
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #-1
	blr	x8
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
