	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_write_expressions_to_file   ## -- Begin function tl_write_expressions_to_file
	.p2align	4, 0x90
_tl_write_expressions_to_file:          ## @tl_write_expressions_to_file
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_TL_SECTION_TYPES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tl_write_list_expressions_free_to_file
	leaq	L_.str.2(%rip), %rdi
	movl	$16, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	_TL_SECTION_FUNCTIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tl_write_list_expressions_free_to_file
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tl_failf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"fopen (\"%s\", \"w\") fail. %m"

	.comm	_TL_SECTION_TYPES,8,3           ## @TL_SECTION_TYPES
L_.str.2:                               ## @.str.2
	.asciz	"---functions---\n"

	.comm	_TL_SECTION_FUNCTIONS,8,3       ## @TL_SECTION_FUNCTIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_write_expressions_to_file   ; -- Begin function tl_write_expressions_to_file
	.p2align	2
_tl_write_expressions_to_file:          ; @tl_write_expressions_to_file
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TL_SECTION_TYPES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TL_SECTION_TYPES@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x1, x19
	bl	_tl_write_list_expressions_free_to_file
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #16
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _TL_SECTION_FUNCTIONS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TL_SECTION_FUNCTIONS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x20
	mov	x1, x19
	bl	_tl_write_list_expressions_free_to_file
	mov	x0, x20
	bl	_fclose
	mov	w0, #0
	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
LBB0_2:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	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	_tl_failf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"fopen (\"%s\", \"w\") fail. %m"

	.comm	_TL_SECTION_TYPES,8,3           ; @TL_SECTION_TYPES
l_.str.2:                               ; @.str.2
	.asciz	"---functions---\n"

	.comm	_TL_SECTION_FUNCTIONS,8,3       ; @TL_SECTION_FUNCTIONS
.subsections_via_symbols
