	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_insert                  ## -- Begin function vm_map_insert
	.p2align	4, 0x90
_vm_map_insert:                         ## @vm_map_insert
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	24(%rbp), %r14d
	callq	_VM_MAP_ASSERT_LOCKED
	movq	_kernel_object@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	setne	%al
	movq	_MAP_COPY_ON_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	sete	%al
	movq	_MAP_NOFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	16(%rbp), %rsi
	movq	%rsi, %rax
	notq	%rax
	xorl	%edi, %edi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rax
	movq	%r13, %rbx
	sete	%dil
	callq	_KASSERT
	movq	%r15, %rdi
	callq	_vm_map_min
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %r13
	cmpq	%rbx, %rax
	jg	LBB0_79
## %bb.1:
	movq	%r15, %rdi
	callq	_vm_map_max
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r14
	subq	%rbx, %r14
	jle	LBB0_79
## %bb.2:
	movq	%rcx, %r12
	cmpq	%rcx, %rax
	jl	LBB0_79
## %bb.3:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_map_lookup_entry
	movq	_KERN_NO_SPACE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_79
## %bb.4:
	movq	-56(%rbp), %rdi
	callq	_vm_map_entry_succ
	cmpq	%r12, (%rax)
	jl	LBB0_79
## %bb.5:
	movq	_MAP_CREATE_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, 24(%rbp)
	je	LBB0_8
## %bb.6:
	movq	_KERN_INVALID_ARGUMENT@GOTPCREL(%rip), %r13
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_79
## %bb.7:
	movq	_VM_PROT_NONE@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_79
LBB0_8:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_MAP_COPY_ON_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	24(%rbp), %esi
	andl	%esi, %eax
	movq	_MAP_ENTRY_COW@GOTPCREL(%rip), %rcx
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	orl	%edx, %r13d
	testl	%eax, %eax
	cmovel	%eax, %r13d
	movq	_MAP_NOFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, %r8d
	andl	%esi, %r8d
	je	LBB0_10
## %bb.9:
	movq	_MAP_ENTRY_NOFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_10:
	movq	_MAP_DISABLE_SYNCER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%esi, %r15d
	je	LBB0_12
## %bb.11:
	movq	_MAP_ENTRY_NOSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_MAP_DISABLE_COREDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	andl	%esi, %r11d
	je	LBB0_14
## %bb.13:
	movq	_MAP_ENTRY_NOCOREDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
LBB0_14:
	movq	_MAP_STACK_GROWS_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%esi, %ebx
	je	LBB0_16
## %bb.15:
	movq	_MAP_ENTRY_GROWS_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_16:
	movq	_MAP_STACK_GROWS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	je	LBB0_18
## %bb.17:
	movq	_MAP_ENTRY_GROWS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	_MAP_WRITECOUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%esi, %edx
	je	LBB0_20
## %bb.19:
	movq	_MAP_ENTRY_WRITECNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_20:
	movl	%r9d, %esi
	movl	24(%rbp), %edi
	andl	%edi, %esi
	movq	_MAP_VN_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	andl	%edi, %ecx
	je	LBB0_22
## %bb.21:
	movq	_MAP_ENTRY_VN_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_22:
	movq	_MAP_ENTRY_GUARD@GOTPCREL(%rip), %r12
	testl	%esi, %esi
	je	LBB0_24
## %bb.23:
	movl	(%r12), %esi
LBB0_24:
	orl	%esi, %ecx
	orl	%r13d, %r8d
	orl	%r11d, %r15d
	orl	%eax, %ebx
	movq	_MAP_CREATE_STACK_GAP_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	24(%rbp), %esi
	andl	%esi, %eax
	je	LBB0_26
## %bb.25:
	movq	_MAP_ENTRY_STACK_GAP_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:
	orl	%eax, %ecx
	orl	%r15d, %r8d
	orl	%edx, %ebx
	movq	_MAP_CREATE_STACK_GAP_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	-120(%rbp), %r13                ## 8-byte Reload
	je	LBB0_28
## %bb.27:
	movq	_MAP_ENTRY_STACK_GAP_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	orl	%eax, %ecx
	orl	%ebx, %r8d
	movq	_MAP_INHERIT_SHARE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_30
## %bb.29:
	movq	_VM_INHERIT_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_30:
	movq	_VM_INHERIT_SHARE@GOTPCREL(%rip), %rax
LBB0_31:
	orl	%ecx, %r8d
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_MAP_ACC_NO_CHARGE@GOTPCREL(%rip), %rax
	orl	%r9d, %r10d
	orl	(%rax), %r10d
	testl	%esi, %r10d
	movl	%r8d, %r12d
	je	LBB0_33
LBB0_32:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_33:
	movq	_MAP_ACC_CHARGED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_53
LBB0_34:
	movb	$1, %al
	testq	%r13, %r13
	je	LBB0_37
