	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_revert                     ## -- Begin function cmd_revert
	.p2align	4, 0x90
_cmd_revert:                            ## @cmd_revert
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_REPLAY_OPTS_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%edi, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, -32(%rbp)
LBB0_2:
	movq	_REPLAY_REVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sequencer_init_config
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_run_sequencer
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLAY_OPTS_INIT,8,2           ## @REPLAY_OPTS_INIT
	.comm	_REPLAY_REVERT,4,2              ## @REPLAY_REVERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"revert failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_revert                     ; -- Begin function cmd_revert
	.p2align	2
_cmd_revert:                            ; @cmd_revert
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _REPLAY_OPTS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPLAY_OPTS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w0, #0
	bl	_isatty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_2:
Lloh3:
	adrp	x8, _REPLAY_REVERT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPLAY_REVERT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #8
	bl	_sequencer_init_config
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_run_sequencer
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLAY_OPTS_INIT,8,2           ; @REPLAY_OPTS_INIT
	.comm	_REPLAY_REVERT,4,2              ; @REPLAY_REVERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"revert failed"

.subsections_via_symbols
