	.file	"extr_intel_lvds.c_intel_lvds_get_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_lvds_get_config, @function
intel_lvds_get_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	call	to_i915@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	to_lvds_encoder@PLT
	mov	edi, DWORD PTR INTEL_OUTPUT_LVDS[rip]
	mov	rbp, rax
	call	BIT@PLT
	or	DWORD PTR 20[rbx], eax
	mov	edi, DWORD PTR 0[rbp]
	call	I915_READ@PLT
	test	DWORD PTR LVDS_HSYNC_POLARITY[rip], eax
	mov	ebp, eax
	mov	eax, DWORD PTR DRM_MODE_FLAG_NHSYNC[rip]
	cmove	eax, DWORD PTR DRM_MODE_FLAG_PHSYNC[rip]
	test	DWORD PTR LVDS_VSYNC_POLARITY[rip], ebp
	je	.L4
	or	eax, DWORD PTR DRM_MODE_FLAG_NVSYNC[rip]
.L5:
	or	DWORD PTR 4[rbx], eax
	mov	rdi, r12
	call	INTEL_GEN@PLT
	cmp	eax, 4
	jg	.L6
	and	ebp, DWORD PTR LVDS_BORDER_ENABLE[rip]
	mov	DWORD PTR 12[rbx], ebp
.L6:
	mov	rdi, r12
	call	INTEL_GEN@PLT
	cmp	eax, 3
	jle	.L10
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	or	eax, DWORD PTR DRM_MODE_FLAG_PVSYNC[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR PFIT_CONTROL[rip]
	call	I915_READ@PLT
	and	eax, DWORD PTR PANEL_8TO6_DITHER_ENABLE[rip]
	or	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	intel_lvds_get_config, .-intel_lvds_get_config
	.comm	PFIT_CONTROL,4,4
	.comm	PANEL_8TO6_DITHER_ENABLE,4,4
	.comm	LVDS_VSYNC_POLARITY,4,4
	.comm	LVDS_HSYNC_POLARITY,4,4
	.comm	LVDS_BORDER_ENABLE,4,4
	.comm	INTEL_OUTPUT_LVDS,4,4
	.comm	DRM_MODE_FLAG_PVSYNC,4,4
	.comm	DRM_MODE_FLAG_PHSYNC,4,4
	.comm	DRM_MODE_FLAG_NVSYNC,4,4
	.comm	DRM_MODE_FLAG_NHSYNC,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_lvds.c_intel_lvds_get_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_lvds_get_config, %function
intel_lvds_get_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r1
	bl	to_i915
	mov	r6, r0
	mov	r0, r5
	bl	to_lvds_encoder
	ldr	r3, .L11
	mov	r5, r0
	ldr	r0, [r3]
	bl	BIT
	mov	r2, r0
	ldr	r3, [r4, #20]
	ldr	r0, [r5]
	orr	r3, r3, r2
	str	r3, [r4, #20]
	bl	I915_READ
	ldr	r3, .L11+4
	ldr	r2, .L11+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r0, r3
	ldrne	r3, .L11+12
	ldreq	r3, .L11+16
	tst	r0, r2
	ldrne	r2, .L11+20
	ldreq	r2, .L11+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r5, r0
	orr	r2, r3, r2
	ldr	r3, [r4, #4]
	mov	r0, r6
	orr	r3, r3, r2
	str	r3, [r4, #4]
	bl	INTEL_GEN
	cmp	r0, #4
	ldrle	r3, .L11+28
	ldrle	r0, [r3]
	andle	r5, r5, r0
	strle	r5, [r4, #12]
	mov	r0, r6
	bl	INTEL_GEN
	cmp	r0, #3
	ble	.L10
.L7:
	ldr	r3, [r4]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+32
	ldr	r0, [r3]
	bl	I915_READ
	ldr	r2, .L11+36
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	and	r0, r0, r2
	orr	r3, r3, r0
	str	r3, [r4, #16]
	b	.L7
.L12:
	.align	2
.L11:
	.word	INTEL_OUTPUT_LVDS
	.word	LVDS_HSYNC_POLARITY
	.word	LVDS_VSYNC_POLARITY
	.word	DRM_MODE_FLAG_NHSYNC
	.word	DRM_MODE_FLAG_PHSYNC
	.word	DRM_MODE_FLAG_NVSYNC
	.word	DRM_MODE_FLAG_PVSYNC
	.word	LVDS_BORDER_ENABLE
	.word	PFIT_CONTROL
	.word	PANEL_8TO6_DITHER_ENABLE
	.size	intel_lvds_get_config, .-intel_lvds_get_config
	.comm	PFIT_CONTROL,4,4
	.comm	PANEL_8TO6_DITHER_ENABLE,4,4
	.comm	LVDS_VSYNC_POLARITY,4,4
	.comm	LVDS_HSYNC_POLARITY,4,4
	.comm	LVDS_BORDER_ENABLE,4,4
	.comm	INTEL_OUTPUT_LVDS,4,4
	.comm	DRM_MODE_FLAG_PVSYNC,4,4
	.comm	DRM_MODE_FLAG_PHSYNC,4,4
	.comm	DRM_MODE_FLAG_NVSYNC,4,4
	.comm	DRM_MODE_FLAG_NHSYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
