	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_find_least          ## -- Begin function swap_pager_find_least
	.p2align	4, 0x90
_swap_pager_find_least:                 ## @swap_pager_find_least
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_LOCKED
	movq	(%rbx), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	leaq	12(%rbx), %r15
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_rounddown
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_SWAP_PCTRIE_LOOKUP_GE
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, %rdi
	movl	(%rax), %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_8
## %bb.3:
	movl	(%r12), %esi
	testl	%esi, %esi
	js	LBB0_7
## %bb.4:
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movq	8(%rdi), %rax
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movslq	%edx, %rdx
	addl	%edx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rax,%rdx,8)
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	incl	%ecx
	cmpq	%rsi, %rdx
	jl	LBB0_5
LBB0_7:
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_roundup
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_SWAP_PCTRIE_LOOKUP_GE
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_14
LBB0_8:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	movq	8(%rdi), %rdx
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rcx,8)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_13:
	xorl	%edi, %edi
	callq	_MPASS
LBB0_14:
	movl	8(%rbx), %ecx
LBB0_15:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	addl	(%rdi), %ecx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_SWAP_META_PAGES,4,2            ## @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ## @SWAPBLK_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_find_least          ; -- Begin function swap_pager_find_least
	.p2align	2
_swap_pager_find_least:                 ; @swap_pager_find_least
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_VM_OBJECT_ASSERT_LOCKED
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	add	x21, x19, #12
Lloh3:
	adrp	x22, _SWAP_META_PAGES@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SWAP_META_PAGES@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rounddown
	mov	x1, x0
	mov	x0, x21
	bl	_SWAP_PCTRIE_LOOKUP_GE
	cbz	x0, LBB0_13
; %bb.2:
	ldr	w11, [x0]
	cmp	w11, w20
	b.ge	LBB0_8
; %bb.3:
	ldr	w1, [x22]
	tbnz	w1, #31, LBB0_7
; %bb.4:
	sdiv	w8, w20, w1
	msub	w12, w8, w1, w20
	ldr	x8, [x0, #8]
Lloh5:
	adrp	x9, _SWAPBLK_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SWAPBLK_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sxtw	x10, w12
	add	w0, w11, w12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x10, lsl #3]
	cmp	x11, x9
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	add	w0, w0, #1
	cmp	x10, x1
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_roundup
	mov	x1, x0
	mov	x0, x21
	bl	_SWAP_PCTRIE_LOOKUP_GE
	cbz	x0, LBB0_13
LBB0_8:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x9, #0
	ldr	x10, [x0, #8]
Lloh8:
	adrp	x11, _SWAPBLK_NONE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SWAPBLK_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	x12, x11
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_12:
	mov	w0, #0
	bl	_MPASS
LBB0_13:
	ldr	w0, [x19, #8]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w8, [x0]
	add	w0, w8, w9
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_SWAP_META_PAGES,4,2            ; @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ; @SWAPBLK_NONE
.subsections_via_symbols
