	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pageout_reinsert_inactive_page
_vm_pageout_reinsert_inactive_page:     ## @vm_pageout_reinsert_inactive_page
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	movq	_PQ_INACTIVE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	_PGA_ENQUEUED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, 8(%rbx)
	jne	LBB0_9
## %bb.2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_vm_page_aflag_set
	movl	8(%rbx), %eax
	movq	_PGA_REQUEUE_HEAD@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_vm_pagequeue_domain
	movq	_plinks@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_BEFORE
	movq	_PGA_REQUEUE@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	jmp	LBB0_6
LBB0_4:
	movq	_PGA_REQUEUE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rdi
	movq	_plinks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	(%r15), %esi
	orl	(%r12), %esi
LBB0_6:
	movq	%rbx, %rdi
	callq	_vm_page_aflag_clear
LBB0_8:
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	movq	_plinks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_BEFORE
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PQ_INACTIVE,8,3                ## @PQ_INACTIVE
	.comm	_PGA_ENQUEUED,4,2               ## @PGA_ENQUEUED
	.comm	_PGA_REQUEUE_HEAD,4,2           ## @PGA_REQUEUE_HEAD
	.comm	_plinks,4,2                     ## @plinks
	.comm	_PGA_REQUEUE,4,2                ## @PGA_REQUEUE
	.no_dead_strip	_vm_pageout_reinsert_inactive_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pageout_reinsert_inactive_page
_vm_pageout_reinsert_inactive_page:     ; @vm_pageout_reinsert_inactive_page
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PQ_INACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PQ_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x9, _PGA_ENQUEUED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGA_ENQUEUED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	tst	w1, w8
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_vm_page_aflag_set
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x21, _PGA_REQUEUE_HEAD@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PGA_REQUEUE_HEAD@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vm_pagequeue_domain
Lloh8:
	adrp	x8, _plinks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _plinks@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_BEFORE
Lloh11:
	adrp	x8, _PGA_REQUEUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGA_REQUEUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x22, _PGA_REQUEUE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _PGA_REQUEUE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	x0, [x20, #8]
Lloh16:
	adrp	x8, _plinks@GOTPAGE
Lloh17:
	ldr	x8, [x8, _plinks@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	ldr	w8, [x22]
LBB0_8:
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_vm_page_aflag_clear
LBB0_9:
	mov	w0, #1
	b	LBB0_3
LBB0_10:
	ldr	x0, [x20]
Lloh19:
	adrp	x8, _plinks@GOTPAGE
Lloh20:
	ldr	x8, [x8, _plinks@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_BEFORE
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PQ_INACTIVE,8,3                ; @PQ_INACTIVE
	.comm	_PGA_ENQUEUED,4,2               ; @PGA_ENQUEUED
	.comm	_PGA_REQUEUE_HEAD,4,2           ; @PGA_REQUEUE_HEAD
	.comm	_plinks,4,2                     ; @plinks
	.comm	_PGA_REQUEUE,4,2                ; @PGA_REQUEUE
	.no_dead_strip	_vm_pageout_reinsert_inactive_page
.subsections_via_symbols
