	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rollback_single_pick
_rollback_single_pick:                  ## @rollback_single_pick
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_git_path_cherry_pick_head
	movl	%eax, %edi
	callq	_file_exists
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_git_path_revert_head
	movl	%eax, %edi
	callq	_file_exists
	testl	%eax, %eax
	je	LBB0_9
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	leaq	-16(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_read_ref_full
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	leaq	-16(%rbp), %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	callq	__
	movl	%eax, %edi
	callq	_error
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_7:
	leaq	-16(%rbp), %rdi
	callq	_reset_merge
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no cherry-pick or revert in progress"

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

L_.str.2:                               ## @.str.2
	.asciz	"cannot resolve HEAD"

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

	.no_dead_strip	_rollback_single_pick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rollback_single_pick
_rollback_single_pick:                  ; @rollback_single_pick
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_git_path_cherry_pick_head
	bl	_file_exists
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_git_path_revert_head
	bl	_file_exists
	cbz	w0, LBB0_8
LBB0_2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w1, #0
	mov	x3, #0
	bl	_read_ref_full
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	add	x0, sp, #8
	bl	_is_null_oid
	cbz	x0, LBB0_9
; %bb.5:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	__
	bl	_error
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_error
LBB0_9:
	add	x0, sp, #8
	bl	_reset_merge
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no cherry-pick or revert in progress"

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

l_.str.2:                               ; @.str.2
	.asciz	"cannot resolve HEAD"

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

	.no_dead_strip	_rollback_single_pick
.subsections_via_symbols
