	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_early_io_unmap            ## -- Begin function pmap_early_io_unmap
	.p2align	4, 0x90
_pmap_early_io_unmap:                   ## @pmap_early_io_unmap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_roundup
	movq	_TLB1_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jle	LBB0_2
## %bb.3:
	movq	%rax, %r14
	addq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	leaq	-72(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r13), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tlb1_read_entry
	movl	-72(%rbp), %eax
	movq	_MAS1_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rsi
	cmpq	%r15, %rsi
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx
	addq	%rdx, %rsi
	cmpq	%rsi, -48(%rbp)                 ## 8-byte Folded Reload
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%rdx, %r14
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, -72(%rbp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tlb1_write_entry
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_TLB1_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	testq	%r14, %r14
	jg	LBB0_4
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_2:
	addq	%r15, %rax
LBB0_11:
	movq	_tlb1_map_base@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	%r15, (%rcx)
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TLB1_ENTRIES,4,2               ## @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ## @MAS1_VALID
	.comm	_tlb1_map_base,8,3              ## @tlb1_map_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_early_io_unmap            ; -- Begin function pmap_early_io_unmap
	.p2align	2
_pmap_early_io_unmap:                   ; @pmap_early_io_unmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_roundup
	mov	x20, x0
Lloh3:
	adrp	x23, _TLB1_ENTRIES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TLB1_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	ccmp	x0, #0, #4, ge
	b.gt	LBB0_5
; %bb.1:
	add	x22, x20, x19
LBB0_2:
Lloh5:
	adrp	x8, _tlb1_map_base@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tlb1_map_base@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x22
	b.ne	LBB0_4
; %bb.3:
	str	x19, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	add	x22, x20, x19
	mov	w24, #1
Lloh7:
	adrp	x25, _MAS1_VALID@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MAS1_VALID@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	cmp	w24, w8
	add	w24, w24, #1
	ccmp	x20, #0, #4, lt
	b.le	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w24, #1
	add	x0, sp, #8
	mov	x1, x21
	bl	_tlb1_read_entry
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [sp, #16]
	cmp	x11, x19
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [sp, #24]
	add	x11, x10, x11
	cmp	x22, x11
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x20, x20, x10
	bic	w8, w8, w9
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_tlb1_write_entry
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TLB1_ENTRIES,4,2               ; @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ; @MAS1_VALID
	.comm	_tlb1_map_base,8,3              ; @tlb1_map_base
.subsections_via_symbols
