	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_kenter_attr             ## -- Begin function moea64_kenter_attr
	.p2align	4, 0x90
_moea64_kenter_attr:                    ## @moea64_kenter_attr
	.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	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_alloc_pvo_entry
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_vm_wait
	xorl	%edi, %edi
	callq	_alloc_pvo_entry
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
LBB0_3:
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	_ADDR_POFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	notl	%r14d
	andl	%r15d, %r14d
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_moea64_calc_wimg
	orl	%r14d, %eax
	movl	%eax, 8(%rbx)
	movq	_PVO_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_kernel_pmap@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PMAP_LOCK
	movl	(%r14), %edi
	movl	%r12d, %esi
	callq	_moea64_pvo_find_va
	movq	%rax, %r13
	testq	%rax, %rax
	movl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_moea64_pvo_remove_from_pmap
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_init_pvo_entry
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_moea64_pvo_enter
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_PMAP_UNLOCK
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_moea64_pvo_remove_from_page
	movq	%r13, %rdi
	callq	_free_pvo_entry
LBB0_7:
	testl	%ebx, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_9
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_panic                          ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_ADDR_POFF,4,2                  ## @ADDR_POFF
	.comm	_PVO_WIRED,4,2                  ## @PVO_WIRED
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea64_kenter: failed to enter va %#zx pa %#jx: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_kenter_attr             ; -- Begin function moea64_kenter_attr
	.p2align	2
_moea64_kenter_attr:                    ; @moea64_kenter_attr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #0
	bl	_alloc_pvo_entry
	mov	x22, x0
	cbnz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	bl	_vm_wait
	mov	w0, #0
	bl	_alloc_pvo_entry
	cbz	x0, LBB0_1
; %bb.2:
	mov	x22, x0
LBB0_3:
Lloh0:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VM_PROT_EXECUTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x22, #4]
Lloh9:
	adrp	x8, _ADDR_POFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADDR_POFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w24, w19, w8
	mov	x0, x19
	mov	x1, x23
	bl	_moea64_calc_wimg
	orr	w8, w24, w0
	str	w8, [x22, #8]
Lloh12:
	adrp	x8, _PVO_WIRED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PVO_WIRED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh15:
	adrp	x24, _kernel_pmap@GOTPAGE
Lloh16:
	ldr	x24, [x24, _kernel_pmap@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_PMAP_LOCK
	ldr	w0, [x24]
	mov	x1, x20
	bl	_moea64_pvo_find_va
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x23
	bl	_moea64_pvo_remove_from_pmap
LBB0_5:
	ldr	w1, [x24]
	mov	x0, x22
	mov	x2, x20
	bl	_init_pvo_entry
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x3, #0
	bl	_moea64_pvo_enter
	mov	x22, x0
	ldr	w0, [x24]
	bl	_PMAP_UNLOCK
	cbz	x23, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x23
	bl	_moea64_pvo_remove_from_page
	mov	x0, x23
	bl	_free_pvo_entry
LBB0_7:
	cbz	w22, LBB0_10
; %bb.8:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_panic
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_ADDR_POFF,4,2                  ; @ADDR_POFF
	.comm	_PVO_WIRED,4,2                  ; @PVO_WIRED
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea64_kenter: failed to enter va %#zx pa %#jx: %d"

.subsections_via_symbols
