	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlb_range_demap                ## -- Begin function tlb_range_demap
	.p2align	4, 0x90
_tlb_range_demap:                       ## @tlb_range_demap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_tlb_nrange_demap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ipi_tlb_range_demap
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_intr_disable
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	leaq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%r13), %rax
	movq	_curcpu@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpl	$-1, (%rax,%rcx,4)
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_TLB_DEMAP_NUCLEUS@GOTPCREL(%rip), %rax
	cmpq	%r14, %rbx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movq	_TLB_DEMAP_PRIMARY@GOTPCREL(%rip), %rax
	cmpq	%r14, %rbx
	jge	LBB0_7
LBB0_5:
	movq	_TLB_DEMAP_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_KERNBASE@GOTPCREL(%rip), %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TLB_DEMAP_VA
	orl	%r13d, %eax
	movq	_ASI_DMMU_DEMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_stxa
	movq	%rbx, %rdi
	callq	_TLB_DEMAP_VA
	orl	%r13d, %eax
	movq	_ASI_IMMU_DEMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_stxa
	movl	(%r15), %edi
	callq	_flush
	addq	(%r12), %rbx
	cmpq	%r14, %rbx
	jl	LBB0_6
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_intr_restore
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipi_wait                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tlb_nrange_demap,4,2           ## @tlb_nrange_demap
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_curcpu,8,3                     ## @curcpu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tlb_range_demap: inactive pmap?"

	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_TLB_DEMAP_NUCLEUS,4,2          ## @TLB_DEMAP_NUCLEUS
	.comm	_TLB_DEMAP_PAGE,4,2             ## @TLB_DEMAP_PAGE
	.comm	_TLB_DEMAP_PRIMARY,4,2          ## @TLB_DEMAP_PRIMARY
	.comm	_ASI_DMMU_DEMAP,4,2             ## @ASI_DMMU_DEMAP
	.comm	_ASI_IMMU_DEMAP,4,2             ## @ASI_IMMU_DEMAP
	.comm	_KERNBASE,4,2                   ## @KERNBASE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlb_range_demap                ; -- Begin function tlb_range_demap
	.p2align	2
_tlb_range_demap:                       ; @tlb_range_demap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _tlb_nrange_demap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tlb_nrange_demap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_ipi_tlb_range_demap
	mov	x21, x0
	bl	_intr_disable
	mov	x22, x0
Lloh3:
	adrp	x8, _cpuid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PCPU_GET
	add	x1, x23, #8
	bl	_CPU_ISSET
	cbz	x0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _curcpu@GOTPAGE
Lloh7:
	ldr	x8, [x8, _curcpu@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	cmn	w8, #1
	cset	w0, ne
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh11:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh13:
	adrp	x9, _TLB_DEMAP_NUCLEUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TLB_DEMAP_NUCLEUS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _TLB_DEMAP_PRIMARY@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TLB_DEMAP_PRIMARY@GOTPAGEOFF]
	cmp	x8, x23
	csel	x8, x9, x10, eq
	cmp	x20, x19
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TLB_DEMAP_PAGE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TLB_DEMAP_PAGE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w23, w9, w8
Lloh21:
	adrp	x24, _ASI_DMMU_DEMAP@GOTPAGE
Lloh22:
	ldr	x24, [x24, _ASI_DMMU_DEMAP@GOTPAGEOFF]
Lloh23:
	adrp	x25, _ASI_IMMU_DEMAP@GOTPAGE
Lloh24:
	ldr	x25, [x25, _ASI_IMMU_DEMAP@GOTPAGEOFF]
Lloh25:
	adrp	x26, _KERNBASE@GOTPAGE
Lloh26:
	ldr	x26, [x26, _KERNBASE@GOTPAGEOFF]
Lloh27:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh28:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TLB_DEMAP_VA
	orr	w0, w0, w23
	ldr	w1, [x24]
	mov	w2, #0
	bl	_stxa
	mov	x0, x20
	bl	_TLB_DEMAP_VA
	orr	w0, w0, w23
	ldr	w1, [x25]
	mov	w2, #0
	bl	_stxa
	ldr	w0, [x26]
	bl	_flush
	ldr	x8, [x27]
	add	x20, x8, x20
	cmp	x20, x19
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x22
	bl	_intr_restore
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ipi_wait
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_tlb_nrange_demap,4,2           ; @tlb_nrange_demap
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_curcpu,8,3                     ; @curcpu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tlb_range_demap: inactive pmap?"

	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_TLB_DEMAP_NUCLEUS,4,2          ; @TLB_DEMAP_NUCLEUS
	.comm	_TLB_DEMAP_PAGE,4,2             ; @TLB_DEMAP_PAGE
	.comm	_TLB_DEMAP_PRIMARY,4,2          ; @TLB_DEMAP_PRIMARY
	.comm	_ASI_DMMU_DEMAP,4,2             ; @ASI_DMMU_DEMAP
	.comm	_ASI_IMMU_DEMAP,4,2             ; @ASI_IMMU_DEMAP
	.comm	_KERNBASE,4,2                   ; @KERNBASE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
