	.file	"extr_edp_ctrl.c_edp_config_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	edp_config_ctrl, @function
edp_config_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 24[rdi]
	lea	rdi, -1[rax]
	call	EDP_CONFIGURATION_CTRL_LANES@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR 20[rbx]
	test	DWORD PTR DP_LINK_CAP_ENHANCED_FRAMING[rip], eax
	je	.L2
	or	ebp, DWORD PTR EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING[rip]
.L2:
	cmp	DWORD PTR [rbx], 8
	mov	edi, DWORD PTR EDP_6BIT[rip]
	jne	.L3
	mov	edi, DWORD PTR EDP_8BIT[rip]
.L3:
	call	EDP_CONFIGURATION_CTRL_COLOR@PLT
	or	ebp, eax
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L4
	or	ebp, DWORD PTR EDP_CONFIGURATION_CTRL_PROGRESSIVE[rip]
.L4:
	mov	esi, DWORD PTR EDP_CONFIGURATION_CTRL_SYNC_CLK[rip]
	mov	rdi, QWORD PTR REG_EDP_CONFIGURATION_CTRL[rip]
	or	esi, DWORD PTR EDP_CONFIGURATION_CTRL_STATIC_MVID[rip]
	add	rdi, QWORD PTR 8[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	or	esi, ebp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	edp_write@PLT
	.cfi_endproc
.LFE0:
	.size	edp_config_ctrl, .-edp_config_ctrl
	.comm	REG_EDP_CONFIGURATION_CTRL,8,8
	.comm	EDP_CONFIGURATION_CTRL_SYNC_CLK,4,4
	.comm	EDP_CONFIGURATION_CTRL_STATIC_MVID,4,4
	.comm	EDP_CONFIGURATION_CTRL_PROGRESSIVE,4,4
	.comm	EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING,4,4
	.comm	EDP_8BIT,4,4
	.comm	EDP_6BIT,4,4
	.comm	DP_LINK_CAP_ENHANCED_FRAMING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_edp_ctrl.c_edp_config_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	edp_config_ctrl, %function
edp_config_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #16]
	sub	r0, r0, #1
	bl	EDP_CONFIGURATION_CTRL_LANES
	ldr	r3, .L10
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	ldrne	r3, .L10+4
	ldr	r2, [r5]
	ldrne	r3, [r3]
	orrne	r4, r0, r3
	ldr	r3, .L10+8
	cmp	r2, #8
	ldr	r0, [r3]
	ldreq	r3, .L10+12
	ldreq	r0, [r3]
	bl	EDP_CONFIGURATION_CTRL_COLOR
	ldr	r3, [r5, #8]
	orr	r4, r4, r0
	cmp	r3, #0
	ldreq	r3, .L10+16
	ldr	r1, .L10+20
	ldreq	r3, [r3]
	ldr	r2, .L10+24
	orreq	r4, r4, r3
	ldr	r3, .L10+28
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	orr	r1, r1, r2
	orr	r1, r1, r4
	add	r0, r0, r3
	pop	{r4, r5, r6, lr}
	b	edp_write
.L11:
	.align	2
.L10:
	.word	DP_LINK_CAP_ENHANCED_FRAMING
	.word	EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING
	.word	EDP_6BIT
	.word	EDP_8BIT
	.word	EDP_CONFIGURATION_CTRL_PROGRESSIVE
	.word	EDP_CONFIGURATION_CTRL_SYNC_CLK
	.word	EDP_CONFIGURATION_CTRL_STATIC_MVID
	.word	REG_EDP_CONFIGURATION_CTRL
	.size	edp_config_ctrl, .-edp_config_ctrl
	.comm	REG_EDP_CONFIGURATION_CTRL,4,4
	.comm	EDP_CONFIGURATION_CTRL_SYNC_CLK,4,4
	.comm	EDP_CONFIGURATION_CTRL_STATIC_MVID,4,4
	.comm	EDP_CONFIGURATION_CTRL_PROGRESSIVE,4,4
	.comm	EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING,4,4
	.comm	EDP_8BIT,4,4
	.comm	EDP_6BIT,4,4
	.comm	DP_LINK_CAP_ENHANCED_FRAMING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
