	.file	"extr_drm_atomic_helper.c_drm_atomic_helper_update_plane.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_atomic_helper_update_plane
	.type	drm_atomic_helper_update_plane, @function
drm_atomic_helper_update_plane:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 4[rsp], ecx
	mov	DWORD PTR 8[rsp], r8d
	mov	DWORD PTR 12[rsp], r9d
	call	drm_atomic_state_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	r13, rax
	mov	rax, QWORD PTR 120[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	mov	QWORD PTR 8[r13], rax
	call	drm_atomic_get_plane_state@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rsi, rbp
	mov	rdi, r14
	call	drm_atomic_set_crtc_for_plane@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, r15
	mov	rdi, r14
	call	drm_atomic_set_fb_for_plane@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 4[r14], eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR 80[rsp]
	mov	DWORD PTR 12[r14], eax
	mov	rax, QWORD PTR 88[rsp]
	mov	QWORD PTR 40[r14], rax
	mov	rax, QWORD PTR 96[rsp]
	mov	QWORD PTR 32[r14], rax
	mov	rax, QWORD PTR 104[rsp]
	mov	QWORD PTR 24[r14], rax
	mov	rax, QWORD PTR 112[rsp]
	mov	QWORD PTR 16[r14], rax
	cmp	QWORD PTR 0[rbp], rbx
	je	.L10
.L6:
	mov	rdi, r13
	call	drm_atomic_commit@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	drm_atomic_state_put@PLT
.L1:
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	mov	rdi, r14
	call	PTR_ERR@PLT
	mov	r12d, eax
.L5:
	mov	rdi, r13
	call	drm_atomic_state_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR 0[r13], 1
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	drm_atomic_helper_update_plane, .-drm_atomic_helper_update_plane
	.comm	ENOMEM,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_drm_atomic_helper.c_drm_atomic_helper_update_plane.c"
	.text
	.align	2
	.global	drm_atomic_helper_update_plane
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_atomic_helper_update_plane, %function
drm_atomic_helper_update_plane:
	@ args = 32, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r0]
	mov	r8, r1
	mov	r10, r2
	mov	r9, r3
	bl	drm_atomic_state_alloc
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, [sp, #60]
	mov	r1, r6
	str	r3, [r4, #4]
	bl	drm_atomic_get_plane_state
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L10
	mov	r1, r8
	mov	r0, r7
	bl	drm_atomic_set_crtc_for_plane
	subs	r5, r0, #0
	bne	.L5
	mov	r1, r10
	mov	r0, r7
	bl	drm_atomic_set_fb_for_plane
	ldr	r3, [r8]
	mov	r0, r4
	cmp	r3, r6
	ldr	r3, [sp, #32]
	str	r9, [r7]
	str	r3, [r7, #4]
	ldr	r3, [sp, #36]
	str	r3, [r7, #8]
	ldr	r3, [sp, #40]
	str	r3, [r7, #12]
	ldr	r3, [sp, #44]
	str	r3, [r7, #28]
	ldr	r3, [sp, #48]
	str	r3, [r7, #24]
	ldr	r3, [sp, #52]
	str	r3, [r7, #20]
	ldr	r3, [sp, #56]
	str	r3, [r7, #16]
	moveq	r3, #1
	streq	r3, [r4]
	bl	drm_atomic_commit
	mov	r5, r0
.L5:
	mov	r0, r4
	bl	drm_atomic_state_put
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r7
	bl	PTR_ERR
	mov	r5, r0
	b	.L5
.L9:
	ldr	r3, .L11
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	ENOMEM
	.size	drm_atomic_helper_update_plane, .-drm_atomic_helper_update_plane
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
