	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_demote_pde_locked
_pmap_demote_pde_locked:                ## @pmap_demote_pde_locked
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, %r13d
	callq	_pmap_accessed_bit
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_pmap_global_bit
	movl	%r13d, %edi
	callq	_pmap_modified_bit
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_pmap_rw_bit
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_pmap_valid_bit
	movl	%eax, %r12d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_pmap_cache_mask
	movl	%r13d, %edi
	callq	_pmap_pku_mask_bit
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_PMAP_LOCK_ASSERT
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r15), %ebx
	movq	_PG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	orl	%r12d, %eax
	movl	%ebx, %ecx
	notl	%ecx
	xorl	%edi, %edi
	testl	%ecx, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	testl	%r14d, %ebx
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pmap_remove_pt_page
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
LBB0_13:
	movq	%r14, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %r12
	movq	_PG_U@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	andl	%r15d, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, %eax
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	orl	%eax, %ebx
	andl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	leaq	L_.str.4(%rip), %rsi
	callq	_KASSERT
	movq	_PG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	movl	%r13d, %edi
	callq	_pmap_swap_pat
	movl	%eax, %r15d
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pmap_fill_ptp
LBB0_15:
	orl	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pmap_demote_pde_check
	movq	_PG_PTE_PROMOTE@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	xorl	%r15d, %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pmap_fill_ptp
LBB0_17:
	orl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_PG_MANAGED@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, (%r14)
	je	LBB0_19
## %bb.18:
	movq	_NPTEPG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movl	%r13d, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_reserve_pv_entries
LBB0_19:
	orl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_workaround_erratum383@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_pmap_update_pde
	cmpq	%r15, -104(%rbp)                ## 8-byte Folded Reload
	jg	LBB0_24
LBB0_23:
	movq	%r15, %rdi
	callq	_vtopte
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_pmap_invalidate_page
LBB0_24:
	testl	%r12d, (%r14)
	je	LBB0_26
## %bb.25:
	movq	_PG_PS_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_pmap_pv_demote_pde
LBB0_26:
	movq	_pmap_pde_demotions@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_long
	movq	_KTR_PMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_CTR2
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_1:
	movq	_PG_W@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movl	%r13d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%ebx, %ecx
LBB0_10:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pmap_demote_pde_abort
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PG_W@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movl	$1, %edi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	cmpq	%rbx, %r15
	jg	LBB0_5
## %bb.4:
	movq	_DMAP_MIN_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	setle	%al
	movq	_DMAP_MAX_ADDRESS@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
LBB0_5:
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_pmap_pde_pindex
	cmpq	%rbx, %r15
	jle	LBB0_6
## %bb.7:
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_21:
	movq	%rdx, %rdi
	movl	%ebx, %esi
	callq	_pde_store
	cmpq	%r15, -104(%rbp)                ## 8-byte Folded Reload
	jle	LBB0_23
	jmp	LBB0_24
LBB0_6:
	movq	_VM_ALLOC_INTERRUPT@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %edx
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_vm_page_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %r14
	cmpq	%rbx, %r15
	jle	LBB0_13
## %bb.12:
	movq	_NPTEPG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_pmap_resident_count_inc
	jmp	LBB0_13
LBB0_9:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_PG_PS,4,2                      ## @PG_PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_demote_pde: oldpde is missing PG_PS and/or PG_V"

	.comm	_PG_W,4,2                       ## @PG_W
L_.str.1:                               ## @.str.1
	.asciz	"pmap_demote_pde: a wired mapping is missing PG_A"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"pmap_demote_pde: page table page for a wired mapping is missing"

	.comm	_DMAP_MIN_ADDRESS,8,3           ## @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ## @DMAP_MAX_ADDRESS
	.comm	_VM_ALLOC_INTERRUPT,4,2         ## @VM_ALLOC_INTERRUPT
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_NPTEPG,8,3                     ## @NPTEPG
	.comm	_PG_U,4,2                       ## @PG_U
