	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_unwire                  ## -- Begin function vm_map_unwire
	.p2align	4, 0x90
_vm_map_unwire:                         ## @vm_map_unwire
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)
	cmpq	%rdx, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_56
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_VM_MAP_WIRE_HOLESOK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%ecx, %r13d
	movl	%ecx, %r14d
	setne	-48(%rbp)                       ## 1-byte Folded Spill
	movq	_VM_MAP_WIRE_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	callq	_vm_map_lock
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_VM_MAP_RANGE_CHECK
	leaq	-72(%rbp), %rdx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	je	LBB0_10
## %bb.3:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r12
	jmp	LBB0_4
LBB0_10:
	testl	%r14d, %r13d
	je	LBB0_12
## %bb.11:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r12
	movq	%rax, -72(%rbp)
LBB0_4:
	xorl	%r13d, %r13d
	movb	-48(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	cmpq	-64(%rbp), %rax
	jge	LBB0_29
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAP_ENTRY_IN_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %ecx
	movq	%r12, %r8
	callq	_vm_map_entry_in_transition
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	testb	$1, %bl
	movl	$0, %r14d
	cmoveq	%rax, %r14
	movq	%r14, -72(%rbp)
	movq	(%rax), %rax
	cmpq	-64(%rbp), %rax
	jl	LBB0_6
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_vm_map_clip_start
	movq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_vm_map_clip_end
	movq	_MAP_ENTRY_IN_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 32(%r12)
	sete	%al
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movzbl	%al, %edi
	movq	%r12, %rsi
	callq	_KASSERT
	movq	_MAP_ENTRY_IN_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	testl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rax
	cmpq	-64(%rbp), %rax
	jge	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_vm_map_entry_succ
	movq	16(%r12), %rcx
	cmpq	%rcx, (%rax)
	jg	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, -80(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_vm_map_entry_system_wired_count
	testq	%rax, %rax
	je	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r12
	movq	(%rax), %rax
	movb	$1, %bl
	cmpq	-64(%rbp), %rax
	jl	LBB0_6
	jmp	LBB0_29
LBB0_8:
	testb	$1, %bl
	je	LBB0_9
LBB0_14:
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_29:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %r14
	testq	%r14, %r14
	jne	LBB0_34
	jmp	LBB0_31
LBB0_17:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testq	%r14, %r14
	jne	LBB0_34
LBB0_31:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rsi
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movq	-72(%rbp), %r14
	jmp	LBB0_34
LBB0_12:
	movl	%r12d, %edi
	jmp	LBB0_13
LBB0_9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_13:
	callq	_vm_map_unlock
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_56
LBB0_33:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	callq	_KASSERT
	movq	-72(%rbp), %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r14
	movq	%rax, -72(%rbp)
LBB0_34:
	movq	(%r14), %rax
	cmpq	-64(%rbp), %rax
	jge	LBB0_35
## %bb.36:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_MAP_ENTRY_IN_TRANSITION@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %r12
	movq	_curthread@GOTPCREL(%rip), %r15
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_KASSERT
LBB0_52:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%r14, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r14
	movq	(%rax), %rax
	cmpq	-64(%rbp), %rax
	jge	LBB0_53
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	32(%r14), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_49
## %bb.41:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_49
LBB0_43:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	24(%r14), %eax
	cmpl	$1, %eax
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_vm_map_entry_unwire
	jmp	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_37 Depth=1
	decl	%eax
	movl	%eax, 24(%r14)
LBB0_46:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r14), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_49
LBB0_47:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	8(%r14), %eax
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_37 Depth=1
	xorl	%edi, %edi
	andl	(%rbx), %eax
	setne	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	32(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movl	(%rbx), %eax
	notl	%eax
	andl	8(%r14), %eax
	movl	%eax, 8(%r14)
	movq	$0, 32(%r14)
	movq	_MAP_ENTRY_NEEDS_WAKEUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_37 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 8(%r14)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_51:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%r14, %rdi
	callq	_vm_map_entry_pred
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_vm_map_try_merge_entries
	jmp	LBB0_52
LBB0_35:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_53:
	movq	%r14, %rdi
	callq	_vm_map_entry_pred
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_vm_map_try_merge_entries
	movl	%ebx, %edi
	callq	_vm_map_unlock
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_55
## %bb.54:
	movl	%ebx, %edi
	callq	_vm_map_wakeup
LBB0_55:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_56:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	16(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	_KERN_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_24:
	movq	%rcx, -64(%rbp)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_VM_MAP_WIRE_HOLESOK,4,2        ## @VM_MAP_WIRE_HOLESOK
	.comm	_VM_MAP_WIRE_USER,4,2           ## @VM_MAP_WIRE_USER
	.comm	_KERN_INVALID_ADDRESS,4,2       ## @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_IN_TRANSITION,4,2    ## @MAP_ENTRY_IN_TRANSITION
	.comm	_curthread,8,3                  ## @curthread
	.comm	_KERN_INVALID_ARGUMENT,4,2      ## @KERN_INVALID_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"vm_map_unwire: lookup failed"

L_.str.2:                               ## @.str.2
	.asciz	"vm_map_unwire: !HOLESOK and new/changed entry"

	.comm	_MAP_ENTRY_USER_WIRED,4,2       ## @MAP_ENTRY_USER_WIRED
	.comm	_MAP_ENTRY_NEEDS_WAKEUP,4,2     ## @MAP_ENTRY_NEEDS_WAKEUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_unwire                  ; -- Begin function vm_map_unwire
	.p2align	2
_vm_map_unwire:                         ; @vm_map_unwire
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]
	cmp	x1, x2
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_49
LBB0_2:
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _VM_MAP_WIRE_HOLESOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_MAP_WIRE_HOLESOK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w27, w8, w3
	cset	w20, ne
Lloh6:
	adrp	x8, _VM_MAP_WIRE_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_MAP_WIRE_USER@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	bl	_vm_map_lock
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_VM_MAP_RANGE_CHECK
	mov	x2, sp
	mov	x0, x19
	mov	x1, x22
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x24, [sp]
	b	LBB0_6
LBB0_4:
	cbz	w27, LBB0_27
; %bb.5:
	ldr	x0, [sp]
	bl	_vm_map_entry_succ
	mov	x24, x0
	str	x0, [sp]
LBB0_6:
	and	w25, w25, w21
Lloh9:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	x8, [x24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_23
; %bb.7:
	mov	w28, #0
Lloh12:
	adrp	x26, _MAP_ENTRY_IN_TRANSITION@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MAP_ENTRY_IN_TRANSITION@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	mov	x4, x24
	bl	_vm_map_entry_in_transition
	cbz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	tst	w28, #0x1
	csel	x23, xzr, x0, ne
	str	x23, [sp]
	ldr	x8, [x0]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.lt	LBB0_8
	b	LBB0_24
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_vm_map_clip_start
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_vm_map_clip_end
	ldr	w8, [x24, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24, #32]
	cmp	x8, #0
	cset	w0, eq
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x24
	bl	_KASSERT
	ldr	w8, [x26]
	ldr	w9, [x24, #8]
	orr	w8, w9, w8
	str	w8, [x24, #8]
Lloh14:
	adrp	x8, _curthread@GOTPAGE
Lloh15:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x24, #32]
	cbnz	w27, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24, #16]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_vm_map_entry_succ
	ldr	x9, [x0]
	ldr	x8, [x24, #16]
	cmp	x9, x8
	b.gt	LBB0_51
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w25, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_vm_map_entry_system_wired_count
	cbz	x0, LBB0_50
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_vm_map_entry_succ
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x9, [sp, #8]
	mov	w28, #1
	cmp	x8, x9
	b.lt	LBB0_8
	b	LBB0_23
LBB0_20:
	tbz	w28, #0, LBB0_27
LBB0_21:
Lloh17:
	adrp	x8, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
LBB0_22:
	ldr	w21, [x8]
LBB0_23:
	ldr	x23, [sp]
LBB0_24:
	cbnz	x23, LBB0_29
; %bb.25:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x22
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_28
; %bb.26:
	ldr	x23, [sp]
	b	LBB0_29
LBB0_27:
	mov	x0, x19
	bl	_vm_map_unlock
Lloh19:
	adrp	x8, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	b	LBB0_49
LBB0_28:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_KASSERT
	ldr	x0, [sp]
	bl	_vm_map_entry_succ
	mov	x23, x0
	str	x0, [sp]
LBB0_29:
	ldr	x8, [x23]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_46
; %bb.30:
	mov	w24, #0
Lloh24:
	adrp	x27, _MAP_ENTRY_IN_TRANSITION@GOTPAGE
Lloh25:
	ldr	x27, [x27, _MAP_ENTRY_IN_TRANSITION@GOTPAGEOFF]
Lloh26:
	adrp	x28, _curthread@GOTPAGE
Lloh27:
	ldr	x28, [x28, _curthread@GOTPAGEOFF]
Lloh28:
	adrp	x22, l_.str.2@PAGE
Lloh29:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh30:
	adrp	x26, _MAP_ENTRY_NEEDS_WAKEUP@GOTPAGE
Lloh31:
	ldr	x26, [x26, _MAP_ENTRY_NEEDS_WAKEUP@GOTPAGEOFF]
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_KASSERT
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_vm_map_entry_succ
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_47
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x9, [x23, #32]
	ldr	x10, [x28]
	cmp	x9, x10
	b.ne	LBB0_31
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
Lloh32:
	adrp	x9, _KERN_SUCCESS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _KERN_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w21, w9
	b.ne	LBB0_43
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	cbz	w25, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_33 Depth=1
Lloh35:
	adrp	x9, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
LBB0_38:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [x23, #24]
	subs	w8, w8, #1
	b.ne	LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_vm_map_entry_unwire
	cbz	w25, LBB0_42
LBB0_40:                                ;   in Loop: Header=BB0_33 Depth=1
Lloh38:
	adrp	x8, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x23, #8]
	bic	w8, w9, w8
	str	w8, [x23, #8]
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_33 Depth=1
	str	w8, [x23, #24]
	cbnz	w25, LBB0_40
LBB0_42:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [x23, #8]
LBB0_43:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	cset	w0, ne
	mov	x1, x23
	bl	_KASSERT
	ldr	x8, [x23, #32]
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, eq
	mov	x1, x23
	bl	_KASSERT
	ldr	w8, [x27]
	ldr	w9, [x23, #8]
	bic	w8, w9, w8
	str	w8, [x23, #8]
	str	xzr, [x23, #32]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_33 Depth=1
	bic	w8, w8, w9
	str	w8, [x23, #8]
	mov	w24, #1
LBB0_45:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_vm_map_entry_pred
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_vm_map_try_merge_entries
	b	LBB0_32
LBB0_46:
	mov	w24, #0
LBB0_47:
	mov	x0, x23
	bl	_vm_map_entry_pred
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_vm_map_try_merge_entries
	mov	x0, x19
	bl	_vm_map_unlock
	cbz	w24, LBB0_49
; %bb.48:
	mov	x0, x19
	bl	_vm_map_wakeup
LBB0_49:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_50:
	ldr	x8, [x24, #16]
	str	x8, [sp, #8]
Lloh41:
	adrp	x8, _KERN_INVALID_ARGUMENT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KERN_INVALID_ARGUMENT@GOTPAGEOFF]
	b	LBB0_22
LBB0_51:
	str	x8, [sp, #8]
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_VM_MAP_WIRE_HOLESOK,4,2        ; @VM_MAP_WIRE_HOLESOK
	.comm	_VM_MAP_WIRE_USER,4,2           ; @VM_MAP_WIRE_USER
	.comm	_KERN_INVALID_ADDRESS,4,2       ; @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_IN_TRANSITION,4,2    ; @MAP_ENTRY_IN_TRANSITION
	.comm	_curthread,8,3                  ; @curthread
	.comm	_KERN_INVALID_ARGUMENT,4,2      ; @KERN_INVALID_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"vm_map_unwire: lookup failed"

l_.str.2:                               ; @.str.2
	.asciz	"vm_map_unwire: !HOLESOK and new/changed entry"

	.comm	_MAP_ENTRY_USER_WIRED,4,2       ; @MAP_ENTRY_USER_WIRED
	.comm	_MAP_ENTRY_NEEDS_WAKEUP,4,2     ; @MAP_ENTRY_NEEDS_WAKEUP
.subsections_via_symbols
