	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_post_commit_cleanup  ## -- Begin function sequencer_post_commit_cleanup
	.p2align	4, 0x90
_sequencer_post_commit_cleanup:         ## @sequencer_post_commit_cleanup
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_REPLAY_OPTS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	callq	_git_path_cherry_pick_head
	movl	%eax, %edi
	callq	_file_exists
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_git_path_cherry_pick_head
	movl	%eax, %edi
	callq	_unlink
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_warning
LBB0_4:
	movq	_REPLAY_PICK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
LBB0_5:
	movq	%rbx, %rdi
	callq	_git_path_revert_head
	movl	%eax, %edi
	callq	_file_exists
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	_git_path_revert_head
	movl	%eax, %edi
	callq	_unlink
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_warning
LBB0_9:
	movq	_REPLAY_REVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	jmp	LBB0_11
LBB0_10:
	testq	%r15, %r15
	je	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	callq	_have_finished_the_last_pick
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	-32(%rbp), %rdi
	callq	_sequencer_remove_state
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLAY_OPTS_INIT,4,2           ## @REPLAY_OPTS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cancelling a cherry picking in progress"

	.comm	_REPLAY_PICK,4,2                ## @REPLAY_PICK
L_.str.1:                               ## @.str.1
	.asciz	"cancelling a revert in progress"

	.comm	_REPLAY_REVERT,4,2              ## @REPLAY_REVERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_post_commit_cleanup  ; -- Begin function sequencer_post_commit_cleanup
	.p2align	2
_sequencer_post_commit_cleanup:         ; @sequencer_post_commit_cleanup
	.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	x20, x0
Lloh0:
	adrp	x8, _REPLAY_OPTS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPLAY_OPTS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_git_path_cherry_pick_head
	bl	_file_exists
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_git_path_cherry_pick_head
	bl	_unlink
	cbz	w19, LBB0_4
; %bb.2:
	cbnz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_warning
LBB0_4:
Lloh5:
	adrp	x8, _REPLAY_PICK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REPLAY_PICK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_5:
	mov	x0, x20
	bl	_git_path_revert_head
	bl	_file_exists
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_git_path_revert_head
	bl	_unlink
	cbz	w19, LBB0_9
; %bb.7:
	cbnz	w0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_warning
LBB0_9:
Lloh10:
	adrp	x8, _REPLAY_REVERT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REPLAY_REVERT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	b	LBB0_11
LBB0_10:
	cbz	x21, LBB0_13
LBB0_11:
	bl	_have_finished_the_last_pick
	cbz	w0, LBB0_13
; %bb.12:
	add	x0, sp, #8
	bl	_sequencer_remove_state
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLAY_OPTS_INIT,4,2           ; @REPLAY_OPTS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cancelling a cherry picking in progress"

	.comm	_REPLAY_PICK,4,2                ; @REPLAY_PICK
l_.str.1:                               ; @.str.1
	.asciz	"cancelling a revert in progress"

	.comm	_REPLAY_REVERT,4,2              ; @REPLAY_REVERT
.subsections_via_symbols
