	.file	"extr_vmalloc.c_remove_vm_area.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	remove_vm_area
	.type	remove_vm_area, @function
remove_vm_area:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	find_vmap_area@PLT
	test	rax, rax
	je	.L6
	mov	rbp, rax
	xor	r12d, r12d
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR VM_VM_AREA[rip], eax
	je	.L1
	mov	r12, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR VM_UNLIST[rip], eax
	je	.L13
.L3:
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 8[rbp]
	call	vmap_debug_free_range@PLT
	mov	rdi, rbp
	call	free_unmap_vmap_area@PLT
	mov	rax, QWORD PTR PAGE_SIZE[rip]
	sub	DWORD PTR 4[r12], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, vmlist_lock[rip]
	call	write_lock@PLT
	mov	rax, QWORD PTR vmlist[rip]
	lea	rdx, vmlist[rip]
	cmp	r12, rax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, rax
	mov	rax, QWORD PTR 8[rax]
	cmp	r12, rax
	jne	.L5
	add	rdx, 8
.L4:
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, vmlist_lock[rip]
	mov	QWORD PTR [rdx], rax
	call	write_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	remove_vm_area, .-remove_vm_area
	.comm	vmlist_lock,4,4
	.comm	vmlist,8,8
	.comm	VM_VM_AREA,4,4
	.comm	VM_UNLIST,4,4
	.comm	PAGE_SIZE,8,8
	.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_vmalloc.c_remove_vm_area.c"
	.text
	.align	2
	.global	remove_vm_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_vm_area, %function
remove_vm_area:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	find_vmap_area
	subs	r5, r0, #0
	moveq	r4, r5
	beq	.L1
	ldr	r3, .L13
	ldr	r4, [r5]
	ldr	r3, [r3]
	ands	r4, r4, r3
	beq	.L1
	ldr	r4, [r5, #12]
	ldr	r3, .L13+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L12
.L3:
	ldr	r1, [r5, #4]
	ldr	r0, [r5, #8]
	bl	vmap_debug_free_range
	mov	r0, r5
	bl	free_unmap_vmap_area
	ldr	r2, .L13+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	sub	r3, r3, r2
	str	r3, [r4, #4]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, .L13+12
	bl	write_lock
	ldr	r2, .L13+16
	ldr	r3, [r2]
	cmp	r4, r3
	beq	.L4
.L5:
	mov	r2, r3
	ldr	r3, [r3, #8]
	cmp	r4, r3
	bne	.L5
	add	r2, r2, #8
.L4:
	ldr	r3, [r3, #8]
	ldr	r0, .L13+12
	str	r3, [r2]
	bl	write_unlock
	b	.L3
.L14:
	.align	2
.L13:
	.word	VM_VM_AREA
	.word	VM_UNLIST
	.word	PAGE_SIZE
	.word	vmlist_lock
	.word	vmlist
	.size	remove_vm_area, .-remove_vm_area
	.comm	vmlist_lock,4,4
	.comm	vmlist,4,4
	.comm	VM_VM_AREA,4,4
	.comm	VM_UNLIST,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
