	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_todo_list                 ## -- Begin function edit_todo_list
	.p2align	4, 0x90
_edit_todo_list:                        ## @edit_todo_list
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_rebase_path_todo
	movq	%rbx, %r8
	movq	%rax, %rbx
	testq	%r13, %r13
	setne	%al
	testq	%r8, %r8
	setne	%cl
	andb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	_todo_list_parse_insn_buffer
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_2:
	movq	_TODO_LIST_SHORTEN_IDS@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_TODO_LIST_APPEND_TODO_HELP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movl	$-1, %r9d
	callq	_todo_list_write_to_file
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_3:
	movb	-41(%rbp), %r15b                ## 1-byte Reload
	testb	%r15b, %r15b
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_rebase_path_todo_backup
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_copy_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rebase_path_todo_backup
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_launch_sequence_editor
	movq	%rax, %rcx
	movl	$-2, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_strbuf_stripspace
	testb	%r15b, %r15b
	je	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
	leal	(%rax,%rax,2), %eax
	addl	$-3, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_todo_list_parse_insn_buffer    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ## @TODO_LIST_SHORTEN_IDS
	.comm	_TODO_LIST_APPEND_TODO_HELP,4,2 ## @TODO_LIST_APPEND_TODO_HELP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"could not copy '%s' to '%s'."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_todo_list                 ; -- Begin function edit_todo_list
	.p2align	2
_edit_todo_list:                        ; @edit_todo_list
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	bl	_rebase_path_todo
	mov	x21, x0
	cmp	x23, #0
	ccmp	x22, #0, #4, ne
	cset	w26, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x24, #8]
	mov	x0, x20
	mov	x2, x24
	bl	_todo_list_parse_insn_buffer
LBB0_2:
Lloh0:
	adrp	x8, _TODO_LIST_SHORTEN_IDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TODO_LIST_SHORTEN_IDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w25
Lloh3:
	adrp	x9, _TODO_LIST_APPEND_TODO_HELP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TODO_LIST_APPEND_TODO_HELP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w6, w8, w9
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	w5, #-1
	bl	_todo_list_write_to_file
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_error_errno
LBB0_4:
	cbz	w26, LBB0_7
; %bb.5:
	bl	_rebase_path_todo_backup
	mov	x1, x21
	mov	w2, #438
	bl	_copy_file
	cbz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
	bl	_rebase_path_todo_backup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_error
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	bl	_launch_sequence_editor
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #-2
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	bl	_strbuf_stripspace
	cbz	w26, LBB0_12
; %bb.10:
	ldr	x8, [x19]
	cmp	x8, #0
	mov	w8, #-3
	csel	w0, w8, wzr, eq
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	x2, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_todo_list_parse_insn_buffer
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ; @TODO_LIST_SHORTEN_IDS
	.comm	_TODO_LIST_APPEND_TODO_HELP,4,2 ; @TODO_LIST_APPEND_TODO_HELP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"could not copy '%s' to '%s'."

.subsections_via_symbols
