	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_pcm_close
_hdmi_pcm_close:                        ## @hdmi_pcm_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rdi), %esi
	xorl	%r12d, %r12d
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	movq	(%r14), %r15
	movq	%r15, %rdi
	callq	_cvt_nid_to_cvt_index
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_cvt
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_snd_BUG_ON
	movq	$0, (%rbx)
	movl	$0, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_hinfo_to_pin_index
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_pin
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_hda_spdif_ctls_unassign
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdmi_pcm_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_pcm_close
_hdmi_pcm_close:                        ; @hdmi_pcm_close
	.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
	ldr	w1, [x0]
	cbz	w1, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x20, [x19]
	mov	x0, x20
	bl	_cvt_nid_to_cvt_index
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	bl	_get_cvt
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	str	xzr, [x22]
	str	wzr, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_hinfo_to_pin_index
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_get_pin
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_spdif_ctls_unassign
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdmi_pcm_close
.subsections_via_symbols