## %bb.35:
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	jne	LBB0_37
## %bb.36:
	cmpq	$0, 16(%r13)
	sete	%al
LBB0_37:
	movzbl	%al, %edi
	movq	%r13, %rsi
	callq	_KASSERT
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	24(%rbp), %esi
	movl	%r12d, %r8d
LBB0_38:
	movq	_kernel_map@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_41
## %bb.39:
	movq	_kernel_vm_end@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jge	LBB0_41
## %bb.40:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pmap_growkernel
	movl	%r12d, %r8d
	movl	24(%rbp), %esi
LBB0_41:
	testq	%r13, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_46
## %bb.42:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	cmpl	$1, (%r13)
	jg	LBB0_44
## %bb.43:
	cmpq	$0, 8(%r13)
	je	LBB0_45
LBB0_44:
	movq	_OBJ_ONEMAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vm_object_clear_flag
LBB0_45:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WUNLOCK
	jmp	LBB0_71
LBB0_46:
	movq	-56(%rbp), %rax
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	8(%rax), %ecx
	cmpl	%r8d, %ecx
	jne	LBB0_70
## %bb.47:
	movq	_MAP_STACK_GROWS_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MAP_STACK_GROWS_DOWN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	(%r14), %ecx
	testl	%esi, %ecx
	jne	LBB0_70
## %bb.48:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 16(%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_70
## %bb.49:
	movq	96(%rax), %rdi
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	cmpq	%r9, 64(%rax)
	je	LBB0_60
## %bb.50:
	testq	%rdi, %rdi
	je	LBB0_70
## %bb.51:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	cmpq	%r9, 16(%rdi)
	je	LBB0_60
## %bb.52:
	xorl	%r13d, %r13d
	movq	%r9, %rbx
	jmp	LBB0_71
LBB0_53:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_32
## %bb.54:
	testq	%r13, %r13
	je	LBB0_58
## %bb.55:
	andl	%r8d, -48(%rbp)                 ## 4-byte Folded Spill
	je	LBB0_32
LBB0_58:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_swap_reserve
	movl	%r12d, %r8d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.59:
	movq	_KERN_RESOURCE_SHORTAGE@GOTPCREL(%rip), %r13
	jmp	LBB0_79
LBB0_60:
	movq	24(%rax), %rsi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	%r8d, %edx
	subl	(%rax), %edx
	movl	%r14d, %ecx
	subl	%r8d, %ecx
	testq	%r9, %r9
	setne	%r8b
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	sete	%al
	andb	%r8b, %al
	movzbl	%al, %r8d
	callq	_vm_object_coalesce
	testq	%rax, %rax
	je	LBB0_70
## %bb.61:
	movq	-56(%rbp), %rsi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, 32(%rsi)
	jne	LBB0_65
## %bb.62:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 40(%rsi)
	jne	LBB0_65
## %bb.63:
	movq	16(%rbp), %rax
	cmpq	%rax, 48(%rsi)
	jne	LBB0_65
## %bb.64:
	cmpq	$0, 56(%rsi)
	je	LBB0_80
