	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SimpleLruZeroPage              ## -- Begin function SimpleLruZeroPage
	.p2align	4, 0x90
_SimpleLruZeroPage:                     ## @SimpleLruZeroPage
	.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, %r15
	movq	(%rdi), %r12
	callq	_SlruSelectLRUPage
	movq	(%r12), %rcx
	movslq	%eax, %rbx
	movq	(%rcx,%rbx,8), %rax
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r12), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_4
LBB0_3:
	movq	16(%r12), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax,%rbx,4)
	sete	%dil
LBB0_4:
	callq	_Assert
	movq	16(%r12), %rax
	movl	%r14d, (%rax,%rbx,4)
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	movl	$1, (%rax,%rbx,4)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_SlruRecentlyUsed
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_MemSet
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SimpleLruZeroLSNs
	movl	%r14d, 24(%r12)
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SimpleLruZeroPage              ; -- Begin function SimpleLruZeroPage
	.p2align	2
_SimpleLruZeroPage:                     ; @SimpleLruZeroPage
	.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, x1
	mov	x21, x0
	ldr	x20, [x0]
	bl	_SlruSelectLRUPage
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20]
	sxtw	x22, w0
	ldr	x8, [x8, w0, sxtw #3]
Lloh0:
	adrp	x9, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w23, #1
Lloh3:
	adrp	x24, _SLRU_PAGE_VALID@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SLRU_PAGE_VALID@GOTPAGEOFF]
	mov	w0, #1
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x22, lsl #2]
	cbz	w8, LBB0_4
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, w19
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	bl	_Assert
	ldr	x8, [x20, #16]
	lsl	x25, x22, #2
	str	w19, [x8, x25]
	ldr	x8, [x24]
	ldp	x9, x10, [x20]
	str	x8, [x9, x22, lsl #3]
	str	w23, [x10, x25]
	mov	x0, x20
	mov	x1, x22
	bl	_SlruRecentlyUsed
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x25]
Lloh5:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_MemSet
	mov	x0, x21
	mov	x1, x22
	bl	_SimpleLruZeroLSNs
	str	w19, [x20, #24]
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SLRU_PAGE_EMPTY,8,3            ; @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ; @SLRU_PAGE_VALID
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
.subsections_via_symbols
