	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminalSaveState              ## -- Begin function TerminalSaveState
	.p2align	4, 0x90
_TerminalSaveState:                     ## @TerminalSaveState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_old_tc@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_tcgetattr
	movl	(%rbx), %eax
	movq	_new_tc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$79, %edi
	callq	_CONTROL
	movq	_termFlushChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$87, %edi
	callq	_CONTROL
	movq	_termWerasChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$82, %edi
	callq	_CONTROL
	movq	_termRprntChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$86, %edi
	callq	_CONTROL
	movq	_termLiteralNextChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$81, %edi
	callq	_CONTROL
	movq	_termStartChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$83, %edi
	callq	_CONTROL
	movq	_termStopChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$84, %edi
	callq	_CONTROL
	movq	_termAytChar@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_old_tc,4,2                     ## @old_tc
	.comm	_new_tc,4,2                     ## @new_tc
	.comm	_termFlushChar,8,3              ## @termFlushChar
	.comm	_termWerasChar,8,3              ## @termWerasChar
	.comm	_termRprntChar,8,3              ## @termRprntChar
	.comm	_termLiteralNextChar,8,3        ## @termLiteralNextChar
	.comm	_termStartChar,8,3              ## @termStartChar
	.comm	_termStopChar,8,3               ## @termStopChar
	.comm	_termAytChar,8,3                ## @termAytChar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminalSaveState              ; -- Begin function TerminalSaveState
	.p2align	2
_TerminalSaveState:                     ; @TerminalSaveState
	.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, _old_tc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _old_tc@GOTPAGEOFF]
	mov	w0, #0
	mov	x1, x19
	bl	_tcgetattr
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _new_tc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _new_tc@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	w0, #79
	bl	_CONTROL
Lloh5:
	adrp	x8, _termFlushChar@GOTPAGE
Lloh6:
	ldr	x8, [x8, _termFlushChar@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	mov	w0, #87
	bl	_CONTROL
Lloh8:
	adrp	x8, _termWerasChar@GOTPAGE
Lloh9:
	ldr	x8, [x8, _termWerasChar@GOTPAGEOFF]
Lloh10:
	str	x0, [x8]
	mov	w0, #82
	bl	_CONTROL
Lloh11:
	adrp	x8, _termRprntChar@GOTPAGE
Lloh12:
	ldr	x8, [x8, _termRprntChar@GOTPAGEOFF]
Lloh13:
	str	x0, [x8]
	mov	w0, #86
	bl	_CONTROL
Lloh14:
	adrp	x8, _termLiteralNextChar@GOTPAGE
Lloh15:
	ldr	x8, [x8, _termLiteralNextChar@GOTPAGEOFF]
Lloh16:
	str	x0, [x8]
	mov	w0, #81
	bl	_CONTROL
Lloh17:
	adrp	x8, _termStartChar@GOTPAGE
Lloh18:
	ldr	x8, [x8, _termStartChar@GOTPAGEOFF]
Lloh19:
	str	x0, [x8]
	mov	w0, #83
	bl	_CONTROL
Lloh20:
	adrp	x8, _termStopChar@GOTPAGE
Lloh21:
	ldr	x8, [x8, _termStopChar@GOTPAGEOFF]
Lloh22:
	str	x0, [x8]
	mov	w0, #84
	bl	_CONTROL
Lloh23:
	adrp	x8, _termAytChar@GOTPAGE
Lloh24:
	ldr	x8, [x8, _termAytChar@GOTPAGEOFF]
Lloh25:
	str	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_old_tc,4,2                     ; @old_tc
	.comm	_new_tc,4,2                     ; @new_tc
	.comm	_termFlushChar,8,3              ; @termFlushChar
	.comm	_termWerasChar,8,3              ; @termWerasChar
	.comm	_termRprntChar,8,3              ; @termRprntChar
	.comm	_termLiteralNextChar,8,3        ; @termLiteralNextChar
	.comm	_termStartChar,8,3              ; @termStartChar
	.comm	_termStopChar,8,3               ; @termStopChar
	.comm	_termAytChar,8,3                ; @termAytChar
.subsections_via_symbols
