	.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
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_letter_delete_time
	movl	$1, %edi
	callq	_flush_all
	movl	$1, %edi
	callq	_dl_close_file
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	2(%rbx), %edi
	callq	_dl_close_file
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_11
## %bb.4:
	movq	_id_to_letter@GOTPCREL(%rip), %rdi
	callq	_map_ll_vptr_free
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	movq	_drive_l_to_letter@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_map_ll_vptr_free
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_task_deletes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vector_free
	movq	_task_id_to_delete_time@GOTPCREL(%rip), %rdi
	callq	_map_ll_int_free
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_memory_buf@GOTPCREL(%rip), %r15
	movq	_header@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_dl_free
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_letter_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAX_LETTER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax), %esi
	addl	$1100, %esi                     ## imm = 0x44C
	callq	_dl_free
	movq	_letter_buf_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %eax
	leal	(%rax,%rax), %esi
	addl	$1100, %esi                     ## imm = 0x44C
	callq	_dl_free
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	leaq	L_.str.1(%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_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Engine restart"

	.comm	_MAX_PRIORITY,4,2               ## @MAX_PRIORITY
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_id_to_letter,4,2               ## @id_to_letter
	.comm	_drive_l_to_letter,8,3          ## @drive_l_to_letter
	.comm	_task_deletes,4,2               ## @task_deletes
	.comm	_task_id_to_delete_time,4,2     ## @task_id_to_delete_time
	.comm	_memory_buf,8,3                 ## @memory_buf
	.comm	_header,8,3                     ## @header
	.comm	_letter_buf,4,2                 ## @letter_buf
	.comm	_MAX_LETTER_SIZE,4,2            ## @MAX_LETTER_SIZE
	.comm	_letter_buf_get,4,2             ## @letter_buf_get
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_letter_delete_time
	mov	w0, #1
	bl	_flush_all
	mov	w0, #1
	bl	_dl_close_file
Lloh2:
	adrp	x19, _MAX_PRIORITY@GOTPAGE
Lloh3:
	ldr	x19, [x19, _MAX_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w20, #2
	bl	_dl_close_file
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _verbosity@GOTPAGE
Lloh5:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.4:
Lloh7:
	adrp	x0, _id_to_letter@GOTPAGE
Lloh8:
	ldr	x0, [x0, _id_to_letter@GOTPAGEOFF]
	bl	_map_ll_vptr_free
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
	mov	x21, #0
Lloh9:
	adrp	x22, _drive_l_to_letter@GOTPAGE
Lloh10:
	ldr	x22, [x22, _drive_l_to_letter@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_map_ll_vptr_free
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
Lloh11:
	adrp	x8, _task_deletes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _task_deletes@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_vector_free
Lloh14:
	adrp	x0, _task_id_to_delete_time@GOTPAGE
Lloh15:
	ldr	x0, [x0, _task_id_to_delete_time@GOTPAGEOFF]
	bl	_map_ll_int_free
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
Lloh16:
	adrp	x21, _memory_buf@GOTPAGE
Lloh17:
	ldr	x21, [x21, _memory_buf@GOTPAGEOFF]
Lloh18:
	adrp	x22, _header@GOTPAGE
Lloh19:
	ldr	x22, [x22, _header@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x9, x20, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x22]
	ldr	w1, [x8, x9]
	bl	_dl_free
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_9
LBB0_10:
Lloh20:
	adrp	x8, _letter_buf@GOTPAGE
Lloh21:
	ldr	x8, [x8, _letter_buf@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x19, _MAX_LETTER_SIZE@GOTPAGE
Lloh24:
	ldr	x19, [x19, _MAX_LETTER_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	add	w1, w8, #1100
	bl	_dl_free
Lloh25:
	adrp	x8, _letter_buf_get@GOTPAGE
Lloh26:
	ldr	x8, [x8, _letter_buf_get@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	add	w1, w8, #1100
	bl	_dl_free
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
	bl	_dl_get_memory_used
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@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_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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Engine restart"

	.comm	_MAX_PRIORITY,4,2               ; @MAX_PRIORITY
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_id_to_letter,4,2               ; @id_to_letter
	.comm	_drive_l_to_letter,8,3          ; @drive_l_to_letter
	.comm	_task_deletes,4,2               ; @task_deletes
	.comm	_task_id_to_delete_time,4,2     ; @task_id_to_delete_time
	.comm	_memory_buf,8,3                 ; @memory_buf
	.comm	_header,8,3                     ; @header
	.comm	_letter_buf,4,2                 ; @letter_buf
	.comm	_MAX_LETTER_SIZE,4,2            ; @MAX_LETTER_SIZE
	.comm	_letter_buf_get,4,2             ; @letter_buf_get
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Memory left: %lld\n"

.subsections_via_symbols
