	.file	"extr_vc4_plane.c_vc4_plane_async_set_fb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vc4_plane_async_set_fb
	.type	vc4_plane_async_set_fb, @function
vc4_plane_async_set_fb:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR [rdi]
	call	to_vc4_plane_state@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	rbx, rax
	call	drm_fb_cma_get_gem_obj@PLT
	mov	edi, 1
	mov	r13, rax
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR [rax], 0
	js	.L2
	mov	rdi, QWORD PTR 8[rax]
	shr	rdi, 63
.L2:
	call	WARN_ON_ONCE@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [rbx]
	mov	rbp, QWORD PTR 0[r13]
	add	rbp, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*4]
	call	writel@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR [rax+rdx*8], rbp
	add	rsp, 8
	.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
	ret
	.cfi_endproc
.LFE0:
	.size	vc4_plane_async_set_fb, .-vc4_plane_async_set_fb
	.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_vc4_plane.c_vc4_plane_async_set_fb.c"
	.text
	.align	2
	.global	vc4_plane_async_set_fb
	.syntax unified
	.arm
	.fpu softvfp
	.type	vc4_plane_async_set_fb, %function
vc4_plane_async_set_fb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r0, [r0]
	mov	r5, r1
	bl	to_vc4_plane_state
	mov	r1, #0
	mov	r4, r0
	mov	r0, r5
	bl	drm_fb_cma_get_gem_obj
	ldr	r3, [r6]
	mov	r6, r0
	ldr	r2, [r3]
	cmp	r2, #0
	ldrge	r0, [r3, #4]
	movlt	r0, #1
	lsrge	r0, r0, #31
	bl	WARN_ON_ONCE
	ldr	r3, [r5]
	ldr	r2, [r6]
	ldr	r5, [r3]
	ldr	r1, [r4]
	ldr	r3, [r4, #8]
	add	r5, r5, r2
	add	r1, r3, r1, lsl #2
	mov	r0, r5
	bl	writel
	ldm	r4, {r2, r3}
	str	r5, [r3, r2, lsl #2]
	pop	{r4, r5, r6, pc}
	.size	vc4_plane_async_set_fb, .-vc4_plane_async_set_fb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
