	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rebase_todolist
_read_rebase_todolist:                  ## @read_rebase_todolist
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_git_path
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_git_path
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_die_errno
LBB0_3:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_strbuf_getline_lf
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	movq	%r15, %rdi
	callq	_fclose
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-48(%rbp), %rbx
	movq	_comment_line_char@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_getline_lf
	testl	%eax, %eax
	jne	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_trim
	cmpq	$0, -40(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_abbrev_sha1_in_line
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_string_list_append
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"Could not open file %s for reading"

	.comm	_comment_line_char,8,3          ## @comment_line_char
	.no_dead_strip	_read_rebase_todolist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rebase_todolist
_read_rebase_todolist:                  ; @read_rebase_todolist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_git_path
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.1:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _ENOENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #-1
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_git_path
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die_errno
LBB0_4:
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline_lf
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_fclose
	mov	x0, sp
	bl	_strbuf_release
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh17:
	adrp	x21, _comment_line_char@GOTPAGE
Lloh18:
	ldr	x21, [x21, _comment_line_char@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline_lf
	cbnz	w0, LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	bl	_strbuf_trim
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	bl	_abbrev_sha1_in_line
	ldr	x1, [sp]
	mov	x0, x19
	bl	_string_list_append
	b	LBB0_8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"Could not open file %s for reading"

	.comm	_comment_line_char,8,3          ; @comment_line_char
	.no_dead_strip	_read_rebase_todolist
.subsections_via_symbols
