	.file	"extr_msm_gem_vma.c_msm_gem_close_vma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	msm_gem_close_vma
	.type	msm_gem_close_vma, @function
msm_gem_close_vma:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR [rsi], 0
	jg	.L2
	xor	edi, edi
	cmp	QWORD PTR 24[rsi], 0
	setne	dil
.L2:
	call	WARN_ON@PLT
	test	rax, rax
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	spin_lock@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L10
.L4:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	msm_gem_address_space_put@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, 16[rbx]
	call	drm_mm_remove_node@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	msm_gem_close_vma, .-msm_gem_close_vma
	.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_msm_gem_vma.c_msm_gem_close_vma.c"
	.text
	.align	2
	.global	msm_gem_close_vma
	.syntax unified
	.arm
	.fpu softvfp
	.type	msm_gem_close_vma, %function
msm_gem_close_vma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r5, r0
	mov	r4, r1
	movgt	r0, #1
	bgt	.L2
	ldr	r0, [r1, #12]
	subs	r0, r0, #0
	movne	r0, #1
.L2:
	bl	WARN_ON
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	spin_lock
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L11
.L4:
	mov	r0, r5
	bl	spin_unlock
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	msm_gem_address_space_put
.L11:
	add	r0, r4, #8
	bl	drm_mm_remove_node
	b	.L4
	.size	msm_gem_close_vma, .-msm_gem_close_vma
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
