	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pageout_end_scan
_vm_pageout_end_scan:                   ## @vm_pageout_end_scan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_vm_pagequeue_assert_locked
	movq	8(%rbx), %rsi
	movq	_PGA_ENQUEUED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%edi, %edi
	andl	(%rsi), %eax
	setne	%dil
	callq	_KASSERT
	leaq	4(%r14), %rdi
	movq	8(%rbx), %rsi
	movq	_plinks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_TAILQ_REMOVE
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	callq	_vm_page_aflag_clear
	movl	(%rbx), %eax
	addl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGA_ENQUEUED,4,2               ## @PGA_ENQUEUED
	.comm	_plinks,4,2                     ## @plinks
	.no_dead_strip	_vm_pageout_end_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pageout_end_scan
_vm_pageout_end_scan:                   ; @vm_pageout_end_scan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_vm_pagequeue_assert_locked
	ldr	x1, [x19, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x21, _PGA_ENQUEUED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PGA_ENQUEUED@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w0, ne
	bl	_KASSERT
	add	x0, x20, #4
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x8, _plinks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _plinks@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_TAILQ_REMOVE
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
	bl	_vm_page_aflag_clear
	ldr	w8, [x19]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PGA_ENQUEUED,4,2               ; @PGA_ENQUEUED
	.comm	_plinks,4,2                     ; @plinks
	.no_dead_strip	_vm_pageout_end_scan
.subsections_via_symbols
