	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_early_page_idx
_pmap_early_page_idx:                   ## @pmap_early_page_idx
	.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
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	_L1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rsi
	movq	_Ln_ADDR_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	movq	%rsi, (%rdx)
	movq	_PTE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	andl	(%rdi,%rsi,4), %ecx
	sete	%al
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	_init_pt_va@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_pmap_l2_index
	movq	%rax, (%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_SHIFT,8,3                   ## @L1_SHIFT
	.comm	_Ln_ADDR_MASK,8,3               ## @Ln_ADDR_MASK
	.comm	_PTE_RX,4,2                     ## @PTE_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bootstrap L1 table"

	.comm	_init_pt_va,8,3                 ## @init_pt_va
	.no_dead_strip	_pmap_early_page_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_early_page_idx
_pmap_early_page_idx:                   ; @pmap_early_page_idx
	.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	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x8, _L1_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L1_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x1, x8
Lloh3:
	adrp	x9, _Ln_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Ln_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x8, x8, x9
	ldr	w9, [x0, x8, lsl #2]
	str	x8, [x2]
Lloh6:
	adrp	x8, _PTE_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTE_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh11:
	adrp	x8, _init_pt_va@GOTPAGE
Lloh12:
	ldr	x8, [x8, _init_pt_va@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	mov	x0, x20
	bl	_pmap_l2_index
	str	x0, [x19]
	mov	x0, x21
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_SHIFT,8,3                   ; @L1_SHIFT
	.comm	_Ln_ADDR_MASK,8,3               ; @Ln_ADDR_MASK
	.comm	_PTE_RX,4,2                     ; @PTE_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bootstrap L1 table"

	.comm	_init_pt_va,8,3                 ; @init_pt_va
	.no_dead_strip	_pmap_early_page_idx
.subsections_via_symbols
