	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcc_cleanup
_tcc_cleanup:                           ## @tcc_cleanup
	.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	_tcc_state@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_free_defines
	movq	_tok_ident@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TOK_IDENT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	_table_ident@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_free
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_3
LBB0_4:
	movq	_table_ident@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	_sym_pools@GOTPCREL(%rip), %rdi
	movq	_nb_sym_pools@GOTPCREL(%rip), %rsi
	callq	_dynarray_reset
	movq	_tokcstr@GOTPCREL(%rip), %rdi
	callq	_cstr_free
	movq	_sym_free_first@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_macro_ptr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcc_state,8,3                  ## @tcc_state
	.comm	_tok_ident,4,2                  ## @tok_ident
	.comm	_TOK_IDENT,4,2                  ## @TOK_IDENT
	.comm	_table_ident,8,3                ## @table_ident
	.comm	_sym_pools,4,2                  ## @sym_pools
	.comm	_nb_sym_pools,4,2               ## @nb_sym_pools
	.comm	_tokcstr,4,2                    ## @tokcstr
	.comm	_sym_free_first,8,3             ## @sym_free_first
	.comm	_macro_ptr,8,3                  ## @macro_ptr
	.no_dead_strip	_tcc_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcc_cleanup
_tcc_cleanup:                           ; @tcc_cleanup
	.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, _tcc_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcc_state@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.1:
	str	xzr, [x8]
	mov	x0, #0
	bl	_free_defines
Lloh2:
	adrp	x8, _tok_ident@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tok_ident@GOTPAGEOFF]
Lloh4:
	adrp	x9, _TOK_IDENT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TOK_IDENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	sub	w8, w8, w9
Lloh8:
	adrp	x19, _table_ident@GOTPAGE
Lloh9:
	ldr	x19, [x19, _table_ident@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	lsl	x21, x8, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_free
	add	x20, x20, #8
	cmp	x21, x20
	b.ne	LBB0_3
LBB0_4:
	ldr	x0, [x19]
	bl	_free
Lloh10:
	adrp	x0, _sym_pools@GOTPAGE
Lloh11:
	ldr	x0, [x0, _sym_pools@GOTPAGEOFF]
Lloh12:
	adrp	x1, _nb_sym_pools@GOTPAGE
Lloh13:
	ldr	x1, [x1, _nb_sym_pools@GOTPAGEOFF]
	bl	_dynarray_reset
Lloh14:
	adrp	x0, _tokcstr@GOTPAGE
Lloh15:
	ldr	x0, [x0, _tokcstr@GOTPAGEOFF]
	bl	_cstr_free
Lloh16:
	adrp	x8, _sym_free_first@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sym_free_first@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _macro_ptr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _macro_ptr@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
LBB0_5:
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tcc_state,8,3                  ; @tcc_state
	.comm	_tok_ident,4,2                  ; @tok_ident
	.comm	_TOK_IDENT,4,2                  ; @TOK_IDENT
	.comm	_table_ident,8,3                ; @table_ident
	.comm	_sym_pools,4,2                  ; @sym_pools
	.comm	_nb_sym_pools,4,2               ; @nb_sym_pools
	.comm	_tokcstr,4,2                    ; @tokcstr
	.comm	_sym_free_first,8,3             ; @sym_free_first
	.comm	_macro_ptr,8,3                  ; @macro_ptr
	.no_dead_strip	_tcc_cleanup
.subsections_via_symbols
