	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_unload                    ## -- Begin function user_unload
	.p2align	4, 0x90
_user_unload:                           ## @user_unload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_user_loaded
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_del_user_used
	movq	%rbx, %rdi
	callq	_unload_user_metafile
	movq	_cur_users@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%rbx, %rdi
	callq	_user_loaded
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_users@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	shrq	$2, %rbx
	movq	_user_table@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_ltbl_get_rev
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_fprintf
	xorl	%edi, %edi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_user_table,4,2                 ## @user_table
	.comm	_users,8,3                      ## @users
	.comm	_cur_users,4,2                  ## @cur_users
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_unload                    ; -- Begin function user_unload
	.p2align	2
_user_unload:                           ; @user_unload
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_user_loaded
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_del_user_used
	mov	x0, x19
	bl	_unload_user_metafile
Lloh0:
	adrp	x8, _cur_users@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cur_users@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_user_loaded
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _users@GOTPAGE
Lloh6:
	ldr	x8, [x8, _users@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x8, x19, x8
	lsr	x1, x8, #2
Lloh8:
	adrp	x0, _user_table@GOTPAGE
Lloh9:
	ldr	x0, [x0, _user_table@GOTPAGEOFF]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ltbl_get_rev
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_user_table,4,2                 ; @user_table
	.comm	_users,8,3                      ; @users
	.comm	_cur_users,4,2                  ; @cur_users
.subsections_via_symbols
