	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_pageout_flush               ## -- Begin function vm_pageout_flush
	.p2align	4, 0x90
_vm_pageout_flush:                      ## @vm_pageout_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movl	%esi, %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PGA_WRITEABLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_vm_page_all_valid
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_KASSERT
	movq	(%r14,%rbx,8), %rsi
	movl	(%r13), %eax
	xorl	%edi, %edi
	andl	(%rsi), %eax
	sete	%dil
	callq	_KASSERT
	movq	(%r14,%rbx,8), %rdi
	callq	_vm_page_busy_downgrade
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_vm_object_pip_add
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_vm_pager_put_pages
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_5:
	movl	%ebx, %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	subl	%edx, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_31
## %bb.6:
	testq	%rcx, %rcx
	setne	-49(%rbp)                       ## 1-byte Folded Spill
	movslq	%edx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	negl	%edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %rbx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_object_pip_wakeup
	movq	%r12, %rdi
	callq	_vm_page_sunbusy
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	cmpq	%r13, %rcx
	je	LBB0_32
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13,8), %r12
	movb	$1, %al
	cmpl	$128, (%r15,%r13,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_pmap_page_is_write_mapped
	testl	%eax, %eax
	sete	%al
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movzbl	%al, %edi
	movq	%r12, %rsi
	callq	_KASSERT
	movl	(%r15,%r13,4), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rcx
	movslq	(%rbx,%rax,4), %rax
	addq	%rbx, %rax
	jmpq	*%rax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_lock
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$130, (%r15,%r13,4)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_unswappable
	incl	-56(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_activate
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_unlock
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	setge	%al
	andb	-49(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx)
	cmpl	$128, (%r15,%r13,4)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_lock
	movq	%r12, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_deactivate_noreuse
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_unlock
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	-56(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_30
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_undirty
	movq	%r12, %rdi
	callq	_vm_page_lock
	movq	%r12, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_deactivate_noreuse
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_unlock
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$128, (%r15,%r13,4)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_7
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$128, (%r15,%r13,4)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_31:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_32:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_20
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_24
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_PGA_WRITEABLE,4,2              ## @PGA_WRITEABLE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_OBJT_SWAP,4,2                  ## @OBJT_SWAP
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_pageout_flush               ; -- Begin function vm_pageout_flush
	.p2align	2
_vm_pageout_flush:                      ; @vm_pageout_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, #48
	stp	x4, x5, [x29, #-120]            ; 16-byte Folded Spill
	mov	x26, x3
	mov	x27, x2
	mov	x25, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
	mov	w23, w1
	lsl	x8, x23, #2
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x22
	bl	_VM_OBJECT_ASSERT_WLOCKED
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.1:
Lloh5:
	adrp	x19, _PGA_WRITEABLE@GOTPAGE
Lloh6:
	ldr	x19, [x19, _PGA_WRITEABLE@GOTPAGEOFF]
	mov	x20, x23
	mov	x28, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
	bl	_vm_page_all_valid
	mov	x1, x23
	bl	_KASSERT
	ldr	x1, [x28]
	ldr	w8, [x1]
	ldr	w9, [x19]
	tst	w9, w8
	cset	w0, eq
	bl	_KASSERT
	ldr	x0, [x28], #8
	bl	_vm_page_busy_downgrade
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x22
	mov	x1, x25
	bl	_vm_object_pip_add
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x27
	mov	x4, x24
	bl	_vm_pager_put_pages
	sub	w27, w25, w26
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x9, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x9]
LBB0_5:
	cmp	w25, #1
	b.lt	LBB0_31
; %bb.6:
	mov	x28, #0
	mov	w25, #0
	cmp	x9, #0
	cset	w8, ne
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	sxtw	x20, w26
	neg	w8, w26
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh10:
	adrp	x19, lJTI0_0@PAGE
Lloh11:
	add	x19, x19, lJTI0_0@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_vm_object_pip_wakeup
	mov	x0, x26
	bl	_vm_page_sunbusy
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x28, #1
	cmp	x23, x28
	b.eq	LBB0_32
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, x28, lsl #3]
	ldr	w8, [x24, x28, lsl #2]
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_pmap_page_is_write_mapped
	cmp	w0, #0
	cset	w0, eq
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x26
	bl	_KASSERT
	ldr	w8, [x24, x28, lsl #2]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	adr	x9, LBB0_14
	ldrb	w10, [x19, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_lock
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24, x28, lsl #2]
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_unswappable
	add	w25, w25, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_activate
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_unlock
	cmp	x28, x20
	cset	w8, ge
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	and	w8, w9, w8
	cmp	w8, #1
	b.ne	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	w8, w8, w28
	cmp	w8, w27
	b.ge	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_lock
	mov	x0, x26
	bl	_vm_page_in_laundry
	cbz	w0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_deactivate_noreuse
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_unlock
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_undirty
	mov	x0, x26
	bl	_vm_page_lock
	mov	x0, x26
	bl	_vm_page_in_laundry
	cbz	w0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_deactivate_noreuse
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_vm_page_unlock
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	x28, x20
	b.lt	LBB0_7
; %bb.29:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	w8, w8, w28
	cmp	w8, w27
	csel	w27, w8, w27, lt
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24, x28, lsl #2]
	cmp	w8, #128
	b.ne	LBB0_7
	b	LBB0_8
LBB0_31:
	mov	w25, #0
LBB0_32:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x8, LBB0_34
; %bb.33:
	str	w27, [x8]
LBB0_34:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	x0, x25
	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_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_28-LBB0_14)>>2
                                        ; -- End function
	.comm	_PGA_WRITEABLE,4,2              ; @PGA_WRITEABLE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_OBJT_SWAP,4,2                  ; @OBJT_SWAP
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
