	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_unmapdev                  ## -- Begin function pmap_unmapdev
	.p2align	4, 0x90
_pmap_unmapdev:                         ## @pmap_unmapdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DMAP_MIN_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_DMAP_MAX_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jg	LBB0_11
LBB0_2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%rbx, %rdi
	addq	%rsi, %rdi
	callq	_round_page
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_trunc_page
	movq	_PMAP_PREINIT_MAPPING_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:
	movq	_pmap_preinit_mapping@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$5, %rdx
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rcx,%rsi)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, 8(%rcx,%rsi)
	jne	LBB0_9
## %bb.6:
	movq	_pmap_initialized@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_11
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx,%rsi)
	movups	%xmm0, 16(%rcx,%rsi)
	movq	%rax, %rdx
	addq	%r14, %rdx
	movq	_virtual_avail@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_11
## %bb.8:
	movq	%rax, (%rcx)
	jmp	LBB0_11
LBB0_10:
	movq	_pmap_initialized@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kva_free                       ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAP_MIN_ADDRESS,8,3           ## @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ## @DMAP_MAX_ADDRESS
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PMAP_PREINIT_MAPPING_COUNT,4,2 ## @PMAP_PREINIT_MAPPING_COUNT
	.comm	_pmap_preinit_mapping,8,3       ## @pmap_preinit_mapping
	.comm	_pmap_initialized,8,3           ## @pmap_initialized
	.comm	_virtual_avail,8,3              ## @virtual_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_unmapdev                  ; -- Begin function pmap_unmapdev
	.p2align	2
_pmap_unmapdev:                         ; @pmap_unmapdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _DMAP_MIN_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAP_MIN_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DMAP_MAX_ADDRESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMAP_MAX_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, le
	b.gt	LBB0_11
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x8, x8, x0
	add	x0, x8, x1
	bl	_round_page
	mov	x19, x0
	mov	x0, x20
	bl	_trunc_page
Lloh9:
	adrp	x8, _PMAP_PREINIT_MAPPING_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMAP_PREINIT_MAPPING_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
Lloh12:
	adrp	x8, _pmap_preinit_mapping@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pmap_preinit_mapping@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #32
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x0
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8, #8]
	cmp	x10, x19
	b.ne	LBB0_3
; %bb.6:
Lloh15:
	adrp	x9, _pmap_initialized@GOTPAGE
Lloh16:
	ldr	x9, [x9, _pmap_initialized@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cbnz	x9, LBB0_11
; %bb.7:
	stp	xzr, xzr, [x8]
	stp	xzr, xzr, [x8, #16]
Lloh18:
	adrp	x8, _virtual_avail@GOTPAGE
Lloh19:
	ldr	x8, [x8, _virtual_avail@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x10, x0, x19
	cmp	x10, x9
	b.ne	LBB0_11
; %bb.8:
	str	x0, [x8]
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _pmap_initialized@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pmap_initialized@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kva_free
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAP_MIN_ADDRESS,8,3           ; @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ; @DMAP_MAX_ADDRESS
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PMAP_PREINIT_MAPPING_COUNT,4,2 ; @PMAP_PREINIT_MAPPING_COUNT
	.comm	_pmap_preinit_mapping,8,3       ; @pmap_preinit_mapping
	.comm	_pmap_initialized,8,3           ; @pmap_initialized
	.comm	_virtual_avail,8,3              ; @virtual_avail
.subsections_via_symbols
