	.file	"extr_intel_lvds.c_intel_disable_lvds.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"timed out waiting for panel to power off\n"
	.text
	.p2align 4
	.type	intel_disable_lvds, @function
intel_disable_lvds:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	call	to_lvds_encoder@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	HAS_PCH_SPLIT@PLT
	test	rax, rax
	je	.L2
	mov	ebp, DWORD PTR PCH_PP_CONTROL[rip]
	mov	r13d, DWORD PTR PCH_PP_STATUS[rip]
.L3:
	mov	rdi, r12
	call	intel_panel_disable_backlight@PLT
	mov	edi, ebp
	call	I915_READ@PLT
	mov	esi, DWORD PTR POWER_TARGET_ON[rip]
	mov	edi, ebp
	not	esi
	and	esi, eax
	call	I915_WRITE@PLT
	mov	edi, r13d
	call	I915_READ@PLT
	xor	edi, edi
	test	DWORD PTR PP_ON[rip], eax
	mov	esi, 1000
	sete	dil
	call	wait_for@PLT
	test	rax, rax
	jne	.L10
.L4:
	mov	edi, DWORD PTR [rbx]
	call	I915_READ@PLT
	mov	esi, DWORD PTR LVDS_PORT_EN[rip]
	mov	edi, DWORD PTR [rbx]
	not	esi
	and	esi, eax
	call	I915_WRITE@PLT
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	POSTING_READ@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebp, DWORD PTR PP_CONTROL[rip]
	mov	r13d, DWORD PTR PP_STATUS[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	intel_disable_lvds, .-intel_disable_lvds
	.comm	PP_STATUS,4,4
	.comm	PP_ON,4,4
	.comm	PP_CONTROL,4,4
	.comm	POWER_TARGET_ON,4,4
	.comm	PCH_PP_STATUS,4,4
	.comm	PCH_PP_CONTROL,4,4
	.comm	LVDS_PORT_EN,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_disable_lvds.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timed out waiting for panel to power off\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_disable_lvds, %function
intel_disable_lvds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	bl	to_lvds_encoder
	mov	r4, r0
	mov	r0, r6
	bl	HAS_PCH_SPLIT
	cmp	r0, #0
	ldrne	r2, .L11
	ldreq	r2, .L11+4
	ldrne	r3, .L11+8
	ldreq	r3, .L11+12
	ldr	r5, [r2]
	mov	r0, r6
	ldr	r7, [r3]
	bl	intel_panel_disable_backlight
	mov	r0, r5
	bl	I915_READ
	mov	r3, r0
	ldr	r2, .L11+16
	mov	r0, r5
	ldr	r1, [r2]
	bic	r1, r3, r1
	bl	I915_WRITE
	mov	r0, r7
	bl	I915_READ
	ldr	r3, .L11+20
	mov	r1, #1000
	ldr	r3, [r3]
	tst	r0, r3
	moveq	r0, #1
	movne	r0, #0
	bl	wait_for
	cmp	r0, #0
	bne	.L10
.L4:
	ldr	r5, [r4]
	mov	r0, r5
	bl	I915_READ
	mov	r3, r0
	ldr	r2, .L11+24
	mov	r0, r5
	ldr	r1, [r2]
	bic	r1, r3, r1
	bl	I915_WRITE
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	POSTING_READ
.L10:
	ldr	r0, .L11+28
	bl	DRM_ERROR
	b	.L4
.L12:
	.align	2
.L11:
	.word	PCH_PP_CONTROL
	.word	PP_CONTROL
	.word	PCH_PP_STATUS
	.word	PP_STATUS
	.word	POWER_TARGET_ON
	.word	PP_ON
	.word	LVDS_PORT_EN
	.word	.LC0
	.size	intel_disable_lvds, .-intel_disable_lvds
	.comm	PP_STATUS,4,4
	.comm	PP_ON,4,4
	.comm	PP_CONTROL,4,4
	.comm	POWER_TARGET_ON,4,4
	.comm	PCH_PP_STATUS,4,4
	.comm	PCH_PP_CONTROL,4,4
	.comm	LVDS_PORT_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
