	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_enter_pv
_pmap_enter_pv:                         ## @pmap_enter_pv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_RA_WLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_assert
	movq	%r14, %rdi
	callq	_PMAP_ASSERT_LOCKED
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_kernel_pmap@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	%rdi, 16(%rbx)
	movq	%rax, (%rbx)
	movq	_PVF_WRITE@GOTPCREL(%rip), %rax
	movq	_PVF_UNMAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	cmpq	%r14, %rdi
	je	LBB0_3
## %bb.2:
	callq	_PMAP_LOCK
LBB0_3:
	leaq	12(%r12), %rdi
	movq	_pv_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	(%r13), %rdi
	addq	$4, %rdi
	movq	_pv_plist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	(%r13), %rdi
	cmpq	%r14, %rdi
	je	LBB0_5
## %bb.4:
	callq	_PMAP_UNLOCK
LBB0_5:
	movq	$0, (%r12)
	xorl	%eax, %eax
	callq	_pmap_get_pv_entry
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, 16(%rbx)
	movq	%r13, (%rbx)
	movl	%r15d, 8(%rbx)
	leaq	12(%r12), %rdi
	movq	_pv_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	leaq	4(%r14), %rdi
	movq	_pv_plist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_PVF_REF@GOTPCREL(%rip), %rax
	movq	_PVF_MOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%r15d, %ecx
	orl	%ecx, 8(%r12)
	movq	_PVF_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_9
## %bb.8:
	incl	(%r14)
LBB0_9:
	movq	_PGA_REFERENCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_aflag_set              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pvh_global_lock,4,2            ## @pvh_global_lock
	.comm	_RA_WLOCKED,4,2                 ## @RA_WLOCKED
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PVF_WRITE,4,2                  ## @PVF_WRITE
	.comm	_PVF_UNMAN,4,2                  ## @PVF_UNMAN
	.comm	_pv_list,4,2                    ## @pv_list
	.comm	_pv_plist,4,2                   ## @pv_plist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_kenter_pv: no pv entries"

	.comm	_PVF_REF,4,2                    ## @PVF_REF
	.comm	_PVF_MOD,4,2                    ## @PVF_MOD
	.comm	_PVF_WIRED,4,2                  ## @PVF_WIRED
	.comm	_PGA_REFERENCED,4,2             ## @PGA_REFERENCED
	.no_dead_strip	_pmap_enter_pv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_enter_pv
_pmap_enter_pv:                         ; @pmap_enter_pv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RA_WLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RA_WLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_assert
	mov	x0, x20
	bl	_PMAP_ASSERT_LOCKED
	ldr	x8, [x19]
Lloh5:
	adrp	x25, _pv_list@GOTPAGE
Lloh6:
	ldr	x25, [x25, _pv_list@GOTPAGEOFF]
Lloh7:
	adrp	x24, _pv_plist@GOTPAGE
Lloh8:
	ldr	x24, [x24, _pv_plist@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.1:
Lloh9:
	adrp	x26, _kernel_pmap@GOTPAGE
Lloh10:
	ldr	x26, [x26, _kernel_pmap@GOTPAGEOFF]
	ldr	x0, [x26]
	str	x0, [x23, #16]
	str	x8, [x23]
Lloh11:
	adrp	x8, _PVF_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PVF_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PVF_UNMAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVF_UNMAN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23, #8]
	cmp	x0, x20
	b.eq	LBB0_3
; %bb.2:
	bl	_PMAP_LOCK
LBB0_3:
	add	x0, x19, #12
	ldr	w2, [x25]
	mov	x1, x23
	bl	_TAILQ_INSERT_HEAD
	ldr	x8, [x26]
	add	x0, x8, #4
	ldr	w2, [x24]
	mov	x1, x23
	bl	_TAILQ_INSERT_HEAD
	ldr	x0, [x26]
	cmp	x0, x20
	b.eq	LBB0_5
; %bb.4:
	bl	_PMAP_UNLOCK
LBB0_5:
	str	xzr, [x19]
	bl	_pmap_get_pv_entry
	mov	x23, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_7:
	str	x20, [x23, #16]
	str	x22, [x23]
	str	w21, [x23, #8]
	add	x0, x19, #12
	ldr	w2, [x25]
	mov	x1, x23
	bl	_TAILQ_INSERT_HEAD
	add	x0, x20, #4
	ldr	w2, [x24]
	mov	x1, x23
	bl	_TAILQ_INSERT_HEAD
Lloh19:
	adrp	x8, _PVF_REF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PVF_REF@GOTPAGEOFF]
Lloh21:
	adrp	x9, _PVF_MOD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PVF_MOD@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w21
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x23, #8]
Lloh25:
	adrp	x9, _PVF_WIRED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PVF_WIRED@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_9:
Lloh28:
	adrp	x8, _PGA_REFERENCED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PGA_REFERENCED@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vm_page_aflag_set
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_pvh_global_lock,4,2            ; @pvh_global_lock
	.comm	_RA_WLOCKED,4,2                 ; @RA_WLOCKED
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PVF_WRITE,4,2                  ; @PVF_WRITE
	.comm	_PVF_UNMAN,4,2                  ; @PVF_UNMAN
	.comm	_pv_list,4,2                    ; @pv_list
	.comm	_pv_plist,4,2                   ; @pv_plist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_kenter_pv: no pv entries"

	.comm	_PVF_REF,4,2                    ; @PVF_REF
	.comm	_PVF_MOD,4,2                    ; @PVF_MOD
	.comm	_PVF_WIRED,4,2                  ; @PVF_WIRED
	.comm	_PGA_REFERENCED,4,2             ; @PGA_REFERENCED
	.no_dead_strip	_pmap_enter_pv
.subsections_via_symbols
