	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TIOCGETP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ottyb@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	movq	%r14, %rdx
	callq	_ioctl
	movq	_TIOCGETC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_otc@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_ioctl
	movq	_TIOCGLTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_oltc@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	movq	_TIOCLGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_olmode@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	movq	(%r15), %rax
	movq	_ntc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	_nltc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	movq	_nttyb@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCGETP,4,2                   ## @TIOCGETP
	.comm	_ottyb,8,3                      ## @ottyb
	.comm	_TIOCGETC,4,2                   ## @TIOCGETC
	.comm	_otc,8,3                        ## @otc
	.comm	_TIOCGLTC,4,2                   ## @TIOCGLTC
	.comm	_oltc,8,3                       ## @oltc
	.comm	_TIOCLGET,4,2                   ## @TIOCLGET
	.comm	_olmode,4,2                     ## @olmode
	.comm	_ntc,8,3                        ## @ntc
	.comm	_nltc,8,3                       ## @nltc
	.comm	_nttyb,8,3                      ## @nttyb
	.comm	_new_tc,4,2                     ## @new_tc
	.comm	_old_tc,4,2                     ## @old_tc
	.comm	_termAytChar,8,3                ## @termAytChar
	.comm	_termFlushChar,8,3              ## @termFlushChar
	.comm	_termLiteralNextChar,8,3        ## @termLiteralNextChar
	.comm	_termRprntChar,8,3              ## @termRprntChar
	.comm	_termStartChar,8,3              ## @termStartChar
	.comm	_termStopChar,8,3               ## @termStopChar
	.comm	_termWerasChar,8,3              ## @termWerasChar
.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	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	x8, _TIOCGETP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCGETP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x19, _ottyb@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ottyb@GOTPAGEOFF]
	mov	w0, #0
	mov	x2, x19
	bl	_ioctl
Lloh5:
	adrp	x8, _TIOCGETC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIOCGETC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x20, _otc@GOTPAGE
Lloh9:
	ldr	x20, [x20, _otc@GOTPAGEOFF]
	mov	w0, #0
	mov	x2, x20
	bl	_ioctl
Lloh10:
	adrp	x8, _TIOCGLTC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIOCGLTC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x21, _oltc@GOTPAGE
Lloh14:
	ldr	x21, [x21, _oltc@GOTPAGEOFF]
	mov	w0, #0
	mov	x2, x21
	bl	_ioctl
Lloh15:
	adrp	x8, _TIOCLGET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TIOCLGET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, _olmode@GOTPAGE
Lloh19:
	ldr	x2, [x2, _olmode@GOTPAGEOFF]
	mov	w0, #0
	bl	_ioctl
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _ntc@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ntc@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
Lloh23:
	adrp	x8, _nltc@GOTPAGE
Lloh24:
	ldr	x8, [x8, _nltc@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh25:
	str	x9, [x8]
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _nttyb@GOTPAGE
Lloh27:
	ldr	x9, [x9, _nttyb@GOTPAGEOFF]
Lloh28:
	str	x8, [x9]
	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
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCGETP,4,2                   ; @TIOCGETP
	.comm	_ottyb,8,3                      ; @ottyb
	.comm	_TIOCGETC,4,2                   ; @TIOCGETC
	.comm	_otc,8,3                        ; @otc
	.comm	_TIOCGLTC,4,2                   ; @TIOCGLTC
	.comm	_oltc,8,3                       ; @oltc
	.comm	_TIOCLGET,4,2                   ; @TIOCLGET
	.comm	_olmode,4,2                     ; @olmode
	.comm	_ntc,8,3                        ; @ntc
	.comm	_nltc,8,3                       ; @nltc
	.comm	_nttyb,8,3                      ; @nttyb
	.comm	_new_tc,4,2                     ; @new_tc
	.comm	_old_tc,4,2                     ; @old_tc
	.comm	_termAytChar,8,3                ; @termAytChar
	.comm	_termFlushChar,8,3              ; @termFlushChar
	.comm	_termLiteralNextChar,8,3        ; @termLiteralNextChar
	.comm	_termRprntChar,8,3              ; @termRprntChar
	.comm	_termStartChar,8,3              ; @termStartChar
	.comm	_termStopChar,8,3               ; @termStopChar
	.comm	_termWerasChar,8,3              ; @termWerasChar
.subsections_via_symbols
