	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txt_backup
_txt_backup:                            ## @txt_backup
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	__texth@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_TAILQ_PREV
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_VIP
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
LBB0_6:
	movl	(%r13), %edi
	movq	_TXT_APPENDEOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_CLR
LBB0_7:
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
	movq	%r15, %rdi
	callq	_text_free
	movq	32(%rbx), %rsi
	incq	%rsi
	movq	_LINE_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vs_change
	xorl	%r15d, %r15d
	testq	%rax, %rax
	cmoveq	%rbx, %r15
	jmp	LBB0_8
LBB0_1:
	movl	(%r13), %edi
	movq	_TXT_REPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_ISSET
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_M_BERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_msgq
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CH_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	40(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	$1, 24(%rbx)
	incq	%rcx
	movq	%rcx, (%rbx)
	movl	(%r13), %edi
	movq	_TXT_APPENDEOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_SET
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	__texth,4,2                     ## @_texth
	.comm	_q,4,2                          ## @q
	.comm	_TXT_REPLAY,4,2                 ## @TXT_REPLAY
	.comm	_M_BERR,4,2                     ## @M_BERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"193|Already at the beginning of the insert"

	.comm	_CH_CURSOR,4,2                  ## @CH_CURSOR
	.comm	_TXT_APPENDEOL,4,2              ## @TXT_APPENDEOL
	.comm	_LINE_DELETE,4,2                ## @LINE_DELETE
	.no_dead_strip	_txt_backup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txt_backup
_txt_backup:                            ; @txt_backup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, __texth@GOTPAGE
Lloh1:
	ldr	x8, [x8, __texth@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x24, _q@GOTPAGE
Lloh4:
	ldr	x24, [x24, _q@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_TAILQ_PREV
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
	str	x8, [x0]
	mov	x0, x20
	bl	_VIP
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_8
LBB0_3:
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _TXT_APPENDEOL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXT_APPENDEOL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_FL_CLR
LBB0_4:
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_text_free
	ldr	x8, [x21, #32]
	add	x1, x8, #1
Lloh8:
	adrp	x8, _LINE_DELETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LINE_DELETE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vs_change
	cmp	x0, #0
	csel	x19, x21, xzr, eq
	b	LBB0_7
LBB0_5:
	ldr	w0, [x23]
Lloh11:
	adrp	x8, _TXT_REPLAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TXT_REPLAY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_FL_ISSET
	cbnz	w0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _M_BERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_BERR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msgq
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh19:
	adrp	x8, _CH_CURSOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CH_CURSOR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	x9, [x21, #40]
	ldr	x10, [x21]
	str	w8, [x9, x10, lsl #2]
	mov	w8, #1
	str	x8, [x21, #24]
	add	x8, x10, #1
	str	x8, [x21]
	ldr	w0, [x23]
Lloh22:
	adrp	x8, _TXT_APPENDEOL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TXT_APPENDEOL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_FL_SET
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	__texth,4,2                     ; @_texth
	.comm	_q,4,2                          ; @q
	.comm	_TXT_REPLAY,4,2                 ; @TXT_REPLAY
	.comm	_M_BERR,4,2                     ; @M_BERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"193|Already at the beginning of the insert"

	.comm	_CH_CURSOR,4,2                  ; @CH_CURSOR
	.comm	_TXT_APPENDEOL,4,2              ; @TXT_APPENDEOL
	.comm	_LINE_DELETE,4,2                ; @LINE_DELETE
	.no_dead_strip	_txt_backup
.subsections_via_symbols
