	.file	"extr_vm_map.c_vm_map_unwire.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vm_map_unwire: lookup failed"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"vm_map_unwire: !HOLESOK and new/changed entry"
	.text
	.p2align 4
	.globl	vm_map_unwire
	.type	vm_map_unwire, @function
vm_map_unwire:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR KERN_SUCCESS[rip]
	mov	QWORD PTR 24[rsp], rdx
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rcx
	xor	ecx, ecx
	cmp	rdx, rsi
	je	.L1
	mov	r14d, ebx
	and	r14d, DWORD PTR VM_MAP_WIRE_HOLESOK[rip]
	mov	ebp, edi
	mov	r12, rsi
	setne	r13b
	mov	DWORD PTR 12[rsp], r14d
	and	ebx, DWORD PTR VM_MAP_WIRE_USER[rip]
	call	vm_map_lock@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r12
	mov	edi, ebp
	movzx	r13d, r13b
	call	VM_MAP_RANGE_CHECK@PLT
	lea	rax, 32[rsp]
	mov	rsi, r12
	mov	edi, ebp
	mov	rdx, rax
	mov	QWORD PTR 16[rsp], rax
	call	vm_map_lookup_entry@PLT
	test	eax, eax
	je	.L57
	mov	r15, QWORD PTR 32[rsp]
.L6:
	mov	r14d, DWORD PTR KERN_SUCCESS[rip]
	mov	rax, QWORD PTR [r15]
	cmp	QWORD PTR 24[rsp], rax
	jle	.L7
	mov	r9d, 1
.L17:
	mov	DWORD PTR 8[rsp], r9d
	mov	eax, DWORD PTR 8[r15]
	test	DWORD PTR MAP_ENTRY_IN_TRANSITION[rip], eax
	je	.L8
	mov	r8, r15
	lea	rdx, 24[rsp]
	mov	ecx, r13d
	mov	rsi, r12
	mov	edi, ebp
	call	vm_map_entry_in_transition@PLT
	mov	r9d, DWORD PTR 8[rsp]
	test	rax, rax
	mov	r15, rax
	je	.L58
	test	r9d, r9d
	mov	eax, 0
	cmovne	rax, r15
	mov	QWORD PTR 32[rsp], rax
.L13:
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR [r15], rax
	jl	.L17
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r15, QWORD PTR 32[rsp]
	test	r15, r15
	je	.L18
.L53:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR [r15]
.L19:
	cmp	rdx, rax
	jle	.L7
	xor	r12d, r12d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC1[rip]
	mov	edi, r13d
	call	KASSERT@PLT
.L23:
	mov	rdi, r15
	call	vm_map_entry_succ@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR [r15], rax
	jge	.L59
.L30:
	mov	eax, DWORD PTR 8[r15]
	mov	edx, DWORD PTR MAP_ENTRY_IN_TRANSITION[rip]
	mov	ecx, eax
	and	ecx, edx
	je	.L21
	mov	rsi, QWORD PTR curthread[rip]
	cmp	QWORD PTR 32[r15], rsi
	jne	.L21
	cmp	DWORD PTR KERN_SUCCESS[rip], r14d
	je	.L60
.L24:
	xor	edi, edi
	test	ecx, ecx
	mov	rsi, r15
	setne	dil
	call	KASSERT@PLT
	mov	rax, QWORD PTR curthread[rip]
	xor	edi, edi
	cmp	QWORD PTR 32[r15], rax
	sete	dil
	mov	rsi, r15
	call	KASSERT@PLT
	mov	eax, DWORD PTR MAP_ENTRY_IN_TRANSITION[rip]
	mov	edx, DWORD PTR MAP_ENTRY_NEEDS_WAKEUP[rip]
	mov	QWORD PTR 32[r15], 0
	not	eax
	and	eax, DWORD PTR 8[r15]
	mov	DWORD PTR 8[r15], eax
	test	eax, edx
	je	.L29
	not	edx
	mov	r12d, 1
	and	eax, edx
	mov	DWORD PTR 8[r15], eax
.L29:
	mov	rdi, r15
	call	vm_map_entry_pred@PLT
	mov	rdx, r15
	mov	edi, ebp
	mov	esi, eax
	call	vm_map_try_merge_entries@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L58:
	mov	r14d, DWORD PTR KERN_INVALID_ADDRESS[rip]
	test	r9d, r9d
	je	.L11
