	.file	"extr_ex_undo.c_ex_undo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ex_undo
	.type	ex_undo, @function
ex_undo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR ABSMARK1[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	rax, QWORD PTR [rdi]
	mov	rdx, rbp
	mov	QWORD PTR [rsp], rax
	call	mark_set@PLT
	test	rax, rax
	je	.L2
.L9:
	mov	eax, 1
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR F_UNDO[rip]
	mov	rdi, r12
	call	F_ISSET@PLT
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR [r12]
	cmp	eax, 130
	je	.L6
	jg	.L7
	cmp	eax, 128
	jne	.L18
	xor	eax, eax
	call	abort@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	eax, 129
	jne	.L7
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR F_UNDO[rip]
	mov	rdi, r12
	call	F_SET@PLT
	mov	DWORD PTR [r12], 129
.L5:
	mov	rsi, rbp
	mov	rdi, rbx
	call	log_backward@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR [r12], 130
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	mov	rdi, rbx
	call	log_forward@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR [r12], 129
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ex_undo, .-ex_undo
	.comm	F_UNDO,4,4
	.comm	ABSMARK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ex_undo.c_ex_undo.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ex_undo
	.syntax unified
	.arm
	.fpu softvfp
	.type	ex_undo, %function
ex_undo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #4]
	ldr	r2, .L19
	ldr	lr, .L19+4
	sub	sp, sp, #20
	ldr	ip, [r0]
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r1, [r2]
	str	r3, [sp, #8]
	add	r2, sp, #4
	mov	r3, #1
	mov	r4, r0
	str	ip, [sp, #4]
	bl	mark_set
	subs	r5, r0, #0
	beq	.L2
.L9:
	mov	r5, #1
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r6, [r4, #8]
	ldr	r7, .L19+8
	mov	r0, r6
	ldr	r1, [r7]
	bl	F_ISSET
	cmp	r0, #0
	beq	.L17
	ldr	r3, [r6]
	cmp	r3, #130
	beq	.L6
	bgt	.L7
	cmp	r3, #128
	bne	.L18
	bl	abort
.L7:
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	str	r2, [r4, #4]
	str	r3, [r4]
	b	.L1
.L18:
	cmp	r3, #129
	bne	.L7
	b	.L5
.L17:
	mov	r0, r6
	ldr	r1, [r7]
	bl	F_SET
	mov	r3, #129
	str	r3, [r6]
.L5:
	mov	r0, r4
	add	r1, sp, #4
	bl	log_backward
	cmp	r0, #0
	bne	.L9
	mov	r3, #130
	str	r3, [r6]
	b	.L7
.L6:
	mov	r0, r4
	add	r1, sp, #4
	bl	log_forward
	cmp	r0, #0
	bne	.L9
	mov	r3, #129
	str	r3, [r6]
	b	.L7
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	ABSMARK1
	.word	.LC0
	.word	F_UNDO
	.size	ex_undo, .-ex_undo
	.comm	F_UNDO,4,4
	.comm	ABSMARK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
