	.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)
	je	LBB0_11
	.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	_global_bayes@GOTPCREL(%rip), %rdi
	callq	_qhtbl_free
	movq	_user_table@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_users@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_qhtbl_free
	incq	%rbx
	movslq	(%r14), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_index_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_max_words@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	callq	_qfree
	movq	_new_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16000000, %esi                 ## imm = 0xF42400
	callq	_qfree
LBB0_7:
	movq	_bl_head@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	callq	_black_list_do_delete
	jmp	LBB0_9
LBB0_10:
	movl	$4, %esi
	callq	_qfree
	movq	_users@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	shll	$2, %esi
	callq	_qfree
	movq	%r14, %rdi
	callq	_ltbl_free
	movq	_header@GOTPCREL(%rip), %rdi
	callq	_free_header
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_get_memory_used
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_htbl_get_memory
	subq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_fprintf
	xorl	%eax, %eax
	callq	_get_memory_used
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_htbl_get_memory
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_global_bayes,4,2               ## @global_bayes
	.comm	_user_table,4,2                 ## @user_table
	.comm	_users,8,3                      ## @users
	.comm	_index_mode,8,3                 ## @index_mode
	.comm	_buff,8,3                       ## @buff
	.comm	_max_words,4,2                  ## @max_words
	.comm	_new_buff,8,3                   ## @new_buff
	.comm	_bl_head,8,3                    ## @bl_head
	.comm	_header,4,2                     ## @header
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory left: %ld\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]
	cbz	x8, LBB0_11
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_user_LRU_unload
	cmn	w0, #1
	b.ne	LBB0_1
; %bb.2:
Lloh3:
	adrp	x0, _global_bayes@GOTPAGE
Lloh4:
	ldr	x0, [x0, _global_bayes@GOTPAGEOFF]
	bl	_qhtbl_free
Lloh5:
	adrp	x19, _user_table@GOTPAGE
Lloh6:
	ldr	x19, [x19, _user_table@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh7:
	adrp	x20, _users@GOTPAGE
Lloh8:
	ldr	x20, [x20, _users@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	w22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_qhtbl_free
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
Lloh9:
	adrp	x8, _index_mode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _buff@GOTPAGE
Lloh13:
	ldr	x8, [x8, _buff@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
Lloh15:
	adrp	x8, _max_words@GOTPAGE
Lloh16:
	ldr	x8, [x8, _max_words@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	bl	_qfree
Lloh18:
	adrp	x8, _new_buff@GOTPAGE
Lloh19:
	ldr	x8, [x8, _new_buff@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	mov	w1, #9216
	movk	w1, #244, lsl #16
	bl	_qfree
LBB0_7:
Lloh21:
	adrp	x21, _bl_head@GOTPAGE
Lloh22:
	ldr	x21, [x21, _bl_head@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_black_list_do_delete
	b	LBB0_8
LBB0_10:
	mov	w1, #4
	bl	_qfree
	ldr	x0, [x20]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	bl	_qfree
	mov	x0, x19
	bl	_ltbl_free
Lloh23:
	adrp	x0, _header@GOTPAGE
Lloh24:
	ldr	x0, [x0, _header@GOTPAGEOFF]
	bl	_free_header
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	bl	_get_memory_used
	mov	x20, x0
	bl	_htbl_get_memory
	sub	x2, x20, x0
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	bl	_get_memory_used
	mov	x19, x0
	bl	_htbl_get_memory
	cmp	x19, x0
	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_11:
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_global_bayes,4,2               ; @global_bayes
	.comm	_user_table,4,2                 ; @user_table
	.comm	_users,8,3                      ; @users
	.comm	_index_mode,8,3                 ; @index_mode
	.comm	_buff,8,3                       ; @buff
	.comm	_max_words,4,2                  ; @max_words
	.comm	_new_buff,8,3                   ; @new_buff
	.comm	_bl_head,8,3                    ; @bl_head
	.comm	_header,4,2                     ; @header
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory left: %ld\n"

.subsections_via_symbols
