	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_save_inputbuf
_c_save_inputbuf:                       ## @c_save_inputbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SavedBuf@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_InputBuf@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_Strbuf_append
	movq	%rbx, %rdi
	callq	_Strbuf_terminate
	movq	_LastChar@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	subq	%rcx, %rax
	movq	_LastSaved@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_Cursor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rcx, %rax
	movq	_CursSaved@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_Hist_num@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HistSaved@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RestoreSaved@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SavedBuf,8,3                   ## @SavedBuf
	.comm	_InputBuf,8,3                   ## @InputBuf
	.comm	_LastChar,8,3                   ## @LastChar
	.comm	_LastSaved,8,3                  ## @LastSaved
	.comm	_Cursor,8,3                     ## @Cursor
	.comm	_CursSaved,8,3                  ## @CursSaved
	.comm	_Hist_num,4,2                   ## @Hist_num
	.comm	_HistSaved,4,2                  ## @HistSaved
	.comm	_RestoreSaved,4,2               ## @RestoreSaved
	.no_dead_strip	_c_save_inputbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_save_inputbuf
_c_save_inputbuf:                       ; @c_save_inputbuf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _SavedBuf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SavedBuf@GOTPAGEOFF]
	str	xzr, [x19]
Lloh2:
	adrp	x20, _InputBuf@GOTPAGE
Lloh3:
	ldr	x20, [x20, _InputBuf@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_Strbuf_append
	mov	x0, x19
	bl	_Strbuf_terminate
Lloh4:
	adrp	x8, _LastChar@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LastChar@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x8, x8, x9
Lloh7:
	adrp	x10, _LastSaved@GOTPAGE
Lloh8:
	ldr	x10, [x10, _LastSaved@GOTPAGEOFF]
Lloh9:
	str	x8, [x10]
Lloh10:
	adrp	x8, _Cursor@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Cursor@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x10, _CursSaved@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CursSaved@GOTPAGEOFF]
	sub	x8, x8, x9
Lloh15:
	str	x8, [x10]
Lloh16:
	adrp	x8, _Hist_num@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Hist_num@GOTPAGEOFF]
Lloh18:
	adrp	x9, _HistSaved@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HistSaved@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x8, _RestoreSaved@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RestoreSaved@GOTPAGEOFF]
	mov	w9, #1
Lloh24:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SavedBuf,8,3                   ; @SavedBuf
	.comm	_InputBuf,8,3                   ; @InputBuf
	.comm	_LastChar,8,3                   ; @LastChar
	.comm	_LastSaved,8,3                  ; @LastSaved
	.comm	_Cursor,8,3                     ; @Cursor
	.comm	_CursSaved,8,3                  ; @CursSaved
	.comm	_Hist_num,4,2                   ; @Hist_num
	.comm	_HistSaved,4,2                  ; @HistSaved
	.comm	_RestoreSaved,4,2               ; @RestoreSaved
	.no_dead_strip	_c_save_inputbuf
.subsections_via_symbols
