	.file	"extr_qxl_display.c_qxl_create_plane.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qxl_create_plane, @function
qxl_create_plane:
.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	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR DRM_PLANE_TYPE_PRIMARY[rip], edx
	je	.L11
	cmp	DWORD PTR DRM_PLANE_TYPE_CURSOR[rip], edx
	jne	.L8
	mov	r15, QWORD PTR qxl_cursor_plane_formats[rip]
	mov	rdi, r15
	call	ARRAY_SIZE@PLT
	lea	rcx, qxl_cursor_plane_funcs[rip]
	mov	r14d, eax
	lea	rax, qxl_cursor_helper_funcs[rip]
	mov	QWORD PTR 8[rsp], rax
.L3:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	QWORD PTR [rsp], rcx
	call	kzalloc@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	mov	rcx, QWORD PTR [rsp]
	test	rax, rax
	mov	r12, rax
	je	.L9
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, r14d
	mov	r8, r15
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 96
	mov	rsi, rax
	mov	rdi, rbp
	push	rbx
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	drm_universal_plane_init@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	test	eax, eax
	jne	.L12
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r12
	call	drm_plane_helper_add@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L12:
	.cfi_restore_state
	mov	rdi, r12
	call	kfree@PLT
.L8:
	mov	edi, DWORD PTR EINVAL[rip]
.L9:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	neg	edi
	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
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r15, QWORD PTR qxl_primary_plane_formats[rip]
	mov	rdi, r15
	call	ARRAY_SIZE@PLT
	lea	rcx, qxl_primary_plane_funcs[rip]
	mov	r14d, eax
	lea	rax, primary_helper_funcs[rip]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qxl_create_plane, .-qxl_create_plane
	.comm	qxl_primary_plane_funcs,4,4
	.comm	qxl_primary_plane_formats,8,8
	.comm	qxl_cursor_plane_funcs,4,4
	.comm	qxl_cursor_plane_formats,8,8
	.comm	qxl_cursor_helper_funcs,4,4
	.comm	primary_helper_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DRM_PLANE_TYPE_PRIMARY,4,4
	.comm	DRM_PLANE_TYPE_CURSOR,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_qxl_display.c_qxl_create_plane.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qxl_create_plane, %function
qxl_create_plane:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L13
	mov	r4, r2
	ldr	r3, [r3]
	mov	r8, r0
	cmp	r3, r2
	mov	r7, r1
	sub	sp, sp, #28
	beq	.L11
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L8
	ldr	r3, .L13+8
	ldr	r10, .L13+12
	ldr	r9, [r3]
	ldr	fp, .L13+16
	mov	r0, r9
	bl	ARRAY_SIZE
	mov	r6, r0
.L3:
	ldr	r3, .L13+20
	mov	r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	ldreq	r3, .L13+24
	beq	.L9
	mov	r1, #0
	mov	r3, r10
	str	r1, [sp, #16]
	str	r1, [sp, #8]
	mov	r2, r7
	mov	r0, r8
	mov	r1, r5
	str	r4, [sp, #12]
	str	r6, [sp, #4]
	str	r9, [sp]
	bl	drm_universal_plane_init
	cmp	r0, #0
	bne	.L12
	mov	r1, fp
	mov	r0, r5
	bl	drm_plane_helper_add
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r5
	bl	kfree
.L8:
	ldr	r3, .L13+28
.L9:
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L11:
	ldr	r3, .L13+32
	ldr	r10, .L13+36
	ldr	r9, [r3]
	ldr	fp, .L13+40
	mov	r0, r9
	bl	ARRAY_SIZE
	mov	r6, r0
	b	.L3
.L14:
	.align	2
.L13:
	.word	DRM_PLANE_TYPE_PRIMARY
	.word	DRM_PLANE_TYPE_CURSOR
	.word	qxl_cursor_plane_formats
	.word	qxl_cursor_plane_funcs
	.word	qxl_cursor_helper_funcs
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EINVAL
	.word	qxl_primary_plane_formats
	.word	qxl_primary_plane_funcs
	.word	primary_helper_funcs
	.size	qxl_create_plane, .-qxl_create_plane
	.comm	qxl_primary_plane_funcs,4,4
	.comm	qxl_primary_plane_formats,4,4
	.comm	qxl_cursor_plane_funcs,4,4
	.comm	qxl_cursor_plane_formats,4,4
	.comm	qxl_cursor_helper_funcs,4,4
	.comm	primary_helper_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DRM_PLANE_TYPE_PRIMARY,4,4
	.comm	DRM_PLANE_TYPE_CURSOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