LBB0_65:
	movq	16(%rsi), %rax
	movq	96(%rsi), %r13
	subq	(%rsi), %rax
	addq	24(%rsi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_vm_object_reference
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_71
## %bb.66:
	testq	%r13, %r13
	je	LBB0_71
## %bb.67:
	cmpq	$0, 16(%r13)
	je	LBB0_72
## %bb.68:
	movq	-56(%rbp), %rax
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	jne	LBB0_72
LBB0_69:
	movb	$1, %bl
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_73
LBB0_70:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_71:
	testq	%rbx, %rbx
	je	LBB0_69
LBB0_72:
	movq	%rbx, %rdi
	callq	_crhold
	xorl	%ebx, %ebx
LBB0_73:
	movq	%r15, %rdi
	callq	_vm_map_entry_create
	movq	%rax, %r14
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movl	%r12d, 8(%r14)
	movq	%r13, 96(%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r14)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 32(%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r14)
	movq	16(%rbp), %rax
	movq	%rax, 48(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r14)
	movq	$0, 88(%r14)
	movq	_VM_FAULT_READ_AHEAD_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movq	%rcx, 72(%r14)
	movl	$1, %edi
	testb	%bl, %bl
	jne	LBB0_75
## %bb.74:
	movq	%r14, %rdi
	callq	_ENTRY_CHARGED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_75:
	movq	%r13, %r12
	movq	%r14, %rsi
	callq	_KASSERT
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vm_map_entry_link
	movq	_MAP_ENTRY_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_77
## %bb.76:
	movl	16(%r14), %eax
	subl	(%r14), %eax
	addl	%eax, (%r15)
LBB0_77:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vm_map_try_merge_entries
	movq	%r14, %rdi
	callq	_vm_map_entry_succ
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_vm_map_try_merge_entries
	movq	_MAP_PREFAULT@GOTPCREL(%rip), %rax
	movq	_MAP_PREFAULT_PARTIAL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r13
	movl	24(%rbp), %eax
	testl	%eax, %ecx
	je	LBB0_79
## %bb.78:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	callq	_OFF_TO_IDX
	andl	(%r14), %ebx
	movl	%ebx, (%rsp)
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%eax, %r8d
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	callq	_vm_map_pmap_enter
LBB0_79:
	movl	(%r13), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_80:
	movl	(%rbx), %eax
	xorl	%edi, %edi
	andl	8(%rsi), %eax
	sete	%dil
	callq	_KASSERT
	movq	-56(%rbp), %rsi
	movq	_MAP_ENTRY_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	16(%rsi), %r14
	movq	%r14, %rdx
	testl	%eax, 8(%rsi)
	jne	LBB0_82
## %bb.81:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%edx, (%rax)
LBB0_82:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vm_map_entry_resize
	movq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_vm_map_entry_succ
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_vm_map_try_merge_entries
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_79
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_object,8,3              ## @kernel_object
	.comm	_MAP_COPY_ON_WRITE,4,2          ## @MAP_COPY_ON_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_map_insert: kernel object and COW"

	.comm	_MAP_NOFAULT,4,2                ## @MAP_NOFAULT
L_.str.1:                               ## @.str.1
	.asciz	"vm_map_insert: paradoxical MAP_NOFAULT request"

	.comm	_KERN_INVALID_ADDRESS,4,2       ## @KERN_INVALID_ADDRESS
	.comm	_KERN_NO_SPACE,4,2              ## @KERN_NO_SPACE
	.comm	_MAP_CREATE_GUARD,4,2           ## @MAP_CREATE_GUARD
	.comm	_VM_PROT_NONE,8,3               ## @VM_PROT_NONE
	.comm	_KERN_INVALID_ARGUMENT,4,2      ## @KERN_INVALID_ARGUMENT
	.comm	_MAP_ENTRY_COW,4,2              ## @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ## @MAP_ENTRY_NEEDS_COPY
	.comm	_MAP_ENTRY_NOFAULT,4,2          ## @MAP_ENTRY_NOFAULT
	.comm	_MAP_DISABLE_SYNCER,4,2         ## @MAP_DISABLE_SYNCER
	.comm	_MAP_ENTRY_NOSYNC,4,2           ## @MAP_ENTRY_NOSYNC
	.comm	_MAP_DISABLE_COREDUMP,4,2       ## @MAP_DISABLE_COREDUMP
	.comm	_MAP_ENTRY_NOCOREDUMP,4,2       ## @MAP_ENTRY_NOCOREDUMP
	.comm	_MAP_STACK_GROWS_DOWN,4,2       ## @MAP_STACK_GROWS_DOWN
	.comm	_MAP_ENTRY_GROWS_DOWN,4,2       ## @MAP_ENTRY_GROWS_DOWN
	.comm	_MAP_STACK_GROWS_UP,4,2         ## @MAP_STACK_GROWS_UP
	.comm	_MAP_ENTRY_GROWS_UP,4,2         ## @MAP_ENTRY_GROWS_UP
	.comm	_MAP_WRITECOUNT,4,2             ## @MAP_WRITECOUNT
	.comm	_MAP_ENTRY_WRITECNT,4,2         ## @MAP_ENTRY_WRITECNT
	.comm	_MAP_VN_EXEC,4,2                ## @MAP_VN_EXEC
	.comm	_MAP_ENTRY_VN_EXEC,4,2          ## @MAP_ENTRY_VN_EXEC
	.comm	_MAP_ENTRY_GUARD,4,2            ## @MAP_ENTRY_GUARD
	.comm	_MAP_CREATE_STACK_GAP_DN,4,2    ## @MAP_CREATE_STACK_GAP_DN
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ## @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_CREATE_STACK_GAP_UP,4,2    ## @MAP_CREATE_STACK_GAP_UP
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ## @MAP_ENTRY_STACK_GAP_UP
	.comm	_MAP_INHERIT_SHARE,4,2          ## @MAP_INHERIT_SHARE
	.comm	_VM_INHERIT_SHARE,8,3           ## @VM_INHERIT_SHARE
	.comm	_VM_INHERIT_DEFAULT,8,3         ## @VM_INHERIT_DEFAULT
	.comm	_MAP_ACC_NO_CHARGE,4,2          ## @MAP_ACC_NO_CHARGE
	.comm	_MAP_ACC_CHARGED,4,2            ## @MAP_ACC_CHARGED
	.comm	_VM_PROT_WRITE,8,3              ## @VM_PROT_WRITE
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ## @KERN_RESOURCE_SHORTAGE
	.comm	_curthread,8,3                  ## @curthread
	.comm	_kernel_map,8,3                 ## @kernel_map
	.comm	_kernel_vm_end,8,3              ## @kernel_vm_end
	.comm	_OBJ_ONEMAPPING,4,2             ## @OBJ_ONEMAPPING
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ## @MAP_ENTRY_USER_WIRED
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_VM_FAULT_READ_AHEAD_INIT,4,2   ## @VM_FAULT_READ_AHEAD_INIT
	.comm	_MAP_PREFAULT,4,2               ## @MAP_PREFAULT
	.comm	_MAP_PREFAULT_PARTIAL,4,2       ## @MAP_PREFAULT_PARTIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_insert                  ; -- Begin function vm_map_insert
	.p2align	2
_vm_map_insert:                         ; @vm_map_insert
	.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
	mov	x21, x7
	mov	x26, x6
	mov	x20, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x27, x1
	mov	x19, x0
	bl	_VM_MAP_ASSERT_LOCKED
Lloh0:
	adrp	x8, _kernel_object@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_object@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x28, _MAP_COPY_ON_WRITE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAP_COPY_ON_WRITE@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w21
	ccmp	x8, x27, #0, ne
	cset	w0, ne
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh7:
	adrp	x24, _MAP_NOFAULT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MAP_NOFAULT@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	ccmp	x27, #0, #4, ne
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	bics	xzr, x20, x26
	cset	w0, eq
	mov	x1, x26
	bl	_KASSERT
	mov	x0, x19
	bl	_vm_map_min
	cmp	x0, x22
	b.le	LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_vm_map_max
Lloh13:
	adrp	x9, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
	subs	x8, x25, x22
	b.le	LBB0_7
; %bb.3:
	cmp	x0, x25
	b.lt	LBB0_7
; %bb.4:
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x22
	bl	_vm_map_lookup_entry
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #40]
	bl	_vm_map_entry_succ
	ldr	x8, [x0]
	cmp	x8, x25
	b.ge	LBB0_8
LBB0_6:
Lloh15:
	adrp	x9, _KERN_NO_SPACE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KERN_NO_SPACE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x9]
	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_8:
