	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_release                   ## -- Begin function pmap_release
	.p2align	4, 0x90
_pmap_release:                          ## @pmap_release
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_pmap_idcache_wbinv_all
	xorl	%eax, %eax
	callq	_cpu_l2cache_wbinv_all
	movl	%r15d, %edi
	callq	_pmap_tlb_flushID
	xorl	%eax, %eax
	callq	_cpu_cpwait
	movq	_vector_page@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_KERNBASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	callq	_PCPU_GET
	movq	%rax, %r14
	movq	_thread0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_pmap_is_current
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_critical_enter
	movl	8(%rbx), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%rbx), %edi
	callq	_cpu_domains
	movl	(%rbx), %edi
	callq	_cpu_setttb
	xorl	%eax, %eax
	callq	_critical_exit
LBB0_3:
	movq	(%r12), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rsi, %rdx
	movl	%r15d, %edi
	callq	_pmap_remove
	movq	16(%rbx), %rax
	movq	%rax, 16(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
LBB0_4:
	movl	%r15d, %edi
	callq	_pmap_free_l1
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vector_page,8,3                ## @vector_page
	.comm	_KERNBASE,8,3                   ## @KERNBASE
	.comm	_thread0,8,3                    ## @thread0
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_release()\n"

	.comm	_curpcb,8,3                     ## @curpcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_release                   ; -- Begin function pmap_release
	.p2align	2
_pmap_release:                          ; @pmap_release
	.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, x0
	bl	_pmap_idcache_wbinv_all
	bl	_cpu_l2cache_wbinv_all
	mov	x0, x19
	bl	_pmap_tlb_flushID
	bl	_cpu_cpwait
Lloh0:
	adrp	x22, _vector_page@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vector_page@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _KERNBASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KERNBASE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	bl	_PCPU_GET
	mov	x20, x0
Lloh5:
	adrp	x8, _thread0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _thread0@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_pmap_is_current
	cbz	x0, LBB0_3
; %bb.2:
	bl	_critical_enter
	ldr	w8, [x21, #8]
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	w0, [x21, #4]
	bl	_cpu_domains
	ldr	w0, [x21]
	bl	_cpu_setttb
	bl	_critical_exit
LBB0_3:
	ldr	x1, [x22]
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x2, x8, x1
	mov	x0, x19
	bl	_pmap_remove
	ldr	x8, [x21, #16]
	str	x8, [x20, #16]
	ldr	w8, [x21, #8]
	str	w8, [x20, #8]
	ldr	d0, [x21]
	str	d0, [x20]
LBB0_4:
	mov	x0, x19
	bl	_pmap_free_l1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_dprintf
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vector_page,8,3                ; @vector_page
	.comm	_KERNBASE,8,3                   ; @KERNBASE
	.comm	_thread0,8,3                    ; @thread0
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_release()\n"

	.comm	_curpcb,8,3                     ; @curpcb
.subsections_via_symbols
