	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pagequeue_count
_vm_pagequeue_count:                    ## @vm_pagequeue_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_vm_ndomains@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	_vm_dom@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movslq	%edi, %rcx
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	andl	$-4, %r9d
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdi,8), %rdx
	movq	8(%r10,%rdi,8), %rsi
	addq	(%rdx,%rcx,8), %rax
	addq	(%rsi,%rcx,8), %rax
	movq	16(%r10,%rdi,8), %rdx
	addq	(%rdx,%rcx,8), %rax
	movq	24(%r10,%rdi,8), %rdx
	addq	(%rdx,%rcx,8), %rax
	addq	$4, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%r10,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	addq	(%rdi,%rcx,8), %rax
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_ndomains,4,2                ## @vm_ndomains
	.comm	_vm_dom,8,3                     ## @vm_dom
	.no_dead_strip	_vm_pagequeue_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pagequeue_count
_vm_pagequeue_count:                    ; @vm_pagequeue_count
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _vm_ndomains@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vm_ndomains@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _vm_dom@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vm_dom@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	sxtw	x8, w0
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	x0, #0
	b	LBB0_7
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	mov	x14, #0
	mov	x15, #0
	mov	x13, #0
	mov	x12, #0
	and	x11, x9, #0xfffffffc
	add	x16, x10, #16
	lsl	x17, x8, #3
	mov	x0, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x1, x2, [x16, #-16]
	ldp	x3, x4, [x16], #32
	ldr	x1, [x1, x17]
	ldr	x2, [x2, x17]
	ldr	x3, [x3, x17]
	ldr	x4, [x4, x17]
	add	x14, x1, x14
	add	x15, x2, x15
	add	x13, x3, x13
	add	x12, x4, x12
	subs	x0, x0, #4
	b.ne	LBB0_5
; %bb.6:
	add	x14, x15, x14
	add	x13, x13, x14
	add	x0, x12, x13
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x11, [x11, x8, lsl #3]
	add	x0, x11, x0
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_ndomains,4,2                ; @vm_ndomains
	.comm	_vm_dom,8,3                     ; @vm_dom
	.no_dead_strip	_vm_pagequeue_count
.subsections_via_symbols
