	.file	"extr_vm_map.c__vm_map_clip_end.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_vm_map_clip_end, @function
_vm_map_clip_end:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	VM_MAP_ASSERT_LOCKED@PLT
	xor	edi, edi
	cmp	QWORD PTR [rbx], r12
	jge	.L2
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], r12
	setg	dil
.L2:
	mov	rsi, rbx
	call	KASSERT@PLT
	mov	rsi, rbx
	mov	edi, r13d
	call	vm_map_entry_charge_object@PLT
	mov	edi, r13d
	call	vm_map_entry_create@PLT
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	rbp, rax
	movups	XMMWORD PTR [rax], xmm0
	movdqu	xmm1, XMMWORD PTR 16[rbx]
	movups	XMMWORD PTR 16[rax], xmm1
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 8[rbx], r12
	mov	QWORD PTR 0[rbp], r12
	sub	r12d, DWORD PTR [rbx]
	add	DWORD PTR 32[rbp], r12d
	cmp	QWORD PTR 24[rbp], 0
	je	.L3
	mov	rdi, QWORD PTR 24[rbx]
	call	crhold@PLT
.L3:
	mov	rsi, rbp
	mov	edi, r13d
	call	vm_map_entry_link@PLT
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR MAP_ENTRY_IS_SUB_MAP[rip], eax
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 20[rbp]
	call	vm_object_reference@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	esi, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	vm_map_entry_set_vnode_text@PLT
	.cfi_endproc
.LFE0:
	.size	_vm_map_clip_end, .-_vm_map_clip_end
	.comm	MAP_ENTRY_IS_SUB_MAP,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_vm_map.c__vm_map_clip_end.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_vm_map_clip_end, %function
_vm_map_clip_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r2
	mov	r7, r0
	bl	VM_MAP_ASSERT_LOCKED
	ldr	r3, [r4]
	cmp	r3, r6
	movge	r0, #0
	bge	.L2
	ldr	r0, [r4, #4]
	cmp	r0, r6
	movle	r0, #0
	movgt	r0, #1
.L2:
	mov	r1, r4
	bl	KASSERT
	mov	r1, r4
	mov	r0, r7
	bl	vm_map_entry_charge_object
	mov	r0, r7
	bl	vm_map_entry_create
	mov	lr, r4
	mov	ip, r0
	mov	r5, r0
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	str	r6, [r4, #4]
	str	r6, [r5]
	ldr	r2, [r4]
	ldr	r3, [r5, #20]
	ldr	r1, [r5, #16]
	sub	r6, r6, r2
	add	r6, r3, r6
	cmp	r1, #0
	str	r6, [r5, #20]
	beq	.L3
	ldr	r0, [r4, #16]
	bl	crhold
.L3:
	mov	r0, r7
	mov	r1, r5
	bl	vm_map_entry_link
	ldr	r3, .L11
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r5, #12]
	bl	vm_object_reference
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	b	vm_map_entry_set_vnode_text
.L12:
	.align	2
.L11:
	.word	MAP_ENTRY_IS_SUB_MAP
	.size	_vm_map_clip_end, .-_vm_map_clip_end
	.comm	MAP_ENTRY_IS_SUB_MAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
