	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_object_scan_all_shadowed
_vm_object_scan_all_shadowed:           ## @vm_object_scan_all_shadowed
	.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
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	24(%rbx), %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_2:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %edi
	callq	_OFF_TO_IDX
	movq	%rax, %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vm_page_find_least
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_swap_pager_find_least
	movq	%rax, %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vm_pager_has_page
	testl	%eax, %eax
	je	LBB0_12
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, (%rbx)
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r15
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_MIN
	movq	%rax, %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpq	%r14, %r15
	jge	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	cmpq	%r14, %r15
	jge	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_swap_pager_find_least
	movq	%rax, %r15
	testq	%rbx, %rbx
	jne	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %r15
	jge	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
	subq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	8(%r12), %r13
	jge	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_vm_page_lookup
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_vm_page_none_valid
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_11:
	movl	$1, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_listq,4,2                      ## @listq
	.no_dead_strip	_vm_object_scan_all_shadowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_object_scan_all_shadowed
_vm_object_scan_all_shadowed:           ; @vm_object_scan_all_shadowed
	.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, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x0, [x19, #24]
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x20, [x19, #24]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _OBJT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _OBJT_SWAP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OBJT_SWAP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_OFF_TO_IDX
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_vm_page_find_least
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_swap_pager_find_least
	mov	x23, x0
Lloh6:
	adrp	x26, _listq@GOTPAGE
Lloh7:
	ldr	x26, [x26, _listq@GOTPAGEOFF]
	mov	x24, x21
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, #0
	mov	x3, #0
	bl	_vm_pager_has_page
	cbz	w0, LBB0_17
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cmp	x8, x24
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_TAILQ_NEXT
	mov	x22, x0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x24
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_swap_pager_find_least
	mov	x23, x0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22]
	mov	x1, x23
	bl	_MIN
	mov	x24, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	mov	x24, x23
	cmp	x23, x8
	b.ge	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	sub	x25, x24, x21
	cmp	x25, x8
	b.ge	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_vm_page_lookup
	cbz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_vm_page_none_valid
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_listq,4,2                      ; @listq
	.no_dead_strip	_vm_object_scan_all_shadowed
.subsections_via_symbols
