	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function todo_list_to_strbuf
_todo_list_to_strbuf:                   ## @todo_list_to_strbuf
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	cmpl	%ecx, %eax
	movl	%eax, %r14d
	cmovgl	%ecx, %r14d
	testl	%ecx, %ecx
	cmovlel	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	8(%rsi), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	12(%rbx), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_todo_item_get_arg
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	decl	%r14d
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	_TODO_COMMENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_TODO_LIST_ABBREVIATE_CMDS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_command_to_char
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_strbuf_addch
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_command_to_string
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_TODO_LIST_SHORTEN_IDS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_short_commit_name
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_oid_to_hex
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_TODO_MERGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TODO_EDIT_MERGE_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	callq	_strbuf_addstr
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	12(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_todo_item_get_arg
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_COMMENT,8,3               ## @TODO_COMMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s\n"

	.comm	_TODO_LIST_ABBREVIATE_CMDS,4,2  ## @TODO_LIST_ABBREVIATE_CMDS
	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ## @TODO_LIST_SHORTEN_IDS
	.comm	_TODO_MERGE,8,3                 ## @TODO_MERGE
	.comm	_TODO_EDIT_MERGE_MSG,4,2        ## @TODO_EDIT_MERGE_MSG
L_.str.1:                               ## @.str.1
	.asciz	" -c"

L_.str.2:                               ## @.str.2
	.asciz	" -C"

L_.str.3:                               ## @.str.3
	.asciz	" %s"

L_.str.4:                               ## @.str.4
	.asciz	" %.*s\n"

	.no_dead_strip	_todo_list_to_strbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function todo_list_to_strbuf
_todo_list_to_strbuf:                   ; @todo_list_to_strbuf
	.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
	ldr	w8, [x1]
	cmp	w8, w3
	ccmp	w3, #0, #4, gt
	csel	w27, w3, w8, gt
	cmp	w27, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x28, _TODO_COMMENT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TODO_COMMENT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _TODO_LIST_ABBREVIATE_CMDS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TODO_LIST_ABBREVIATE_CMDS@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.3@PAGE
Lloh5:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh6:
	adrp	x25, l_.str@PAGE
Lloh7:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x26, [x22, #12]
	mov	x0, x21
	mov	x1, x22
	bl	_todo_item_get_arg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x26
	bl	_strbuf_addf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #24
	subs	w27, w27, #1
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_command_to_char
	mov	x1, x0
	mov	x0, x20
	bl	_strbuf_addch
	ldr	x0, [x22, #16]
	cbnz	x0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x26, [x22, #12]
	cbz	w26, LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_todo_item_get_arg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_command_to_string
	mov	x1, x0
	mov	x0, x20
	bl	_strbuf_addstr
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _TODO_LIST_SHORTEN_IDS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TODO_LIST_SHORTEN_IDS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_short_commit_name
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_oid_to_hex
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _TODO_MERGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TODO_MERGE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #8]
Lloh16:
	adrp	x9, _TODO_EDIT_MERGE_MSG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TODO_EDIT_MERGE_MSG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
Lloh19:
	adrp	x8, l_.str.1@PAGE
Lloh20:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh21:
	adrp	x9, l_.str.2@PAGE
Lloh22:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x1, x9, x8, eq
	mov	x0, x20
	bl	_strbuf_addstr
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	bl	_strbuf_addf
	ldrsw	x26, [x22, #12]
	cbnz	w26, LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #10
	bl	_strbuf_addch
	b	LBB0_4
LBB0_18:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_COMMENT,8,3               ; @TODO_COMMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s\n"

	.comm	_TODO_LIST_ABBREVIATE_CMDS,4,2  ; @TODO_LIST_ABBREVIATE_CMDS
	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ; @TODO_LIST_SHORTEN_IDS
	.comm	_TODO_MERGE,8,3                 ; @TODO_MERGE
	.comm	_TODO_EDIT_MERGE_MSG,4,2        ; @TODO_EDIT_MERGE_MSG
l_.str.1:                               ; @.str.1
	.asciz	" -c"

l_.str.2:                               ; @.str.2
	.asciz	" -C"

l_.str.3:                               ; @.str.3
	.asciz	" %s"

l_.str.4:                               ; @.str.4
	.asciz	" %.*s\n"

	.no_dead_strip	_todo_list_to_strbuf
.subsections_via_symbols
