	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_page_remove          ## -- Begin function vm_object_page_remove
	.p2align	4, 0x90
_vm_object_page_remove:                 ## @vm_object_page_remove
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	_OBJ_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_OBJPR_CLEANONLY@GOTPCREL(%rip), %rax
	movq	_OBJPR_NOTMAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	orl	%ecx, %eax
	andl	%r14d, %eax
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	movq	%rbx, %rsi
	callq	_KASSERT
	cmpq	$0, 8(%rbx)
	je	LBB0_29
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vm_object_pip_add
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vm_page_find_least
	testq	%rax, %rax
	je	LBB0_28
## %bb.5:
	movq	%rax, %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_vm_page_sleep_if_busy
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vm_page_find_least
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_28
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, (%r13)
	jge	LBB0_28
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_wired
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_OBJPR_NOTMAPPED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_pmap_remove_all
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_OBJPR_CLEANONLY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_invalid
	movq	%r13, %rdi
	callq	_vm_page_undirty
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r13), %eax
	sete	%dil
	movq	%r13, %rsi
	callq	_KASSERT
	movq	_OBJPR_CLEANONLY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_none_valid
	testl	%eax, %eax
	je	LBB0_19
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_OBJPR_NOTMAPPED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_free
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r13
	testq	%r12, %r12
	jne	LBB0_6
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_try_remove_all
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_11
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_OBJPR_NOTMAPPED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r13)
	jne	LBB0_16
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_try_remove_write
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_11
LBB0_28:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_object_pip_wakeup           ## TAILCALL
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_UNMANAGED,4,2              ## @OBJ_UNMANAGED
	.comm	_OBJPR_CLEANONLY,4,2            ## @OBJPR_CLEANONLY
	.comm	_OBJPR_NOTMAPPED,4,2            ## @OBJPR_NOTMAPPED
	.comm	_listq,4,2                      ## @listq
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"vmopar"

	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_page_remove          ; -- Begin function vm_object_page_remove
	.p2align	2
_vm_object_page_remove:                 ; @vm_object_page_remove
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _OBJ_UNMANAGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_UNMANAGED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x26, _OBJPR_CLEANONLY@GOTPAGE
Lloh4:
	ldr	x26, [x26, _OBJPR_CLEANONLY@GOTPAGEOFF]
Lloh5:
	adrp	x27, _OBJPR_NOTMAPPED@GOTPAGE
Lloh6:
	ldr	x27, [x27, _OBJPR_NOTMAPPED@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	and	w8, w8, w19
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	mov	x1, x21
	bl	_KASSERT
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_28
; %bb.4:
	mov	x0, x21
	mov	w1, #1
	bl	_vm_object_pip_add
	mov	x0, x21
	mov	x1, x22
	bl	_vm_page_find_least
	cbz	x0, LBB0_27
; %bb.5:
	mov	x24, x0
Lloh7:
	adrp	x28, _listq@GOTPAGE
Lloh8:
	ldr	x28, [x28, _listq@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.1@PAGE
Lloh10:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_vm_page_sleep_if_busy
	mov	x0, x21
	mov	x1, x22
	bl	_vm_page_find_least
	mov	x24, x0
	cbz	x0, LBB0_27
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24]
	cmp	x8, x20
	b.ge	LBB0_27
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
	mov	x0, x24
	bl	_TAILQ_NEXT
	mov	x25, x0
	mov	x0, x24
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_wired
	cbz	x0, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	tst	w8, w19
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_pmap_remove_all
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	tst	w8, w19
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_invalid
	mov	x0, x24
	bl	_vm_page_undirty
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_xunbusy
	mov	x24, x25
	cbnz	x25, LBB0_7
	b	LBB0_27
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24, #8]
Lloh11:
	adrp	x9, _PG_FICTITIOUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PG_FICTITIOUS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	mov	x1, x24
	bl	_KASSERT
	ldr	w8, [x26]
	tst	w8, w19
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_none_valid
	cbz	w0, LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_free
	mov	x24, x25
	cbnz	x25, LBB0_7
	b	LBB0_27
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_try_remove_all
	cbnz	w0, LBB0_20
	b	LBB0_11
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_16
	b	LBB0_19
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_vm_page_try_remove_write
	cbnz	w0, LBB0_24
	b	LBB0_11
LBB0_27:
	mov	x0, x21
	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
	b	_vm_object_pip_wakeup
LBB0_28:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_UNMANAGED,4,2              ; @OBJ_UNMANAGED
	.comm	_OBJPR_CLEANONLY,4,2            ; @OBJPR_CLEANONLY
	.comm	_OBJPR_NOTMAPPED,4,2            ; @OBJPR_NOTMAPPED
	.comm	_listq,4,2                      ; @listq
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"vmopar"

	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
.subsections_via_symbols
