	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_complete_action                ## -- Begin function complete_action
	.p2align	4, 0x90
_complete_action:                       ## @complete_action
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %r12
	movl	32(%rbp), %r14d
	xorl	%eax, %eax
	callq	_rebase_path_todo
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_TODO_LIST_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	_DEFAULT_ABBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_find_unique_abbrev
	movq	%rax, %rbx
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	%r12, %rdi
	callq	_append_new_todo
	movq	_TODO_NOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	movq	$0, 32(%rax)
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	callq	_todo_list_rearrange_squash
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_27
LBB0_4:
	movq	24(%rbp), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_todo_list_add_exec_commands
LBB0_6:
	movq	%r12, %rdi
	callq	_count_commands
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	leaq	-80(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rcx
	movq	%rbx, %r8
	movl	%r15d, %r9d
	callq	_edit_todo_list
	cmpl	$-3, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.12:
	cmpl	$-2, %r14d
	jne	LBB0_15
## %bb.13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_apply_autostash
	movq	%rbx, %rdi
	callq	_sequencer_remove_state
	movl	$-1, %r14d
	jmp	LBB0_27
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_apply_autostash
	movq	%rbx, %rdi
	callq	_sequencer_remove_state
	jmp	LBB0_8
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_apply_autostash
	movq	%rbx, %rdi
	callq	_sequencer_remove_state
	leaq	-80(%rbp), %rdi
	callq	_todo_list_release
LBB0_8:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	__
	movq	%rax, %rdi
	callq	_error
LBB0_26:
	movl	%eax, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	16(%rbp), %r14
	movl	-72(%rbp), %esi
	leaq	-80(%rbp), %rdx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_todo_list_parse_insn_buffer
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_todo_list_check
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_edit_todo_list_advice@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_fprintf
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %r8
	callq	_checkout_onto
	leaq	-80(%rbp), %rdi
	callq	_todo_list_release
	movl	$-1, %r14d
	jmp	LBB0_27
LBB0_18:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, (%r12)
	je	LBB0_21
## %bb.19:
	leaq	-80(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_skip_unnecessary_picks
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	-80(%rbp), %rdi
	callq	_todo_list_release
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_21:
	movq	_TODO_LIST_SHORTEN_IDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r15d, %eax
	movl	%eax, (%rsp)
	leaq	-80(%rbp), %rsi
	movl	$-1, %r14d
	movq	%r13, %rdi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$-1, %r9d
	callq	_todo_list_write_to_file
	movq	%rax, %rbx
	leaq	-80(%rbp), %rdi
	callq	_todo_list_release
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.22:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_error_errno
	jmp	LBB0_26
LBB0_23:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	callq	_checkout_onto
	testq	%rax, %rax
	jne	LBB0_27
## %bb.24:
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_require_clean_work_tree
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_sequencer_continue
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_LIST_INIT,16,3            ## @TODO_LIST_INIT
	.comm	_DEFAULT_ABBREV,4,2             ## @DEFAULT_ABBREV
	.comm	_TODO_NOOP,4,2                  ## @TODO_NOOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nothing to do"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_edit_todo_list_advice,8,3      ## @edit_todo_list_advice
L_.str.1:                               ## @.str.1
	.asciz	"could not skip unnecessary pick commands"

	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ## @TODO_LIST_SHORTEN_IDS
L_.str.2:                               ## @.str.2
	.asciz	"could not write '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"rebase"

L_.str.4:                               ## @.str.4
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_complete_action                ; -- Begin function complete_action
	.p2align	2
_complete_action:                       ; @complete_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x28, x7
	stp	x4, x6, [sp, #8]                ; 16-byte Folded Spill
	mov	x24, x5
	mov	x27, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x29, #24]
	ldr	w22, [x29, #16]
	bl	_rebase_path_todo
	mov	x23, x0
Lloh0:
	adrp	x8, _TODO_LIST_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TODO_LIST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	w8, [x24]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _DEFAULT_ABBREV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_ABBREV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_find_unique_abbrev
	mov	x21, x0
	ldr	x8, [x26]
	cbz	x8, LBB0_2
; %bb.1:
	cbnz	w22, LBB0_3
	b	LBB0_5
LBB0_2:
	mov	x0, x26
	bl	_append_new_todo
Lloh6:
	adrp	x8, _TODO_NOOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TODO_NOOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	xzr, [x0, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0]
	cbz	w22, LBB0_5
LBB0_3:
	mov	x0, x26
	bl	_todo_list_rearrange_squash
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #-1
	b	LBB0_16
LBB0_5:
	ldr	x8, [x28]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x26
	mov	x1, x28
	bl	_todo_list_add_exec_commands
LBB0_7:
	mov	x0, x26
	bl	_count_commands
	cbz	x0, LBB0_12
; %bb.8:
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x26
	mov	x3, x27
	mov	x4, x21
	mov	x5, x25
	bl	_edit_todo_list
	cmn	w0, #3
	b.eq	LBB0_13
; %bb.9:
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.10:
	cmn	w0, #2
	b.ne	LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_apply_autostash
	mov	x0, x19
	bl	_sequencer_remove_state
	mov	w0, #-1
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	bl	_apply_autostash
	mov	x0, x19
	bl	_sequencer_remove_state
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_apply_autostash
	mov	x0, x19
	bl	_sequencer_remove_state
	add	x0, sp, #32
	bl	_todo_list_release
LBB0_14:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_15:
	bl	__
	bl	_error
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_17:
	ldr	w1, [sp, #40]
	add	x2, sp, #32
	mov	x0, x20
	bl	_todo_list_parse_insn_buffer
	cbnz	x0, LBB0_19
; %bb.18:
	add	x1, sp, #32
	mov	x0, x26
	bl	_todo_list_check
	cbz	x0, LBB0_20
LBB0_19:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _edit_todo_list_advice@GOTPAGE
Lloh15:
	ldr	x8, [x8, _edit_todo_list_advice@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_fprintf
	mov	x0, x20
	mov	x1, x19
	ldp	x2, x4, [sp, #8]                ; 16-byte Folded Reload
	mov	x3, x24
	bl	_checkout_onto
	add	x0, sp, #32
	bl	_todo_list_release
	mov	w0, #-1
	b	LBB0_16
LBB0_20:
	ldr	x8, [x19]
	cbz	x8, LBB0_23
; %bb.21:
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x20
	bl	_skip_unnecessary_picks
	cbz	x0, LBB0_23
; %bb.22:
	add	x0, sp, #32
	bl	_todo_list_release
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_23:
Lloh19:
	adrp	x8, _TODO_LIST_SHORTEN_IDS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TODO_LIST_SHORTEN_IDS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w6, w25, w8
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x23
	mov	x3, #0
	mov	x4, #0
	mov	w5, #-1
	bl	_todo_list_write_to_file
	mov	x21, x0
	add	x0, sp, #32
	bl	_todo_list_release
	cbz	x21, LBB0_25
; %bb.24:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x23
	bl	_error_errno
	b	LBB0_16
LBB0_25:
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	ldp	x2, x4, [sp, #8]                ; 16-byte Folded Reload
	bl	_checkout_onto
	cbnz	x0, LBB0_4
; %bb.26:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w3, #1
	mov	w4, #1
	bl	_require_clean_work_tree
	cbnz	x0, LBB0_4
; %bb.27:
	mov	x0, x20
	mov	x1, x19
	bl	_sequencer_continue
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_LIST_INIT,16,3            ; @TODO_LIST_INIT
	.comm	_DEFAULT_ABBREV,4,2             ; @DEFAULT_ABBREV
	.comm	_TODO_NOOP,4,2                  ; @TODO_NOOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nothing to do"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_edit_todo_list_advice,8,3      ; @edit_todo_list_advice
l_.str.1:                               ; @.str.1
	.asciz	"could not skip unnecessary pick commands"

	.comm	_TODO_LIST_SHORTEN_IDS,4,2      ; @TODO_LIST_SHORTEN_IDS
l_.str.2:                               ; @.str.2
	.asciz	"could not write '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"rebase"

l_.str.4:                               ; @.str.4
	.space	1

.subsections_via_symbols