L_.str.4:                               ## @.str.4
	.asciz	"pmap_demote_pde: oldpde is missing PG_M"

	.comm	_PG_PTE_PROMOTE,4,2             ## @PG_PTE_PROMOTE
	.comm	_PG_MANAGED,4,2                 ## @PG_MANAGED
	.comm	_workaround_erratum383,8,3      ## @workaround_erratum383
	.comm	_PG_PS_FRAME,4,2                ## @PG_PS_FRAME
	.comm	_pmap_pde_demotions,4,2         ## @pmap_pde_demotions
	.comm	_KTR_PMAP,4,2                   ## @KTR_PMAP
L_.str.5:                               ## @.str.5
	.asciz	"pmap_demote_pde: success for va %#lx in pmap %p"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_pmap_demote_pde_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_demote_pde_locked
_pmap_demote_pde_locked:                ; @pmap_demote_pde_locked
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_pmap_accessed_bit
	mov	x24, x0
	mov	x0, x20
	bl	_pmap_global_bit
	mov	x0, x20
	bl	_pmap_modified_bit
	mov	x28, x0
	mov	x0, x20
	bl	_pmap_rw_bit
	mov	x26, x0
	mov	x0, x20
	bl	_pmap_valid_bit
	mov	x27, x0
	mov	x0, x20
	mov	w1, #0
	bl	_pmap_cache_mask
	mov	x0, x20
	bl	_pmap_pku_mask_bit
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_PMAP_LOCK_ASSERT
Lloh3:
	adrp	x8, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	ldr	w23, [x22]
Lloh6:
	adrp	x8, _PG_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PG_PS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w27
	bics	wzr, w8, w23
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	tst	w23, w24
	b.eq	LBB0_14
