	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_enter                     ## -- Begin function pmap_enter
	.p2align	4, 0x90
_pmap_enter:                            ## @pmap_enter
	.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, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pmap_accessed_bit
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_pmap_global_bit
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_pmap_modified_bit
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_pmap_valid_bit
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r13
	movq	%rbx, %rdi
	callq	_pmap_rw_bit
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_trunc_page
	movl	%eax, %ebx
	movq	_VM_MAX_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setle	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_UPT_MIN_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setl	%al
	movq	_UPT_MAX_ADDRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movslq	%ebx, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	callq	_KASSERT
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movb	$1, %al
	testl	%ecx, (%r12)
	jne	LBB0_1
## %bb.2:
	movq	_kmi@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	jl	LBB0_4
## %bb.3:
	cmpl	4(%rcx), %ebx
	setge	%al
	jmp	LBB0_4
LBB0_1:
	movl	-96(%rbp), %r14d                ## 4-byte Reload
LBB0_4:
	movzbl	%al, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_VM_PAGE_OBJECT_BUSY_ASSERT
LBB0_6:
	movl	%ebx, -104(%rbp)                ## 4-byte Spill
	movq	_PMAP_ENTER_RESERVED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%dil
	movslq	%r14d, %rsi
	callq	_KASSERT
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ecx
	andl	%r14d, %ecx
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	cmovnel	%edx, %ecx
	andl	%r15d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	cmovnel	%esi, %edi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	orl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	orl	%eax, %ebx
	orl	%ecx, %ebx
	orl	%edi, %ebx
	orl	%edx, %esi
	movl	%ebx, %eax
	movl	%esi, -116(%rbp)                ## 4-byte Spill
	andl	%esi, %eax
	xorl	%edi, %edi
	cmpl	%edx, %eax
	setne	%dil
	leaq	L_.str.4(%rip), %rsi
	callq	_KASSERT
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	$0, %ecx
	andl	(%rax), %r15d
	jne	LBB0_8
## %bb.7:
	movq	_pg_nx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	movq	_PMAP_ENTER_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PG_W@GOTPCREL(%rip), %rdx
	andl	%r14d, %eax
	movq	%r13, %r14
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	(%rdx), %eax
LBB0_10:
	orl	%ecx, %ebx
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rsi
	movl	$0, %ecx
	movl	-104(%rbp), %edx                ## 4-byte Reload
	cmpl	(%rsi), %edx
	jge	LBB0_12
## %bb.11:
	movq	_PG_U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_12:
	orl	%ecx, %eax
	orl	%eax, %ebx
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	cmovel	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	40(%r15), %esi
	xorl	%edx, %edx
	testq	%r8, %r8
	setg	%dl
	movq	%r14, %rdi
	callq	_pmap_cache_bits
	orl	%r12d, %eax
	orl	%ebx, %eax
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	movl	%eax, %ebx
	andl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	cmovnel	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_PG_MANAGED@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.13:
	movl	(%rdx), %ebx
LBB0_14:
	orl	%eax, %ebx
	movq	$0, -112(%rbp)
	movq	%r14, %rdi
	callq	_PMAP_LOCK
	cmpq	$1, -48(%rbp)                   ## 8-byte Folded Reload
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_15
## %bb.86:
	movq	_PDRMASK@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	movl	-104(%rbp), %r12d               ## 4-byte Reload
	andl	%r12d, %eax
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	setg	%dil
	leaq	L_.str.6(%rip), %rsi
	callq	_KASSERT
	movq	_PG_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	leaq	-112(%rbp), %r9
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_pmap_enter_pde
	movl	%eax, %ebx
	jmp	LBB0_83
