	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_object_page_collect_flush
_vm_object_page_collect_flush:          ## @vm_object_page_collect_flush
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MA_NOTOWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vm_page_lock_assert
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_vm_page_assert_xbusied
	movl	%r15d, %edi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	$1, %r15d
	cmpl	$2, (%r12)
	jl	LBB0_7
## %bb.1:
	movl	$1, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_next
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_vm_object_page_remove_write
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_2
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_vm_page_xunbusy
LBB0_7:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_8
## %bb.9:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	%r15d, %r14d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	movq	%rcx, %rdi
	callq	_vm_page_prev
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_vm_object_page_remove_write
	testl	%eax, %eax
	je	LBB0_14
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	movl	%ebx, %r12d
	incl	%r12d
	leal	(%r15,%rbx), %eax
	incl	%eax
	movl	%r12d, %ebx
	movq	%r13, %rcx
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_10
	jmp	LBB0_17
LBB0_8:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, %r14d
	jmp	LBB0_17
LBB0_12:
	movq	%r12, %r13
	jmp	LBB0_16
LBB0_14:
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
LBB0_15:
	addl	%ebx, %r15d
	movq	%r12, %r13
	movl	%r15d, %r14d
LBB0_16:
	movl	%ebx, %r12d
LBB0_17:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, (%r15,%rbx,8)
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r13
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_18
## %bb.19:
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_vm_pageout_flush
	movl	-72(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_pageout_page_count,4,2      ## @vm_pageout_page_count
	.comm	_MA_NOTOWNED,4,2                ## @MA_NOTOWNED
	.comm	_listq,4,2                      ## @listq
	.no_dead_strip	_vm_object_page_collect_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_object_page_collect_flush
_vm_object_page_collect_flush:          ; @vm_object_page_collect_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	stur	x5, [x29, #-104]                ; 8-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _vm_pageout_page_count@GOTPAGE
Lloh4:
	ldr	x28, [x28, _vm_pageout_page_count@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _MA_NOTOWNED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MA_NOTOWNED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_vm_page_lock_assert
	mov	x0, x22
	bl	_vm_page_assert_xbusied
	mov	x0, x25
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w8, [x28]
	mov	w26, #1
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x25, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_vm_page_next
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_vm_object_page_remove_write
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	ldr	w8, [x28]
	cmp	w26, w8
	b.lt	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	x0, x25
	bl	_vm_page_xunbusy
LBB0_7:
	ldr	w8, [x28]
	cmp	w26, w8
	b.ge	LBB0_13
; %bb.8:
	mov	w25, #0
	mov	x19, x26
	mov	x27, x22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	bl	_vm_page_prev
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x22, x0
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_vm_object_page_remove_write
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	add	w19, w19, #1
	ldr	w8, [x28]
	add	w9, w26, w25
	cmp	w9, w8
	mov	x27, x22
	b.lt	LBB0_9
	b	LBB0_17
LBB0_13:
	mov	w25, #0
	mov	x19, x26
	b	LBB0_17
LBB0_14:
	mov	x0, x22
	bl	_vm_page_xunbusy
LBB0_15:
	add	w19, w26, w25
LBB0_16:
	mov	x22, x27
LBB0_17:
	mov	x23, #0
	mov	w8, w19
	lsl	x24, x8, #3
Lloh10:
	adrp	x26, _listq@GOTPAGE
Lloh11:
	ldr	x26, [x26, _listq@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [x21, x23]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_TAILQ_NEXT
	mov	x22, x0
	add	x23, x23, #8
	cmp	x24, x23
	b.ne	LBB0_18
; %bb.19:
	sub	x4, x29, #92
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x25
	ldur	x5, [x29, #-104]                ; 8-byte Folded Reload
	bl	_vm_pageout_flush
	ldur	w0, [x29, #-92]
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_pageout_page_count,4,2      ; @vm_pageout_page_count
	.comm	_MA_NOTOWNED,4,2                ; @MA_NOTOWNED
	.comm	_listq,4,2                      ; @listq
	.no_dead_strip	_vm_object_page_collect_flush
.subsections_via_symbols
