	.file	"extr_vm_map.c_vm_map_entry_delete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vm_map_entry_delete, @function
vm_map_entry_delete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR 48[rsi]
	mov	r14, QWORD PTR 40[rsi]
	mov	rdi, rbx
	call	page_aligned@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rdi, r14
	call	page_aligned@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR TRUE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L8
.L2:
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbp], 0
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR 32[rbp]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	cmp	QWORD PTR 24[rbp], 0
	mov	rdi, rbp
	jne	.L9
	call	VME_OBJECT@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13, rax
	call	vm_map_store_entry_unlink@PLT
	add	ebx, DWORD PTR [r12]
	mov	rdi, r12
	mov	rsi, rbp
	sub	ebx, r14d
	mov	DWORD PTR [r12], ebx
	call	vm_map_entry_dispose@PLT
	mov	rdi, r12
	call	vm_map_unlock@PLT
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	vm_object_deallocate@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	VME_SUBMAP@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13, rax
	call	vm_map_store_entry_unlink@PLT
	add	ebx, DWORD PTR [r12]
	mov	rdi, r12
	mov	rsi, rbp
	sub	ebx, r14d
	mov	DWORD PTR [r12], ebx
	call	vm_map_entry_dispose@PLT
	mov	rdi, r12
	call	vm_map_unlock@PLT
	test	r13, r13
	je	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	vm_map_deallocate@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r12
	call	VM_MAP_PAGE_MASK@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	VM_MAP_PAGE_ALIGNED@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rdi, r12
	call	VM_MAP_PAGE_MASK@PLT
	mov	rdi, r14
	mov	esi, eax
	call	VM_MAP_PAGE_ALIGNED@PLT
	mov	edi, eax
	call	assert@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vm_map_entry_delete, .-vm_map_entry_delete
	.comm	TRUE,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_vm_map.c_vm_map_entry_delete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_map_entry_delete, %function
vm_map_entry_delete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, [r1, #24]
	ldr	r7, [r1, #20]
	mov	r5, r0
	mov	r0, r6
	bl	page_aligned
	bl	assert
	mov	r0, r7
	bl	page_aligned
	bl	assert
	ldr	r3, .L10
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
.L2:
	ldr	r0, [r4, #4]
	sub	r7, r7, r6
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #16]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4, #12]
	mov	r0, r4
	cmp	r3, #0
	bne	.L9
	bl	VME_OBJECT
	mov	r1, r4
	mov	r6, r0
	mov	r0, r5
	bl	vm_map_store_entry_unlink
	ldr	r3, [r5]
	mov	r1, r4
	sub	r7, r3, r7
	mov	r0, r5
	str	r7, [r5]
	bl	vm_map_entry_dispose
	mov	r0, r5
	bl	vm_map_unlock
.L5:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	vm_object_deallocate
.L9:
	bl	VME_SUBMAP
	mov	r6, r0
	mov	r1, r4
	mov	r0, r5
	bl	vm_map_store_entry_unlink
	ldr	r3, [r5]
	mov	r1, r4
	sub	r7, r3, r7
	mov	r0, r5
	str	r7, [r5]
	bl	vm_map_entry_dispose
	mov	r0, r5
	bl	vm_map_unlock
	cmp	r6, #0
	beq	.L5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	vm_map_deallocate
.L8:
	mov	r0, r5
	bl	VM_MAP_PAGE_MASK
	mov	r1, r0
	mov	r0, r6
	bl	VM_MAP_PAGE_ALIGNED
	bl	assert
	mov	r0, r5
	bl	VM_MAP_PAGE_MASK
	mov	r1, r0
	mov	r0, r7
	bl	VM_MAP_PAGE_ALIGNED
	bl	assert
	b	.L2
.L11:
	.align	2
.L10:
	.word	TRUE
	.size	vm_map_entry_delete, .-vm_map_entry_delete
	.comm	TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
