	.file	"extr_drm_plane.c_drm_plane_cleanup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_plane_cleanup
	.type	drm_plane_cleanup, @function
drm_plane_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, 40
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 8[rdi]
	lea	r12, 24[rbp]
	call	drm_modeset_lock_fini@PLT
	mov	edi, DWORD PTR 36[rbp]
	call	kfree@PLT
	mov	edi, DWORD PTR 32[rbp]
	call	kfree@PLT
	lea	rsi, 28[rbp]
	mov	rdi, rbx
	call	drm_mode_object_unregister@PLT
	mov	rdi, r12
	call	list_empty@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, r12
	call	list_del@PLT
	sub	DWORD PTR [rbx], 1
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR 16[rbp]
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	sete	dil
.L2:
	call	WARN_ON@PLT
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	je	.L3
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	call	rax
.L3:
	mov	edi, DWORD PTR 0[rbp]
	call	kfree@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	edx, 56
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.cfi_endproc
.LFE0:
	.size	drm_plane_cleanup, .-drm_plane_cleanup
	.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_plane.c_drm_plane_cleanup.c"
	.text
	.align	2
	.global	drm_plane_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_plane_cleanup, %function
drm_plane_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r0, r0, #28
	ldr	r5, [r4, #32]
	bl	drm_modeset_lock_fini
	ldr	r0, [r4, #24]
	bl	kfree
	ldr	r0, [r4, #20]
	bl	kfree
	add	r6, r4, #12
	add	r1, r4, #16
	mov	r0, r5
	bl	drm_mode_object_unregister
	mov	r0, r6
	bl	list_empty
	bl	BUG_ON
	mov	r0, r6
	bl	list_del
	ldr	r0, [r4, #4]
	ldr	r3, [r5]
	cmp	r0, #0
	sub	r3, r3, #1
	str	r3, [r5]
	ldrne	r3, [r4, #8]
	ldrne	r0, [r3]
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	WARN_ON
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L3
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	blx	r3
.L3:
	ldr	r0, [r4]
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #36
	mov	r1, #0
	b	memset
	.size	drm_plane_cleanup, .-drm_plane_cleanup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
