	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_all                       ## -- Begin function free_all
	.p2align	4, 0x90
_free_all:                              ## @free_all
	.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	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_user_LRU_unload
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_write_only@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_user_cnt@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	jne	LBB0_7
## %bb.3:
	movq	_index_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.4:
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.5:
	movl	$1, %r15d
	movl	$4, %ebx
	movq	_users@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_user_unloaded_free
	incq	%r15
	movslq	(%r14), %rsi
	addq	$4, %rbx
	cmpq	%rsi, %r15
	jl	LBB0_6
LBB0_7:
	movq	_users@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dl_free
	movq	_volumes@GOTPCREL(%rip), %rdi
	callq	_map_int_int_free
	movq	_h_users@GOTPCREL(%rip), %rdi
	callq	_set_intp_free
	movq	_header@GOTPCREL(%rip), %rdi
	callq	_free_header
	xorl	%eax, %eax
	callq	_free_types
	xorl	%eax, %eax
	callq	_utils_free
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_write_only,4,2                 ## @write_only
	.comm	_index_mode,4,2                 ## @index_mode
	.comm	_user_cnt,4,2                   ## @user_cnt
	.comm	_users,8,3                      ## @users
	.comm	_volumes,4,2                    ## @volumes
	.comm	_h_users,4,2                    ## @h_users
	.comm	_header,4,2                     ## @header
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory left: %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_all                       ; -- Begin function free_all
	.p2align	2
_free_all:                              ; @free_all
	.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
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_user_LRU_unload
	cmn	w0, #1
	b.ne	LBB0_1
; %bb.2:
Lloh3:
	adrp	x8, _write_only@GOTPAGE
Lloh4:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _index_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x19, _user_cnt@GOTPAGE
Lloh10:
	ldr	x19, [x19, _user_cnt@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w9, #0
	ccmp	w10, #0, #0, eq
	ccmp	w8, #2, #8, eq
Lloh11:
	adrp	x20, _users@GOTPAGE
Lloh12:
	ldr	x20, [x20, _users@GOTPAGEOFF]
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #1
	mov	w22, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_user_unloaded_free
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x20]
	lsl	w1, w8, #2
	bl	_dl_free
Lloh13:
	adrp	x0, _volumes@GOTPAGE
Lloh14:
	ldr	x0, [x0, _volumes@GOTPAGEOFF]
	bl	_map_int_int_free
Lloh15:
	adrp	x0, _h_users@GOTPAGE
Lloh16:
	ldr	x0, [x0, _h_users@GOTPAGEOFF]
	bl	_set_intp_free
Lloh17:
	adrp	x0, _header@GOTPAGE
Lloh18:
	ldr	x0, [x0, _header@GOTPAGEOFF]
	bl	_free_header
	bl	_free_types
	bl	_utils_free
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	bl	_dl_get_memory_used
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	bl	_dl_get_memory_used
	cmp	x0, #0
	cset	w0, eq
	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
	b	_assert
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_write_only,4,2                 ; @write_only
	.comm	_index_mode,4,2                 ; @index_mode
	.comm	_user_cnt,4,2                   ; @user_cnt
	.comm	_users,8,3                      ; @users
	.comm	_volumes,4,2                    ; @volumes
	.comm	_h_users,4,2                    ; @h_users
	.comm	_header,4,2                     ; @header
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory left: %lld\n"

.subsections_via_symbols
