	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea64_pvo_enter
_moea64_pvo_enter:                      ## @moea64_pvo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	8(%rsi), %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movq	_moea64_pvo_enter_calls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_STAT_MOEA64
	movq	_pvo_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdx
	callq	_RB_INSERT
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rbx
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movq	%rax, (%r12)
	jmp	LBB0_11
LBB0_3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_LIST_FIRST
	movq	_pvo_vlink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_5:
	movq	_PVO_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rax
	testl	%ecx, (%rbx)
	je	LBB0_7
## %bb.6:
	incl	4(%rax)
LBB0_7:
	incl	(%rax)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_MOEA64_PTE_INSERT
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_9:
	movq	_moea64_pvo_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_STAT_MOEA64
	movq	8(%rbx), %rax
	movq	_kernel_pmap@GOTPCREL(%rip), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_isync
LBB0_11:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_moea64_pvo_enter_calls,4,2     ## @moea64_pvo_enter_calls
	.comm	_pvo_tree,4,2                   ## @pvo_tree
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_pvo_vlink,4,2                  ## @pvo_vlink
	.comm	_PVO_WIRED,4,2                  ## @PVO_WIRED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea64_pvo_enter: overflow"

	.comm	_moea64_pvo_entries,4,2         ## @moea64_pvo_entries
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PVO_LARGE,4,2                  ## @PVO_LARGE
	.comm	_pmap_bootstrapped,4,2          ## @pmap_bootstrapped
	.no_dead_strip	_moea64_pvo_enter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea64_pvo_enter
_moea64_pvo_enter:                      ; @moea64_pvo_enter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
Lloh3:
	adrp	x8, _moea64_pvo_enter_calls@GOTPAGE
Lloh4:
	ldr	x8, [x8, _moea64_pvo_enter_calls@GOTPAGEOFF]
	ldr	w0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh5:
	adrp	x8, _pvo_tree@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pvo_tree@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x2, x19
	bl	_RB_INSERT
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
	str	x0, [x22]
LBB0_3:
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_LIST_FIRST
Lloh10:
	adrp	x8, _pvo_vlink@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pvo_vlink@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
LBB0_6:
	ldr	w9, [x19]
Lloh13:
	adrp	x8, _PVO_WIRED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PVO_WIRED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	ldr	x8, [x19, #8]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_8:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_MOEA64_PTE_INSERT
	cbz	w0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_10:
Lloh18:
	adrp	x8, _moea64_pvo_entries@GOTPAGE
Lloh19:
	ldr	x8, [x8, _moea64_pvo_entries@GOTPAGEOFF]
	ldr	w0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _kernel_pmap@GOTPAGE
Lloh21:
	ldr	x9, [x9, _kernel_pmap@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	bl	_isync
LBB0_12:
Lloh23:
	adrp	x8, _ENOENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_moea64_pvo_enter_calls,4,2     ; @moea64_pvo_enter_calls
	.comm	_pvo_tree,4,2                   ; @pvo_tree
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_pvo_vlink,4,2                  ; @pvo_vlink
	.comm	_PVO_WIRED,4,2                  ; @PVO_WIRED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea64_pvo_enter: overflow"

	.comm	_moea64_pvo_entries,4,2         ; @moea64_pvo_entries
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PVO_LARGE,4,2                  ; @PVO_LARGE
	.comm	_pmap_bootstrapped,4,2          ; @pmap_bootstrapped
	.no_dead_strip	_moea64_pvo_enter
.subsections_via_symbols
