	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ca0106_pcm_close_playback
_snd_ca0106_pcm_close_playback:         ## @snd_ca0106_pcm_close_playback
	.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	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	16(%r14), %rax
	movq	(%rbx), %rsi
	movq	$0, (%rax,%rsi,8)
	movq	%r14, %rdi
	callq	_restore_spdif_bits
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_PCM_FRONT_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_spi_dacd_reg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rax,4), %rcx
	movq	_spi_dacd_bit@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%r14), %rdi
	movl	(%rdi,%rcx,4), %esi
	orl	(%rdx,%rax,4), %esi
	movl	%esi, (%rdi,%rcx,4)
	movq	%r14, %rdi
	callq	_snd_ca0106_spi_write
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_FRONT_CHANNEL,8,3          ## @PCM_FRONT_CHANNEL
	.comm	_spi_dacd_reg,8,3               ## @spi_dacd_reg
	.comm	_spi_dacd_bit,8,3               ## @spi_dacd_bit
	.no_dead_strip	_snd_ca0106_pcm_close_playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ca0106_pcm_close_playback
_snd_ca0106_pcm_close_playback:         ; @snd_ca0106_pcm_close_playback
	.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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	x8, [x0, #16]
	ldr	x1, [x20]
	str	xzr, [x8, x1, lsl #3]
	bl	_restore_spdif_bits
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PCM_FRONT_CHANNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCM_FRONT_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _spi_dacd_reg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _spi_dacd_reg@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x8, x8, #2
	ldrsw	x9, [x9, x8]
Lloh6:
	adrp	x10, _spi_dacd_bit@GOTPAGE
Lloh7:
	ldr	x10, [x10, _spi_dacd_bit@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	w8, [x10, x8]
	ldr	x10, [x19]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	orr	w1, w11, w8
	str	w1, [x10, x9]
	mov	x0, x19
	bl	_snd_ca0106_spi_write
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCM_FRONT_CHANNEL,8,3          ; @PCM_FRONT_CHANNEL
	.comm	_spi_dacd_reg,8,3               ; @spi_dacd_reg
	.comm	_spi_dacd_bit,8,3               ; @spi_dacd_bit
	.no_dead_strip	_snd_ca0106_pcm_close_playback
.subsections_via_symbols
