	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_fault_copy_entry            ## -- Begin function vm_fault_copy_entry
	.p2align	4, 0x90
_vm_fault_copy_entry:                   ## @vm_fault_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	32(%rcx), %rdi
	movq	40(%rcx), %rbx
	callq	_OFF_TO_IDX
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_2
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	8(%r14), %rdi
	subq	16(%r14), %rdi
	callq	_atop
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_vm_object_allocate
	movq	%rax, %rdi
	movq	%rbx, %r13
	movl	48(%rbx), %eax
	movl	%eax, 48(%rdi)
	movq	8(%r14), %rax
	subq	16(%r14), %rax
	movq	%rax, (%rdi)
	movq	%rdi, %r15
	callq	_VM_OBJECT_WLOCK
	cmpq	%r14, %r12
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	cmpq	$0, 40(%r14)
	sete	%dil
	jmp	LBB0_6
LBB0_4:
	movl	$1, %edi
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r13, %rbx
	cmpq	%r15, %r13
	je	LBB0_7
## %bb.8:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 40(%rcx)
	movq	$0, 32(%rcx)
	movq	_MAP_ENTRY_VN_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rcx)
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_7:
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r15
LBB0_9:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	testq	%r13, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, 24(%r14)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, 40(%rax)
	callq	_crhold
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	%eax, (%r13)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_12:
	movq	8(%r15), %rax
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_14:
	cmpq	$0, 40(%r15)
	jne	LBB0_16
## %bb.15:
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	setne	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	24(%r14), %rax
	movq	%rax, 40(%r15)
	movq	$0, 24(%r14)
LBB0_16:
	cmpq	%r14, %r12
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$-1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpq	8(%r14), %rax
	jge	LBB0_47
## %bb.17:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	andl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	cmovneq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %rdi
	callq	_vm_page_lock
	movq	%r15, %rdi
	callq	_vm_page_activate
	movq	%r15, %rdi
	callq	_vm_page_unlock
LBB0_46:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_vm_page_xunbusy
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	incq	%r13
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	cmpq	8(%r14), %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_47
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_21
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	_VM_ALLOC_WAITFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vm_page_busy_acquire
	testq	%rax, %rax
	jne	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_21 Depth=2
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	callq	_VM_OBJECT_RLOCK
LBB0_21:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_vm_page_lookup
	movq	%rax, %r13
	movq	%rbx, %r14
	testq	%rax, %rax
	jne	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%rbx, %r14
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=3
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_page_lookup
	movq	%r15, %r14
	testq	%rax, %rax
	jne	LBB0_28
