	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unload_metafiles
_unload_metafiles:                      ## @unload_metafiles
	.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
	movl	%edi, %r14d
	movq	_lru_meta_lst@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %r15
	movq	%r15, %rbx
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %r12
	addq	%rbx, %rax
	xorl	%r13d, %r13d
	cmpq	%rax, %r12
	je	LBB0_6
## %bb.1:
	movq	_metafile_bucket_bytes@GOTPCREL(%rip), %rcx
	movq	_max_metafiles_bytes@GOTPCREL(%rip), %rdx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	cmpq	(%rdx), %rcx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rdi)
	movq	8(%rdi), %r12
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	cmpq	%rax, %r12
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_metafile_free
	movq	_max_metafiles_bytes@GOTPCREL(%rip), %rdx
	movq	_metafile_bucket_bytes@GOTPCREL(%rip), %rcx
	movq	_lru_meta_lst@GOTPCREL(%rip), %rax
	incl	%r13d
	movq	(%rax), %rax
	addq	%rbx, %rax
	cmpq	%rax, %r12
	jne	LBB0_2
	jmp	LBB0_10
LBB0_6:
	movq	_metafile_bucket_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %r8
	movq	_max_metafiles_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	jle	LBB0_10
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.8:
	movq	_metafiles@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vkprintf                       ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lru_meta_lst,8,3               ## @lru_meta_lst
	.comm	_metafile_bucket_bytes,8,3      ## @metafile_bucket_bytes
	.comm	_max_metafiles_bytes,8,3        ## @max_metafiles_bytes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unload_metafile: max_metafiles_bytes = %d, metafile_bucket_bytes[%d] = %d, metafiles = %d\n"

	.comm	_metafiles,4,2                  ## @metafiles
	.no_dead_strip	_unload_metafiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unload_metafiles
_unload_metafiles:                      ; @unload_metafiles
	.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, x0
Lloh0:
	adrp	x23, _lru_meta_lst@GOTPAGE
Lloh1:
	ldr	x23, [x23, _lru_meta_lst@GOTPAGEOFF]
	ldr	x8, [x23]
	sxtw	x20, w19
	add	x8, x8, w0, sxtw #4
	ldr	x25, [x8, #8]
Lloh2:
	adrp	x22, _metafile_bucket_bytes@GOTPAGE
Lloh3:
	ldr	x22, [x22, _metafile_bucket_bytes@GOTPAGEOFF]
Lloh4:
	adrp	x21, _max_metafiles_bytes@GOTPAGE
Lloh5:
	ldr	x21, [x21, _max_metafiles_bytes@GOTPAGEOFF]
	cmp	x25, x8
	b.eq	LBB0_7
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x9, [x22]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x10, [x21]
	cmp	x9, x10
	b.le	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x25, [x0]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x25
	cmp	x25, x8
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_metafile_free
	add	w24, w24, #1
	ldr	x8, [x23]
	add	x8, x8, x20, lsl #4
	cmp	x25, x8
	b.ne	LBB0_2
	b	LBB0_9
LBB0_7:
	mov	w24, #0
LBB0_8:
	ldr	x8, [x22]
	ldr	x4, [x8, x20, lsl #3]
	ldr	x2, [x21]
	cmp	x4, x2
	ccmp	w24, #0, #0, gt
	b.eq	LBB0_10
LBB0_9:
	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
LBB0_10:
Lloh6:
	adrp	x8, _metafiles@GOTPAGE
Lloh7:
	ldr	x8, [x8, _metafiles@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x3, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vkprintf
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lru_meta_lst,8,3               ; @lru_meta_lst
	.comm	_metafile_bucket_bytes,8,3      ; @metafile_bucket_bytes
	.comm	_max_metafiles_bytes,8,3        ; @max_metafiles_bytes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unload_metafile: max_metafiles_bytes = %d, metafile_bucket_bytes[%d] = %d, metafiles = %d\n"

	.comm	_metafiles,4,2                  ; @metafiles
	.no_dead_strip	_unload_metafiles
.subsections_via_symbols
