	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_audio_config            ## -- Begin function cdn_dp_audio_config
	.p2align	4, 0x90
_cdn_dp_audio_config:                   ## @cdn_dp_audio_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_AFMT_SPDIF@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	callq	_reset_control_assert
	movl	4(%r15), %edi
	callq	_reset_control_deassert
LBB0_2:
	movq	_CM_LANE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LANE_REF_CYC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_CM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	(%r14), %rax
	movq	_AFMT_I2S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cdn_dp_audio_config_i2s
	jmp	LBB0_8
LBB0_6:
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_cdn_dp_audio_config_spdif
LBB0_8:
	movq	_AUDIO_PACK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUDIO_PACK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AFMT_SPDIF,8,3                 ## @AFMT_SPDIF
	.comm	_CM_LANE_CTRL,4,2               ## @CM_LANE_CTRL
	.comm	_LANE_REF_CYC,4,2               ## @LANE_REF_CYC
	.comm	_CM_CTRL,4,2                    ## @CM_CTRL
	.comm	_AFMT_I2S,8,3                   ## @AFMT_I2S
	.comm	_AUDIO_PACK_CONTROL,4,2         ## @AUDIO_PACK_CONTROL
	.comm	_AUDIO_PACK_EN,4,2              ## @AUDIO_PACK_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio config failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_audio_config            ; -- Begin function cdn_dp_audio_config
	.p2align	2
_cdn_dp_audio_config:                   ; @cdn_dp_audio_config
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _AFMT_SPDIF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AFMT_SPDIF@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_reset_control_assert
	ldr	w0, [x19, #4]
	bl	_reset_control_deassert
LBB0_2:
Lloh2:
	adrp	x8, _CM_LANE_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CM_LANE_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _LANE_REF_CYC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LANE_REF_CYC@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _CM_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CM_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cdn_dp_reg_write
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _AFMT_I2S@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AFMT_I2S@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_cdn_dp_audio_config_i2s
	b	LBB0_8
LBB0_6:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_cdn_dp_audio_config_spdif
LBB0_8:
Lloh14:
	adrp	x8, _AUDIO_PACK_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUDIO_PACK_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _AUDIO_PACK_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUDIO_PACK_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_9:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_ERROR
LBB0_10:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AFMT_SPDIF,8,3                 ; @AFMT_SPDIF
	.comm	_CM_LANE_CTRL,4,2               ; @CM_LANE_CTRL
	.comm	_LANE_REF_CYC,4,2               ; @LANE_REF_CYC
	.comm	_CM_CTRL,4,2                    ; @CM_CTRL
	.comm	_AFMT_I2S,8,3                   ; @AFMT_I2S
	.comm	_AUDIO_PACK_CONTROL,4,2         ; @AUDIO_PACK_CONTROL
	.comm	_AUDIO_PACK_EN,4,2              ; @AUDIO_PACK_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio config failed: %d\n"

.subsections_via_symbols
