	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_audio_config_spdif
_cdn_dp_audio_config_spdif:             ## @cdn_dp_audio_config_spdif
	.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
	movq	_SYNC_WR_TO_CH_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FIFO_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	$2, %edi
	callq	_MAX_NUM_CH
	movl	%eax, %ebx
	movq	_AUDIO_TYPE_LPCM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$4, %edi
	callq	_CFG_SUB_PCKT_NUM
	orl	%eax, %ebx
	movq	_SMPL2PKT_CNFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_SMPL2PKT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMPL2PKT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_SPDIF_ENABLE@GOTPCREL(%rip), %rax
	movq	_SPDIF_AVG_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SPDIF_JITTER_BYPASS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SPDIF_CTRL_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	(%r14), %edi
	callq	_clk_prepare_enable
	movl	(%r14), %edi
	movq	_CDN_DP_SPDIF_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_set_rate                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_WR_TO_CH_ZERO,4,2         ## @SYNC_WR_TO_CH_ZERO
	.comm	_FIFO_CNTL,8,3                  ## @FIFO_CNTL
	.comm	_AUDIO_TYPE_LPCM,4,2            ## @AUDIO_TYPE_LPCM
	.comm	_SMPL2PKT_CNFG,8,3              ## @SMPL2PKT_CNFG
	.comm	_SMPL2PKT_EN,4,2                ## @SMPL2PKT_EN
	.comm	_SMPL2PKT_CNTL,8,3              ## @SMPL2PKT_CNTL
	.comm	_SPDIF_ENABLE,4,2               ## @SPDIF_ENABLE
	.comm	_SPDIF_AVG_SEL,4,2              ## @SPDIF_AVG_SEL
	.comm	_SPDIF_JITTER_BYPASS,4,2        ## @SPDIF_JITTER_BYPASS
	.comm	_SPDIF_CTRL_ADDR,8,3            ## @SPDIF_CTRL_ADDR
	.comm	_CDN_DP_SPDIF_CLK,4,2           ## @CDN_DP_SPDIF_CLK
	.no_dead_strip	_cdn_dp_audio_config_spdif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_audio_config_spdif
_cdn_dp_audio_config_spdif:             ; @cdn_dp_audio_config_spdif
	.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
Lloh0:
	adrp	x8, _SYNC_WR_TO_CH_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYNC_WR_TO_CH_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _FIFO_CNTL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIFO_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #2
	bl	_MAX_NUM_CH
Lloh6:
	adrp	x8, _AUDIO_TYPE_LPCM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIO_TYPE_LPCM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #4
	bl	_CFG_SUB_PCKT_NUM
	orr	w0, w20, w0
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _SMPL2PKT_CNFG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMPL2PKT_CNFG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _SMPL2PKT_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMPL2PKT_EN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _SMPL2PKT_CNTL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SMPL2PKT_CNTL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh18:
	adrp	x8, _SPDIF_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPDIF_ENABLE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _SPDIF_AVG_SEL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SPDIF_AVG_SEL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _SPDIF_JITTER_BYPASS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SPDIF_JITTER_BYPASS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _SPDIF_CTRL_ADDR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SPDIF_CTRL_ADDR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _CDN_DP_SPDIF_CLK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CDN_DP_SPDIF_CLK@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_set_rate
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_WR_TO_CH_ZERO,4,2         ; @SYNC_WR_TO_CH_ZERO
	.comm	_FIFO_CNTL,8,3                  ; @FIFO_CNTL
	.comm	_AUDIO_TYPE_LPCM,4,2            ; @AUDIO_TYPE_LPCM
	.comm	_SMPL2PKT_CNFG,8,3              ; @SMPL2PKT_CNFG
	.comm	_SMPL2PKT_EN,4,2                ; @SMPL2PKT_EN
	.comm	_SMPL2PKT_CNTL,8,3              ; @SMPL2PKT_CNTL
	.comm	_SPDIF_ENABLE,4,2               ; @SPDIF_ENABLE
	.comm	_SPDIF_AVG_SEL,4,2              ; @SPDIF_AVG_SEL
	.comm	_SPDIF_JITTER_BYPASS,4,2        ; @SPDIF_JITTER_BYPASS
	.comm	_SPDIF_CTRL_ADDR,8,3            ; @SPDIF_CTRL_ADDR
	.comm	_CDN_DP_SPDIF_CLK,4,2           ; @CDN_DP_SPDIF_CLK
	.no_dead_strip	_cdn_dp_audio_config_spdif
.subsections_via_symbols