Lloh17:
	adrp	x8, _MAP_CREATE_GUARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAP_CREATE_GUARD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ands	w11, w8, w21
	b.eq	LBB0_11
; %bb.9:
Lloh20:
	adrp	x9, _KERN_INVALID_ARGUMENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _KERN_INVALID_ARGUMENT@GOTPAGEOFF]
	cbnz	x27, LBB0_7
; %bb.10:
Lloh22:
	adrp	x10, _VM_PROT_NONE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _VM_PROT_NONE@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x10, x26
	b.ne	LBB0_7
LBB0_11:
	ldr	w10, [x28]
Lloh25:
	adrp	x9, _MAP_ENTRY_COW@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MAP_ENTRY_COW@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x9]
Lloh28:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w12, w9, w12
	tst	w10, w21
	csel	w12, wzr, w12, eq
	ldr	w10, [x24]
Lloh31:
	adrp	x13, _MAP_ENTRY_NOFAULT@GOTPAGE
Lloh32:
	ldr	x13, [x13, _MAP_ENTRY_NOFAULT@GOTPAGEOFF]
Lloh33:
	ldr	w13, [x13]
	tst	w10, w21
	csel	w13, wzr, w13, eq
	orr	w12, w13, w12
Lloh34:
	adrp	x13, _MAP_DISABLE_SYNCER@GOTPAGE
Lloh35:
	ldr	x13, [x13, _MAP_DISABLE_SYNCER@GOTPAGEOFF]
Lloh36:
	adrp	x14, _MAP_ENTRY_NOSYNC@GOTPAGE
Lloh37:
	ldr	x14, [x14, _MAP_ENTRY_NOSYNC@GOTPAGEOFF]
Lloh38:
	ldr	w13, [x13]
Lloh39:
	ldr	w14, [x14]
	tst	w13, w21
	csel	w13, wzr, w14, eq
Lloh40:
	adrp	x14, _MAP_DISABLE_COREDUMP@GOTPAGE
Lloh41:
	ldr	x14, [x14, _MAP_DISABLE_COREDUMP@GOTPAGEOFF]
	orr	w12, w12, w13
Lloh42:
	ldr	w13, [x14]
Lloh43:
	adrp	x14, _MAP_ENTRY_NOCOREDUMP@GOTPAGE
Lloh44:
	ldr	x14, [x14, _MAP_ENTRY_NOCOREDUMP@GOTPAGEOFF]
Lloh45:
	ldr	w14, [x14]
	tst	w13, w21
	csel	w13, wzr, w14, eq
	orr	w12, w12, w13
