	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_undo_stack               ## -- Begin function clear_undo_stack
	.p2align	4, 0x90
_clear_undo_stack:                      ## @clear_undo_stack
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_u_p@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rax
	subq	$1, %rax
	movq	%rax, (%rdi)
	jae	LBB0_1
LBB0_7:
	movq	$0, (%rdi)
	movq	_current_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_u_current_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_addr_last@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_u_addr_last@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ustack@GOTPCREL(%rip), %r12
	movq	_UDEL@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	subq	$1, %rax
	movq	%rax, (%rdi)
	jb	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r12), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	(%rcx,%rdx,8), %rsi
	cmpq	(%r14), %rsi
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx,%rdx,8), %rbx
	movq	16(%rcx,%rdx,8), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_unmark_line_node
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rbx
	cmpq	%r13, %r15
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_u_p@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_u_p,8,3                        ## @u_p
	.comm	_ustack,8,3                     ## @ustack
	.comm	_UDEL,8,3                       ## @UDEL
	.comm	_current_addr,4,2               ## @current_addr
	.comm	_u_current_addr,4,2             ## @u_current_addr
	.comm	_addr_last,4,2                  ## @addr_last
	.comm	_u_addr_last,4,2                ## @u_addr_last
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_undo_stack               ; -- Begin function clear_undo_stack
	.p2align	2
_clear_undo_stack:                      ; @clear_undo_stack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x20, _u_p@GOTPAGE
Lloh1:
	ldr	x20, [x20, _u_p@GOTPAGEOFF]
	ldr	x9, [x20]
	sub	x8, x9, #1
	str	x8, [x20]
	cbz	x9, LBB0_7
; %bb.1:
Lloh2:
	adrp	x21, _ustack@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ustack@GOTPAGEOFF]
	mov	w22, #24
Lloh4:
	adrp	x23, _UDEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _UDEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x8
	sub	x8, x8, #1
	str	x8, [x20]
	cbz	x9, LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x9, [x21]
	mul	x10, x8, x22
	ldr	x10, [x9, x10]
	ldr	x11, [x23]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x8, x22, x9
	ldp	x19, x10, [x9, #8]
	ldr	x24, [x10]
	cmp	x19, x24
	b.eq	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_unmark_line_node
	ldr	x25, [x19]
	mov	x0, x19
	bl	_free
	mov	x19, x25
	cmp	x25, x24
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	b	LBB0_2
LBB0_7:
	str	xzr, [x20]
Lloh6:
	adrp	x8, _current_addr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_addr@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _u_current_addr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _u_current_addr@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
Lloh12:
	adrp	x8, _addr_last@GOTPAGE
Lloh13:
	ldr	x8, [x8, _addr_last@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _u_addr_last@GOTPAGE
Lloh16:
	ldr	x9, [x9, _u_addr_last@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_u_p,8,3                        ; @u_p
	.comm	_ustack,8,3                     ; @ustack
	.comm	_UDEL,8,3                       ; @UDEL
	.comm	_current_addr,4,2               ; @current_addr
	.comm	_u_current_addr,4,2             ; @u_current_addr
	.comm	_addr_last,4,2                  ; @addr_last
	.comm	_u_addr_last,4,2                ; @u_addr_last
.subsections_via_symbols
