	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_early_vtophys
_pmap_early_vtophys:                    ## @pmap_early_vtophys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	_pmap_early_page_idx
	movq	%rax, %r14
	movq	-24(%rbp), %rax
	movq	_PTE_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%r14,%rax,4), %ecx
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	-24(%rbp), %rax
	movl	(%r14,%rax,4), %eax
	movq	_PTE_PPN1_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_L2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_L2_OFFSET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	%eax, %ebx
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTE_RX,4,2                     ## @PTE_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bootstrap L2 table"

	.comm	_PTE_PPN1_S,4,2                 ## @PTE_PPN1_S
	.comm	_L2_SHIFT,4,2                   ## @L2_SHIFT
	.comm	_L2_OFFSET,4,2                  ## @L2_OFFSET
	.no_dead_strip	_pmap_early_vtophys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_early_vtophys
_pmap_early_vtophys:                    ; @pmap_early_vtophys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	add	x2, sp, #8
	mov	x3, sp
	bl	_pmap_early_page_idx
	mov	x20, x0
	ldr	x8, [sp]
	ldr	w8, [x0, x8, lsl #2]
Lloh0:
	adrp	x9, _PTE_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTE_RX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [sp]
	ldr	w8, [x20, x8, lsl #2]
Lloh5:
	adrp	x9, _PTE_PPN1_S@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PTE_PPN1_S@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh8:
	adrp	x9, _L2_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L2_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh11:
	adrp	x9, _L2_OFFSET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _L2_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w9, w9, w19
	add	w0, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTE_RX,4,2                     ; @PTE_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bootstrap L2 table"

	.comm	_PTE_PPN1_S,4,2                 ; @PTE_PPN1_S
	.comm	_L2_SHIFT,4,2                   ; @L2_SHIFT
	.comm	_L2_OFFSET,4,2                  ; @L2_OFFSET
	.no_dead_strip	_pmap_early_vtophys
.subsections_via_symbols
