	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_todo_list_add_exec_commands    ## -- Begin function todo_list_add_exec_commands
	.p2align	4, 0x90
_todo_list_add_exec_commands:           ## @todo_list_add_exec_commands
	.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
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movl	(%rsi), %edi
	movl	$32, %esi
	callq	_xcalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$16, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strbuf_addstr
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movq	_TODO_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbx)
	movq	%r14, -16(%rbx)
	leaq	5(%r14), %rax
	movq	%rax, -8(%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	-5(%rcx), %rax
	movq	%rax, (%rbx)
	addq	%rcx, %r14
	incq	%r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	incq	%r13
	movslq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.4:
	movq	8(%r13), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	leal	1(%r13), %esi
	xorl	%edi, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movslq	%r13d, %rcx
	shlq	$5, %rcx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movups	(%rax,%rbx), %xmm0
	movups	16(%rax,%rbx), %xmm1
	movups	%xmm1, 16(%rcx)
	movups	%xmm0, (%rcx)
	movq	_TODO_MERGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	movl	$1, %edx
	cmovel	%edx, %r12d
	movq	_TODO_PICK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	cmovel	%edx, %r12d
	incq	%r14
	movslq	(%r13), %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx), %r15d
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
	callq	_is_fixup
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, %esi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movslq	%r13d, %r13
	movq	%r13, %rdi
	shlq	$5, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_COPY_ARRAY
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %r13d
	jmp	LBB0_7
LBB0_12:
	testl	%r12d, %r12d
	setne	%al
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_14:
	testb	%al, %al
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_17
## %bb.15:
	cmpl	%ecx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_17:
	movl	(%r15), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addl	%ebx, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movslq	%ebx, %rdi
	shlq	$5, %rdi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_COPY_ARRAY
	addl	(%r15), %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_free
	movq	8(%r13), %rdi
	callq	_FREE_AND_NULL
	movq	$0, 8(%r13)
	movl	%ebx, (%r13)
	movl	$0, 4(%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_EXEC,4,2                  ## @TODO_EXEC
	.comm	_TODO_PICK,4,2                  ## @TODO_PICK
	.comm	_TODO_MERGE,4,2                 ## @TODO_MERGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_todo_list_add_exec_commands    ; -- Begin function todo_list_add_exec_commands
	.p2align	2
_todo_list_add_exec_commands:           ; @todo_list_add_exec_commands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	x22, x0
	ldr	x25, [x22, #16]!
	ldr	w0, [x1]
	mov	w1, #32
	bl	_xcalloc
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	add	x27, x21, #16
Lloh0:
	adrp	x28, _TODO_EXEC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TODO_EXEC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x23, [x8, x26, lsl #3]
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strbuf_addstr
	mov	x0, x22
	mov	w1, #10
	bl	_strbuf_addch
	ldr	w8, [x28]
	stur	w8, [x27, #-16]
	add	x8, x25, #5
	sub	x9, x24, #5
	stp	x25, x8, [x27, #-8]
	str	x9, [x27, #8]
	add	x8, x25, x24
	add	x25, x8, #1
	add	x26, x26, #1
	ldrsw	x8, [x20]
	add	x27, x27, #32
	cmp	x26, x8
	b.lt	LBB0_2
LBB0_3:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	mov	w9, #0
	mov	w21, #0
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x26, _TODO_PICK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TODO_PICK@GOTPAGEOFF]
Lloh4:
	adrp	x27, _TODO_MERGE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TODO_MERGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w28, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x21
	add	w21, w21, #1
	mov	x0, #0
	mov	x1, x21
	mov	w2, #0
	bl	_ALLOC_GROW
	sbfiz	x9, x22, #5, #32
	ldr	x8, [x19, #8]
	add	x10, x8, x24
	ldp	q0, q1, [x10]
	stp	q0, q1, [x9]
	ldr	w9, [x26]
	ldr	w10, [x27]
	cmp	w23, w10
	ccmp	w23, w9, #4, ne
	csinc	w9, w28, wzr, ne
	add	x25, x25, #1
	ldrsw	x10, [x19]
	add	x24, x24, #32
	cmp	x25, x10
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x8, x24]
	cbz	w9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_is_fixup
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w28, #1
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	add	w1, w8, w21
	mov	x0, #0
	mov	w2, #0
	bl	_ALLOC_GROW
	sbfiz	x0, x21, #5, #32
	ldr	w2, [x20]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_COPY_ARRAY
	mov	w28, #0
	ldr	w8, [x20]
	add	w21, w8, w21
	b	LBB0_6
LBB0_11:
	cmp	w9, #0
	cset	w8, ne
	tbz	w8, #0, LBB0_13
	b	LBB0_15
LBB0_12:
	mov	w21, #0
	mov	w8, #0
	tbnz	w8, #0, LBB0_15
LBB0_13:
	cmp	w21, w10
	b.eq	LBB0_15
; %bb.14:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_16
LBB0_15:
	ldr	w8, [x20]
	add	w1, w8, w21
	mov	x0, #0
	mov	w2, #0
	bl	_ALLOC_GROW
	mov	x8, x21
	sbfiz	x0, x8, #5, #32
	ldr	w2, [x20]
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_COPY_ARRAY
	ldr	w8, [x20]
	add	w21, w8, w21
LBB0_16:
	mov	x0, x22
	bl	_free
	ldr	x0, [x19, #8]
	bl	_FREE_AND_NULL
	str	xzr, [x19, #8]
	stp	w21, wzr, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_EXEC,4,2                  ; @TODO_EXEC
	.comm	_TODO_PICK,4,2                  ; @TODO_PICK
	.comm	_TODO_MERGE,4,2                 ; @TODO_MERGE
.subsections_via_symbols
