	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_pv_chunk
_free_pv_chunk:                         ## @free_pv_chunk
	.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, %r14
	movq	_pc_lru@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pv_chunks@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	__NPCPV@GOTPCREL(%rip), %rax
	movq	_pv_entry_spare@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	(%rax), %edx
	movl	%edx, (%rcx)
	movslq	%edx, %rdi
	callq	_PV_STAT
	movq	_pc_chunk_count@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leal	-1(%rdi), %ecx
	movl	%ecx, (%rax)
	callq	_PV_STAT
	movq	_pc_chunk_frees@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
	callq	_PV_STAT
	movl	%r14d, %edi
	callq	_pmap_kextract
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_pmap_qremove
	movl	%ebx, %edi
	callq	_vm_page_unwire_noq
	movl	%ebx, %edi
	callq	_vm_page_free
	movq	_pv_vafree@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pmap_pte2list_free             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pv_chunks,4,2                  ## @pv_chunks
	.comm	_pc_lru,4,2                     ## @pc_lru
	.comm	__NPCPV,8,3                     ## @_NPCPV
	.comm	_pv_entry_spare,4,2             ## @pv_entry_spare
	.comm	_pc_chunk_count,4,2             ## @pc_chunk_count
	.comm	_pc_chunk_frees,4,2             ## @pc_chunk_frees
	.comm	_pv_vafree,4,2                  ## @pv_vafree
	.no_dead_strip	_free_pv_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_pv_chunk
_free_pv_chunk:                         ; @free_pv_chunk
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _pc_lru@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pc_lru@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, _pv_chunks@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pv_chunks@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
Lloh5:
	adrp	x8, __NPCPV@GOTPAGE
Lloh6:
	ldr	x8, [x8, __NPCPV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _pv_entry_spare@GOTPAGE
Lloh9:
	ldr	x9, [x9, _pv_entry_spare@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	sxtw	x0, w8
	bl	_PV_STAT
Lloh10:
	adrp	x8, _pc_chunk_count@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pc_chunk_count@GOTPAGEOFF]
	ldrsw	x0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_PV_STAT
Lloh12:
	adrp	x8, _pc_chunk_frees@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pc_chunk_frees@GOTPAGEOFF]
	ldrsw	x0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	bl	_PV_STAT
	mov	x0, x19
	bl	_pmap_kextract
	bl	_PHYS_TO_VM_PAGE
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pmap_qremove
	mov	x0, x20
	bl	_vm_page_unwire_noq
	mov	x0, x20
	bl	_vm_page_free
Lloh14:
	adrp	x0, _pv_vafree@GOTPAGE
Lloh15:
	ldr	x0, [x0, _pv_vafree@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pmap_pte2list_free
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pv_chunks,4,2                  ; @pv_chunks
	.comm	_pc_lru,4,2                     ; @pc_lru
	.comm	__NPCPV,8,3                     ; @_NPCPV
	.comm	_pv_entry_spare,4,2             ; @pv_entry_spare
	.comm	_pc_chunk_count,4,2             ; @pc_chunk_count
	.comm	_pc_chunk_frees,4,2             ; @pc_chunk_frees
	.comm	_pv_vafree,4,2                  ; @pv_vafree
	.no_dead_strip	_free_pv_chunk
.subsections_via_symbols
