	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_rollback             ## -- Begin function sequencer_rollback
	.p2align	4, 0x90
_sequencer_rollback:                    ## @sequencer_rollback
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	xorl	%eax, %eax
	callq	_git_path_head_file
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_getline_lf
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_git_path_head_file
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.19:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rollback_single_pick           ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	callq	_fclose
	movl	-32(%rbp), %edi
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_12
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_git_path_head_file
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_git_path_head_file
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	__
LBB0_7:
	movq	%rax, %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_error
	movq	%rbx, %rdi
	callq	_fclose
LBB0_11:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-40(%rbp), %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_11
LBB0_14:
	xorl	%eax, %eax
	callq	_rollback_is_safe
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	-40(%rbp), %rdi
	callq	_reset_merge
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_warning
LBB0_17:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_sequencer_remove_state
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"cannot open '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"cannot read '%s': %s"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected end of file"

L_.str.4:                               ## @.str.4
	.asciz	"stored pre-cherry-pick HEAD file '%s' is corrupt"

L_.str.5:                               ## @.str.5
	.asciz	"cannot abort from a branch yet to be born"

L_.str.6:                               ## @.str.6
	.asciz	"You seem to have moved HEAD. Not rewinding, check your HEAD!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_rollback             ; -- Begin function sequencer_rollback
	.p2align	2
_sequencer_rollback:                    ; @sequencer_rollback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, [x8]
	str	w8, [sp, #32]
	bl	_git_path_head_file
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x0, sp, #32
	mov	x1, x20
	bl	_strbuf_getline_lf
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x19, x0
	bl	_git_path_head_file
	mov	x21, x0
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.3:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	_strerror
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _ENOENT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_rollback_single_pick
LBB0_6:
	mov	x0, x20
	bl	_fclose
	ldr	w0, [sp, #32]
	add	x1, sp, #40
	add	x2, sp, #24
	bl	_parse_oid_hex
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_14
LBB0_8:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x19, x0
	bl	_git_path_head_file
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	_error
	b	LBB0_12
LBB0_9:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
	bl	_git_path_head_file
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_error_errno
LBB0_10:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
LBB0_11:
	stp	x21, x0, [sp]
	mov	x0, x19
	bl	_error
	mov	x0, x20
	bl	_fclose
LBB0_12:
	add	x0, sp, #32
	bl	_strbuf_release
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	add	x0, sp, #40
	bl	_is_null_oid
	cbz	x0, LBB0_16
; %bb.15:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_12
LBB0_16:
	bl	_rollback_is_safe
	cbz	w0, LBB0_18
; %bb.17:
	add	x0, sp, #40
	bl	_reset_merge
	cbnz	x0, LBB0_12
	b	LBB0_19
LBB0_18:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_warning
LBB0_19:
	add	x0, sp, #32
	bl	_strbuf_release
	mov	x0, x19
	bl	_sequencer_remove_state
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"cannot open '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"cannot read '%s': %s"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected end of file"

l_.str.4:                               ; @.str.4
	.asciz	"stored pre-cherry-pick HEAD file '%s' is corrupt"

l_.str.5:                               ; @.str.5
	.asciz	"cannot abort from a branch yet to be born"

l_.str.6:                               ; @.str.6
	.asciz	"You seem to have moved HEAD. Not rewinding, check your HEAD!"

.subsections_via_symbols
