	.file	"extr_drm_crtc.c_drm_plane_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"out of memory when allocating plane\n"
	.text
	.p2align 4
	.globl	drm_plane_init
	.type	drm_plane_init, @function
drm_plane_init:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	lea	r15, 24[rbx]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], r8
	call	drm_modeset_lock_all@PLT
	mov	edx, DWORD PTR DRM_MODE_OBJECT_PLANE[rip]
	mov	rsi, r15
	mov	rdi, r14
	call	drm_mode_object_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L2:
	mov	rdi, r14
	call	drm_modeset_unlock_all@PLT
	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
.L7:
	.cfi_restore_state
	lea	rax, 48[rbx]
	mov	QWORD PTR 32[rbx], r13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	r13d, 0[0+rbp*4]
	mov	QWORD PTR 24[rbx], rax
	mov	edi, r13d
	mov	QWORD PTR 40[rbx], r14
	call	kmalloc@PLT
	mov	DWORD PTR 20[rbx], eax
	mov	edi, eax
	test	eax, eax
	je	.L8
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r13d
	call	memcpy@PLT
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rbx], ebp
	lea	rdi, 16[rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 80[rsp]
	test	eax, eax
	jne	.L4
	lea	rsi, 4[r14]
	call	list_add_tail@PLT
	add	DWORD PTR [r14], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	call	INIT_LIST_HEAD@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	drm_mode_object_put@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	drm_plane_init, .-drm_plane_init
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DRM_MODE_OBJECT_PLANE,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_crtc.c_drm_plane_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory when allocating plane\012\000"
	.text
	.align	2
	.global	drm_plane_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_plane_init, %function
drm_plane_init:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r7, r2
	mov	r9, r3
	bl	drm_modeset_lock_all
	ldr	r2, .L9
	add	r8, r4, #16
	mov	r1, r8
	mov	r0, r5
	ldr	r2, [r2]
	bl	drm_mode_object_get
	subs	r6, r0, #0
	beq	.L7
.L2:
	mov	r0, r5
	bl	drm_modeset_unlock_all
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r1, [sp, #36]
	ldr	r2, .L9+4
	add	r3, r4, #28
	lsl	r10, r1, #2
	mov	r0, r10
	ldr	r1, [r2]
	str	r5, [r4, #24]
	str	r9, [r4, #20]
	str	r3, [r4, #16]
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L8
	mov	r2, r10
	ldr	r1, [sp, #32]
	bl	memcpy
	ldr	r3, [sp, #40]
	add	r0, r4, #8
	cmp	r3, #0
	ldr	r3, [sp, #36]
	stm	r4, {r3, r7}
	bne	.L4
	add	r1, r5, #4
	bl	list_add_tail
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
	b	.L2
.L4:
	bl	INIT_LIST_HEAD
	b	.L2
.L8:
	ldr	r0, .L9+8
	bl	DRM_DEBUG_KMS
	mov	r1, r8
	mov	r0, r5
	bl	drm_mode_object_put
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L2
.L10:
	.align	2
.L9:
	.word	DRM_MODE_OBJECT_PLANE
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	drm_plane_init, .-drm_plane_init
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DRM_MODE_OBJECT_PLANE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
