	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_spdif_close
_snd_atiixp_spdif_close:                ## @snd_atiixp_spdif_close
	.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, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_ATI_DMA_SPDIF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ATI_DMA_PLAYBACK@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_snd_atiixp_pcm_close
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATI_DMA_PLAYBACK,8,3           ## @ATI_DMA_PLAYBACK
	.comm	_ATI_DMA_SPDIF,8,3              ## @ATI_DMA_SPDIF
	.no_dead_strip	_snd_atiixp_spdif_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_atiixp_spdif_close
_snd_atiixp_spdif_close:                ; @snd_atiixp_spdif_close
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	bl	_mutex_lock
	ldp	x9, x8, [x20, #8]
Lloh0:
	adrp	x10, _ATI_DMA_SPDIF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATI_DMA_SPDIF@GOTPAGEOFF]
Lloh2:
	adrp	x11, _ATI_DMA_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ATI_DMA_PLAYBACK@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	bl	_snd_atiixp_pcm_close
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATI_DMA_PLAYBACK,8,3           ; @ATI_DMA_PLAYBACK
	.comm	_ATI_DMA_SPDIF,8,3              ; @ATI_DMA_SPDIF
	.no_dead_strip	_snd_atiixp_spdif_close
.subsections_via_symbols
