	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SlruDeleteSegment              ## -- Begin function SlruDeleteSegment
	.p2align	4, 0x90
_SlruDeleteSegment:                     ## @SlruDeleteSegment
	.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
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	(%r13), %eax
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %r14
	movq	_SLRU_PAGES_PER_SEGMENT@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r8d, %r8d
	je	LBB0_13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_SimpleLruWaitIO
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %r8d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rsi
	movq	(%rsi,%rbx,8), %rcx
	movq	(%r14), %rdi
	cmpq	%rdi, %rcx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %eax
	cltd
	idivl	(%r15)
	cmpl	%r12d, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	32(%r13), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_SlruInternalWritePage
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rdi, (%rsi,%rbx,8)
	jmp	LBB0_11
LBB0_13:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	callq	_snprintf
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%rbx, %rdi
	callq	_unlink
	movl	24(%r13), %edi
	callq	_LWLockRelease
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ## @SLRU_PAGES_PER_SEGMENT
	.comm	_SLRU_PAGE_EMPTY,8,3            ## @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ## @SLRU_PAGE_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%04X"

	.comm	_DEBUG2,4,2                     ## @DEBUG2
L_.str.1:                               ## @.str.1
	.asciz	"removing file \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SlruDeleteSegment              ; -- Begin function SlruDeleteSegment
	.p2align	2
_SlruDeleteSegment:                     ; @SlruDeleteSegment
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x0, #8]
Lloh3:
	adrp	x24, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w0, [x23, #24]
Lloh7:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w9, [x23]
Lloh10:
	adrp	x25, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
Lloh12:
	adrp	x26, _SLRU_PAGES_PER_SEGMENT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SLRU_PAGES_PER_SEGMENT@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SLRU_PAGE_VALID@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SLRU_PAGE_VALID@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_13
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
	mov	w8, #0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_SimpleLruWaitIO
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x22, x22, #1
	ldrsw	x9, [x23]
	cmp	x22, x9
	b.ge	LBB0_1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x23, #16]
	ldr	x11, [x9, x22, lsl #3]
	ldr	x10, [x25]
	cmp	x11, x10
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x12, [x23, #8]
	ldr	w12, [x12, x22, lsl #2]
	ldr	w13, [x26]
	sdiv	w12, w12, w13
	cmp	w12, w20
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x12, [x27]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x23, #32]
	ldr	w11, [x11, x22, lsl #2]
	cbz	w11, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	bl	_SlruInternalWritePage
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x10, [x9, x22, lsl #3]
	b	LBB0_6
LBB0_13:
	ldr	w1, [x24]
	ldr	x3, [x21]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_snprintf
Lloh18:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x0, x19
	bl	_unlink
	ldr	w0, [x23, #24]
	bl	_LWLockRelease
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	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
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ; @SLRU_PAGES_PER_SEGMENT
	.comm	_SLRU_PAGE_EMPTY,8,3            ; @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ; @SLRU_PAGE_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%04X"

	.comm	_DEBUG2,4,2                     ; @DEBUG2
l_.str.1:                               ; @.str.1
	.asciz	"removing file \"%s\""

.subsections_via_symbols
