	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SlruSelectLRUPage
_SlruSelectLRUPage:                     ## @SlruSelectLRUPage
	.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	$56, %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, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %rdi
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rcx
	movq	(%rdi), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r15d, (%rcx,%rbx,4)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r14), %rsi
	cmpq	%rdx, (%rsi,%rbx,8)
	je	LBB0_6
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	48(%r14), %esi
	leal	1(%rsi), %eax
	movl	%eax, 48(%r14)
	movl	$-1, %r9d
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$-1, %r10d
	xorl	%ebx, %ebx
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rdx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_22
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	movq	(%rax,%r12,8), %rax
	cmpq	(%rdi), %rax
	je	LBB0_26
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	24(%r14), %rcx
	movl	%esi, %r15d
	subl	(%rcx,%r12,4), %r15d
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%esi, (%rcx,%r12,4)
	xorl	%r15d, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r14), %rcx
	movl	(%rcx,%r12,4), %r13d
	cmpl	32(%r14), %r13d
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpq	(%rdx), %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%r10d, %r15d
	jg	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r13d, %edi
	movl	%r11d, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	callq	*(%rax)
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rdx
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r12d, %ebx
	movl	%r15d, %r10d
	movl	%r13d, %r11d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%r9d, %r15d
	jg	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r13d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	callq	*(%rax)
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rdx
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %rdi
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	48(%r14)
	xorl	%r8d, %r8d
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r8d, %esi
	callq	_SimpleLruWaitIO
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r10d, %r10d
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	js	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r14), %rax
	movslq	%ebx, %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_SlruInternalWritePage
	jmp	LBB0_1
LBB0_26:
	movl	%r12d, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLRU_PAGE_EMPTY,8,3            ## @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ## @SLRU_PAGE_VALID
	.no_dead_strip	_SlruSelectLRUPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SlruSelectLRUPage
_SlruSelectLRUPage:                     ; @SlruSelectLRUPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x22, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
Lloh2:
	adrp	x12, _SLRU_PAGE_VALID@GOTPAGE
Lloh3:
	ldr	x12, [x12, _SLRU_PAGE_VALID@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #0
	b.le	LBB0_22
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, #0
	ldr	x9, [x26, #8]
	ldr	x10, [x22]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x21, x21, #1
	cmp	x8, x21
	b.eq	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9, x21, lsl #2]
	cmp	w11, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x11, [x26, #16]
	ldr	x11, [x11, x21, lsl #3]
	cmp	x11, x10
	b.eq	LBB0_3
	b	LBB0_28
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, #0
	mov	w27, #0
	mov	w1, #0
	mov	w2, #0
	mov	w21, #0
	ldr	w20, [x26, #48]
	add	w8, w20, #1
	str	w8, [x26, #48]
	mov	w11, #-1
	mov	w13, #-1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x28
	mov	x11, x24
	mov	x27, x25
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_24
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26, #16]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [x26, #24]
	ldr	w10, [x9, x28, lsl #2]
	subs	w24, w20, w10
	b.pl	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w24, #0
	str	w20, [x9, x28, lsl #2]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [x26, #8]
	ldr	w25, [x9, x28, lsl #2]
	ldr	w9, [x26, #32]
	cmp	w25, w9
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [x12]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w24, w13
	b.gt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	b.ne	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x0, x25
	stp	w13, w1, [sp]                   ; 8-byte Folded Spill
	mov	x1, x2
	mov	x22, x2
	mov	x23, x27
	mov	x27, x11
	blr	x8
	ldp	w13, w1, [sp]                   ; 8-byte Folded Reload
	mov	x11, x27
	mov	x27, x23
	mov	x2, x22
Lloh4:
	adrp	x22, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
Lloh6:
	adrp	x12, _SLRU_PAGE_VALID@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SLRU_PAGE_VALID@GOTPAGEOFF]
	cbz	x0, LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x21, x28
	mov	x13, x24
	mov	x2, x25
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w24, w11
	b.gt	LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	b.ne	LBB0_8
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x0, x25
	stp	w13, w1, [sp]                   ; 8-byte Folded Spill
	mov	x1, x27
	mov	x22, x2
	mov	x23, x11
	blr	x8
	ldp	w13, w1, [sp]                   ; 8-byte Folded Reload
	mov	x2, x22
Lloh8:
	adrp	x22, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
Lloh10:
	adrp	x12, _SLRU_PAGE_VALID@GOTPAGE
Lloh11:
	ldr	x12, [x12, _SLRU_PAGE_VALID@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x11, x23
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #0
	ldr	w8, [x26, #48]
	add	w8, w8, #1
	str	w8, [x26, #48]
LBB0_23:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_SimpleLruWaitIO
	b	LBB0_1
LBB0_24:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w13, #31, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26, #40]
	ldr	w8, [x8, w21, sxtw #2]
	cbz	w8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, #0
	bl	_SlruInternalWritePage
	b	LBB0_1
LBB0_27:
	mov	x21, x28
LBB0_28:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SLRU_PAGE_EMPTY,8,3            ; @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ; @SLRU_PAGE_VALID
	.no_dead_strip	_SlruSelectLRUPage
.subsections_via_symbols
