	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LruInsert
_LruInsert:                             ## @LruInsert
	.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), %r15
	movl	(%r15), %edi
	movq	_VfdCache@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	(%r12,%r12,2), %r13
	movl	16(%rax,%r13,8), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_elog
	movl	%eax, %edi
	callq	_DO_DB
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_FileIsNotOpen
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_ReleaseLruFiles
	movl	16(%rbx,%r13,8), %edi
	movl	8(%rbx,%r13,8), %edx
	movl	12(%rbx,%r13,8), %esi
	callq	_BasicOpenFilePerm
	movq	%rax, (%rbx,%r13,8)
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	_nfile@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movq	%r12, %rdi
	callq	_Insert
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	movl	%eax, %edi
	callq	_DO_DB
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LruInsert %d (%s)"

	.comm	_VfdCache,8,3                   ## @VfdCache
L_.str.1:                               ## @.str.1
	.asciz	"re-open failed: %m"

	.comm	_nfile,4,2                      ## @nfile
	.no_dead_strip	_LruInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LruInsert
_LruInsert:                             ; @LruInsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
Lloh0:
	adrp	x20, _LOG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LOG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _VfdCache@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VfdCache@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	w8, [x8, #16]
	stp	x19, x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	bl	_DO_DB
	ldr	x21, [x21]
	mov	x0, x19
	bl	_FileIsNotOpen
	cbz	x0, LBB0_3
; %bb.1:
	bl	_ReleaseLruFiles
	mov	w8, #24
	madd	x21, x19, x8, x21
	ldp	w1, w0, [x21, #12]
	ldr	w2, [x21, #8]
	bl	_BasicOpenFilePerm
	str	x0, [x21]
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _nfile@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nfile@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
	mov	x0, x19
	bl	_Insert
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	bl	_DO_DB
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LruInsert %d (%s)"

	.comm	_VfdCache,8,3                   ; @VfdCache
l_.str.1:                               ; @.str.1
	.asciz	"re-open failed: %m"

	.comm	_nfile,4,2                      ; @nfile
	.no_dead_strip	_LruInsert
.subsections_via_symbols
