	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_map_copy_entry
_vm_map_copy_entry:                     ## @vm_map_copy_entry
	.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	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_VM_MAP_ASSERT_LOCKED
	movl	(%r12), %eax
	movl	(%r14), %ecx
	orl	%eax, %ecx
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
LBB0_1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.3:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%r12)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_fault_copy_entry            ## TAILCALL
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.6:
	movl	16(%r12), %ecx
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	movq	48(%r12), %rsi
	movq	56(%r12), %rdx
	notl	%eax
	andl	%eax, %ecx
	callq	_pmap_protect
LBB0_8:
	movq	40(%r12), %r15
	movq	56(%r12), %rax
	subq	48(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%r12, %rdi
	callq	_ENTRY_CHARGED
	cmpq	$0, 32(%r15)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_10
## %bb.13:
	movq	(%r15), %rdx
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_16
## %bb.14:
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_16
LBB0_10:
	movl	%eax, %ebx
LBB0_18:
	movq	%r15, %rdi
	callq	_vm_object_reference_locked
	movq	_OBJ_ONEMAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vm_object_clear_flag
	cmpq	$0, 24(%r12)
	je	LBB0_21
## %bb.19:
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	sete	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movq	24(%r12), %rax
	movq	%rax, 24(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
LBB0_21:
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r15, 40(%r14)
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.22:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_crhold
	movq	%r13, 24(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	callq	_crhold
	movq	%r13, 24(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
LBB0_24:
	movq	_MAP_ENTRY_COW@GOTPCREL(%rip), %rax
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r12)
	movl	(%rdx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movq	32(%r12), %rax
	movq	%rax, 32(%r14)
	movq	_MAP_ENTRY_WRITECNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_vm_map_entry_create
	movq	%rax, %r13
	movq	_MAP_ENTRY_WRITECNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, (%r13)
	movl	(%rcx), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_vm_object_reference
	movq	%r15, 40(%r13)
	movups	48(%r12), %xmm0
	movups	%xmm0, 48(%r13)
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 64(%r13)
	movq	%r13, 8(%rax)
LBB0_26:
	movl	(%rbx), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	48(%r14), %rdx
	movq	56(%r14), %rcx
	subq	%rdx, %rcx
	movq	48(%r12), %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_copy                      ## TAILCALL
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	cmpq	$0, 24(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_1
## %bb.12:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_crhold
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, (%rbx)
	jmp	LBB0_1
LBB0_16:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_vm_object_collapse
	movq	_OBJ_NOSPLIT@GOTPCREL(%rip), %rax
	movq	_OBJ_ONEMAPPING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	orl	%ecx, %eax
	andl	8(%r15), %eax
	cmpl	%ecx, %eax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_vm_object_split
	movq	40(%r12), %r15
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ## @MAP_ENTRY_NEEDS_COPY
	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_OBJ_NOSPLIT,4,2                ## @OBJ_NOSPLIT
	.comm	_OBJ_ONEMAPPING,4,2             ## @OBJ_ONEMAPPING
	.comm	_curthread,8,3                  ## @curthread
	.comm	_MAP_ENTRY_COW,4,2              ## @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_WRITECNT,4,2         ## @MAP_ENTRY_WRITECNT
	.no_dead_strip	_vm_map_copy_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_map_copy_entry
_vm_map_copy_entry:                     ; @vm_map_copy_entry
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_VM_MAP_ASSERT_LOCKED
	ldr	w9, [x19]
	ldr	w8, [x20]
	orr	w9, w8, w9
Lloh0:
	adrp	x10, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w9, w10
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	w9, [x20, #16]
Lloh3:
	adrp	x10, _VM_PROT_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	mov	x4, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_vm_fault_copy_entry
LBB0_5:
Lloh6:
	adrp	x26, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20, #16]
Lloh8:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x21]
	bic	w3, w8, w9
	ldp	x1, x2, [x20, #48]
	bl	_pmap_protect
LBB0_8:
	ldp	x9, x8, [x20, #48]
	ldr	x24, [x20, #40]
	sub	x27, x8, x9
	cbz	x24, LBB0_22
; %bb.9:
	mov	x0, x24
	bl	_VM_OBJECT_WLOCK
	mov	x0, x20
	bl	_ENTRY_CHARGED
	mov	x25, x0
	ldr	x8, [x24, #32]
Lloh11:
	adrp	x28, _OBJ_ONEMAPPING@GOTPAGE
Lloh12:
	ldr	x28, [x28, _OBJ_ONEMAPPING@GOTPAGEOFF]
	cbnz	x8, LBB0_13
; %bb.10:
	ldr	x8, [x24]
Lloh13:
	adrp	x9, _OBJT_DEFAULT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _OBJT_SWAP@GOTPAGE
Lloh17:
	ldr	x10, [x10, _OBJT_SWAP@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x24
	bl	_vm_object_collapse
Lloh19:
	adrp	x8, _OBJ_NOSPLIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OBJ_NOSPLIT@GOTPAGEOFF]
	ldr	w9, [x24, #8]
Lloh21:
	ldr	w8, [x8]
	ldr	w10, [x28]
	orr	w8, w10, w8
	and	w8, w8, w9
	cmp	w8, w10
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_vm_object_split
	ldr	x24, [x20, #40]
LBB0_13:
	mov	x0, x24
	bl	_vm_object_reference_locked
	ldr	w1, [x28]
	mov	x0, x24
	bl	_vm_object_clear_flag
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x24, #24]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x24
	bl	_KASSERT
	ldr	x8, [x20, #24]
	stp	x27, x8, [x24, #16]
LBB0_16:
	mov	x0, x24
	bl	_VM_OBJECT_WUNLOCK
	str	x24, [x19, #40]
Lloh22:
	adrp	x28, _curthread@GOTPAGE
Lloh23:
	ldr	x28, [x28, _curthread@GOTPAGEOFF]
	cbz	w25, LBB0_19
; %bb.17:
	ldr	x8, [x28]
	ldr	x25, [x8]
	mov	x0, x25
	bl	_crhold
	str	x25, [x19, #24]
	ldr	w8, [x23]
	add	w8, w8, w27
	str	w8, [x23]
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x25
	bl	_crhold
	str	x25, [x20, #24]
	ldr	w8, [x23]
	add	w8, w8, w27
	str	w8, [x23]
LBB0_19:
Lloh24:
	adrp	x8, _MAP_ENTRY_COW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAP_ENTRY_COW@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x26]
	orr	w9, w10, w9
	ldr	w10, [x20]
	orr	w9, w9, w10
	str	w9, [x20]
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x20, #32]
	str	x8, [x19, #32]
	ldr	w8, [x20]
Lloh26:
	adrp	x25, _MAP_ENTRY_WRITECNT@GOTPAGE
Lloh27:
	ldr	x25, [x25, _MAP_ENTRY_WRITECNT@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x22
	bl	_vm_map_entry_create
	mov	x23, x0
	ldr	w8, [x25]
	str	w8, [x0]
	ldr	w8, [x25]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x24
	bl	_vm_object_reference
	str	x24, [x23, #40]
	ldr	q0, [x20, #48]
	str	q0, [x23, #48]
	ldr	x8, [x28]
	ldr	x9, [x8, #8]
	str	x9, [x23, #64]
	str	x23, [x8, #8]
LBB0_21:
	ldr	w0, [x22]
	ldr	w1, [x21]
	ldp	x2, x8, [x19, #48]
	sub	x3, x8, x2
	ldr	x4, [x20, #48]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pmap_copy
LBB0_22:
	stp	xzr, xzr, [x19, #32]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_1
; %bb.23:
Lloh28:
	adrp	x8, _curthread@GOTPAGE
Lloh29:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x0, [x8]
	str	x0, [x19, #24]
	bl	_crhold
	ldr	w8, [x23]
	add	w8, w8, w27
	str	w8, [x23]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ; @MAP_ENTRY_NEEDS_COPY
	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_OBJ_NOSPLIT,4,2                ; @OBJ_NOSPLIT
	.comm	_OBJ_ONEMAPPING,4,2             ; @OBJ_ONEMAPPING
	.comm	_curthread,8,3                  ; @curthread
	.comm	_MAP_ENTRY_COW,4,2              ; @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_WRITECNT,4,2         ; @MAP_ENTRY_WRITECNT
	.no_dead_strip	_vm_map_copy_entry
.subsections_via_symbols
