	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_audio_stop              ## -- Begin function cdn_dp_audio_stop
	.p2align	4, 0x90
_cdn_dp_audio_stop:                     ## @cdn_dp_audio_stop
	.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, %r15
	movq	%rdi, %rbx
	movq	_AUDIO_PACK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_4
LBB0_2:
	movq	_SPDIF_CTRL_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_AUDIO_SRC_CNTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_AUDIO_SRC_CNFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_AUDIO_SW_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SMPL2PKT_CNTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%r12), %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%r12), %edi
	movq	_FIFO_CNTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	(%r15), %rax
	movq	_AFMT_SPDIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_PACK_CONTROL,4,2         ## @AUDIO_PACK_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio stop failed: %d\n"

	.comm	_SPDIF_CTRL_ADDR,8,3            ## @SPDIF_CTRL_ADDR
	.comm	_AUDIO_SRC_CNTL,8,3             ## @AUDIO_SRC_CNTL
	.comm	_AUDIO_SRC_CNFG,8,3             ## @AUDIO_SRC_CNFG
	.comm	_AUDIO_SW_RST,4,2               ## @AUDIO_SW_RST
	.comm	_SMPL2PKT_CNTL,8,3              ## @SMPL2PKT_CNTL
	.comm	_FIFO_CNTL,8,3                  ## @FIFO_CNTL
	.comm	_AFMT_SPDIF,8,3                 ## @AFMT_SPDIF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_audio_stop              ; -- Begin function cdn_dp_audio_stop
	.p2align	2
_cdn_dp_audio_stop:                     ; @cdn_dp_audio_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AUDIO_PACK_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_PACK_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_cdn_dp_reg_write
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _SPDIF_CTRL_ADDR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPDIF_CTRL_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x22, _AUDIO_SRC_CNTL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _AUDIO_SRC_CNTL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _AUDIO_SRC_CNFG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AUDIO_SRC_CNFG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh13:
	adrp	x23, _AUDIO_SW_RST@GOTPAGE
Lloh14:
	ldr	x23, [x23, _AUDIO_SW_RST@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x22, _SMPL2PKT_CNTL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _SMPL2PKT_CNTL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x22, _FIFO_CNTL@GOTPAGE
Lloh18:
	ldr	x22, [x22, _FIFO_CNTL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _AFMT_SPDIF@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AFMT_SPDIF@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_PACK_CONTROL,4,2         ; @AUDIO_PACK_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio stop failed: %d\n"

	.comm	_SPDIF_CTRL_ADDR,8,3            ; @SPDIF_CTRL_ADDR
	.comm	_AUDIO_SRC_CNTL,8,3             ; @AUDIO_SRC_CNTL
	.comm	_AUDIO_SRC_CNFG,8,3             ; @AUDIO_SRC_CNFG
	.comm	_AUDIO_SW_RST,4,2               ; @AUDIO_SW_RST
	.comm	_SMPL2PKT_CNTL,8,3              ; @SMPL2PKT_CNTL
	.comm	_FIFO_CNTL,8,3                  ; @FIFO_CNTL
	.comm	_AFMT_SPDIF,8,3                 ; @AFMT_SPDIF
.subsections_via_symbols
