	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_ps_test                ## -- Begin function vm_page_ps_test
	.p2align	4, 0x90
_vm_page_ps_test:                       ## @vm_page_ps_test
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
	cmpq	%r12, (%rdx)
	jne	LBB0_14
LBB0_2:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_VM_OBJECT_ASSERT_LOCKED
	movq	_pagesizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_atop
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:
	movl	%eax, %r14d
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rbx
	decq	%r14
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rbx)
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %rbx
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PS_NONE_BUSY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %r15
	movq	%rdx, %r12
	callq	_vm_page_busied
	movq	%r12, %rdx
	movq	%r15, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_PS_ALL_DIRTY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PS_ALL_VALID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rax
	cmpq	(%rdx), %rax
	je	LBB0_12
	jmp	LBB0_14
LBB0_13:
	movl	$1, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pagesizes,8,3                  ## @pagesizes
	.comm	_PS_NONE_BUSY,4,2               ## @PS_NONE_BUSY
	.comm	_PS_ALL_DIRTY,4,2               ## @PS_ALL_DIRTY
	.comm	_VM_PAGE_BITS_ALL,8,3           ## @VM_PAGE_BITS_ALL
	.comm	_PS_ALL_VALID,4,2               ## @PS_ALL_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_ps_test                ; -- Begin function vm_page_ps_test
	.p2align	2
_vm_page_ps_test:                       ; @vm_page_ps_test
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x22
	b.ne	LBB0_13
LBB0_2:
	mov	x0, x22
	bl	_VM_OBJECT_ASSERT_LOCKED
Lloh0:
	adrp	x8, _pagesizes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pagesizes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_atop
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w23, w0
Lloh3:
	adrp	x24, _PS_NONE_BUSY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PS_NONE_BUSY@GOTPAGEOFF]
Lloh5:
	adrp	x25, _PS_ALL_DIRTY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PS_ALL_DIRTY@GOTPAGEOFF]
Lloh7:
	adrp	x26, _PS_ALL_VALID@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PS_ALL_VALID@GOTPAGEOFF]
Lloh9:
	adrp	x27, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #32
	subs	x23, x23, #1
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, x19
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_vm_page_busied
	cbnz	x0, LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pagesizes,8,3                  ; @pagesizes
	.comm	_PS_NONE_BUSY,4,2               ; @PS_NONE_BUSY
	.comm	_PS_ALL_DIRTY,4,2               ; @PS_ALL_DIRTY
	.comm	_VM_PAGE_BITS_ALL,8,3           ; @VM_PAGE_BITS_ALL
	.comm	_PS_ALL_VALID,4,2               ; @PS_ALL_VALID
.subsections_via_symbols
