	.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	_pv_chunks_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_pc_lru@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pv_chunks@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	__NPCPV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pv_entry_spare@GOTPCREL(%rip), %rdi
	callq	_atomic_subtract_int
	movl	%eax, %edi
	callq	_PV_STAT
	movq	_pc_chunk_count@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_subtract_int
	movl	%eax, %edi
	callq	_PV_STAT
	movq	_pc_chunk_frees@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	movl	%eax, %edi
	callq	_PV_STAT
	movl	%r14d, %edi
	callq	_DMAP_TO_PHYS
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_dump_drop_page
	movq	%rbx, %rdi
	callq	_vm_page_unwire_noq
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_page_free                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pv_chunks_mutex,4,2            ## @pv_chunks_mutex
	.comm	_pv_chunks,4,2                  ## @pv_chunks
	.comm	_pc_lru,4,2                     ## @pc_lru
	.comm	_pv_entry_spare,4,2             ## @pv_entry_spare
	.comm	__NPCPV,4,2                     ## @_NPCPV
	.comm	_pc_chunk_count,4,2             ## @pc_chunk_count
	.comm	_pc_chunk_frees,4,2             ## @pc_chunk_frees
	.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	x20, _pv_chunks_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pv_chunks_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh2:
	adrp	x8, _pc_lru@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pc_lru@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _pv_chunks@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pv_chunks@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_mtx_unlock
Lloh7:
	adrp	x8, __NPCPV@GOTPAGE
Lloh8:
	ldr	x8, [x8, __NPCPV@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, _pv_entry_spare@GOTPAGE
Lloh11:
	ldr	x0, [x0, _pv_entry_spare@GOTPAGEOFF]
	bl	_atomic_subtract_int
	bl	_PV_STAT
Lloh12:
	adrp	x0, _pc_chunk_count@GOTPAGE
Lloh13:
	ldr	x0, [x0, _pc_chunk_count@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_subtract_int
	bl	_PV_STAT
Lloh14:
	adrp	x0, _pc_chunk_frees@GOTPAGE
Lloh15:
	ldr	x0, [x0, _pc_chunk_frees@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_int
	bl	_PV_STAT
	mov	x0, x19
	bl	_DMAP_TO_PHYS
	bl	_PHYS_TO_VM_PAGE
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dump_drop_page
	mov	x0, x19
	bl	_vm_page_unwire_noq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_page_free
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pv_chunks_mutex,4,2            ; @pv_chunks_mutex
	.comm	_pv_chunks,4,2                  ; @pv_chunks
	.comm	_pc_lru,4,2                     ; @pc_lru
	.comm	_pv_entry_spare,4,2             ; @pv_entry_spare
	.comm	__NPCPV,4,2                     ; @_NPCPV
	.comm	_pc_chunk_count,4,2             ; @pc_chunk_count
	.comm	_pc_chunk_frees,4,2             ; @pc_chunk_frees
	.no_dead_strip	_free_pv_chunk
.subsections_via_symbols
