	.file	"extr_intel_sprite.c_intel_pipe_update_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PSR idle timed out 0x%x, atomic update may fail\n"
	.align 8
.LC1:
	.string	"Potential atomic update failure on pipe %c\n"
	.text
	.p2align 4
	.globl	intel_pipe_update_start
	.type	intel_pipe_update_start, @function
intel_pipe_update_start:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_intel_crtc@PLT
	mov	edi, DWORD PTR 20[rax]
	mov	r12, rax
	call	to_i915@PLT
	mov	edi, 1
	mov	r14, rax
	call	msecs_to_jiffies_timeout@PLT
	mov	rbp, rax
	lea	rax, 20[r12]
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	drm_crtc_vblank_waitqueue@PLT
	mov	rdi, r14
	mov	r15, rax
	call	IS_VALLEYVIEW@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, r14
	call	IS_CHERRYVIEW@PLT
	test	rax, rax
	je	.L30
.L4:
	mov	esi, DWORD PTR INTEL_OUTPUT_DSI[rip]
	mov	rdi, r13
	call	intel_crtc_has_type@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 12[rsp], eax
.L3:
	mov	edi, DWORD PTR wait[rip]
	call	DEFINE_WAIT@PLT
	mov	r14d, DWORD PTR 0[r13]
	mov	eax, DWORD PTR 4[r13]
	test	DWORD PTR DRM_MODE_FLAG_INTERLACE[rip], eax
	jne	.L31
.L5:
	mov	esi, DWORD PTR VBLANK_EVASION_TIME_US[rip]
	mov	rdi, r13
	mov	ebx, r14d
	call	intel_usecs_to_scanlines@PLT
	sub	ebx, eax
	lea	eax, -1[r14]
	mov	DWORD PTR 8[rsp], eax
	test	ebx, ebx
	jle	.L6
	test	eax, eax
	jle	.L6
	mov	rdi, QWORD PTR [rsp]
	call	drm_crtc_vblank_get@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L6
	lea	rsi, 20[rsp]
	mov	rdi, r13
	call	intel_psr_wait_for_idle@PLT
	test	rax, rax
	jne	.L32
.L7:
	xor	eax, eax
	lea	r13, wait[rip]
	call	local_irq_disable@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR [r12], ebx
	mov	rdi, r12
	mov	DWORD PTR 4[r12], eax
	call	trace_i915_pipe_update_start@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	local_irq_enable@PLT
	mov	rdi, rbp
	call	schedule_timeout@PLT
	mov	rbp, rax
	xor	eax, eax
	call	local_irq_disable@PLT
.L10:
	mov	edx, DWORD PTR TASK_UNINTERRUPTIBLE[rip]
	mov	rsi, r13
	mov	rdi, r15
	call	prepare_to_wait@PLT
	mov	rdi, r12
	call	intel_get_crtc_scanline@PLT
	mov	edx, eax
	cmp	ebx, eax
	jg	.L8
	cmp	DWORD PTR 8[rsp], eax
	jl	.L8
	test	rbp, rbp
	jne	.L9
	mov	edi, DWORD PTR 24[r12]
	mov	DWORD PTR 8[rsp], eax
	call	pipe_name@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	DRM_ERROR@PLT
	mov	edx, DWORD PTR 8[rsp]
.L8:
	lea	rsi, wait[rip]
	mov	rdi, r15
	mov	DWORD PTR 8[rsp], edx
	call	finish_wait@PLT
	mov	rdi, QWORD PTR [rsp]
	call	drm_crtc_vblank_put@PLT
	mov	edx, DWORD PTR 8[rsp]
	cmp	r14d, edx
	jne	.L11
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	intel_get_crtc_scanline@PLT
	mov	edx, eax
	cmp	r14d, eax
	je	.L12
.L11:
	mov	DWORD PTR 8[r12], edx
	xor	eax, eax
	call	ktime_get@PLT
	mov	rdi, r12
	mov	DWORD PTR 16[r12], eax
	call	intel_crtc_get_vblank_counter@PLT
	mov	rdi, r12
	mov	DWORD PTR 12[r12], eax
	call	trace_i915_pipe_update_vblank_evaded@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	local_irq_disable@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L30:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, r14d
	mov	esi, 2
	call	DIV_ROUND_UP@PLT
	mov	r14d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_pipe_update_start, .-intel_pipe_update_start
	.comm	wait,4,4
	.comm	VBLANK_EVASION_TIME_US,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	INTEL_OUTPUT_DSI,4,4
	.comm	DRM_MODE_FLAG_INTERLACE,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_sprite.c_intel_pipe_update_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PSR idle timed out 0x%x, atomic update may fail\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Potential atomic update failure on pipe %c\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	intel_pipe_update_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_pipe_update_start, %function
