	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function metafile_free
_metafile_free:                         ## @metafile_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	callq	_vkprintf
	movq	%rbx, %rdi
	callq	_del_use
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	leaq	-12(%rbp), %rdx
	movl	$-1, %ecx
	callq	_get_meta_f
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_free
	movq	_metafiles_unloaded@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"metafile_free (%p)\n"

	.comm	_metafiles_unloaded,4,2         ## @metafiles_unloaded
	.no_dead_strip	_metafile_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function metafile_free
_metafile_free:                         ; @metafile_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	bl	_vkprintf
	mov	x0, x19
	bl	_del_use
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x19]
	add	x2, sp, #12
	mov	w3, #-1
	bl	_get_meta_f
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_free
Lloh2:
	adrp	x8, _metafiles_unloaded@GOTPAGE
Lloh3:
	ldr	x8, [x8, _metafiles_unloaded@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"metafile_free (%p)\n"

	.comm	_metafiles_unloaded,4,2         ; @metafiles_unloaded
	.no_dead_strip	_metafile_free
.subsections_via_symbols