.L55:
	mov	edi, ebp
	call	vm_map_unlock@PLT
	mov	r14d, DWORD PTR KERN_INVALID_ADDRESS[rip]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L61
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	test	r14d, r14d
	je	.L55
	mov	rdi, QWORD PTR 32[rsp]
	call	vm_map_entry_succ@PLT
	mov	QWORD PTR 32[rsp], rax
	mov	r15, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, r12
	mov	rsi, r15
	mov	edi, ebp
	call	vm_map_clip_start@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	edi, ebp
	mov	rsi, r15
	call	vm_map_clip_end@PLT
	mov	eax, DWORD PTR 8[r15]
	xor	edi, edi
	test	DWORD PTR MAP_ENTRY_IN_TRANSITION[rip], eax
	jne	.L14
	xor	edi, edi
	cmp	QWORD PTR 32[r15], 0
	sete	dil
.L14:
	mov	rsi, r15
	call	KASSERT@PLT
	mov	eax, DWORD PTR MAP_ENTRY_IN_TRANSITION[rip]
	or	DWORD PTR 8[r15], eax
	mov	rax, QWORD PTR curthread[rip]
	mov	QWORD PTR 32[r15], rax
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 16[r15], rax
	jl	.L62
.L15:
	test	ebx, ebx
	jne	.L16
	mov	rdi, r15
	call	vm_map_entry_system_wired_count@PLT
	test	rax, rax
	je	.L63
.L16:
	mov	rdi, r15
	call	vm_map_entry_succ@PLT
	xor	r9d, r9d
	mov	r15, rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L60:
	test	ebx, ebx
	je	.L25
	test	DWORD PTR MAP_ENTRY_USER_WIRED[rip], eax
	je	.L24
.L25:
	mov	ecx, DWORD PTR 24[r15]
	cmp	ecx, 1
	je	.L64
	sub	ecx, 1
	mov	DWORD PTR 24[r15], ecx
.L27:
	test	ebx, ebx
	je	.L54
	mov	ecx, DWORD PTR MAP_ENTRY_USER_WIRED[rip]
	not	ecx
	and	eax, ecx
	mov	DWORD PTR 8[r15], eax