; %bb.1:
	str	w28, [sp, #28]                  ; 4-byte Folded Spill
	mov	x0, x20
	mov	x1, x19
	bl	_pmap_remove_pt_page
	mov	x28, x0
	cbz	x0, LBB0_17
LBB0_2:
	stp	x25, x22, [sp]                  ; 16-byte Folded Spill
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x28
	bl	_VM_PAGE_TO_PHYS
	mov	x25, x0
	bl	_PHYS_TO_DMAP
	mov	x21, x0
Lloh11:
	adrp	x8, _PG_U@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PG_U@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	orr	w8, w26, w8
	orr	w9, w8, w24
	orr	w27, w9, w27
	and	w8, w23, w8
	cmp	w8, w26
	cset	w0, ne
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_KASSERT
Lloh16:
	adrp	x8, _PG_PS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PG_PS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w1, w23, w8
	mov	x0, x20
	bl	_pmap_swap_pat
	mov	x24, x0
	ldr	x8, [x28]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x24
	bl	_pmap_fill_ptp
LBB0_4:
	and	w22, w22, w23
	orr	w25, w27, w25
	mov	x0, x21
	mov	x1, x24
	bl	_pmap_demote_pde_check
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _PG_PTE_PROMOTE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PG_PTE_PROMOTE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	eor	w8, w8, w24
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x24
	bl	_pmap_fill_ptp
LBB0_6:
	orr	w21, w25, w22
Lloh22:
	adrp	x24, _PG_MANAGED@GOTPAGE
Lloh23:
	ldr	x24, [x24, _PG_MANAGED@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w23
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b.eq	LBB0_8
; %bb.7:
Lloh24:
	adrp	x8, _NPTEPG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NPTEPG@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	sub	x1, x8, #1
	mov	x0, x20
	mov	x2, x22
	bl	_reserve_pv_entries
LBB0_8:
Lloh27:
	adrp	x8, _workaround_erratum383@GOTPAGE
Lloh28:
	ldr	x8, [x8, _workaround_erratum383@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x25, [sp]                       ; 8-byte Folded Reload
	cbz	x8, LBB0_19
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x21
	bl	_pmap_update_pde
	cmp	x25, x19
	b.gt	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_vtopte
	mov	x1, x0
	mov	x0, x20
	bl	_pmap_invalidate_page
LBB0_11:
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_13
; %bb.12:
Lloh30:
	adrp	x8, _PG_PS_FRAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PG_PS_FRAME@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w2, w8, w23
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_pmap_pv_demote_pde
LBB0_13:
Lloh33:
	adrp	x0, _pmap_pde_demotions@GOTPAGE
Lloh34:
	ldr	x0, [x0, _pmap_pde_demotions@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_long
Lloh35:
	adrp	x8, _KTR_PMAP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _KTR_PMAP@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_CTR2
Lloh40:
	adrp	x8, _TRUE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh42:
	adrp	x8, _PG_W@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PG_W@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w0, eq
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	bl	_pmap_demote_pde_abort
Lloh47:
	adrp	x8, _FALSE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
LBB0_17:
Lloh49:
	adrp	x8, _PG_W@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PG_W@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w0, eq
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	cmp	x25, x19
	b.le	LBB0_20
; %bb.18:
	mov	w0, #1
	b	LBB0_21
LBB0_19:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	bl	_pde_store
	cmp	x25, x19
	b.le	LBB0_10
	b	LBB0_11
LBB0_20:
Lloh54:
	adrp	x8, _DMAP_MIN_ADDRESS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DMAP_MIN_ADDRESS@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	cmp	x8, x19
Lloh57:
	adrp	x8, _DMAP_MAX_ADDRESS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DMAP_MAX_ADDRESS@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ccmp	x8, x19, #4, le
	cset	w0, gt
LBB0_21:
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_pmap_pde_pindex
	mov	x1, x0
Lloh60:
	adrp	x8, _VM_ALLOC_INTERRUPT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _VM_ALLOC_INTERRUPT@GOTPAGEOFF]
Lloh62:
	adrp	x9, _VM_ALLOC_NORMAL@GOTPAGE
Lloh63:
	ldr	x9, [x9, _VM_ALLOC_NORMAL@GOTPAGEOFF]
	cmp	x25, x19
	csel	x8, x9, x8, gt
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh65:
	ldr	x9, [x9, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh67:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh68:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, #0
	bl	_vm_page_alloc
	cbz	x0, LBB0_15
; %bb.22:
	mov	x28, x0
	cmp	x25, x19
	b.le	LBB0_2
; %bb.23:
Lloh70:
	adrp	x8, _NPTEPG@GOTPAGE
Lloh71:
	ldr	x8, [x8, _NPTEPG@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	str	x8, [x28, #8]
	mov	x0, x20
	mov	w1, #1
	bl	_pmap_resident_count_inc
	b	LBB0_2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_PG_PS,4,2                      ; @PG_PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_demote_pde: oldpde is missing PG_PS and/or PG_V"

	.comm	_PG_W,4,2                       ; @PG_W
l_.str.1:                               ; @.str.1
	.asciz	"pmap_demote_pde: a wired mapping is missing PG_A"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"pmap_demote_pde: page table page for a wired mapping is missing"

	.comm	_DMAP_MIN_ADDRESS,8,3           ; @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ; @DMAP_MAX_ADDRESS
	.comm	_VM_ALLOC_INTERRUPT,4,2         ; @VM_ALLOC_INTERRUPT
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_NPTEPG,8,3                     ; @NPTEPG
	.comm	_PG_U,4,2                       ; @PG_U
l_.str.4:                               ; @.str.4
	.asciz	"pmap_demote_pde: oldpde is missing PG_M"

	.comm	_PG_PTE_PROMOTE,4,2             ; @PG_PTE_PROMOTE
	.comm	_PG_MANAGED,4,2                 ; @PG_MANAGED
	.comm	_workaround_erratum383,8,3      ; @workaround_erratum383
	.comm	_PG_PS_FRAME,4,2                ; @PG_PS_FRAME
	.comm	_pmap_pde_demotions,4,2         ; @pmap_pde_demotions
	.comm	_KTR_PMAP,4,2                   ; @KTR_PMAP
l_.str.5:                               ; @.str.5
	.asciz	"pmap_demote_pde: success for va %#lx in pmap %p"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_pmap_demote_pde_locked
.subsections_via_symbols
