	.file	"extr_disp.c_nv50_disp_outp_atomic_check_clr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv50_disp_outp_atomic_check_clr, @function
nv50_disp_outp_atomic_check_clr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rsi]
	test	rbp, rbp
	je	.L1
	lea	r14, 8[rdi]
	mov	r13, QWORD PTR 8[rsi]
	mov	rbx, rdi
	mov	rsi, rbp
	mov	rdi, r14
	call	drm_atomic_get_old_crtc_state@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	r12, rax
	call	drm_atomic_get_new_crtc_state@PLT
	cmp	QWORD PTR [r12], 0
	jne	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rax
	call	drm_atomic_crtc_needs_modeset@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbx
	mov	rsi, r13
	call	nv50_disp_outp_atomic_add@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR DRM_MODE_ENCODER_DPMST[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L14
.L6:
	mov	DWORD PTR 4[rbp], 1
	mov	DWORD PTR 4[rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	DWORD PTR 0[rbp], 1
	mov	DWORD PTR [rbx], 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	nv50_disp_outp_atomic_check_clr, .-nv50_disp_outp_atomic_check_clr
	.comm	DRM_MODE_ENCODER_DPMST,8,8
	.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_disp.c_nv50_disp_outp_atomic_check_clr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv50_disp_outp_atomic_check_clr, %function
nv50_disp_outp_atomic_check_clr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	cmp	r4, #0
	beq	.L1
	mov	r3, r1
	add	r6, r0, #8
	mov	r1, r4
	mov	r7, r0
	mov	r0, r6
	ldr	r8, [r3, #4]
	bl	drm_atomic_get_old_crtc_state
	mov	r5, r0
	mov	r1, r4
	mov	r0, r6
	bl	drm_atomic_get_new_crtc_state
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L15
.L1:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	drm_atomic_crtc_needs_modeset
	cmp	r0, #0
	beq	.L1
	mov	r1, r8
	mov	r0, r7
	bl	nv50_disp_outp_atomic_add
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
	ldr	r2, [r4, #8]
	ldr	r3, .L17
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	streq	r3, [r4]
	streq	r3, [r7]
	mov	r3, #1
	str	r3, [r4, #4]
	str	r3, [r7, #4]
	b	.L1
.L16:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L18:
	.align	2
.L17:
	.word	DRM_MODE_ENCODER_DPMST
	.size	nv50_disp_outp_atomic_check_clr, .-nv50_disp_outp_atomic_check_clr
	.comm	DRM_MODE_ENCODER_DPMST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
