	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_config_ctrl
_edp_config_ctrl:                       ## @edp_config_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rdi
	decq	%rdi
	callq	_EDP_CONFIGURATION_CTRL_LANES
	movl	%eax, %r14d
	movq	_DP_LINK_CAP_ENHANCED_FRAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	20(%r15), %ebx
	je	LBB0_2
## %bb.1:
	movq	_EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	cmpl	$8, (%r15)
	jne	LBB0_3
## %bb.4:
	movq	_EDP_8BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EDP_6BIT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_EDP_CONFIGURATION_CTRL_COLOR
	xorl	%ecx, %ecx
	cmpl	$0, 16(%r15)
	jne	LBB0_7
## %bb.6:
	movq	_EDP_CONFIGURATION_CTRL_PROGRESSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	movq	_EDP_CONFIGURATION_CTRL_SYNC_CLK@GOTPCREL(%rip), %rdx
	movq	_EDP_CONFIGURATION_CTRL_STATIC_MVID@GOTPCREL(%rip), %rsi
	orl	%r14d, %ebx
	orl	%ecx, %eax
	orl	%ebx, %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_REG_EDP_CONFIGURATION_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%r15), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edp_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_LINK_CAP_ENHANCED_FRAMING,4,2 ## @DP_LINK_CAP_ENHANCED_FRAMING
	.comm	_EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING,4,2 ## @EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING
	.comm	_EDP_6BIT,4,2                   ## @EDP_6BIT
	.comm	_EDP_8BIT,4,2                   ## @EDP_8BIT
	.comm	_EDP_CONFIGURATION_CTRL_PROGRESSIVE,4,2 ## @EDP_CONFIGURATION_CTRL_PROGRESSIVE
	.comm	_EDP_CONFIGURATION_CTRL_SYNC_CLK,4,2 ## @EDP_CONFIGURATION_CTRL_SYNC_CLK
	.comm	_EDP_CONFIGURATION_CTRL_STATIC_MVID,4,2 ## @EDP_CONFIGURATION_CTRL_STATIC_MVID
	.comm	_REG_EDP_CONFIGURATION_CTRL,8,3 ## @REG_EDP_CONFIGURATION_CTRL
	.no_dead_strip	_edp_config_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_config_ctrl
_edp_config_ctrl:                       ; @edp_config_ctrl
	.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, x0
	ldr	x8, [x0, #24]
	sub	x0, x8, #1
	bl	_EDP_CONFIGURATION_CTRL_LANES
	mov	x20, x0
	ldr	w8, [x19, #20]
Lloh0:
	adrp	x9, _DP_LINK_CAP_ENHANCED_FRAMING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_LINK_CAP_ENHANCED_FRAMING@GOTPAGEOFF]
Lloh2:
	adrp	x10, _EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w21, wzr, w10, eq
Lloh6:
	adrp	x8, _EDP_8BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDP_8BIT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _EDP_6BIT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EDP_6BIT@GOTPAGEOFF]
	cmp	w9, #8
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_EDP_CONFIGURATION_CTRL_COLOR
	ldr	w8, [x19, #16]
Lloh10:
	adrp	x9, _EDP_CONFIGURATION_CTRL_PROGRESSIVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EDP_CONFIGURATION_CTRL_PROGRESSIVE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, wzr, eq
Lloh13:
	adrp	x9, _EDP_CONFIGURATION_CTRL_SYNC_CLK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EDP_CONFIGURATION_CTRL_SYNC_CLK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _EDP_CONFIGURATION_CTRL_STATIC_MVID@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EDP_CONFIGURATION_CTRL_STATIC_MVID@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w11, w21, w20
	orr	w11, w11, w0
	orr	w8, w11, w8
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _REG_EDP_CONFIGURATION_CTRL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _REG_EDP_CONFIGURATION_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	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
	b	_edp_write
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_LINK_CAP_ENHANCED_FRAMING,4,2 ; @DP_LINK_CAP_ENHANCED_FRAMING
	.comm	_EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING,4,2 ; @EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING
	.comm	_EDP_6BIT,4,2                   ; @EDP_6BIT
	.comm	_EDP_8BIT,4,2                   ; @EDP_8BIT
	.comm	_EDP_CONFIGURATION_CTRL_PROGRESSIVE,4,2 ; @EDP_CONFIGURATION_CTRL_PROGRESSIVE
	.comm	_EDP_CONFIGURATION_CTRL_SYNC_CLK,4,2 ; @EDP_CONFIGURATION_CTRL_SYNC_CLK
	.comm	_EDP_CONFIGURATION_CTRL_STATIC_MVID,4,2 ; @EDP_CONFIGURATION_CTRL_STATIC_MVID
	.comm	_REG_EDP_CONFIGURATION_CTRL,8,3 ; @REG_EDP_CONFIGURATION_CTRL
	.no_dead_strip	_edp_config_ctrl
.subsections_via_symbols
