	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unload_user_metafile           ## -- Begin function unload_user_metafile
	.p2align	4, 0x90
_unload_user_metafile:                  ## @unload_user_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	cmpl	$2, (%r15)
	jl	LBB0_3
## %bb.1:
	movq	_users@GOTPCREL(%rip), %rax
	movq	%rbx, %rsi
	subq	(%rax), %rsi
	shrq	$3, %rsi
	movq	_user_table@GOTPCREL(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ltbl_get_rev
	movl	%eax, %r14d
	cmpl	$3, (%r15)
	jl	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_fprintf
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_user_loaded
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movl	(%rbx), %eax
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_unbind_user_metafile
	movl	$1, %ebx
	cmpl	$3, (%r15)
	jl	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_fprintf
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	$2, (%r15)
	jl	LBB0_9
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_fprintf
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_assert
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_user_table,4,2                 ## @user_table
	.comm	_users,8,3                      ## @users
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unload_user_metafile (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot unload user metafile (%d)\n"

	.comm	_allocated_metafile_bytes,4,2   ## @allocated_metafile_bytes
L_.str.2:                               ## @.str.2
	.asciz	"unload_user_metafile (%d) END\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unload_user_metafile           ; -- Begin function unload_user_metafile
	.p2align	2
_unload_user_metafile:                  ; @unload_user_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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x21, _verbosity@GOTPAGE
Lloh1:
	ldr	x21, [x21, _verbosity@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _users@GOTPAGE
Lloh3:
	ldr	x8, [x8, _users@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x8, x19, x8
	lsr	x1, x8, #3
Lloh5:
	adrp	x0, _user_table@GOTPAGE
Lloh6:
	ldr	x0, [x0, _user_table@GOTPAGEOFF]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ltbl_get_rev
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_3:
	cbnz	x19, LBB0_5
	b	LBB0_9
LBB0_4:
	mov	w20, #0
	cbz	x19, LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_user_loaded
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _allocated_metafile_bytes@GOTPAGE
Lloh13:
	ldr	x9, [x9, _allocated_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	bl	_unbind_user_metafile
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_8:
	mov	w0, #1
	b	LBB0_12
LBB0_9:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_user_table,4,2                 ; @user_table
	.comm	_users,8,3                      ; @users
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unload_user_metafile (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot unload user metafile (%d)\n"

	.comm	_allocated_metafile_bytes,4,2   ; @allocated_metafile_bytes
l_.str.2:                               ; @.str.2
	.asciz	"unload_user_metafile (%d) END\n"

.subsections_via_symbols