LBB0_23:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_21 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%r14), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=3
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	sete	%al
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12), %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
	movq	%r15, %rdi
	callq	_VM_OBJECT_RLOCK
	movq	24(%r14), %rdi
	callq	_OFF_TO_IDX
	addq	%rax, %rbx
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=3
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
	jmp	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	%rax, %r13
	movq	%r15, %r14
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=2
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	leaq	L_.str.4(%rip), %rsi
	callq	_KASSERT
	cmpq	%r15, %r14
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	_vm_page_alloc
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movq	%rbx, %rdi
	callq	_vm_wait
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%rbx, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_pmap_copy_page
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movl	8(%r13), %eax
	movl	%eax, 8(%r15)
	movl	%eax, 12(%r15)
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %rax
	movq	%r15, %rbx
	movq	%r13, %r15
	cmpq	16(%rbx), %rax
	jge	LBB0_35
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r15, %rdi
	callq	_vm_page_all_valid
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$0, %r8d
	cmpq	%r14, %r12
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_PMAP_ENTER_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_40:                                ##   in Loop: Header=BB0_18 Depth=1
	orl	-56(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_pmap_enter
LBB0_41:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_VM_OBJECT_WLOCK
	cmpq	%r14, %r12
	jne	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	%r15, %r13
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_PQ_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vm_page_unwire
	movq	%r15, %rdi
	callq	_vm_page_wire
	jmp	LBB0_46
LBB0_44:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_wired
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_KASSERT
	jmp	LBB0_46
LBB0_2:
	movq	%rbx, %rdi
	callq	_vm_object_reference
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_KASSERT
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r15
	jmp	LBB0_10
LBB0_35:
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_47:
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	cmpq	%r14, %r12
	je	LBB0_49
## %bb.48:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	movq	_MAP_ENTRY_COW@GOTPCREL(%rip), %rax
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 4(%r12)
	movq	%rbx, %rdi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_object_deallocate           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ## @MAP_ENTRY_NEEDS_COPY
	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_fault_copy_entry: vm_object not NULL"

	.comm	_MAP_ENTRY_VN_EXEC,4,2          ## @MAP_ENTRY_VN_EXEC
L_.str.1:                               ## @.str.1
	.asciz	"vm_fault_copy_entry: leaked swp charge"

	.comm	_curthread,8,3                  ## @curthread
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"vm_fault_copy_entry: main object missing page"

L_.str.4:                               ## @.str.4
	.asciz	"vm_fault_copy_entry: page missing"

	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_WAITFAIL,4,2          ## @VM_ALLOC_WAITFAIL
	.comm	_PMAP_ENTER_WIRED,4,2           ## @PMAP_ENTER_WIRED
	.comm	_PQ_INACTIVE,4,2                ## @PQ_INACTIVE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_MAP_ENTRY_COW,4,2              ## @MAP_ENTRY_COW
	.comm	_OBJ_COLORED,4,2                ## @OBJ_COLORED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_fault_copy_entry            ; -- Begin function vm_fault_copy_entry
	.p2align	2
_vm_fault_copy_entry:                   ; @vm_fault_copy_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x26, x4
	mov	x19, x3
	mov	x21, x2
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x2]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldp	x0, x20, [x3, #32]
	bl	_OFF_TO_IDX
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x22, _OBJT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OBJT_DEFAULT@GOTPAGEOFF]
	cmp	x19, x21
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_2:
	ldr	x20, [x22]
	ldp	x8, x9, [x21, #8]
	sub	x0, x8, x9
	bl	_atop
	mov	x1, x0
	mov	x0, x20
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	bl	_vm_object_allocate
	mov	x25, x0
	ldr	w8, [x20, #48]
	str	w8, [x0, #48]
	ldp	x8, x9, [x21, #8]
	sub	x8, x8, x9
	str	x8, [x0]
	bl	_VM_OBJECT_WLOCK
	cmp	x19, x21
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21, #40]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	cmp	x20, x25
	b.eq	LBB0_7
; %bb.6:
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	stp	xzr, x25, [x21, #32]
Lloh7:
	adrp	x8, _MAP_ENTRY_VN_EXEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAP_ENTRY_VN_EXEC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
	str	w8, [x21, #4]
	cbnz	x26, LBB0_8
	b	LBB0_10
LBB0_7:
	mov	w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	mov	x25, x20
	cbz	x26, LBB0_10
LBB0_8:
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, eq
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
Lloh12:
	adrp	x8, _curthread@GOTPAGE
Lloh13:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x0, [x8]
	str	x0, [x25, #40]
	bl	_crhold
	ldr	w8, [x25]
	ldr	w9, [x26]
	add	w8, w9, w8
	str	w8, [x26]
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_vm_object_reference
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	mov	w0, #1
	bl	_KASSERT
	mov	x25, x20
	cbnz	x26, LBB0_8
LBB0_10:
	ldr	x8, [x25, #8]
	ldr	x9, [x22]
Lloh17:
	adrp	x10, _OBJT_SWAP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _OBJT_SWAP@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x25, #40]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, ne
	mov	x1, x21
	bl	_KASSERT
	ldr	x8, [x21, #24]
	str	x8, [x25, #40]
	str	xzr, [x21, #24]
LBB0_13:
Lloh20:
	adrp	x23, _VM_PROT_WRITE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _VM_PROT_WRITE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	x19, x21
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	ldp	x9, x22, [x21, #8]
	cmp	x22, x9
	b.ge	LBB0_42
; %bb.14:
	mov	x24, #0
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	and	w8, w8, w9
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	csel	x8, x8, xzr, ne
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh22:
	adrp	x27, l_.str.3@PAGE
Lloh23:
	add	x27, x27, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x26
	bl	_vm_page_lock
	mov	x0, x26
	bl	_vm_page_activate
	mov	x0, x26
	bl	_vm_page_unlock
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_vm_page_xunbusy
Lloh24:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x24, x24, #1
	ldr	x9, [x21, #8]
	add	x22, x8, x22
	cmp	x22, x9
	b.ge	LBB0_42
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
	stp	x24, x22, [sp, #40]             ; 16-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x22, x24, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x24, x8
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_21
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_21 Depth=2
Lloh27:
	adrp	x8, _VM_ALLOC_WAITFAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VM_ALLOC_WAITFAIL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_vm_page_busy_acquire
	cbnz	x0, LBB0_34
; %bb.19:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_VM_OBJECT_RLOCK
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
	mov	x0, x20
	mov	x1, x22
	bl	_vm_page_lookup
	mov	x24, x0
	mov	x28, x20
	cbnz	x0, LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x28, x20
	mov	x26, x22
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=3
	add	x26, x24, x26
	mov	x0, x20
	mov	x1, x26
	bl	_vm_page_lookup
	mov	x28, x20
	cbnz	x0, LBB0_28
LBB0_24:                                ;   Parent Loop BB0_17 Depth=1
                                        ;     Parent Loop BB0_21 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x20, [x28, #32]
	cbz	x20, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	ccmp	x19, x21, #4, ne
	cset	w0, eq
	mov	x1, x27
	bl	_KASSERT
	mov	x0, x20
	bl	_VM_OBJECT_RLOCK
	ldr	x0, [x28, #24]
	bl	_OFF_TO_IDX
	mov	x24, x0
	cmp	x28, x25
	b.eq	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=3
	mov	x0, x28
	bl	_VM_OBJECT_RUNLOCK
	b	LBB0_23
LBB0_27:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x24, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x24, x0
	mov	x28, x20
LBB0_29:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
LBB0_30:                                ;   in Loop: Header=BB0_21 Depth=2
	cmp	x24, #0
	cset	w0, ne
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_KASSERT
	cmp	x28, x25
	b.eq	LBB0_18
; %bb.31:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh32:
	adrp	x8, _VM_ALLOC_NORMAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x25
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	bl	_vm_page_alloc
	cbnz	x0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x25
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x28
	bl	_VM_OBJECT_RUNLOCK
	mov	x0, x25
	bl	_vm_wait
	mov	x0, x25
	bl	_VM_OBJECT_WLOCK
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_20
	b	LBB0_21
LBB0_33:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, x0
	mov	x0, x24
	mov	x1, x26
	bl	_pmap_copy_page
	mov	x0, x28
	bl	_VM_OBJECT_RUNLOCK
	ldr	w8, [x24, #8]
	stp	w8, w8, [x26, #8]
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25, #16]
	mov	x26, x24
	cmp	x8, x9
	b.ge	LBB0_41
LBB0_35:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x25
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x26
	bl	_vm_page_all_valid
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _PMAP_ENTER_WIRED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PMAP_ENTER_WIRED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	x19, x21
	csel	w8, w8, wzr, eq
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	orr	w4, w8, w9
	mov	x1, x22
	mov	x2, x26
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
	mov	w5, #0
	bl	_pmap_enter
LBB0_37:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x25
	bl	_VM_OBJECT_WLOCK
	cmp	x19, x21
	b.ne	LBB0_15
; %bb.38:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x24, x26
	b.eq	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh38:
	adrp	x8, _PQ_INACTIVE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PQ_INACTIVE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_vm_page_unwire
	mov	x0, x26
	bl	_vm_page_wire
	b	LBB0_16
LBB0_40:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x24
	bl	_vm_page_wired
	mov	x1, x24
	bl	_KASSERT
	b	LBB0_16
LBB0_41:
	mov	x0, x24
	bl	_vm_page_xunbusy
LBB0_42:
	mov	x0, x25
	bl	_VM_OBJECT_WUNLOCK
	cmp	x19, x21
	b.eq	LBB0_44
; %bb.43:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_44:
Lloh41:
	adrp	x8, _MAP_ENTRY_COW@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MAP_ENTRY_COW@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_vm_object_deallocate
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ; @MAP_ENTRY_NEEDS_COPY
	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_fault_copy_entry: vm_object not NULL"

	.comm	_MAP_ENTRY_VN_EXEC,4,2          ; @MAP_ENTRY_VN_EXEC
l_.str.1:                               ; @.str.1
	.asciz	"vm_fault_copy_entry: leaked swp charge"

	.comm	_curthread,8,3                  ; @curthread
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"vm_fault_copy_entry: main object missing page"

l_.str.4:                               ; @.str.4
	.asciz	"vm_fault_copy_entry: page missing"

	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_WAITFAIL,4,2          ; @VM_ALLOC_WAITFAIL
	.comm	_PMAP_ENTER_WIRED,4,2           ; @PMAP_ENTER_WIRED
	.comm	_PQ_INACTIVE,4,2                ; @PQ_INACTIVE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_MAP_ENTRY_COW,4,2              ; @MAP_ENTRY_COW
	.comm	_OBJ_COLORED,4,2                ; @OBJ_COLORED
.subsections_via_symbols
