	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function undo_all
_undo_all:                              ## @undo_all
	.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	_undobuf@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_gcc_unreachable
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, 8(%r14)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rbx
	movq	8(%r15), %r15
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %eax
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_PUT_MODE
	jmp	LBB0_9
LBB0_10:
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_undobuf,16,3                   ## @undobuf
	.no_dead_strip	_undo_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function undo_all
_undo_all:                              ; @undo_all
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _undobuf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _undobuf@GOTPAGEOFF]
	ldr	x20, [x19]
	cbnz	x20, LBB0_4
LBB0_1:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #32]
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	_PUT_MODE
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	str	x8, [x21, #8]
	str	x21, [x19, #8]
	cbz	x20, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x20
	ldr	x20, [x20, #8]
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #24]
	ldr	x9, [x21, #32]
	str	w8, [x9]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #20]
	ldr	x9, [x21, #40]
	str	w8, [x9]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_gcc_unreachable
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_undobuf,16,3                   ; @undobuf
	.no_dead_strip	_undo_all
.subsections_via_symbols
