	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unload_metafile                ## -- Begin function unload_metafile
	.p2align	4, 0x90
_unload_metafile:                       ## @unload_metafile
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_large_metafiles@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %r14
	movq	%r14, %rbx
	shlq	$4, %rbx
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rax,%rbx)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, (%rax,%rbx)
	je	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_del_use
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	movq	_large_users@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r14,4), %esi
	subl	(%rax,%r14,4), %esi
	shll	$3, %esi
	callq	_metafile_free
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx)
	movq	_metafiles_loaded@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_metafiles_unloaded@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_assert
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_large_metafiles,8,3            ## @large_metafiles
	.comm	_large_users,8,3                ## @large_users
	.comm	_metafiles_loaded,4,2           ## @metafiles_loaded
	.comm	_metafiles_unloaded,4,2         ## @metafiles_unloaded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unload_metafile                ; -- Begin function unload_metafile
	.p2align	2
_unload_metafile:                       ; @unload_metafile
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x19, _large_metafiles@GOTPAGE
Lloh1:
	ldr	x19, [x19, _large_metafiles@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x9, x8, w0, sxtw #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	sxtw	x21, w0
	lsl	x20, x21, #4
	ldr	x8, [x8, x20]
	cbz	x8, LBB0_5
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_del_use
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
Lloh2:
	adrp	x8, _large_users@GOTPAGE
Lloh3:
	ldr	x8, [x8, _large_users@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, x21, lsl #2
	ldp	w8, w9, [x8]
	sub	w8, w9, w8
	lsl	w1, w8, #3
	bl	_metafile_free
	ldr	x8, [x19]
	str	xzr, [x8, x20]
Lloh5:
	adrp	x8, _metafiles_loaded@GOTPAGE
Lloh6:
	ldr	x8, [x8, _metafiles_loaded@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh7:
	adrp	x8, _metafiles_unloaded@GOTPAGE
Lloh8:
	ldr	x8, [x8, _metafiles_unloaded@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
LBB0_4:
	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_5:
	mov	w0, #0
	bl	_assert
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_large_metafiles,8,3            ; @large_metafiles
	.comm	_large_users,8,3                ; @large_users
	.comm	_metafiles_loaded,4,2           ; @metafiles_loaded
	.comm	_metafiles_unloaded,4,2         ; @metafiles_unloaded
.subsections_via_symbols
