	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_metafile_unload_LRU            ## -- Begin function metafile_unload_LRU
	.p2align	4, 0x90
_metafile_unload_LRU:                   ## @metafile_unload_LRU
	.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	_prev_use@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_MAX_METAFILES@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpq	%rax, (%rcx,%rax,8)
	je	LBB0_5
## %bb.1:
	movq	_use_query_fails@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	(%rcx,%rax,8), %rdi
	movslq	%edi, %rbx
	cmpq	%rax, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_metafile_unload
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	(%r12)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movslq	%edi, %rbx
	cmpq	(%r13), %rbx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_metafiles_unload_LRU@GOTPCREL(%rip), %rax
	incl	(%rax)
	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	_prev_use,8,3                   ## @prev_use
	.comm	_MAX_METAFILES,8,3              ## @MAX_METAFILES
	.comm	_use_query_fails,8,3            ## @use_query_fails
	.comm	_metafiles_unload_LRU,4,2       ## @metafiles_unload_LRU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_metafile_unload_LRU            ; -- Begin function metafile_unload_LRU
	.p2align	2
_metafile_unload_LRU:                   ; @metafile_unload_LRU
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _prev_use@GOTPAGE
Lloh1:
	ldr	x19, [x19, _prev_use@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _MAX_METAFILES@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_METAFILES@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x9
	b.eq	LBB0_4
; %bb.1:
Lloh4:
	adrp	x21, _use_query_fails@GOTPAGE
Lloh5:
	ldr	x21, [x21, _use_query_fails@GOTPAGEOFF]
	str	xzr, [x21]
	ldr	x0, [x8, x9, lsl #3]
	sxtw	x22, w0
	cmp	x22, x9
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_metafile_unload
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldr	x8, [x19]
	ldr	x0, [x8, x22, lsl #3]
	sxtw	x22, w0
	ldr	x8, [x20]
	cmp	x22, x8
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _metafiles_unload_LRU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _metafiles_unload_LRU@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_prev_use,8,3                   ; @prev_use
	.comm	_MAX_METAFILES,8,3              ; @MAX_METAFILES
	.comm	_use_query_fails,8,3            ; @use_query_fails
	.comm	_metafiles_unload_LRU,4,2       ; @metafiles_unload_LRU
.subsections_via_symbols