intel_pipe_update_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L34
	sub	sp, sp, #20
	mov	fp, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	to_intel_crtc
	mov	r9, r0
	mov	r5, r0
	ldr	r0, [r9, #20]!
	bl	to_i915
	mov	r6, r0
	mov	r0, #1
	bl	msecs_to_jiffies_timeout
	mov	r4, r0
	mov	r0, r9
	bl	drm_crtc_vblank_waitqueue
	mov	r8, r0
	mov	r0, r6
	bl	IS_VALLEYVIEW
	cmp	r0, #0
	bne	.L4
	mov	r0, r6
	bl	IS_CHERRYVIEW
	subs	r3, r0, #0
	str	r3, [sp]
	bne	.L4
.L3:
	ldr	r3, .L34+4
	ldr	r0, [r3]
	bl	DEFINE_WAIT
	ldr	r3, .L34+8
	ldr	r2, [fp, #4]
	ldr	r3, [r3]
	ldr	r6, [fp]
	tst	r2, r3
	bne	.L28
.L5:
	ldr	r3, .L34+12
	mov	r0, fp
	ldr	r1, [r3]
	bl	intel_usecs_to_scanlines
	sub	r10, r6, #1
	sub	r7, r6, r0
	cmp	r10, #0
	cmpgt	r7, #0
	bgt	.L29
.L6:
	bl	local_irq_disable
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L34+16
	mov	r0, fp
	ldr	r1, [r3]
	bl	intel_crtc_has_type
	subs	r3, r0, #0
	movne	r3, #1
	str	r3, [sp]
	b	.L3
.L29:
	mov	r0, r9
	bl	drm_crtc_vblank_get
	bl	WARN_ON
	cmp	r0, #0
	bne	.L6
	mov	r0, fp
	add	r1, sp, #8
	bl	intel_psr_wait_for_idle
	cmp	r0, #0
	bne	.L31
.L7:
	bl	local_irq_disable
	mov	r0, r5
	stm	r5, {r7, r10}
	bl	trace_i915_pipe_update_start
	ldr	fp, .L34+4
	b	.L10
.L33:
	cmp	r4, #0
	beq	.L32
	bl	local_irq_enable
	mov	r0, r4
	bl	schedule_timeout
	mov	r4, r0
	bl	local_irq_disable
.L10:
	ldr	r3, .L34+20
	mov	r1, fp
	ldr	r2, [r3]
	mov	r0, r8
	bl	prepare_to_wait
	mov	r0, r5
	bl	intel_get_crtc_scanline
	cmp	r10, r0
	movge	r3, #0
	movlt	r3, #1
	cmp	r7, r0
	orrgt	r3, r3, #1
	cmp	r3, #0
	beq	.L33
	mov	r3, r0
.L8:
	ldr	r1, .L34+4
	mov	r0, r8
	str	r3, [sp, #4]
	bl	finish_wait
	mov	r0, r9
	bl	drm_crtc_vblank_put
	ldm	sp, {r0, r3}
	cmp	r6, r3
	movne	r0, #0
	andeq	r0, r0, #1
	cmp	r0, #0
	beq	.L11
.L12:
	mov	r0, r5
	bl	intel_get_crtc_scanline
	cmp	r6, r0
	beq	.L12
	mov	r3, r0
.L11:
	str	r3, [r5, #8]
	bl	ktime_get
	mov	r3, r0
	mov	r0, r5
	str	r3, [r5, #16]
	bl	intel_crtc_get_vblank_counter
	mov	r3, r0
	mov	r0, r5
	str	r3, [r5, #12]
	bl	trace_i915_pipe_update_vblank_evaded
	b	.L1
.L28:
	mov	r0, r6
	mov	r1, #2
	bl	DIV_ROUND_UP
	mov	r6, r0
	b	.L5
.L31:
	ldr	r1, [sp, #8]
	ldr	r0, .L34+24
	bl	DRM_ERROR
	b	.L7
.L32:
	str	r0, [sp, #4]
	ldr	r0, [r5, #24]
	bl	pipe_name
	mov	r1, r0
	ldr	r0, .L34+28
	bl	DRM_ERROR
	ldr	r3, [sp, #4]
	b	.L8
.L30:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC2
	.word	wait
	.word	DRM_MODE_FLAG_INTERLACE
	.word	VBLANK_EVASION_TIME_US
	.word	INTEL_OUTPUT_DSI
	.word	TASK_UNINTERRUPTIBLE
	.word	.LC0
	.word	.LC1
	.size	intel_pipe_update_start, .-intel_pipe_update_start
	.comm	wait,4,4
	.comm	VBLANK_EVASION_TIME_US,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	INTEL_OUTPUT_DSI,4,4
	.comm	DRM_MODE_FLAG_INTERLACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
