	.file	"extr_intel_ddi.c_intel_ddi_compute_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_ddi_compute_config, @function
intel_ddi_compute_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 40[rsi]
	call	to_intel_crtc@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	rbx, rax
	call	to_i915@PLT
	mov	r15d, DWORD PTR [r12]
	mov	rdi, rax
	mov	r13, rax
	call	HAS_TRANSCODER_EDP@PLT
	test	rax, rax
	je	.L2
	cmp	r15d, DWORD PTR PORT_A[rip]
	je	.L21
.L2:
	mov	esi, DWORD PTR INTEL_OUTPUT_HDMI[rip]
	mov	rdi, rbp
	call	intel_crtc_has_type@PLT
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r12
	test	rax, rax
	je	.L3
	call	intel_hdmi_compute_config@PLT
	mov	r12d, eax
	test	r12d, r12d
	je	.L22
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	intel_dp_compute_config@PLT
	mov	r12d, eax
	test	r12d, r12d
	jne	.L1
.L22:
	mov	rdi, r13
	call	IS_HASWELL@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR PIPE_A[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L23
.L6:
	mov	rdi, r13
	call	IS_GEN9_LP@PLT
	test	rax, rax
	jne	.L24
.L8:
	mov	rsi, rbp
	mov	rdi, r13
	call	intel_ddi_compute_min_voltage_level@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR TRANSCODER_EDP[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR TRANSCODER_EDP[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L6
	cmp	QWORD PTR 32[rbp], 0
	mov	eax, 1
	jne	.L7
	xor	eax, eax
	cmp	QWORD PTR 16[rbp], 0
	setne	al
.L7:
	mov	DWORD PTR 24[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 8[rbp]
	call	bxt_ddi_phy_calc_lane_lat_optim_mask@PLT
	mov	DWORD PTR 12[rbp], eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	intel_ddi_compute_config, .-intel_ddi_compute_config
	.comm	TRANSCODER_EDP,8,8
	.comm	PORT_A,4,4
	.comm	PIPE_A,8,8
	.comm	INTEL_OUTPUT_HDMI,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_intel_ddi.c_intel_ddi_compute_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_ddi_compute_config, %function
intel_ddi_compute_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r1, #24]
	mov	r4, r1
	mov	r7, r2
	bl	to_intel_crtc
	mov	r8, r0
	ldr	r0, [r5, #4]
	bl	to_i915
	ldr	r9, [r5]
	mov	r6, r0
	bl	HAS_TRANSCODER_EDP
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L24
	ldr	r3, [r3]
	cmp	r9, r3
	ldreq	r3, .L24+4
	ldreq	r3, [r3]
	streq	r3, [r4]
.L2:
	ldr	r3, .L24+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	intel_crtc_has_type
	cmp	r0, #0
	mov	r2, r7
	mov	r0, r5
	mov	r1, r4
	beq	.L3
	bl	intel_hdmi_compute_config
	mov	r5, r0
	cmp	r5, #0
	beq	.L21
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	bl	intel_dp_compute_config
	mov	r5, r0
	cmp	r5, #0
	bne	.L1
.L21:
	mov	r0, r6
	bl	IS_HASWELL
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L24+12
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
.L6:
	mov	r0, r6
	bl	IS_GEN9_LP
	cmp	r0, #0
	bne	.L23
.L8:
	mov	r1, r4
	mov	r0, r6
	bl	intel_ddi_compute_min_voltage_level
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r3, .L24+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r4, #20]
	cmp	r3, #0
	movne	r3, #1
	bne	.L7
	ldr	r3, [r4, #12]
	subs	r3, r3, #0
	movne	r3, #1
.L7:
	str	r3, [r4, #16]
	b	.L6
.L23:
	ldr	r0, [r4, #4]
	bl	bxt_ddi_phy_calc_lane_lat_optim_mask
	str	r0, [r4, #8]
	b	.L8
.L25:
	.align	2
.L24:
	.word	PORT_A
	.word	TRANSCODER_EDP
	.word	INTEL_OUTPUT_HDMI
	.word	PIPE_A
	.size	intel_ddi_compute_config, .-intel_ddi_compute_config
	.comm	TRANSCODER_EDP,4,4
	.comm	PORT_A,4,4
	.comm	PIPE_A,4,4
	.comm	INTEL_OUTPUT_HDMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