Lloh46:
	adrp	x28, _MAP_STACK_GROWS_DOWN@GOTPAGE
Lloh47:
	ldr	x28, [x28, _MAP_STACK_GROWS_DOWN@GOTPAGEOFF]
Lloh48:
	adrp	x13, _MAP_ENTRY_GROWS_DOWN@GOTPAGE
Lloh49:
	ldr	x13, [x13, _MAP_ENTRY_GROWS_DOWN@GOTPAGEOFF]
	ldr	w14, [x28]
Lloh50:
	ldr	w13, [x13]
	tst	w14, w21
	csel	w13, wzr, w13, eq
Lloh51:
	adrp	x14, _MAP_STACK_GROWS_UP@GOTPAGE
Lloh52:
	ldr	x14, [x14, _MAP_STACK_GROWS_UP@GOTPAGEOFF]
	orr	w12, w12, w13
Lloh53:
	ldr	w13, [x14]
Lloh54:
	adrp	x14, _MAP_ENTRY_GROWS_UP@GOTPAGE
Lloh55:
	ldr	x14, [x14, _MAP_ENTRY_GROWS_UP@GOTPAGEOFF]
Lloh56:
	ldr	w14, [x14]
	tst	w13, w21
	csel	w13, wzr, w14, eq
	orr	w12, w12, w13
Lloh57:
	adrp	x13, _MAP_WRITECOUNT@GOTPAGE
Lloh58:
	ldr	x13, [x13, _MAP_WRITECOUNT@GOTPAGEOFF]
Lloh59:
	adrp	x14, _MAP_ENTRY_WRITECNT@GOTPAGE
Lloh60:
	ldr	x14, [x14, _MAP_ENTRY_WRITECNT@GOTPAGEOFF]
Lloh61:
	ldr	w13, [x13]
Lloh62:
	ldr	w14, [x14]
	tst	w13, w21
	csel	w13, wzr, w14, eq
Lloh63:
	adrp	x14, _MAP_VN_EXEC@GOTPAGE
Lloh64:
	ldr	x14, [x14, _MAP_VN_EXEC@GOTPAGEOFF]
	orr	w12, w12, w13
Lloh65:
	ldr	w13, [x14]
Lloh66:
	adrp	x14, _MAP_ENTRY_VN_EXEC@GOTPAGE
Lloh67:
	ldr	x14, [x14, _MAP_ENTRY_VN_EXEC@GOTPAGEOFF]
Lloh68:
	ldr	w14, [x14]
	tst	w13, w21
	csel	w13, wzr, w14, eq
	orr	w12, w12, w13
Lloh69:
	adrp	x13, _MAP_ENTRY_GUARD@GOTPAGE
Lloh70:
	ldr	x13, [x13, _MAP_ENTRY_GUARD@GOTPAGEOFF]
Lloh71:
	ldr	w13, [x13]
	cmp	w11, #0
	csel	w11, wzr, w13, eq
	orr	w11, w12, w11
Lloh72:
	adrp	x12, _MAP_CREATE_STACK_GAP_DN@GOTPAGE
Lloh73:
	ldr	x12, [x12, _MAP_CREATE_STACK_GAP_DN@GOTPAGEOFF]
Lloh74:
	adrp	x13, _MAP_ENTRY_STACK_GAP_DN@GOTPAGE
Lloh75:
	ldr	x13, [x13, _MAP_ENTRY_STACK_GAP_DN@GOTPAGEOFF]
Lloh76:
	ldr	w12, [x12]
Lloh77:
	ldr	w13, [x13]
	tst	w12, w21
	csel	w12, wzr, w13, eq
Lloh78:
	adrp	x13, _MAP_CREATE_STACK_GAP_UP@GOTPAGE
Lloh79:
	ldr	x13, [x13, _MAP_CREATE_STACK_GAP_UP@GOTPAGEOFF]
	orr	w11, w11, w12
Lloh80:
	ldr	w12, [x13]
Lloh81:
	adrp	x13, _MAP_ENTRY_STACK_GAP_UP@GOTPAGE
Lloh82:
	ldr	x13, [x13, _MAP_ENTRY_STACK_GAP_UP@GOTPAGEOFF]