LBB0_15:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leaq	-112(%rbp), %r12
	xorl	%ebx, %ebx
	movl	-104(%rbp), %r14d               ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pmap_pde
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, %r15
	movl	(%rax), %eax
	testl	%eax, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_PG_PS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_pmap_demote_pde_locked
	testq	%rax, %rax
	jne	LBB0_20
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_PMAP_ENTER_NOSLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	-96(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r12, %rbx
	movl	$0, %eax
	cmovneq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pmap_pde_pindex
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	__pmap_allocpte
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.27:
	movq	_KERN_RESOURCE_SHORTAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_82
LBB0_28:
	leaq	L_.str.7(%rip), %rdi
	movl	%r14d, %esi
	callq	_panic
                                        ## implicit-def: $rax
	movq	%r13, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_20:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pmap_pde_to_pte
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_21
## %bb.22:
	testq	%rbx, %rbx
	movq	%r13, %rdi
	jne	LBB0_29
## %bb.23:
	movq	%rax, %r13
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	movq	%rdi, %rbx
	movl	(%rax), %edi
	andl	(%r15), %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movq	%r13, %rax
	incq	16(%rbx)
	jmp	LBB0_29
LBB0_21:
	movq	%r13, %rdi
LBB0_29:
	movl	(%rax), %r15d
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jge	LBB0_32
## %bb.30:
	movq	(%rdi), %rax
	movq	_PT_X86@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.31:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_pmap_pkru_get
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	orl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
LBB0_32:
	movq	_PG_W@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, -76(%rbp)                ## 4-byte Folded Reload
	je	LBB0_63
## %bb.33:
	movl	%eax, %ecx
	andl	%r15d, %ecx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %eax
	je	LBB0_35
## %bb.34:
	movl	$1, %edx
	testl	%ecx, %ecx
	je	LBB0_37
LBB0_35:
	testl	%esi, %eax
	jne	LBB0_38
## %bb.36:
	movl	$-1, %edx
	testl	%ecx, %ecx
	je	LBB0_38
LBB0_37:
	addl	%edx, 8(%rdi)
LBB0_38:
	testq	%rbx, %rbx
	je	LBB0_40
## %bb.39:
	movq	16(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%edi, %edi
	cmpq	$2, %rax
	setge	%dil
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_KASSERT
LBB0_40:
	movq	_PG_FRAME@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	andl	%r15d, %r12d
	cmpl	-100(%rbp), %r12d               ## 4-byte Folded Reload
	jne	LBB0_45
## %bb.41:
	movq	_PG_MANAGED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_44
## %bb.42:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, -68(%rbp)                 ## 4-byte Folded Spill
	je	LBB0_44
## %bb.43:
	movq	_PGA_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vm_page_aflag_set
LBB0_44:
	xorl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	notl	%eax
	testl	%eax, %r15d
	jne	LBB0_71
	jmp	LBB0_81
LBB0_63:
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_65
## %bb.64:
	incl	8(%rdi)
LBB0_65:
	movl	$1, %esi
	callq	_pmap_resident_count_inc
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PG_MANAGED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_67
	jmp	LBB0_70
LBB0_45:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_pte_load_clear
	movl	%eax, %ebx
	movl	(%r13), %eax
	andl	%ebx, %eax
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_KASSERT
	movq	_PG_MANAGED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_46
## %bb.47:
	movl	%r12d, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %r15
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, -116(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_49
## %bb.48:
	movq	%r15, %rdi
	callq	_vm_page_dirty
LBB0_49:
	andl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_51
## %bb.50:
	movq	_PGA_REFERENCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vm_page_aflag_set
LBB0_51:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	leaq	-112(%rbp), %rdi
	movl	%r12d, %esi
	callq	_CHANGE_PV_LIST_LOCK_TO_PHYS
	leaq	32(%r15), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_pmap_pvh_remove
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_KASSERT
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PG_MANAGED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_53
## %bb.52:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_free_pv_entry
LBB0_53:
	movq	_PGA_WRITEABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 24(%r15)
	je	LBB0_58
## %bb.54:
	movq	%r15, %rdi
	addq	$36, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_58
## %bb.55:
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r15)
	jne	LBB0_57
## %bb.56:
	movl	%r12d, %edi
	callq	_pa_to_pvh
	movq	%rax, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_58
LBB0_57:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_vm_page_aflag_clear
LBB0_58:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_61
LBB0_60:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_pmap_invalidate_page
LBB0_61:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PG_MANAGED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_62
## %bb.66:
	xorl	%r15d, %r15d
	testq	%r13, %r13
	jne	LBB0_68
LBB0_67:
	leaq	-112(%rbp), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_pv_entry
	movq	%rax, %r13
	movl	%r14d, (%rax)
LBB0_68:
	leaq	-112(%rbp), %rdi
	movl	-100(%rbp), %esi                ## 4-byte Reload
	callq	_CHANGE_PV_LIST_LOCK_TO_PHYS
	leaq	36(%r12), %rdi
	movq	_pv_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_TAILQ_INSERT_TAIL
	incl	32(%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_70
## %bb.69:
	movq	_PGA_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vm_page_aflag_set
LBB0_70:
	testl	%r15d, -76(%rbp)                ## 4-byte Folded Reload
	je	LBB0_80
LBB0_71:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_pte_load_store
	movl	%eax, %r15d
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	-100(%rbp), %eax                ## 4-byte Folded Reload
	sete	%dil
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_KASSERT
	testl	%ebx, -72(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_76
## %bb.72:
	movl	%r15d, %eax
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	andl	%ecx, %eax
	cmpl	%ecx, %eax
	jne	LBB0_76
## %bb.73:
	movq	_PG_MANAGED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_75
## %bb.74:
	movq	%r12, %rdi
	callq	_vm_page_dirty
LBB0_75:
	testl	%r15d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_79
	jmp	LBB0_81
LBB0_76:
	movq	_PG_NX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	jne	LBB0_81
## %bb.77:
	andl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_81
## %bb.78:
	andl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_81
LBB0_79:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_pmap_invalidate_page
	jmp	LBB0_81
LBB0_46:
	andl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_60
	jmp	LBB0_61
LBB0_62:
	xorl	%r15d, %r15d
	testl	%r15d, -76(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_71
LBB0_80:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pte_store
LBB0_81:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
LBB0_82:
	movl	(%rax), %ebx
LBB0_83:
	movq	-112(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_85
## %bb.84:
	callq	_rw_wunlock
LBB0_85:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_PMAP_UNLOCK
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ## @VM_MAX_KERNEL_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_enter: toobig"

	.comm	_UPT_MIN_ADDRESS,4,2            ## @UPT_MIN_ADDRESS
	.comm	_UPT_MAX_ADDRESS,4,2            ## @UPT_MAX_ADDRESS
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.comm	_kmi,8,2                        ## @kmi
L_.str.2:                               ## @.str.2
	.asciz	"pmap_enter: managed mapping within the clean submap"

	.comm	_PMAP_ENTER_RESERVED,4,2        ## @PMAP_ENTER_RESERVED
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"pmap_enter: flags includes VM_PROT_WRITE but prot doesn't"

	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_pg_nx,4,2                      ## @pg_nx
	.comm	_PMAP_ENTER_WIRED,4,2           ## @PMAP_ENTER_WIRED
	.comm	_PG_W,4,2                       ## @PG_W
	.comm	_VM_MAXUSER_ADDRESS,4,2         ## @VM_MAXUSER_ADDRESS
	.comm	_PG_U,4,2                       ## @PG_U
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PG_MANAGED,4,2                 ## @PG_MANAGED
	.comm	_PDRMASK,4,2                    ## @PDRMASK
L_.str.5:                               ## @.str.5
	.asciz	"pmap_enter: va unaligned"

L_.str.6:                               ## @.str.6
	.asciz	"pmap_enter: m->psind < psind"

	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
	.comm	_PMAP_ENTER_NOSLEEP,4,2         ## @PMAP_ENTER_NOSLEEP
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ## @KERN_RESOURCE_SHORTAGE
L_.str.7:                               ## @.str.7
	.asciz	"pmap_enter: invalid page directory va=%#lx"

	.comm	_PT_X86,8,3                     ## @PT_X86
	.comm	_PGA_WRITEABLE,4,2              ## @PGA_WRITEABLE
	.comm	_PGA_REFERENCED,4,2             ## @PGA_REFERENCED
	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
	.comm	_pv_next,4,2                    ## @pv_next
	.comm	_PG_NX,4,2                      ## @PG_NX
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_NPTEPG,8,3                     ## @NPTEPG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_enter                     ; -- Begin function pmap_enter
	.p2align	2
_pmap_enter:                            ; @pmap_enter
	.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
	str	x5, [sp, #40]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x27, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_pmap_accessed_bit
	mov	x26, x0
	mov	x0, x19
	bl	_pmap_global_bit
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_pmap_modified_bit
	mov	x25, x0
	mov	x0, x19
	bl	_pmap_valid_bit
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_pmap_rw_bit
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_trunc_page
	mov	x21, x0
Lloh0:
	adrp	x8, _VM_MAX_KERNEL_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_MAX_KERNEL_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, le
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x8, _UPT_MIN_ADDRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UPT_MIN_ADDRESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w21, w8
Lloh8:
	adrp	x8, _UPT_MAX_ADDRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UPT_MAX_ADDRESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ccmp	w21, w8, #0, ge
	cset	w0, ge
	sxtw	x1, w21
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	bl	_KASSERT
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	ldr	w8, [x20]
Lloh11:
	adrp	x23, _VPO_UNMANAGED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _VPO_UNMANAGED@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w9, w9, w8
Lloh13:
	adrp	x8, _kmi@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kmi@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, #0
	ccmp	w21, w10, #8, eq
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8, #4]
	cmp	w21, w8
	cset	w0, ge
LBB0_3:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_VM_PAGE_OBJECT_BUSY_ASSERT
LBB0_5:
Lloh17:
	adrp	x8, _PMAP_ENTER_RESERVED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PMAP_ENTER_RESERVED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w0, eq
	sxtw	x1, w22
	bl	_KASSERT
	mov	x0, x20
	bl	_VM_PAGE_TO_PHYS
	mov	x24, x0
Lloh20:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	csel	w9, wzr, w25, eq
	tst	w8, w27
	ldr	w28, [sp, #60]                  ; 4-byte Folded Reload
	csel	w8, wzr, w28, eq
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	orr	w10, w10, w26
	orr	w10, w10, w0
	orr	w9, w10, w9
	str	w25, [sp, #64]                  ; 4-byte Folded Spill
	orr	w25, w9, w8
	ldr	w8, [sp, #64]                   ; 4-byte Folded Reload
	orr	w23, w28, w8
	and	w8, w25, w23
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	cmp	w8, w9
	cset	w0, ne
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_KASSERT
Lloh25:
	adrp	x8, _VM_PROT_EXECUTE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _pg_nx@GOTPAGE
Lloh29:
	ldr	x9, [x9, _pg_nx@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w8, w27
	csel	w8, w9, wzr, eq
	orr	w8, w25, w8
Lloh31:
	adrp	x9, _PMAP_ENTER_WIRED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PMAP_ENTER_WIRED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _PG_W@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PG_W@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
Lloh37:
	adrp	x9, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _PG_U@GOTPAGE
Lloh41:
	ldr	x10, [x10, _PG_U@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	cmp	w21, w9
	csel	w9, w10, wzr, lt
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _kernel_pmap@GOTPAGE
Lloh44:
	ldr	x9, [x9, _kernel_pmap@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x19
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	csel	w9, w9, wzr, eq
	orr	w25, w8, w9
	ldr	w1, [x20, #40]
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	cmp	x26, #0
	cset	w2, gt
	mov	x0, x19
	bl	_pmap_cache_bits
	orr	w8, w25, w0
	ldr	w9, [x20]
Lloh46:
	adrp	x10, _VPO_UNMANAGED@GOTPAGE
Lloh47:
	ldr	x10, [x10, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
Lloh49:
	adrp	x11, _PG_MANAGED@GOTPAGE
Lloh50:
	ldr	x11, [x11, _PG_MANAGED@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	tst	w8, w28
	ldr	w12, [sp, #64]                  ; 4-byte Folded Reload
	csel	w12, wzr, w12, eq
	tst	w10, w9
	csel	w9, w11, w12, eq
	orr	w27, w9, w8
	str	xzr, [sp, #72]
	mov	x0, x19
	bl	_PMAP_LOCK
Lloh52:
	adrp	x25, _PG_PS@GOTPAGE
Lloh53:
	ldr	x25, [x25, _PG_PS@GOTPAGEOFF]
	cmp	x26, #1
	b.ne	LBB0_7
; %bb.6:
Lloh54:
	adrp	x8, _PDRMASK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PDRMASK@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w0, eq
Lloh57:
	adrp	x1, l_.str.5@PAGE
Lloh58:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, gt
Lloh59:
	adrp	x1, l_.str.6@PAGE
Lloh60:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x25]
	orr	w2, w8, w27
	add	x5, sp, #72
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x20
	bl	_pmap_enter_pde
	mov	x20, x0
	ldr	x0, [sp, #72]
	cbnz	x0, LBB0_72
	b	LBB0_73
LBB0_7:
	mov	x26, x25
	stp	w23, w24, [sp, #36]             ; 8-byte Folded Spill
	mov	x24, #0
Lloh61:
	adrp	x28, _PMAP_ENTER_NOSLEEP@GOTPAGE
Lloh62:
	ldr	x28, [x28, _PMAP_ENTER_NOSLEEP@GOTPAGEOFF]
	add	x25, sp, #72
	mov	x20, x27
Lloh63:
	adrp	x23, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh64:
	ldr	x23, [x23, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_pde
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x0
	ldr	w8, [x0]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x3, sp, #72
	mov	x0, x19
	mov	x1, x27
	mov	x2, x21
	bl	_pmap_demote_pde_locked
	cbnz	x0, LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	cmp	w21, w8
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [x28]
	mov	x0, x21
	bl	_pmap_pde_pindex
	mov	x1, x0
	ands	w27, w24, w22
	csel	x2, xzr, x25, ne
	mov	x0, x19
	bl	__pmap_allocpte
	mov	x24, x0
	cmp	x0, #0
	ccmp	w27, #0, #4, eq
	b.eq	LBB0_8
; %bb.14:
Lloh65:
	adrp	x8, _KERN_RESOURCE_SHORTAGE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _KERN_RESOURCE_SHORTAGE@GOTPAGEOFF]
	b	LBB0_71
LBB0_15:
	mov	x28, x23
Lloh67:
	adrp	x0, l_.str.7@PAGE
Lloh68:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_panic
                                        ; implicit-def: $x22
	ldr	w25, [sp, #64]                  ; 4-byte Folded Reload
	b	LBB0_18
LBB0_16:
	mov	x0, x27
	mov	x1, x21
	bl	_pmap_pde_to_pte
	mov	x22, x0
	mov	x28, x23
	ldr	w8, [x23]
	cmp	w21, w8
	ccmp	x24, #0, #0, lt
	ldr	w25, [sp, #64]                  ; 4-byte Folded Reload
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x27]
Lloh69:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh70:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PHYS_TO_VM_PAGE
	mov	x24, x0
	ldr	x8, [x0, #16]
	add	x8, x8, #1
	str	x8, [x0, #16]
LBB0_18:
	ldr	w23, [sp, #68]                  ; 4-byte Folded Reload
	ldr	w27, [x22]
	ldr	w8, [x28]
	cmp	w21, w8
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	b.ge	LBB0_21
; %bb.19:
	ldr	x8, [x19]
Lloh72:
	adrp	x9, _PT_X86@GOTPAGE
Lloh73:
	ldr	x9, [x9, _PT_X86@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
Lloh75:
	adrp	x26, _PG_W@GOTPAGE
Lloh76:
	ldr	x26, [x26, _PG_W@GOTPAGEOFF]
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_pkru_get
	orr	w20, w0, w20
	b	LBB0_22
LBB0_21:
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
Lloh77:
	adrp	x26, _PG_W@GOTPAGE
Lloh78:
	ldr	x26, [x26, _PG_W@GOTPAGEOFF]
LBB0_22:
	ldr	w9, [x26]
	and	w8, w9, w20
	tst	w27, w23
	b.eq	LBB0_26
; %bb.23:
	mov	x26, x20
	and	w9, w9, w27
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_29
; %bb.24:
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	ldr	w20, [sp, #60]                  ; 4-byte Folded Reload
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
	b.eq	LBB0_31
; %bb.25:
	mov	w8, #-1
	b	LBB0_30
LBB0_26:
	cbz	w8, LBB0_28
; %bb.27:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_28:
	mov	x0, x19
	mov	w1, #1
	bl	_pmap_resident_count_inc
Lloh79:
	adrp	x8, _PG_MANAGED@GOTPAGE
Lloh80:
	ldr	x8, [x8, _PG_MANAGED@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	tst	w8, w20
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	b.ne	LBB0_54
	b	LBB0_59
LBB0_29:
	mov	w8, #1
	ldr	w20, [sp, #60]                  ; 4-byte Folded Reload
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
LBB0_30:
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_31:
	cbz	x24, LBB0_33
; %bb.32:
	ldr	x8, [x24, #16]
	subs	x8, x8, #1
	str	x8, [x24, #16]
	cset	w0, gt
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_KASSERT
LBB0_33:
Lloh82:
	adrp	x22, _PG_FRAME@GOTPAGE
Lloh83:
	ldr	x22, [x22, _PG_FRAME@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w24, w8, w27
	cmp	w24, w23
	b.ne	LBB0_38
; %bb.34:
Lloh84:
	adrp	x8, _PG_MANAGED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PG_MANAGED@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w8, w27
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_37
; %bb.35:
	and	w8, w26, w20
	cbz	w8, LBB0_37
; %bb.36:
Lloh87:
	adrp	x8, _PGA_WRITEABLE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PGA_WRITEABLE@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_vm_page_aflag_set
LBB0_37:
	mov	x20, x26
	eor	w8, w26, w27
	orr	w9, w25, w28
	bics	wzr, w8, w9
	b.ne	LBB0_60
	b	LBB0_70
LBB0_38:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_pte_load_clear
	mov	x27, x0
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, w24
	cset	w0, eq
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_KASSERT
Lloh90:
	adrp	x8, _PG_MANAGED@GOTPAGE
Lloh91:
	ldr	x8, [x8, _PG_MANAGED@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_57
; %bb.39:
	mov	x0, x24
	bl	_PHYS_TO_VM_PAGE
	mov	x22, x0
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	bics	wzr, w8, w27
	b.ne	LBB0_41
; %bb.40:
	mov	x0, x22
	bl	_vm_page_dirty
LBB0_41:
	ands	w23, w27, w28
	mov	x20, x26
Lloh93:
	adrp	x25, _PG_MANAGED@GOTPAGE
Lloh94:
	ldr	x25, [x25, _PG_MANAGED@GOTPAGEOFF]
	mov	x26, x22
	b.eq	LBB0_43
; %bb.42:
Lloh95:
	adrp	x8, _PGA_REFERENCED@GOTPAGE
Lloh96:
	ldr	x8, [x8, _PGA_REFERENCED@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_vm_page_aflag_set
LBB0_43:
	add	x0, sp, #72
	mov	x1, x24
	bl	_CHANGE_PV_LIST_LOCK_TO_PHYS
	add	x0, x26, #32
	mov	x1, x19
	mov	x2, x21
	bl	_pmap_pvh_remove
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_KASSERT
	ldr	w8, [x25]
	tst	w8, w20
	b.ne	LBB0_45
; %bb.44:
	mov	x0, x19
	mov	x1, x22
	bl	_free_pv_entry
LBB0_45:
	ldr	w8, [x26, #24]
Lloh98:
	adrp	x25, _PGA_WRITEABLE@GOTPAGE
Lloh99:
	ldr	x25, [x25, _PGA_WRITEABLE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_50
; %bb.46:
	add	x0, x26, #36
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_50
; %bb.47:
	ldr	w8, [x26, #28]
Lloh100:
	adrp	x9, _PG_FICTITIOUS@GOTPAGE
Lloh101:
	ldr	x9, [x9, _PG_FICTITIOUS@GOTPAGEOFF]
Lloh102:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_49
; %bb.48:
	mov	x0, x24
	bl	_pa_to_pvh
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_50
LBB0_49:
	ldr	w1, [x25]
	mov	x0, x26
	bl	_vm_page_aflag_clear
LBB0_50:
	ldr	w25, [sp, #64]                  ; 4-byte Folded Reload
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	cbz	w23, LBB0_52
LBB0_51:
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_invalidate_page
LBB0_52:
Lloh103:
	adrp	x8, _PG_MANAGED@GOTPAGE
Lloh104:
	ldr	x8, [x8, _PG_MANAGED@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_58
; %bb.53:
	mov	w27, #0
	ldr	w23, [sp, #68]                  ; 4-byte Folded Reload
	cbnz	x22, LBB0_55
LBB0_54:
	add	x1, sp, #72
	mov	x0, x19
	bl	_get_pv_entry
	mov	x22, x0
	str	w21, [x0]
LBB0_55:
	add	x0, sp, #72
	ldr	w1, [sp, #40]                   ; 4-byte Folded Reload
	bl	_CHANGE_PV_LIST_LOCK_TO_PHYS
	add	x0, x24, #36
Lloh106:
	adrp	x8, _pv_next@GOTPAGE
Lloh107:
	ldr	x8, [x8, _pv_next@GOTPAGEOFF]
Lloh108:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	ldr	w8, [x24, #32]
	add	w8, w8, #1
	str	w8, [x24, #32]
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	tst	w20, w8
	b.eq	LBB0_59
; %bb.56:
Lloh109:
	adrp	x8, _PGA_WRITEABLE@GOTPAGE
Lloh110:
	ldr	x8, [x8, _PGA_WRITEABLE@GOTPAGEOFF]
Lloh111:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_vm_page_aflag_set
	b	LBB0_59
LBB0_57:
	mov	x22, #0
	and	w23, w27, w28
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	mov	x20, x26
	cbnz	w23, LBB0_51
	b	LBB0_52
LBB0_58:
	mov	w27, #0
	ldr	w23, [sp, #68]                  ; 4-byte Folded Reload
LBB0_59:
	tst	w27, w23
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
	b.eq	LBB0_69
LBB0_60:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	bl	_pte_load_store
	mov	x22, x0
Lloh112:
	adrp	x8, _PG_FRAME@GOTPAGE
Lloh113:
	ldr	x8, [x8, _PG_FRAME@GOTPAGEOFF]
Lloh114:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, w23
	cset	w0, eq
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_KASSERT
	tst	w20, w25
	b.ne	LBB0_65
; %bb.61:
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	and	w8, w22, w9
	cmp	w8, w9
	b.ne	LBB0_65
; %bb.62:
Lloh115:
	adrp	x8, _PG_MANAGED@GOTPAGE
Lloh116:
	ldr	x8, [x8, _PG_MANAGED@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_64
; %bb.63:
	mov	x0, x24
	bl	_vm_page_dirty
LBB0_64:
	tst	w22, w28
	b.ne	LBB0_68
	b	LBB0_70
LBB0_65:
Lloh118:
	adrp	x8, _PG_NX@GOTPAGE
Lloh119:
	ldr	x8, [x8, _PG_NX@GOTPAGEOFF]
Lloh120:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_70
; %bb.66:
	and	w8, w8, w20
	cbz	w8, LBB0_70
; %bb.67:
	and	w8, w22, w28
	cbz	w8, LBB0_70
LBB0_68:
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_invalidate_page
	b	LBB0_70
LBB0_69:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	bl	_pte_store
LBB0_70:
Lloh121:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh122:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
LBB0_71:
	ldr	w20, [x8]
	ldr	x0, [sp, #72]
	cbz	x0, LBB0_73
LBB0_72:
	bl	_rw_wunlock
LBB0_73:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	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
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh121, Lloh122
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ; @VM_MAX_KERNEL_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_enter: toobig"

	.comm	_UPT_MIN_ADDRESS,4,2            ; @UPT_MIN_ADDRESS
	.comm	_UPT_MAX_ADDRESS,4,2            ; @UPT_MAX_ADDRESS
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_kmi,8,2                        ; @kmi
l_.str.2:                               ; @.str.2
	.asciz	"pmap_enter: managed mapping within the clean submap"

	.comm	_PMAP_ENTER_RESERVED,4,2        ; @PMAP_ENTER_RESERVED
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"pmap_enter: flags includes VM_PROT_WRITE but prot doesn't"

	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_pg_nx,4,2                      ; @pg_nx
	.comm	_PMAP_ENTER_WIRED,4,2           ; @PMAP_ENTER_WIRED
	.comm	_PG_W,4,2                       ; @PG_W
	.comm	_VM_MAXUSER_ADDRESS,4,2         ; @VM_MAXUSER_ADDRESS
	.comm	_PG_U,4,2                       ; @PG_U
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PG_MANAGED,4,2                 ; @PG_MANAGED
	.comm	_PDRMASK,4,2                    ; @PDRMASK
l_.str.5:                               ; @.str.5
	.asciz	"pmap_enter: va unaligned"

l_.str.6:                               ; @.str.6
	.asciz	"pmap_enter: m->psind < psind"

	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
	.comm	_PMAP_ENTER_NOSLEEP,4,2         ; @PMAP_ENTER_NOSLEEP
	.comm	_KERN_RESOURCE_SHORTAGE,4,2     ; @KERN_RESOURCE_SHORTAGE
l_.str.7:                               ; @.str.7
	.asciz	"pmap_enter: invalid page directory va=%#lx"

	.comm	_PT_X86,8,3                     ; @PT_X86
	.comm	_PGA_WRITEABLE,4,2              ; @PGA_WRITEABLE
	.comm	_PGA_REFERENCED,4,2             ; @PGA_REFERENCED
	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
	.comm	_pv_next,4,2                    ; @pv_next
	.comm	_PG_NX,4,2                      ; @PG_NX
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_NPTEPG,8,3                     ; @NPTEPG
.subsections_via_symbols
