	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_todo_list_write_to_file        ## -- Begin function todo_list_write_to_file
	.p2align	4, 0x90
_todo_list_write_to_file:               ## @todo_list_write_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	16(%rbp), %ebx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movl	%r9d, %ecx
	movl	%ebx, %r8d
	callq	_todo_list_to_strbuf
	movq	_TODO_LIST_APPEND_TODO_HELP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TODO_LIST_KEEP_EMPTY@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_count_commands
	leaq	-48(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_append_todo_help
LBB0_2:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_write_message
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_TODO_LIST_APPEND_TODO_HELP,4,2 ## @TODO_LIST_APPEND_TODO_HELP
	.comm	_TODO_LIST_KEEP_EMPTY,4,2       ## @TODO_LIST_KEEP_EMPTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_todo_list_write_to_file        ; -- Begin function todo_list_write_to_file
	.p2align	2
_todo_list_write_to_file:               ; @todo_list_write_to_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x6
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x2, sp, #8
	mov	x3, x5
	mov	x4, x6
	bl	_todo_list_to_strbuf
Lloh3:
	adrp	x8, _TODO_LIST_APPEND_TODO_HELP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TODO_LIST_APPEND_TODO_HELP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TODO_LIST_KEEP_EMPTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TODO_LIST_KEEP_EMPTY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w22, w8, w22
	mov	x0, x23
	bl	_count_commands
	mov	x1, x0
	add	x4, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_append_todo_help
LBB0_2:
	ldp	w1, w0, [sp, #8]
	mov	x2, x19
	mov	w3, #0
	bl	_write_message
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_TODO_LIST_APPEND_TODO_HELP,4,2 ; @TODO_LIST_APPEND_TODO_HELP
	.comm	_TODO_LIST_KEEP_EMPTY,4,2       ; @TODO_LIST_KEEP_EMPTY
.subsections_via_symbols
