	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LruDelete
_LruDelete:                             ## @LruDelete
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_Assert
	movq	_LOG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_VfdCache@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leaq	(,%r12,4), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	8(%rax,%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_elog
	movl	%eax, %edi
	callq	_DO_DB
	movq	(%r14), %r15
	leaq	(%r15,%rbx), %r14
	addq	$4, %r14
	movl	4(%r15,%rbx), %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r13, %rcx
	leaq	(%r12,%r12,2), %r13
	movq	_FD_TEMP_FILE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %edi
	testl	%eax, (%r15,%r13,4)
	jne	LBB0_3
## %bb.2:
	callq	_data_sync_elevel
	movl	%eax, %edi
LBB0_3:
	movslq	8(%r15,%r13,4), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	movq	_VFD_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_nfile@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Delete                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LruDelete %d (%s)"

	.comm	_VfdCache,8,3                   ## @VfdCache
	.comm	_FD_TEMP_FILE_LIMIT,4,2         ## @FD_TEMP_FILE_LIMIT
L_.str.1:                               ## @.str.1
	.asciz	"could not close file \"%s\": %m"

	.comm	_VFD_CLOSED,4,2                 ## @VFD_CLOSED
	.comm	_nfile,4,2                      ## @nfile
	.no_dead_strip	_LruDelete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LruDelete
_LruDelete:                             ; @LruDelete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
Lloh0:
	adrp	x21, _LOG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LOG@GOTPAGEOFF]
Lloh2:
	adrp	x20, _VfdCache@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VfdCache@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x20]
	add	x9, x19, x19, lsl #1
	lsl	x23, x9, #2
	add	x8, x8, x23
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
	bl	_DO_DB
	ldr	x22, [x20]
	add	x20, x22, x23
	ldr	w0, [x20, #4]!
	bl	_close
	cbz	x0, LBB0_4
; %bb.1:
	mov	w8, #12
	mul	x8, x19, x8
	ldr	w8, [x22, x8]
Lloh6:
	adrp	x9, _FD_TEMP_FILE_LIMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FD_TEMP_FILE_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w0, [x21]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	bl	_data_sync_elevel
LBB0_3:
	mov	w8, #12
	madd	x8, x19, x8, x22
	ldrsw	x2, [x8, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
Lloh11:
	adrp	x8, _VFD_CLOSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VFD_CLOSED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh14:
	adrp	x8, _nfile@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nfile@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_Delete
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LruDelete %d (%s)"

	.comm	_VfdCache,8,3                   ; @VfdCache
	.comm	_FD_TEMP_FILE_LIMIT,4,2         ; @FD_TEMP_FILE_LIMIT
l_.str.1:                               ; @.str.1
	.asciz	"could not close file \"%s\": %m"

	.comm	_VFD_CLOSED,4,2                 ; @VFD_CLOSED
	.comm	_nfile,4,2                      ; @nfile
	.no_dead_strip	_LruDelete
.subsections_via_symbols
