	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _pmap_unwire_ptp
__pmap_unwire_ptp:                      ## @_pmap_unwire_ptp
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movq	(%rbx), %rax
	movq	_NUPDE@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_NUPDPE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	jge	LBB0_1
## %bb.4:
	cmpq	%rcx, %rax
	jge	LBB0_5
## %bb.6:
	callq	_pmap_pde
	movq	$0, (%rax)
	jmp	LBB0_7
LBB0_1:
	callq	_pmap_pml4e
	movl	$0, (%rax)
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.2:
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jl	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	callq	_pmap_pml4e_index
	movl	$0, (%r12,%rax,4)
	jmp	LBB0_7
LBB0_5:
	callq	_pmap_pdpe
	movl	$0, (%rax)
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pmap_resident_count_dec
	movq	%rbx, %r12
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pmap_pdpe
	movq	_PG_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_pmap_unwire_ptp
	movq	(%r12), %rax
	movq	(%r14), %rcx
LBB0_9:
	cmpq	%rcx, %rax
	jl	LBB0_12
## %bb.10:
	movq	_NUPDPE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pmap_pml4e
	movq	_PG_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_pmap_unwire_ptp
LBB0_12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_add_delayed_free_list     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_NUPDE,8,3                      ## @NUPDE
	.comm	_NUPDPE,8,3                     ## @NUPDPE
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	__pmap_unwire_ptp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _pmap_unwire_ptp
__pmap_unwire_ptp:                      ; @_pmap_unwire_ptp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
	ldr	x8, [x20]
Lloh3:
	adrp	x24, _NUPDE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NUPDE@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh5:
	adrp	x23, _NUPDPE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NUPDPE@GOTPAGEOFF]
	ldr	x10, [x23]
	add	x10, x10, x9
	mov	x0, x22
	mov	x1, x21
	cmp	x8, x10
	b.ge	LBB0_3
; %bb.1:
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.2:
	bl	_pmap_pde
	str	xzr, [x0]
	b	LBB0_7
LBB0_3:
	bl	_pmap_pml4e
	str	wzr, [x0]
	ldr	x25, [x22]
	cbz	x25, LBB0_7
; %bb.4:
Lloh7:
	adrp	x8, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x21
	b.lt	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_pmap_pml4e_index
	str	wzr, [x25, x0, lsl #2]
	b	LBB0_7
LBB0_6:
	bl	_pmap_pdpe
	str	wzr, [x0]
LBB0_7:
	mov	x0, x22
	mov	w1, #1
	bl	_pmap_resident_count_dec
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x1, x21
	bl	_pmap_pdpe
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PHYS_TO_VM_PAGE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_pmap_unwire_ptp
	ldr	x8, [x20]
	ldr	x9, [x24]
LBB0_9:
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.10:
	ldr	x10, [x23]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x21
	bl	_pmap_pml4e
	ldr	w8, [x0]
Lloh13:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PHYS_TO_VM_PAGE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_pmap_unwire_ptp
LBB0_12:
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pmap_add_delayed_free_list
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_NUPDE,8,3                      ; @NUPDE
	.comm	_NUPDPE,8,3                     ; @NUPDPE
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	__pmap_unwire_ptp
.subsections_via_symbols
