	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_lookup                  ## -- Begin function vm_map_lookup
	.p2align	4, 0x90
_vm_map_lookup:                         ## @vm_map_lookup
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_3 Depth 3
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_3 Depth 3
	movq	%r14, %rdi
	callq	_vm_map_lock_read
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=3
	movq	(%rbx), %r15
	movl	(%r15), %eax
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=3
	movl	4(%r15), %ebx
	movq	_VM_PROT_FAULT_LOOKUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, %ecx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=3
	notl	%ecx
	andl	%ecx, %r12d
	movq	_VM_PROT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=3
	movq	_kernel_map@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=3
	movq	_MAP_ENTRY_GUARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=3
	movq	_MAP_ENTRY_STACK_GAP_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MAP_ENTRY_STACK_GAP_DN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=3
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_vm_map_growstack
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	32(%r15), %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r14, %rdi
	callq	_vm_map_unlock_read
	movq	%rbx, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	%eax, %r13d
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	andl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%ebx, %ecx
	notl	%ecx
	testl	%ecx, %r13d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_VM_PROT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15), %rsi
	testl	%ebx, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%esi, %ecx
	notl	%ecx
	testl	%ecx, %eax
	setne	%al
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %al
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edi
	callq	_KASSERT
	movq	_VM_PROT_COPY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAP_ENTRY_COW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_15
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpq	$0, 16(%r15)
	setne	%al
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %r13d
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	64(%r15), %rax
	subq	48(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	testl	%r13d, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_VM_PROT_COPY@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_38
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_lock_upgrade
	movl	%r13d, %edx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 56(%r15)
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_crhold
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_swap_reserve_by_cred
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, 56(%r15)
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	24(%r15), %rdi
	leaq	40(%r15), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_vm_object_shadow
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	24(%r15), %rax
	movq	56(%r15), %rsi
	cmpq	$0, 8(%rax)
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_swap_release_by_cred
	movq	56(%r15), %rdi
	callq	_crfree
	jmp	LBB0_36
LBB0_38:                                ##   in Loop: Header=BB0_1 Depth=1
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_39
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	testq	%rsi, %rsi
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	56(%r15), %rax
	movq	%rax, 8(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_36:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 56(%r15)
LBB0_37:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_lock_downgrade
LBB0_39:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_45
## %bb.40:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%rdi)
	jne	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_vm_map_lock_upgrade
	movl	%r13d, %edx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.42:
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_atop
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_vm_object_allocate
	movq	%rax, 24(%r15)
	movq	$0, 40(%r15)
	cmpq	$0, 56(%r15)
	je	LBB0_44
## %bb.43:
	movq	%rax, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	24(%r15), %rdi
	movq	56(%r15), %rax
	movq	%rax, 8(%rdi)
	movq	%r14, (%rdi)
	callq	_VM_OBJECT_WUNLOCK
	movq	$0, 56(%r15)
LBB0_44:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_lock_downgrade
LBB0_45:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	subq	48(%r15), %rdi
	addq	40(%r15), %rdi
	callq	_OFF_TO_IDX
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	24(%r15), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	16(%rbp), %rax
	movl	%ebx, (%rax)
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_4:
	movq	%r14, %rdi
	callq	_vm_map_unlock_read
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %rax
LBB0_46:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_unlock_read
	movq	_KERN_PROTECTION_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_30:
	movq	%r14, %rdi
	callq	_crfree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_unlock
	movq	_KERN_RESOURCE_SHORTAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INVALID_ADDRESS,4,2       ## @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.comm	_VM_PROT_FAULT_LOOKUP,4,2       ## @VM_PROT_FAULT_LOOKUP
	.comm	_VM_PROT_NONE,4,2               ## @VM_PROT_NONE
	.comm	_kernel_map,8,3                 ## @kernel_map
	.comm	_MAP_ENTRY_GUARD,4,2            ## @MAP_ENTRY_GUARD
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ## @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ## @MAP_ENTRY_STACK_GAP_UP
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_KERN_PROTECTION_FAILURE,4,2    ## @KERN_PROTECTION_FAILURE
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ## @MAP_ENTRY_USER_WIRED
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ## @MAP_ENTRY_NEEDS_COPY
	.comm	_VM_PROT_COPY,4,2               ## @VM_PROT_COPY
	.comm	_MAP_ENTRY_COW,4,2              ## @MAP_ENTRY_COW
	.comm	_curthread,8,3                  ## @curthread
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ## @KERN_RESOURCE_SHORTAGE
	.comm	_OBJT_DEFAULT,4,2               ## @OBJT_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_lookup                  ; -- Begin function vm_map_lookup
	.p2align	2
_vm_map_lookup:                         ; @vm_map_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x7, [sp, #32]                   ; 8-byte Folded Spill
	stp	x4, x6, [sp, #8]                ; 16-byte Folded Spill
	str	x5, [sp]                        ; 8-byte Folded Spill
	mov	x25, x3
	mov	x24, x2
	mov	x22, x1
Lloh0:
	adrp	x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh2:
	adrp	x19, _VM_PROT_NONE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _VM_PROT_NONE@GOTPAGEOFF]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x23, [x0]
	mov	x26, x2
Lloh4:
	adrp	x20, _KERN_SUCCESS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _KERN_SUCCESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x0, x23
	bl	_vm_map_lock_read
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_40
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x28, [x25]
	ldr	w8, [x28]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w21, [x28, #4]
Lloh6:
	adrp	x9, _VM_PROT_FAULT_LOOKUP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_PROT_FAULT_LOOKUP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	bic	w26, w26, w9
	ldr	w9, [x19]
Lloh9:
	adrp	x10, _kernel_map@GOTPAGE
Lloh10:
	ldr	x10, [x10, _kernel_map@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	w21, w9
	ccmp	x23, x10, #4, eq
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
Lloh12:
	adrp	x9, _MAP_ENTRY_GUARD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAP_ENTRY_GUARD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=2
Lloh15:
	adrp	x9, _MAP_ENTRY_STACK_GAP_DN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAP_ENTRY_STACK_GAP_DN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MAP_ENTRY_STACK_GAP_UP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MAP_ENTRY_STACK_GAP_UP@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x28
	bl	_vm_map_growstack
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh21:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x8]
Lloh24:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w9, w8, w9
Lloh27:
	adrp	x10, _VM_PROT_EXECUTE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w24, w9, w24
	bic	w9, w24, w21
	ldr	w10, [x19]
	cmp	w9, #0
	ccmp	w21, w10, #4, eq
	b.eq	LBB0_43
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x1, [x28]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh30:
	adrp	x8, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w8, w1
	cset	w0, ne
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_KASSERT
Lloh36:
	adrp	x8, _VM_PROT_COPY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VM_PROT_COPY@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28, #8]
Lloh39:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
Lloh42:
	adrp	x9, _MAP_ENTRY_COW@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MAP_ENTRY_COW@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28, #16]
	cmp	x8, #0
	cset	w9, ne
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	str	w9, [x10]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w24, [x28, #4]
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28, #64]
	ldr	x9, [x28, #48]
	sub	x8, x8, x9
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [x28]
Lloh45:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh48:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w24
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh51:
	adrp	x9, _VM_PROT_COPY@GOTPAGE
Lloh52:
	ldr	x9, [x9, _VM_PROT_COPY@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_28
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vm_map_lock_upgrade
	cbnz	x0, LBB0_1
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28, #56]
	cbnz	x8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh54:
	adrp	x8, _curthread@GOTPAGE
Lloh55:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_crhold
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x20
	bl	_swap_reserve_by_cred
	cbz	w0, LBB0_44
; %bb.24:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x20, [x28, #56]
LBB0_25:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x28, #24
	add	x1, x28, #40
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	mov	x2, x27
	bl	_vm_object_shadow
Lloh57:
	adrp	x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldr	w9, [x28]
	bic	w8, w9, w8
	str	w8, [x28]
	ldr	x20, [x28, #24]
	ldr	x8, [x20, #8]
	ldr	x1, [x28, #56]
	cbz	x8, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_swap_release_by_cred
	ldr	x0, [x28, #56]
	bl	_crfree
Lloh60:
	adrp	x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh61:
	ldr	x27, [x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
	b	LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x20
	ldr	x20, [x28, #32]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x20, [x8]
	mov	x0, x23
	bl	_vm_map_unlock_read
	mov	x23, x20
	mov	x20, x21
	b	LBB0_1
LBB0_28:                                ;   in Loop: Header=BB0_1 Depth=1
	bic	w21, w21, w8
	b	LBB0_33
LBB0_29:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh62:
	adrp	x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh63:
	ldr	x27, [x27, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
	cbz	x1, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	ldr	x9, [x28, #56]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	stp	x8, x9, [x20]
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
LBB0_31:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x28, #56]
LBB0_32:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vm_map_lock_downgrade
Lloh64:
	adrp	x20, _KERN_SUCCESS@GOTPAGE
Lloh65:
	ldr	x20, [x20, _KERN_SUCCESS@GOTPAGEOFF]
LBB0_33:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28, #24]
	cbnz	x8, LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_39
; %bb.35:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vm_map_lock_upgrade
	cbnz	x0, LBB0_1
; %bb.36:
	mov	x19, x20
Lloh66:
	adrp	x8, _OBJT_DEFAULT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh68:
	ldr	w20, [x8]
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x24
	bl	_atop
	mov	x1, x0
	mov	x0, x20
	bl	_vm_object_allocate
	str	x0, [x28, #24]
	str	xzr, [x28, #40]
	ldr	x8, [x28, #56]
	cbz	x8, LBB0_38
; %bb.37:
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x28, #56]
	ldr	x0, [x28, #24]
	stp	x24, x8, [x0]
	bl	_VM_OBJECT_WUNLOCK
	str	xzr, [x28, #56]
LBB0_38:
	mov	x0, x23
	bl	_vm_map_lock_downgrade
	mov	x20, x19
LBB0_39:
	ldp	x9, x8, [x28, #40]
	sub	x8, x22, x8
	add	x0, x9, x8
	bl	_OFF_TO_IDX
	ldp	x8, x9, [sp]                    ; 16-byte Folded Reload
	str	w0, [x8]
	ldr	x8, [x28, #24]
	str	x8, [x9]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w21, [x8]
	ldr	w0, [x20]
	b	LBB0_42
LBB0_40:
	mov	x0, x23
	bl	_vm_map_unlock_read
Lloh69:
	adrp	x8, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
LBB0_41:
	ldr	w0, [x8]
LBB0_42:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_43:
	mov	x0, x23
	bl	_vm_map_unlock_read
Lloh71:
	adrp	x8, _KERN_PROTECTION_FAILURE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _KERN_PROTECTION_FAILURE@GOTPAGEOFF]
	b	LBB0_41
LBB0_44:
	mov	x0, x20
	bl	_crfree
	mov	x0, x23
	bl	_vm_map_unlock
Lloh73:
	adrp	x8, _KERN_RESOURCE_SHORTAGE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _KERN_RESOURCE_SHORTAGE@GOTPAGEOFF]
	b	LBB0_41
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INVALID_ADDRESS,4,2       ; @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.comm	_VM_PROT_FAULT_LOOKUP,4,2       ; @VM_PROT_FAULT_LOOKUP
	.comm	_VM_PROT_NONE,4,2               ; @VM_PROT_NONE
	.comm	_kernel_map,8,3                 ; @kernel_map
	.comm	_MAP_ENTRY_GUARD,4,2            ; @MAP_ENTRY_GUARD
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ; @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ; @MAP_ENTRY_STACK_GAP_UP
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_KERN_PROTECTION_FAILURE,4,2    ; @KERN_PROTECTION_FAILURE
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ; @MAP_ENTRY_USER_WIRED
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ; @MAP_ENTRY_NEEDS_COPY
	.comm	_VM_PROT_COPY,4,2               ; @VM_PROT_COPY
	.comm	_MAP_ENTRY_COW,4,2              ; @MAP_ENTRY_COW
	.comm	_curthread,8,3                  ; @curthread
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ; @KERN_RESOURCE_SHORTAGE
	.comm	_OBJT_DEFAULT,4,2               ; @OBJT_DEFAULT
.subsections_via_symbols
