	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_undo                        ## -- Begin function ex_undo
	.p2align	4, 0x90
_ex_undo:                               ## @ex_undo
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movl	%eax, -36(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -40(%rbp)
	movq	_ABSMARK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	$1, %r14d
	movl	$1, %ecx
	callq	_mark_set
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	8(%rbx), %r15
	movq	_F_UNDO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_abort
LBB0_2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_F_SET
	movl	$129, (%r15)
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_log_backward
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	$130, (%r15)
	jmp	LBB0_11
LBB0_9:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_log_forward
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	$129, (%r15)
LBB0_11:
	movl	-36(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-40(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABSMARK1,4,2                   ## @ABSMARK1
	.comm	_F_UNDO,4,2                     ## @F_UNDO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_undo                        ; -- Begin function ex_undo
	.p2align	2
_ex_undo:                               ; @ex_undo
	.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, x0
	ldr	d0, [x0]
	str	d0, [sp, #8]
Lloh0:
	adrp	x8, _ABSMARK1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABSMARK1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w20, #1
	add	x2, sp, #8
	mov	w3, #1
	bl	_mark_set
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x21, _F_UNDO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _F_UNDO@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_F_ISSET
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.5:
	bl	_abort
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_F_SET
	mov	w8, #129
	str	w8, [x20]
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_log_backward
	cbnz	w0, LBB0_10
; %bb.8:
	mov	w8, #130
	b	LBB0_12
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_log_forward
	cbz	w0, LBB0_11
LBB0_10:
	mov	w20, #1
	b	LBB0_14
LBB0_11:
	mov	w8, #129
LBB0_12:
	str	w8, [x20]
LBB0_13:
	mov	w20, #0
	ldr	d0, [sp, #8]
	str	d0, [x19]
LBB0_14:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ABSMARK1,4,2                   ; @ABSMARK1
	.comm	_F_UNDO,4,2                     ; @F_UNDO
.subsections_via_symbols
