	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_interactive_rebase
_do_interactive_rebase:                 ## @do_interactive_rebase
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_TODO_LIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_get_replay_opts
	movl	%eax, -56(%rbp)
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_the_repository@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	44(%rbx), %edx
	leaq	-56(%rbp), %rsi
	callq	_prepare_branch_to_be_rebased
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movl	12(%rbx), %esi
	movl	40(%rbx), %edi
	leaq	-96(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	leaq	-80(%rbp), %r8
	callq	_get_revision_ranges
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rax, %rsi
	movl	12(%rbx), %edx
	movq	-96(%rbp), %rcx
	leaq	-56(%rbp), %rdi
	callq	_init_basic_state
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-88(%rbp), %rdi
	callq	_free
	movq	-80(%rbp), %rdi
	callq	_free
	jmp	LBB0_15
LBB0_4:
	cmpl	$0, 40(%rbx)
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_path_squash_onto
	movl	%eax, %r15d
	movq	32(%rbx), %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_write_file
LBB0_7:
	movq	-88(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_argv_array_pushl
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_oid_to_hex
	leaq	-72(%rbp), %rdi
	movl	%eax, %esi
	callq	_argv_array_push
LBB0_9:
	movl	(%r13), %edi
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %edx
	leaq	-48(%rbp), %rsi
	movl	%r14d, %r8d
	callq	_sequencer_make_script
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_14
LBB0_11:
	xorl	%eax, %eax
	callq	_discard_cache
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdx
	callq	_todo_list_parse_insn_buffer
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	callq	_BUG
LBB0_13:
	movl	20(%rbx), %edi
	leaq	-64(%rbp), %r12
	movq	%r12, %rsi
	callq	_split_exec_commands
	movl	(%r13), %edi
	movq	-80(%rbp), %rcx
	movl	16(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edx
	pushq	%r15
	pushq	%rax
	pushq	%r12
	pushq	-96(%rbp)
	callq	_complete_action
	addq	$32, %rsp
	movl	%eax, %r15d
LBB0_14:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	-88(%rbp), %rdi
	callq	_free
	movq	-80(%rbp), %rdi
	callq	_free
	leaq	-48(%rbp), %rdi
	callq	_todo_list_release
	leaq	-72(%rbp), %rdi
	callq	_argv_array_clear
LBB0_15:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGV_ARRAY_INIT,8,2            ## @ARGV_ARRAY_INIT
	.comm	_TODO_LIST_INIT,4,2             ## @TODO_LIST_INIT
	.comm	_STRING_LIST_INIT_DUP,4,2       ## @STRING_LIST_INIT_DUP
	.comm	_the_repository,4,2             ## @the_repository
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detached HEAD"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"could not generate todo list"

L_.str.4:                               ## @.str.4
	.asciz	"unusable todo list"

	.no_dead_strip	_do_interactive_rebase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_interactive_rebase
_do_interactive_rebase:                 ; @do_interactive_rebase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	stp	xzr, xzr, [x29, #-48]
	str	xzr, [sp, #56]
Lloh0:
	adrp	x8, _ARGV_ARRAY_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #48]
Lloh3:
	adrp	x8, _TODO_LIST_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TODO_LIST_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	bl	_get_replay_opts
	str	w0, [sp, #32]
Lloh6:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh9:
	adrp	x22, _the_repository@GOTPAGE
Lloh10:
	ldr	x22, [x22, _the_repository@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [x20, #44]
	add	x1, sp, #32
	bl	_prepare_branch_to_be_rebased
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #40]
	ldr	w1, [x20, #12]
	sub	x2, x29, #40
	sub	x3, x29, #48
	add	x4, sp, #56
	bl	_get_revision_ranges
	cbz	x0, LBB0_4
LBB0_2:
	mov	w21, #-1
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
	ldr	w2, [x20, #12]
	ldur	x3, [x29, #-40]
	add	x0, sp, #32
	bl	_init_basic_state
	cbz	x0, LBB0_6
; %bb.5:
	ldur	x0, [x29, #-48]
	bl	_free
	ldr	x0, [sp, #56]
	bl	_free
	mov	w21, #-1
	b	LBB0_3
LBB0_6:
	ldr	w8, [x20, #40]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_path_squash_onto
	mov	x21, x0
	ldr	x0, [x20, #32]
	bl	_oid_to_hex
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_write_file
LBB0_9:
	ldur	x2, [x29, #-48]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #48
	mov	x3, #0
	bl	_argv_array_pushl
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_oid_to_hex
	mov	x1, x0
	add	x0, sp, #48
	bl	_argv_array_push
LBB0_11:
	ldr	w0, [x22]
	ldp	w3, w2, [sp, #48]
	add	x1, sp, #40
	mov	x4, x19
	bl	_sequencer_make_script
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_16
LBB0_13:
	bl	_discard_cache
	ldr	w0, [x22]
	ldr	w1, [sp, #40]
	add	x21, sp, #40
	add	x2, sp, #40
	bl	_todo_list_parse_insn_buffer
	cbz	x0, LBB0_15
; %bb.14:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_BUG
LBB0_15:
	ldr	w0, [x20, #20]
	add	x1, sp, #24
	bl	_split_exec_commands
	ldr	w0, [x22]
	ldr	x3, [sp, #56]
	ldp	w5, w4, [x20, #12]
	ldur	x6, [x29, #-40]
	ldr	w8, [x20, #8]
	str	x21, [sp, #8]
	str	w8, [sp]
	add	x1, sp, #32
	add	x7, sp, #24
	mov	x2, x19
	bl	_complete_action
	mov	x21, x0
LBB0_16:
	add	x0, sp, #24
	mov	w1, #0
	bl	_string_list_clear
	ldur	x0, [x29, #-48]
	bl	_free
	ldr	x0, [sp, #56]
	bl	_free
	add	x0, sp, #40
	bl	_todo_list_release
	add	x0, sp, #48
	bl	_argv_array_clear
	b	LBB0_3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGV_ARRAY_INIT,8,2            ; @ARGV_ARRAY_INIT
	.comm	_TODO_LIST_INIT,4,2             ; @TODO_LIST_INIT
	.comm	_STRING_LIST_INIT_DUP,4,2       ; @STRING_LIST_INIT_DUP
	.comm	_the_repository,4,2             ; @the_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detached HEAD"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"could not generate todo list"

l_.str.4:                               ; @.str.4
	.asciz	"unusable todo list"

	.no_dead_strip	_do_interactive_rebase
.subsections_via_symbols
