	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_object_collapse_scan
_vm_object_collapse_scan:               ## @vm_object_collapse_scan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	24(%rbx), %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	24(%rbx), %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %edi
	callq	_OFF_TO_IDX
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_OBSC_COLLAPSE_WAIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_OBJ_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vm_object_set_flag
LBB0_2:
	leaq	16(%r15), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_34
## %bb.3:
	movq	%rax, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_vm_object_collapse_scan_wait
	movq	%rax, %r14
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r13
	testq	%r14, %r14
	je	LBB0_34
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r14
	movq	(%r13), %rbx
	movq	%r13, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpq	%r15, 8(%r13)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r13), %rsi
	cmpq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r15
	subq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %r15
	jge	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_vm_page_lookup
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_vm_page_none_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_swap_pager_freespace
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_pmap_page_is_mapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%r13, %rsi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_vm_page_remove
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_vm_page_free
	jmp	LBB0_33
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_vm_page_xunbusy
	jmp	LBB0_33
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_KASSERT
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vm_pager_has_page
	testq	%rax, %rax
	je	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_swap_pager_freespace
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_pmap_page_is_mapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%r13, %rsi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_vm_page_remove
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_vm_page_free
	testq	%r12, %r12
	jne	LBB0_24
	jmp	LBB0_32
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_vm_page_xunbusy
	testq	%r12, %r12
	je	LBB0_32
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_vm_page_xunbusy
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_33
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_vm_page_rename
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_vm_object_collapse_scan_wait
	movq	%rax, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_swap_pager_freespace
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	jmp	LBB0_31
LBB0_34:
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBSC_COLLAPSE_WAIT,4,2         ## @OBSC_COLLAPSE_WAIT
	.comm	_OBJ_DEAD,4,2                   ## @OBJ_DEAD
	.comm	_listq,4,2                      ## @listq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_object_collapse_scan: object mismatch"

	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.no_dead_strip	_vm_object_collapse_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_object_collapse_scan
_vm_object_collapse_scan:               ; @vm_object_collapse_scan
	.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, x1
	mov	x20, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x0, [x20, #24]
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x21, [x20, #24]
	ldr	w0, [x20, #20]
	bl	_OFF_TO_IDX
	mov	x22, x0
Lloh0:
	adrp	x8, _OBSC_COLLAPSE_WAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBSC_COLLAPSE_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OBJ_DEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJ_DEAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vm_object_set_flag
LBB0_2:
	add	x0, x21, #16
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_33
; %bb.3:
	mov	x25, x0
Lloh6:
	adrp	x23, _listq@GOTPAGE
Lloh7:
	ldr	x23, [x23, _listq@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str@PAGE
Lloh9:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	x3, x19
	bl	_vm_object_collapse_scan_wait
	mov	x24, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x24
	cbz	x24, LBB0_33
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x25
	bl	_TAILQ_NEXT
	mov	x24, x0
	ldr	x27, [x25]
	mov	x0, x25
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #8]
	cmp	x8, x21
	cset	w0, eq
	mov	x1, x26
	bl	_KASSERT
	ldr	x1, [x25]
	cmp	x1, x22
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	sub	x28, x27, x22
	cmp	x28, x8
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x28
	bl	_vm_page_lookup
	mov	x26, x0
	cbz	x0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_vm_page_none_valid
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x26
	bl	_KASSERT
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
Lloh10:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	w2, #1
	bl	_swap_pager_freespace
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_pmap_page_is_mapped
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x25
	bl	_KASSERT
	mov	x0, x25
	bl	_vm_page_remove
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_free
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_xunbusy
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	x1, #0
	bl	_KASSERT
	mov	x0, x20
	mov	x1, x28
	mov	x2, #0
	mov	x3, #0
	bl	_vm_pager_has_page
	cbz	x0, LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
Lloh13:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25]
	mov	x0, x21
	mov	w2, #1
	bl	_swap_pager_freespace
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_pmap_page_is_mapped
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x25
	bl	_KASSERT
	mov	x0, x25
	bl	_vm_page_remove
	cbz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_free
	cbnz	x26, LBB0_24
	b	LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_xunbusy
	mov	x0, x20
	mov	x1, x26
	b	LBB0_28
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_xunbusy
	cbz	x26, LBB0_29
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_vm_page_xunbusy
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x28
	bl	_vm_page_rename
	cbz	x0, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_vm_page_xunbusy
	mov	x0, x20
	mov	x1, #0
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x24
	mov	x3, x19
	bl	_vm_object_collapse_scan_wait
	mov	x24, x0
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x26, l_.str@PAGE
Lloh17:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_5
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
Lloh18:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x27
	mov	w2, #1
	bl	_swap_pager_freespace
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	b	LBB0_25
LBB0_33:
	mov	w0, #1
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OBSC_COLLAPSE_WAIT,4,2         ; @OBSC_COLLAPSE_WAIT
	.comm	_OBJ_DEAD,4,2                   ; @OBJ_DEAD
	.comm	_listq,4,2                      ; @listq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_object_collapse_scan: object mismatch"

	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.no_dead_strip	_vm_object_collapse_scan
.subsections_via_symbols