Lloh83:
	ldr	w13, [x13]
	tst	w12, w21
	csel	w12, wzr, w13, eq
	orr	w11, w11, w12
	str	w11, [sp, #20]                  ; 4-byte Folded Spill
Lloh84:
	adrp	x11, _MAP_INHERIT_SHARE@GOTPAGE
Lloh85:
	ldr	x11, [x11, _MAP_INHERIT_SHARE@GOTPAGEOFF]
Lloh86:
	adrp	x12, _VM_INHERIT_DEFAULT@GOTPAGE
Lloh87:
	ldr	x12, [x12, _VM_INHERIT_DEFAULT@GOTPAGEOFF]
Lloh88:
	ldr	w11, [x11]
Lloh89:
	adrp	x13, _VM_INHERIT_SHARE@GOTPAGE
Lloh90:
	ldr	x13, [x13, _VM_INHERIT_SHARE@GOTPAGEOFF]
	tst	w11, w21
Lloh91:
	adrp	x11, _MAP_ACC_NO_CHARGE@GOTPAGE
Lloh92:
	ldr	x11, [x11, _MAP_ACC_NO_CHARGE@GOTPAGEOFF]
	csel	x12, x12, x13, eq
Lloh93:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w8, w8, w11
	ldr	x10, [x12]
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	tst	w8, w21
	b.eq	LBB0_13
LBB0_12:
	mov	x24, #0
	b	LBB0_24
LBB0_13:
Lloh94:
	adrp	x8, _MAP_ACC_CHARGED@GOTPAGE
Lloh95:
	ldr	x8, [x8, _MAP_ACC_CHARGED@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
LBB0_14:
	cbz	x27, LBB0_16
; %bb.15:
Lloh97:
	adrp	x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_22
LBB0_16:
	mov	w0, #1
	b	LBB0_23
LBB0_17:
Lloh100:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh102:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_12
; %bb.18:
	cbz	x27, LBB0_20
; %bb.19:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	and	w8, w8, w9
	cbz	w8, LBB0_12
LBB0_20:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_swap_reserve
	cbnz	w0, LBB0_14
; %bb.21:
Lloh103:
	adrp	x9, _KERN_RESOURCE_SHORTAGE@GOTPAGE
Lloh104:
	ldr	x9, [x9, _KERN_RESOURCE_SHORTAGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_22:
	ldr	x8, [x27, #16]
	cmp	x8, #0
	cset	w0, eq
LBB0_23:
	mov	x1, x27
	bl	_KASSERT
Lloh105:
	adrp	x8, _curthread@GOTPAGE
Lloh106:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh107:
	ldr	x8, [x8]
	ldr	x24, [x8]
LBB0_24:
Lloh108:
	adrp	x8, _kernel_map@GOTPAGE
Lloh109:
	ldr	x8, [x8, _kernel_map@GOTPAGEOFF]
Lloh110:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_27
; %bb.25:
Lloh111:
	adrp	x8, _kernel_vm_end@GOTPAGE
Lloh112:
	ldr	x8, [x8, _kernel_vm_end@GOTPAGEOFF]
Lloh113:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ge	LBB0_27
; %bb.26:
	mov	x0, x25
	bl	_pmap_growkernel
LBB0_27:
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x27, LBB0_32
; %bb.28:
	mov	x0, x27
	bl	_VM_OBJECT_WLOCK
	ldr	w8, [x27]
	cmp	w8, #1
	b.gt	LBB0_30
; %bb.29:
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_31
LBB0_30:
Lloh114:
	adrp	x8, _OBJ_ONEMAPPING@GOTPAGE
Lloh115:
	ldr	x8, [x8, _OBJ_ONEMAPPING@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_vm_object_clear_flag
LBB0_31:
	mov	x0, x27
	bl	_VM_OBJECT_WUNLOCK
	b	LBB0_50
LBB0_32:
	ldr	x8, [sp, #40]
	ldr	w9, [x8, #8]
Lloh117:
	adrp	x24, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh118:
	ldr	x24, [x24, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
	ldr	w10, [x24]
	bic	w9, w9, w10
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.ne	LBB0_49
; %bb.33:
	ldr	w9, [x28]
Lloh119:
	adrp	x10, _MAP_STACK_GROWS_UP@GOTPAGE
Lloh120:
	ldr	x10, [x10, _MAP_STACK_GROWS_UP@GOTPAGEOFF]
Lloh121:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh122:
	adrp	x10, _MAP_VN_EXEC@GOTPAGE
Lloh123:
	ldr	x10, [x10, _MAP_VN_EXEC@GOTPAGEOFF]
Lloh124:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w21
	b.ne	LBB0_49
; %bb.34:
	ldr	x9, [x8, #16]
	cmp	x9, x22
	b.ne	LBB0_49
; %bb.35:
	ldr	x9, [x8, #64]
	ldr	x0, [x8, #96]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x9, x10
	b.eq	LBB0_39
; %bb.36:
	cbz	x0, LBB0_49
; %bb.37:
	ldr	x9, [x0, #16]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x9, x10
	b.eq	LBB0_39
; %bb.38:
	mov	x27, #0
	mov	x24, x10
	b	LBB0_50
LBB0_39:
	ldr	x1, [x8, #24]
	ldr	w8, [x8]
	sub	w2, w22, w8
	sub	w3, w25, w22
Lloh125:
	adrp	x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh126:
	ldr	x8, [x8, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh127:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	tst	w8, w9
	ccmp	x10, #0, #4, eq
	cset	w4, ne
	bl	_vm_object_coalesce
	cbz	x0, LBB0_49
; %bb.40:
	ldr	x1, [sp, #40]
	ldr	x8, [x1, #32]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_44
; %bb.41:
	ldr	x8, [x1, #40]
	cmp	x8, x20
	b.ne	LBB0_44
; %bb.42:
	ldr	x8, [x1, #48]
	cmp	x8, x26
	b.ne	LBB0_44
; %bb.43:
	ldr	x8, [x1, #56]
	cbz	x8, LBB0_60
LBB0_44:
	ldr	x27, [x1, #96]
	ldp	x9, x8, [x1, #16]
	ldr	x10, [x1]
	sub	x9, x9, x10
	add	x23, x9, x8
	mov	x0, x27
	bl	_vm_object_reference
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x24, LBB0_50
; %bb.45:
	cbz	x27, LBB0_50
; %bb.46:
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_51
; %bb.47:
	ldr	x8, [sp, #40]
	ldr	w8, [x8, #8]
Lloh128:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh129:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_51
LBB0_48:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	mov	w24, #1
	b	LBB0_52
LBB0_49:
	mov	x27, #0
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
LBB0_50:
	cbz	x24, LBB0_48
LBB0_51:
	mov	x0, x24
	bl	_crhold
	mov	w24, #0
LBB0_52:
	mov	x0, x19
	bl	_vm_map_entry_create
	mov	x28, x0
	str	x22, [x0]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w8, [x0, #8]
	stp	x25, x23, [x0, #16]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	x8, x20, [x0, #32]
	stp	x26, xzr, [x0, #48]
	stp	xzr, x27, [x0, #88]
Lloh131:
	adrp	x8, _VM_FAULT_READ_AHEAD_INIT@GOTPAGE
Lloh132:
	ldr	x8, [x8, _VM_FAULT_READ_AHEAD_INIT@GOTPAGEOFF]
Lloh133:
	ldr	w8, [x8]
	str	w8, [x0, #80]
	stp	xzr, x22, [x0, #64]
	tbz	w24, #0, LBB0_54
; %bb.53:
	mov	w0, #1
	b	LBB0_55
LBB0_54:
	mov	x0, x28
	bl	_ENTRY_CHARGED
	cmp	w0, #0
	cset	w0, eq
LBB0_55:
Lloh134:
	adrp	x24, _MAP_ENTRY_GUARD@GOTPAGE
Lloh135:
	ldr	x24, [x24, _MAP_ENTRY_GUARD@GOTPAGEOFF]
	mov	x1, x28
	bl	_KASSERT
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x28, #64]
	mov	x0, x19
	mov	x1, x28
	bl	_vm_map_entry_link
	ldr	w8, [x28, #8]
Lloh136:
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_57
; %bb.56:
	ldr	w8, [x28, #16]
	ldr	w9, [x28]
	ldr	w10, [x19]
	sub	w8, w8, w9
	add	w8, w10, w8
	str	w8, [x19]
LBB0_57:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x28
	bl	_vm_map_try_merge_entries
	mov	x0, x28
	bl	_vm_map_entry_succ
	mov	x2, x0
	mov	x0, x19
	mov	x1, x28
	bl	_vm_map_try_merge_entries
Lloh137:
	adrp	x8, _MAP_PREFAULT@GOTPAGE
Lloh138:
	ldr	x8, [x8, _MAP_PREFAULT@GOTPAGEOFF]
Lloh139:
	ldr	w8, [x8]
Lloh140:
	adrp	x24, _MAP_PREFAULT_PARTIAL@GOTPAGE
Lloh141:
	ldr	x24, [x24, _MAP_PREFAULT_PARTIAL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_59
; %bb.58:
	mov	x0, x23
	bl	_OFF_TO_IDX
	mov	x4, x0
	ldr	w8, [x24]
	and	w6, w8, w21
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x27
	ldr	x5, [sp, #32]                   ; 8-byte Folded Reload
	bl	_vm_map_pmap_enter
LBB0_59:
Lloh142:
	adrp	x9, _KERN_SUCCESS@GOTPAGE
Lloh143:
	ldr	x9, [x9, _KERN_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_60:
	ldr	w8, [x1, #8]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w0, eq
	bl	_KASSERT
	ldr	x1, [sp, #40]
	ldr	w8, [x1, #8]
Lloh144:
	adrp	x9, _MAP_ENTRY_GUARD@GOTPAGE
Lloh145:
	ldr	x9, [x9, _MAP_ENTRY_GUARD@GOTPAGEOFF]
Lloh146:
	ldr	w9, [x9]
	ldr	x10, [x1, #16]
	sub	x2, x25, x10
	and	w8, w9, w8
	cbnz	w8, LBB0_62
; %bb.61:
	ldr	w8, [x19]
	add	w8, w8, w2
	str	w8, [x19]
LBB0_62:
	mov	x0, x19
	bl	_vm_map_entry_resize
	ldr	x20, [sp, #40]
	mov	x0, x20
	bl	_vm_map_entry_succ
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_vm_map_try_merge_entries
	b	LBB0_59
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh88
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh76
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh61
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGot	Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGot	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_object,8,3              ; @kernel_object
	.comm	_MAP_COPY_ON_WRITE,4,2          ; @MAP_COPY_ON_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_map_insert: kernel object and COW"

	.comm	_MAP_NOFAULT,4,2                ; @MAP_NOFAULT
l_.str.1:                               ; @.str.1
	.asciz	"vm_map_insert: paradoxical MAP_NOFAULT request"

	.comm	_KERN_INVALID_ADDRESS,4,2       ; @KERN_INVALID_ADDRESS
	.comm	_KERN_NO_SPACE,4,2              ; @KERN_NO_SPACE
	.comm	_MAP_CREATE_GUARD,4,2           ; @MAP_CREATE_GUARD
	.comm	_VM_PROT_NONE,8,3               ; @VM_PROT_NONE
	.comm	_KERN_INVALID_ARGUMENT,4,2      ; @KERN_INVALID_ARGUMENT
	.comm	_MAP_ENTRY_COW,4,2              ; @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ; @MAP_ENTRY_NEEDS_COPY
	.comm	_MAP_ENTRY_NOFAULT,4,2          ; @MAP_ENTRY_NOFAULT
	.comm	_MAP_DISABLE_SYNCER,4,2         ; @MAP_DISABLE_SYNCER
	.comm	_MAP_ENTRY_NOSYNC,4,2           ; @MAP_ENTRY_NOSYNC
	.comm	_MAP_DISABLE_COREDUMP,4,2       ; @MAP_DISABLE_COREDUMP
	.comm	_MAP_ENTRY_NOCOREDUMP,4,2       ; @MAP_ENTRY_NOCOREDUMP
	.comm	_MAP_STACK_GROWS_DOWN,4,2       ; @MAP_STACK_GROWS_DOWN
	.comm	_MAP_ENTRY_GROWS_DOWN,4,2       ; @MAP_ENTRY_GROWS_DOWN
	.comm	_MAP_STACK_GROWS_UP,4,2         ; @MAP_STACK_GROWS_UP
	.comm	_MAP_ENTRY_GROWS_UP,4,2         ; @MAP_ENTRY_GROWS_UP
	.comm	_MAP_WRITECOUNT,4,2             ; @MAP_WRITECOUNT
	.comm	_MAP_ENTRY_WRITECNT,4,2         ; @MAP_ENTRY_WRITECNT
	.comm	_MAP_VN_EXEC,4,2                ; @MAP_VN_EXEC
	.comm	_MAP_ENTRY_VN_EXEC,4,2          ; @MAP_ENTRY_VN_EXEC
	.comm	_MAP_ENTRY_GUARD,4,2            ; @MAP_ENTRY_GUARD
	.comm	_MAP_CREATE_STACK_GAP_DN,4,2    ; @MAP_CREATE_STACK_GAP_DN
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ; @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_CREATE_STACK_GAP_UP,4,2    ; @MAP_CREATE_STACK_GAP_UP
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ; @MAP_ENTRY_STACK_GAP_UP
	.comm	_MAP_INHERIT_SHARE,4,2          ; @MAP_INHERIT_SHARE
	.comm	_VM_INHERIT_SHARE,8,3           ; @VM_INHERIT_SHARE
	.comm	_VM_INHERIT_DEFAULT,8,3         ; @VM_INHERIT_DEFAULT
	.comm	_MAP_ACC_NO_CHARGE,4,2          ; @MAP_ACC_NO_CHARGE
	.comm	_MAP_ACC_CHARGED,4,2            ; @MAP_ACC_CHARGED
	.comm	_VM_PROT_WRITE,8,3              ; @VM_PROT_WRITE
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ; @KERN_RESOURCE_SHORTAGE
	.comm	_curthread,8,3                  ; @curthread
	.comm	_kernel_map,8,3                 ; @kernel_map
	.comm	_kernel_vm_end,8,3              ; @kernel_vm_end
	.comm	_OBJ_ONEMAPPING,4,2             ; @OBJ_ONEMAPPING
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ; @MAP_ENTRY_USER_WIRED
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_VM_FAULT_READ_AHEAD_INIT,4,2   ; @VM_FAULT_READ_AHEAD_INIT
	.comm	_MAP_PREFAULT,4,2               ; @MAP_PREFAULT
	.comm	_MAP_PREFAULT_PARTIAL,4,2       ; @MAP_PREFAULT_PARTIAL
.subsections_via_symbols