.L54:
	and	eax, edx
	mov	ecx, eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L59:
	mov	rdi, r15
	call	vm_map_entry_pred@PLT
	mov	edi, ebp
	mov	rdx, r15
	mov	esi, eax
	call	vm_map_try_merge_entries@PLT
	mov	edi, ebp
	call	vm_map_unlock@PLT
	test	r12d, r12d
	je	.L1
	mov	edi, ebp
	call	vm_map_wakeup@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rdi, r15
	call	vm_map_entry_succ@PLT
	mov	r9, rax
	mov	rax, QWORD PTR 16[r15]
	cmp	QWORD PTR [r9], rax
	jle	.L15
	mov	QWORD PTR 24[rsp], rax
	mov	r14d, DWORD PTR KERN_INVALID_ADDRESS[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r12
	mov	edi, ebp
	call	vm_map_lookup_entry@PLT
	test	eax, eax
	je	.L20
	mov	r15, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR [r15]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rsi, r15
	mov	edi, ebp
	call	vm_map_entry_unwire@PLT
	mov	eax, DWORD PTR 8[r15]
	mov	edx, DWORD PTR MAP_ENTRY_IN_TRANSITION[rip]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	call	vm_map_entry_pred@PLT
	mov	edi, ebp
	mov	rdx, r15
	mov	esi, eax
	call	vm_map_try_merge_entries@PLT
	mov	edi, ebp
	call	vm_map_unlock@PLT
	jmp	.L1
.L20:
	lea	rsi, .LC0[rip]
	mov	edi, r13d
	call	KASSERT@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	vm_map_entry_succ@PLT
	mov	QWORD PTR 32[rsp], rax
	mov	r15, rax
	jmp	.L53
.L63:
	mov	rax, QWORD PTR 16[r15]
	mov	r14d, DWORD PTR KERN_INVALID_ARGUMENT[rip]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L11
.L61:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vm_map_unwire, .-vm_map_unwire
	.comm	curthread,8,8
	.comm	VM_MAP_WIRE_USER,4,4
	.comm	VM_MAP_WIRE_HOLESOK,4,4
	.comm	MAP_ENTRY_USER_WIRED,4,4
	.comm	MAP_ENTRY_NEEDS_WAKEUP,4,4
	.comm	MAP_ENTRY_IN_TRANSITION,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	KERN_INVALID_ADDRESS,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_unwire.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vm_map_unwire: lookup failed\000"
	.align	2
.LC1:
	.ascii	"vm_map_unwire: !HOLESOK and new/changed entry\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vm_map_unwire
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_map_unwire, %function
vm_map_unwire:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	str	r2, [sp, #20]
	cmp	r2, r1
	ldr	r2, .L65
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	beq	.L56
	mov	r7, r1
	mov	r5, r0
	ldr	r1, .L65+4
	ldr	r2, .L65+8
	ldr	r9, [r1]
	ldr	r2, [r2]
	ands	r4, r3, r9
	and	r3, r3, r2
	movne	r8, #1
	moveq	r8, #0
	str	r3, [sp, #8]
	str	r4, [sp, #12]
	bl	vm_map_lock
	mov	r1, r7
	ldr	r2, [sp, #20]
	mov	r0, r5
	bl	VM_MAP_RANGE_CHECK
	mov	r1, r7
	mov	r0, r5
	add	r2, sp, #24
	bl	vm_map_lookup_entry
	cmp	r0, #0
	beq	.L57
	ldr	r4, [sp, #24]
.L6:
	ldr	r3, [r4]
	ldr	r2, [sp, #20]
	cmp	r2, r3
	ldr	r3, .L65+12
	ldr	fp, [r3]
	ble	.L7
	mov	r10, #1
	ldr	r6, .L65+16
	ldr	r9, .L65+20
	str	fp, [sp, #16]
.L17:
	ldr	r3, [r4, #4]
	ldr	r0, [r6]
	ands	fp, r3, r0
	beq	.L8
	str	r4, [sp]
	mov	r3, r8
	mov	r1, r7
	mov	r0, r5
	add	r2, sp, #20
	bl	vm_map_entry_in_transition
	subs	r4, r0, #0
	beq	.L58
	cmp	r10, #0
	movne	r3, r4
	moveq	r3, #0
	str	r3, [sp, #24]
.L13:
	ldr	r2, [r4]
	ldr	r3, [sp, #20]
	cmp	r2, r3
	blt	.L17
	ldr	fp, [sp, #16]
	b	.L11
.L57:
	cmp	r4, #0
	beq	.L54
	ldr	r0, [sp, #24]
	bl	vm_map_entry_succ
	mov	r4, r0
	str	r0, [sp, #24]
	b	.L6
.L8:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	vm_map_clip_start
	mov	r1, r4
	ldr	r2, [sp, #20]
	mov	r0, r5
	bl	vm_map_clip_end
	ldr	r0, [r4, #4]
	ldr	r2, [r6]
	mov	r1, r4
	tst	r0, r2
	ldreq	r0, [r4, #16]
	movne	r0, fp
	clzeq	r0, r0
	lsreq	r0, r0, #5
	bl	KASSERT
	ldr	r3, [r4, #4]
	ldr	r0, [r6]
	ldr	r1, [sp, #12]
	ldr	r2, [r9]
	orr	r3, r3, r0
	cmp	r1, #0
	str	r3, [r4, #4]
	str	r2, [r4, #16]
	bne	.L15
	ldr	r2, [r4, #8]
	ldr	r3, [sp, #20]
	cmp	r2, r3
	blt	.L59
.L15:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L16
	mov	r0, r4
	bl	vm_map_entry_system_wired_count
	cmp	r0, #0
	beq	.L60
.L16:
	mov	r0, r4
	bl	vm_map_entry_succ
	mov	r10, #0
	mov	r4, r0
	b	.L13
.L58:
	cmp	r10, #0
	bne	.L54
	ldr	r3, .L65+24
	ldr	fp, [r3]
.L11:
	ldr	r4, [sp, #24]
	cmp	r4, #0
	beq	.L18
.L52:
	ldr	r2, [sp, #20]
	ldr	r3, [r4]
.L19:
	cmp	r2, r3
	ble	.L7
	mov	r10, #0
	mov	r3, r10
	ldr	r9, .L65+28
	mov	r10, r4
	ldr	r7, .L65+20
	mov	r4, r3
	b	.L30
.L21:
	mov	r1, r9
	mov	r0, r8
	bl	KASSERT
.L23:
	mov	r0, r10
	bl	vm_map_entry_succ
	ldr	r3, [sp, #20]
	ldr	r1, [r0]
	mov	r10, r0
	cmp	r1, r3
	bge	.L61
.L30:
	ldr	r3, [r10, #4]
	ldr	r1, [r6]
	ands	r0, r3, r1
	beq	.L21
	ldr	lr, [r10, #16]
	ldr	ip, [r7]
	cmp	lr, ip
	bne	.L21
	ldr	r2, .L65+12
	ldr	ip, [r2]
	cmp	ip, fp
	beq	.L62
.L24:
	subs	r0, r0, #0
	movne	r0, #1
	mov	r1, r10
	bl	KASSERT
	ldr	r3, [r7]
	ldr	r0, [r10, #16]
	mov	r1, r10
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r2, .L65+32
	ldr	r3, [r10, #4]
	ldr	r1, [r2]
	mov	r2, #0
	ldr	r0, [r6]
	str	r2, [r10, #16]
	bic	r3, r3, r0
	tst	r3, r1
	str	r3, [r10, #4]
	bicne	r3, r3, r1
	mov	r0, r10
	strne	r3, [r10, #4]
	movne	r4, #1
	bl	vm_map_entry_pred
	mov	r2, r10
	mov	r1, r0
	mov	r0, r5
	bl	vm_map_try_merge_entries
	b	.L23
.L62:
	ldr	r2, [sp, #8]
	cmp	r2, #0
	beq	.L25
	ldr	r2, .L65+36
	ldr	ip, [r2]
	tst	r3, ip
	beq	.L24
.L25:
	ldr	r0, [r10, #12]
	cmp	r0, #1
	subne	r0, r0, #1
	strne	r0, [r10, #12]
	beq	.L63
.L27:
	ldr	r2, [sp, #8]
	cmp	r2, #0
	ldrne	r2, .L65+36
	ldrne	r0, [r2]
	bicne	r3, r3, r0
	strne	r3, [r10, #4]
	and	r0, r3, r1
	b	.L24
.L61:
	mov	r3, r4
	mov	r4, r0
	mov	r10, r3
	bl	vm_map_entry_pred
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	vm_map_try_merge_entries
	mov	r0, r5
	bl	vm_map_unlock
	cmp	r10, #0
	beq	.L1
	mov	r0, r5
	bl	vm_map_wakeup
.L1:
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L64
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L56:
	ldr	r3, .L65+12
	ldr	fp, [r3]
	b	.L1
.L54:
	mov	r0, r5
	bl	vm_map_unlock
	ldr	r3, .L65+24
	ldr	fp, [r3]
	b	.L1
.L59:
	mov	r0, r4
	bl	vm_map_entry_succ
	ldr	r3, [r4, #8]
	ldr	r2, [r0]
	cmp	r2, r3
	ble	.L15
	ldr	r2, .L65+24
	str	r3, [sp, #20]
	ldr	fp, [r2]
	b	.L11
.L18:
	mov	r1, r7
	mov	r0, r5
	add	r2, sp, #24
	bl	vm_map_lookup_entry
	cmp	r0, #0
	beq	.L20
	ldr	r4, [sp, #24]
	b	.L52
.L63:
	mov	r1, r10
	mov	r0, r5
	bl	vm_map_entry_unwire
	ldr	r3, [r10, #4]
	ldr	r1, [r6]
	b	.L27
.L7:
	mov	r0, r4
	bl	vm_map_entry_pred
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	vm_map_try_merge_entries
	mov	r0, r5
	bl	vm_map_unlock
	b	.L1
.L20:
	ldr	r1, .L65+40
	mov	r0, r8
	bl	KASSERT
	ldr	r0, [sp, #24]
	bl	vm_map_entry_succ
	ldr	r2, [sp, #20]
	ldr	r3, [r0]
	mov	r4, r0
	str	r0, [sp, #24]
	b	.L19
.L60:
	ldr	r2, [r4, #8]
	ldr	r3, .L65+44
	str	r2, [sp, #20]
	ldr	fp, [r3]
	b	.L11
.L64:
	bl	__stack_chk_fail
.L66:
	.align	2
.L65:
	.word	.LC2
	.word	VM_MAP_WIRE_HOLESOK
	.word	VM_MAP_WIRE_USER
	.word	KERN_SUCCESS
	.word	MAP_ENTRY_IN_TRANSITION
	.word	curthread
	.word	KERN_INVALID_ADDRESS
	.word	.LC1
	.word	MAP_ENTRY_NEEDS_WAKEUP
	.word	MAP_ENTRY_USER_WIRED
	.word	.LC0
	.word	KERN_INVALID_ARGUMENT
	.size	vm_map_unwire, .-vm_map_unwire
	.comm	curthread,4,4
	.comm	VM_MAP_WIRE_USER,4,4
	.comm	VM_MAP_WIRE_HOLESOK,4,4
	.comm	MAP_ENTRY_USER_WIRED,4,4
	.comm	MAP_ENTRY_NEEDS_WAKEUP,4,4
	.comm	MAP_ENTRY_IN_TRANSITION,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	KERN_INVALID_ADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
