	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pqbatch_process_page
_vm_pqbatch_process_page:               ## @vm_pqbatch_process_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRITICAL_ASSERT
	movq	%r15, %rdi
	callq	_vm_pagequeue_assert_locked
	leaq	8(%r14), %rdi
	callq	_atomic_load_8
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_vm_page_pagequeue
	cmpq	%r15, %rax
	sete	%al
	movq	_PGA_QUEUE_STATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movslq	%r12d, %rbx
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_PGA_DEQUEUE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_PGA_ENQUEUED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%r12d, %eax
	setne	%dil
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vm_pagequeue_remove
LBB0_3:
	movq	%r14, %rdi
	callq	_vm_page_dequeue_complete
	jmp	LBB0_13
LBB0_4:
	movq	_PGA_REQUEUE@GOTPCREL(%rip), %rcx
	movq	_PGA_REQUEUE_HEAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	testl	%r12d, %eax
	je	LBB0_5
## %bb.6:
	movq	_PGA_ENQUEUED@GOTPCREL(%rip), %r13
	testl	%r12d, (%r13)
	je	LBB0_8
## %bb.7:
	movq	_plinks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	testl	%r12d, (%rbx)
	je	LBB0_11
LBB0_10:
	movq	(%r14), %rax
	movq	_PQ_INACTIVE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	callq	_vm_pagequeue_domain
	movq	_plinks@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_BEFORE
	jmp	LBB0_12
LBB0_5:
	movq	_queue_nops@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	callq	_vm_pagequeue_cnt_inc
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_vm_page_aflag_set
	testl	%r12d, (%rbx)
	jne	LBB0_10
LBB0_11:
	movq	_plinks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_12:
	movl	(%rbx), %esi
	movq	_PGA_REQUEUE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	andl	%r12d, %esi
	movq	%r14, %rdi
	callq	_vm_page_aflag_clear
LBB0_13:
	movq	_queue_ops@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_counter_u64_add                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,4,2                  ## @curthread
	.comm	_PGA_QUEUE_STATE_MASK,4,2       ## @PGA_QUEUE_STATE_MASK
	.comm	_PGA_DEQUEUE,4,2                ## @PGA_DEQUEUE
	.comm	_PGA_ENQUEUED,4,2               ## @PGA_ENQUEUED
	.comm	_queue_ops,4,2                  ## @queue_ops
	.comm	_PGA_REQUEUE,4,2                ## @PGA_REQUEUE
	.comm	_PGA_REQUEUE_HEAD,4,2           ## @PGA_REQUEUE_HEAD
	.comm	_plinks,4,2                     ## @plinks
	.comm	_PQ_INACTIVE,8,3                ## @PQ_INACTIVE
	.comm	_queue_nops,4,2                 ## @queue_nops
	.no_dead_strip	_vm_pqbatch_process_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pqbatch_process_page
_vm_pqbatch_process_page:               ; @vm_pqbatch_process_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CRITICAL_ASSERT
	mov	x0, x21
	bl	_vm_pagequeue_assert_locked
	add	x0, x19, #8
	bl	_atomic_load_8
	mov	x20, x0
	mov	x0, x19
	bl	_vm_page_pagequeue
Lloh3:
	adrp	x8, _PGA_QUEUE_STATE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGA_QUEUE_STATE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	ccmp	x0, x21, #4, ne
	cset	w0, eq
	sxtw	x1, w20
	bl	_KASSERT
Lloh6:
	adrp	x8, _PGA_DEQUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGA_DEQUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _PGA_ENQUEUED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PGA_ENQUEUED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w0, ne
	bl	___predict_true
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_vm_pagequeue_remove
LBB0_3:
	mov	x0, x19
	bl	_vm_page_dequeue_complete
	b	LBB0_13
LBB0_4:
Lloh12:
	adrp	x22, _PGA_REQUEUE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _PGA_REQUEUE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh14:
	adrp	x23, _PGA_REQUEUE_HEAD@GOTPAGE
Lloh15:
	ldr	x23, [x23, _PGA_REQUEUE_HEAD@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
Lloh16:
	adrp	x25, _PGA_ENQUEUED@GOTPAGE
Lloh17:
	ldr	x25, [x25, _PGA_ENQUEUED@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh18:
	adrp	x24, _plinks@GOTPAGE
Lloh19:
	ldr	x24, [x24, _plinks@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x19
	bl	_TAILQ_REMOVE
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _queue_nops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _queue_nops@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	mov	x0, x21
	bl	_vm_pagequeue_cnt_inc
	ldr	w1, [x25]
	mov	x0, x19
	bl	_vm_page_aflag_set
LBB0_9:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _PQ_INACTIVE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PQ_INACTIVE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_vm_pagequeue_domain
	ldr	w2, [x24]
	mov	x1, x19
	bl	_TAILQ_INSERT_BEFORE
	b	LBB0_12
LBB0_11:
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
LBB0_12:
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	and	w1, w8, w20
	mov	x0, x19
	bl	_vm_page_aflag_clear
LBB0_13:
Lloh25:
	adrp	x8, _queue_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _queue_ops@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_counter_u64_add
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,4,2                  ; @curthread
	.comm	_PGA_QUEUE_STATE_MASK,4,2       ; @PGA_QUEUE_STATE_MASK
	.comm	_PGA_DEQUEUE,4,2                ; @PGA_DEQUEUE
	.comm	_PGA_ENQUEUED,4,2               ; @PGA_ENQUEUED
	.comm	_queue_ops,4,2                  ; @queue_ops
	.comm	_PGA_REQUEUE,4,2                ; @PGA_REQUEUE
	.comm	_PGA_REQUEUE_HEAD,4,2           ; @PGA_REQUEUE_HEAD
	.comm	_plinks,4,2                     ; @plinks
	.comm	_PQ_INACTIVE,8,3                ; @PQ_INACTIVE
	.comm	_queue_nops,4,2                 ; @queue_nops
	.no_dead_strip	_vm_pqbatch_process_page
.subsections_via_symbols
