	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pte_pfn_to_mfn
_pte_pfn_to_mfn:                        ## @pte_pfn_to_mfn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PTE_PFN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	sarl	%cl, %eax
	movslq	%eax, %rdi
	movq	_PTE_FLAGS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	callq	_pfn_to_mfn
	movq	%rax, %rbx
	movq	_INVALID_P2M_ENTRY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_unlikely
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %r14d
	cmovnel	%ecx, %ebx
	movb	(%r15), %cl
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.comm	_PTE_PFN_MASK,4,2               ## @PTE_PFN_MASK
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PTE_FLAGS_MASK,4,2             ## @PTE_FLAGS_MASK
	.comm	_INVALID_P2M_ENTRY,8,3          ## @INVALID_P2M_ENTRY
	.no_dead_strip	_pte_pfn_to_mfn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pte_pfn_to_mfn
_pte_pfn_to_mfn:                        ; @pte_pfn_to_mfn
	.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
Lloh0:
	adrp	x8, __PAGE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PTE_PFN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTE_PFN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x20, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20]
	asr	w8, w8, w9
	sxtw	x8, w8
Lloh8:
	adrp	x9, _PTE_FLAGS_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PTE_FLAGS_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w21, w9, w0
	mov	x0, x8
	bl	_pfn_to_mfn
	mov	x19, x0
Lloh11:
	adrp	x8, _INVALID_P2M_ENTRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INVALID_P2M_ENTRY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csel	w8, w21, wzr, eq
	csel	w9, w19, wzr, eq
	ldr	w10, [x20]
	lsl	w9, w9, w10
	orr	w0, w9, w8
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.comm	_PTE_PFN_MASK,4,2               ; @PTE_PFN_MASK
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PTE_FLAGS_MASK,4,2             ; @PTE_FLAGS_MASK
	.comm	_INVALID_P2M_ENTRY,8,3          ; @INVALID_P2M_ENTRY
	.no_dead_strip	_pte_pfn_to_mfn
.subsections_via_symbols
