	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_early_io_map              ## -- Begin function pmap_early_io_map
	.p2align	4, 0x90
_pmap_early_io_map:                     ## @pmap_early_io_map
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_pmap_bootstrapped@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_TLB1_ENTRIES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-88(%rbp), %r12
	movq	_MAS1_VALID@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tlb1_read_entry
	movl	(%r15), %eax
	testl	%eax, -88(%rbp)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax
	cmpq	%r14, %rax
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, -56(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_6
## %bb.5:
	subq	%rax, %r14
	addq	-64(%rbp), %r14
	jmp	LBB0_10
LBB0_7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rounddown
	movq	%rax, %r12
	subq	%rax, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%r14, %rdi
	movl	(%rbx), %esi
	callq	_roundup
	movq	%rax, %r13
	movq	_tlb1_map_base@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	%rax, %rdi
	callq	_ilog2
	andb	$-2, %al
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movq	%rbx, %rdi
	callq	_roundup2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r15)
	movq	__TLB_ENTRY_IO@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ilog2
	andb	$-2, %al
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movslq	%edx, %rbx
	movq	(%r15), %rdi
	movl	(%r14), %ecx
	movq	__TLB_ENTRY_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_tlb1_set_entry
	addq	%rbx, %r12
	addq	%rbx, (%r15)
	subq	%rbx, %r13
	jg	LBB0_8
## %bb.9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
LBB0_10:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmap_bootstrapped,4,2          ## @pmap_bootstrapped
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Do not use after PMAP is up!"

	.comm	_TLB1_ENTRIES,4,2               ## @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ## @MAS1_VALID
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_tlb1_map_base,8,3              ## @tlb1_map_base
	.comm	__TLB_ENTRY_SHARED,4,2          ## @_TLB_ENTRY_SHARED
	.comm	__TLB_ENTRY_IO,4,2              ## @_TLB_ENTRY_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_early_io_map              ; -- Begin function pmap_early_io_map
	.p2align	2
_pmap_early_io_map:                     ; @pmap_early_io_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _pmap_bootstrapped@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmap_bootstrapped@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x22, _TLB1_ENTRIES@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TLB1_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w19, #0
	add	x23, x21, x20
Lloh7:
	adrp	x24, _MAS1_VALID@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MAS1_VALID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_tlb1_read_entry
	ldr	w8, [sp]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #16]
	add	x9, x9, x8
	cmp	x23, x9
	b.gt	LBB0_2
; %bb.6:
	ldr	x9, [sp, #24]
	sub	x8, x20, x8
	add	x0, x8, x9
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rounddown
	mov	x19, x0
	sub	x23, x20, x0
	add	x0, x23, x21
	ldr	w1, [x22]
	bl	_roundup
	mov	x20, x0
Lloh11:
	adrp	x24, _tlb1_map_base@GOTPAGE
Lloh12:
	ldr	x24, [x24, _tlb1_map_base@GOTPAGEOFF]
	ldr	x21, [x24]
	bl	_ilog2
	and	w8, w0, #0xfffffffe
	mov	w25, #1
	lsl	w1, w25, w8
	mov	x0, x21
	bl	_roundup2
	mov	x21, x0
	str	x0, [x24]
Lloh13:
	adrp	x26, __TLB_ENTRY_SHARED@GOTPAGE
Lloh14:
	ldr	x26, [x26, __TLB_ENTRY_SHARED@GOTPAGEOFF]
Lloh15:
	adrp	x27, __TLB_ENTRY_IO@GOTPAGE
Lloh16:
	ldr	x27, [x27, __TLB_ENTRY_IO@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ilog2
	and	w8, w0, #0xfffffffe
	lsl	w8, w25, w8
	sxtw	x22, w8
	ldr	x0, [x24]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	x1, x19
	mov	x2, x22
	bl	_tlb1_set_entry
	sub	x20, x20, x22
	add	x19, x19, x22
	ldr	x8, [x24]
	add	x8, x8, x22
	str	x8, [x24]
	cmp	x20, #0
	b.gt	LBB0_8
; %bb.9:
	add	x0, x21, x23
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pmap_bootstrapped,4,2          ; @pmap_bootstrapped
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Do not use after PMAP is up!"

	.comm	_TLB1_ENTRIES,4,2               ; @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ; @MAS1_VALID
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_tlb1_map_base,8,3              ; @tlb1_map_base
	.comm	__TLB_ENTRY_SHARED,4,2          ; @_TLB_ENTRY_SHARED
	.comm	__TLB_ENTRY_IO,4,2              ; @_TLB_ENTRY_IO
.subsections_via_symbols
