	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminalNewMode                ## -- Begin function TerminalNewMode
	.p2align	4, 0x90
_TerminalNewMode:                       ## @TerminalNewMode
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MODE_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edi, %eax
	movq	_globalmode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	%edi, _TerminalNewMode.prevmode(%rip)
	je	LBB0_38
## %bb.1:
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movq	_SYNCHing@GOTPCREL(%rip), %r12
	movq	_flushout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	orl	(%r12), %edi
	callq	_ttyflush
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.2:
	movq	_tin@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	movq	_TCSADRAIN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_tcsetattr
	movl	(%r13), %edi
	orl	(%r12), %edi
	callq	_ttyflush
	cmpl	$1, %eax
	ja	LBB0_3
LBB0_4:
	movq	_MODE_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	andl	%ebx, %eax
	movl	%eax, _TerminalNewMode.prevmode(%rip)
	movq	_new_tc@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm1, -64(%rbp)
	movq	_MODE_ECHO@GOTPCREL(%rip), %rcx
	movq	_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.5:
	orl	-60(%rbp), %eax
	movq	_ONLCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -56(%rbp)
	movq	_crlf@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_ICRNL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -80(%rbp)
	jmp	LBB0_8
LBB0_7:
	notl	%eax
	andl	-60(%rbp), %eax
	movq	_ONLCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, -56(%rbp)
LBB0_8:
	movq	_MODE_FLOW@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.10:
	movq	_restartany@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	js	LBB0_11
## %bb.12:
	movq	_IXOFF@GOTPCREL(%rip), %rsi
	movq	_IXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	movq	_IXANY@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_9:
	movq	_IXOFF@GOTPCREL(%rip), %rdx
	movq	_IXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	-80(%rbp), %ecx
	jmp	LBB0_16
LBB0_11:
	movq	_IXOFF@GOTPCREL(%rip), %rdx
	movq	_IXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_14:
	orl	(%rdx), %ecx
	orl	-80(%rbp), %ecx
	jmp	LBB0_16
LBB0_15:
	orl	-80(%rbp), %ecx
	movq	_IXANY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
LBB0_16:
	movl	%ecx, -80(%rbp)
	movq	_MODE_TRAPSIG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%ebx, %esi
	movq	_ISIG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%eax, %edi
	orl	%edx, %edi
	notl	%edx
	andl	%eax, %edx
	xorl	%eax, %eax
	testl	%esi, %esi
	cmovnel	%edi, %edx
	setne	%al
	movq	_localchars@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	movq	_MODE_EDIT@GOTPCREL(%rip), %rsi
	movq	_ICANON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, (%rsi)
	je	LBB0_18
## %bb.17:
	orl	%eax, %edx
	movl	%edx, -60(%rbp)
	cmpl	$-1, %ebx
	je	LBB0_34
LBB0_20:
	movq	_MODE_INBIN@GOTPCREL(%rip), %rcx
	movq	_ISTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, (%rcx)
	je	LBB0_22
## %bb.21:
	notl	%eax
	andl	%eax, -80(%rbp)
	jmp	LBB0_23
LBB0_18:
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -60(%rbp)
	movq	_ICRNL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, -80(%rbp)
	movq	-72(%rbp), %rax
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	cmpl	$-1, %ebx
	jne	LBB0_20
LBB0_34:
	movl	$0, -84(%rbp)
	movq	_old_tc@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm1, -64(%rbp)
	jmp	LBB0_35
LBB0_22:
	orl	%eax, -80(%rbp)
LBB0_23:
	movq	_MODE_OUTBIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	jne	LBB0_25
## %bb.24:
	movq	_MODE_OUT8@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_28
LBB0_25:
	movq	_CSIZE@GOTPCREL(%rip), %rcx
	movq	_PARENB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	-64(%rbp), %edx
	movq	_CS8@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, -64(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %eax
	je	LBB0_27
## %bb.26:
	notl	%ecx
	andl	%ecx, -56(%rbp)
	jmp	LBB0_29
LBB0_27:
	orl	%ecx, -56(%rbp)
	jmp	LBB0_29
LBB0_28:
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movq	_PARENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-64(%rbp), %eax
	movq	_old_tc@GOTPCREL(%rip), %rdx
	movl	16(%rdx), %edx
	xorl	%eax, %edx
	andl	%ecx, %edx
	xorl	%eax, %edx
	movl	%edx, -64(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
LBB0_29:
	movl	$1, -84(%rbp)
	movq	_rlogin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	__POSIX_VDISABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_31
## %bb.30:
	movq	_escape@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_31:
	movq	-72(%rbp), %rdx
	movq	_VEOL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	(%rdx,%rsi,4), %rdi
	cmpq	%rax, %rdi
	je	LBB0_35
## %bb.32:
	cmpq	%rcx, %rdi
	jne	LBB0_35
## %bb.33:
	movl	%eax, (%rdx,%rsi,4)
LBB0_35:
	movq	_tin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_tcsetattr
	testq	%rax, %rax
	jns	LBB0_37
## %bb.36:
	movl	(%rbx), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_tcsetattr
LBB0_37:
	movl	(%rbx), %edi
	movq	_FIONBIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-84(%rbp), %r14
	movq	%r14, %rdx
	callq	_ioctl
	movq	_tout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_ioctl
LBB0_38:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_TerminalNewMode.prevmode,4,2 ## @TerminalNewMode.prevmode
	.comm	_MODE_FORCE,4,2                 ## @MODE_FORCE
	.comm	_globalmode,4,2                 ## @globalmode
	.comm	_SYNCHing,4,2                   ## @SYNCHing
	.comm	_flushout,4,2                   ## @flushout
	.comm	_tin,4,2                        ## @tin
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_new_tc,32,3                    ## @new_tc
	.comm	_MODE_ECHO,4,2                  ## @MODE_ECHO
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ONLCR,4,2                      ## @ONLCR
	.comm	_crlf,8,3                       ## @crlf
	.comm	_ICRNL,4,2                      ## @ICRNL
	.comm	_MODE_FLOW,4,2                  ## @MODE_FLOW
	.comm	_IXOFF,4,2                      ## @IXOFF
	.comm	_IXON,4,2                       ## @IXON
	.comm	_restartany,8,3                 ## @restartany
	.comm	_IXANY,4,2                      ## @IXANY
	.comm	_MODE_TRAPSIG,4,2               ## @MODE_TRAPSIG
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_localchars,4,2                 ## @localchars
	.comm	_MODE_EDIT,4,2                  ## @MODE_EDIT
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_MODE_SOFT_TAB,4,2              ## @MODE_SOFT_TAB
	.comm	_MODE_LIT_ECHO,4,2              ## @MODE_LIT_ECHO
	.comm	_MODE_INBIN,4,2                 ## @MODE_INBIN
	.comm	_ISTRIP,4,2                     ## @ISTRIP
	.comm	_MODE_OUTBIN,4,2                ## @MODE_OUTBIN
	.comm	_MODE_OUT8,4,2                  ## @MODE_OUT8
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_CS8,4,2                        ## @CS8
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	_old_tc,32,3                    ## @old_tc
	.comm	_rlogin,8,3                     ## @rlogin
	.comm	__POSIX_VDISABLE,8,3            ## @_POSIX_VDISABLE
	.comm	_escape,8,3                     ## @escape
	.comm	_VEOL,8,3                       ## @VEOL
	.comm	_TCSANOW,4,2                    ## @TCSANOW
	.comm	_FIONBIO,4,2                    ## @FIONBIO
	.comm	_tout,4,2                       ## @tout
	.comm	_ECHOCTL,4,2                    ## @ECHOCTL
	.comm	_NOKERNINFO,4,2                 ## @NOKERNINFO
	.comm	_OXTABS,4,2                     ## @OXTABS
	.comm	_SIGINFO,4,2                    ## @SIGINFO
	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SIG_UNBLOCK,4,2                ## @SIG_UNBLOCK
	.comm	_TAB3,4,2                       ## @TAB3
	.comm	_TABDLY,4,2                     ## @TABDLY
	.comm	_VDSUSP,8,3                     ## @VDSUSP
	.comm	_VEOL2,8,3                      ## @VEOL2
	.comm	_VLNEXT,8,3                     ## @VLNEXT
	.comm	_ayt,4,2                        ## @ayt
	.comm	_ayt_status,4,2                 ## @ayt_status
	.comm	_susp,4,2                       ## @susp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminalNewMode                ; -- Begin function TerminalNewMode
	.p2align	2
_TerminalNewMode:                       ; @TerminalNewMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _MODE_FORCE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MODE_FORCE@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh2:
	adrp	x9, _globalmode@GOTPAGE
Lloh3:
	ldr	x9, [x9, _globalmode@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	adrp	x23, _TerminalNewMode.prevmode@PAGE
	ldr	w8, [x23, _TerminalNewMode.prevmode@PAGEOFF]
	cmp	w8, w0
	b.eq	LBB0_35
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x24, _SYNCHing@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SYNCHing@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh7:
	adrp	x25, _flushout@GOTPAGE
Lloh8:
	ldr	x25, [x25, _flushout@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w0, w9, w8
	bl	_ttyflush
Lloh9:
	adrp	x20, _tin@GOTPAGE
Lloh10:
	ldr	x20, [x20, _tin@GOTPAGEOFF]
Lloh11:
	adrp	x21, _TCSADRAIN@GOTPAGE
Lloh12:
	ldr	x21, [x21, _TCSADRAIN@GOTPAGEOFF]
	cmp	w0, #2
	b.lo	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	add	x1, sp, #16
	bl	_tcgetattr
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x2, sp, #16
	bl	_tcsetattr
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w0, w9, w8
	bl	_ttyflush
	cmp	w0, #1
	b.hi	LBB0_3
LBB0_4:
	ldr	w8, [x22]
	bic	w8, w19, w8
Lloh13:
	adrp	x9, _new_tc@GOTPAGE
Lloh14:
	ldr	x9, [x9, _new_tc@GOTPAGEOFF]
	str	w8, [x23, _TerminalNewMode.prevmode@PAGEOFF]
	ldp	q0, q1, [x9]
Lloh15:
	adrp	x8, _MODE_ECHO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MODE_ECHO@GOTPAGEOFF]
	stp	q0, q1, [sp, #16]
Lloh17:
	ldr	w9, [x8]
Lloh18:
	adrp	x8, _ECHO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w9, w19
	b.eq	LBB0_7
; %bb.5:
	ldp	w9, w10, [sp, #36]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _ONLCR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ONLCR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [sp, #40]
Lloh24:
	adrp	x9, _crlf@GOTPAGE
Lloh25:
	ldr	x9, [x9, _crlf@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cbz	x9, LBB0_8
; %bb.6:
Lloh27:
	adrp	x9, _ICRNL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ICRNL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w10, [sp, #16]
	orr	w9, w10, w9
	str	w9, [sp, #16]
	b	LBB0_8
LBB0_7:
	ldp	w9, w10, [sp, #36]
	bic	w8, w9, w8
Lloh30:
	adrp	x9, _ONLCR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ONLCR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	bic	w9, w10, w9
	str	w9, [sp, #40]
LBB0_8:
Lloh33:
	adrp	x9, _MODE_FLOW@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MODE_FLOW@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_12
; %bb.9:
Lloh36:
	adrp	x9, _restartany@GOTPAGE
Lloh37:
	ldr	x9, [x9, _restartany@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	tbnz	x9, #63, LBB0_13
; %bb.10:
Lloh39:
	adrp	x10, _IXOFF@GOTPAGE
Lloh40:
	ldr	x10, [x10, _IXOFF@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
Lloh42:
	adrp	x11, _IXON@GOTPAGE
Lloh43:
	ldr	x11, [x11, _IXON@GOTPAGEOFF]
Lloh44:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cbz	x9, LBB0_15
; %bb.11:
Lloh45:
	adrp	x9, _IXANY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IXANY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	b	LBB0_14
LBB0_12:
Lloh48:
	adrp	x9, _IXOFF@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IXOFF@GOTPAGEOFF]
Lloh50:
	adrp	x10, _IXON@GOTPAGE
Lloh51:
	ldr	x10, [x10, _IXON@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
Lloh53:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [sp, #16]
	bic	w9, w10, w9
	b	LBB0_16
LBB0_13:
Lloh54:
	adrp	x9, _IXOFF@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IXOFF@GOTPAGEOFF]
Lloh56:
	adrp	x10, _IXON@GOTPAGE
Lloh57:
	ldr	x10, [x10, _IXON@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
Lloh59:
	ldr	w10, [x10]
LBB0_14:
	orr	w9, w10, w9
	ldr	w10, [sp, #16]
	orr	w9, w9, w10
	b	LBB0_16
LBB0_15:
	ldr	w9, [sp, #16]
	orr	w9, w10, w9
Lloh60:
	adrp	x10, _IXANY@GOTPAGE
Lloh61:
	ldr	x10, [x10, _IXANY@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	bic	w9, w9, w10
LBB0_16:
	str	w9, [sp, #16]
Lloh63:
	adrp	x10, _MODE_TRAPSIG@GOTPAGE
Lloh64:
	ldr	x10, [x10, _MODE_TRAPSIG@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	tst	w10, w19
	cset	w10, ne
Lloh66:
	adrp	x11, _ISIG@GOTPAGE
Lloh67:
	ldr	x11, [x11, _ISIG@GOTPAGEOFF]
Lloh68:
	ldr	w11, [x11]
	orr	w12, w8, w11
	bic	w8, w8, w11
	csel	w8, w8, w12, eq
Lloh69:
	adrp	x11, _localchars@GOTPAGE
Lloh70:
	ldr	x11, [x11, _localchars@GOTPAGEOFF]
Lloh71:
	adrp	x12, _MODE_EDIT@GOTPAGE
Lloh72:
	ldr	x12, [x12, _MODE_EDIT@GOTPAGEOFF]
Lloh73:
	str	w10, [x11]
Lloh74:
	ldr	w11, [x12]
Lloh75:
	adrp	x10, _ICANON@GOTPAGE
Lloh76:
	ldr	x10, [x10, _ICANON@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	tst	w11, w19
	b.eq	LBB0_20
; %bb.17:
	orr	w8, w8, w10
	str	w8, [sp, #36]
	cmn	w19, #1
	b.eq	LBB0_21
LBB0_18:
Lloh78:
	adrp	x8, _MODE_INBIN@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MODE_INBIN@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x8]
Lloh81:
	adrp	x8, _ISTRIP@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ISTRIP@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	tst	w9, w19
	b.eq	LBB0_22
; %bb.19:
	ldr	w9, [sp, #16]
	bic	w8, w9, w8
	b	LBB0_23
LBB0_20:
Lloh84:
	adrp	x11, _ICRNL@GOTPAGE
Lloh85:
	ldr	x11, [x11, _ICRNL@GOTPAGEOFF]
	bic	w8, w8, w10
Lloh86:
	ldr	w10, [x11]
	bic	w9, w9, w10
	str	w8, [sp, #36]
	str	w9, [sp, #16]
	ldr	x8, [sp, #24]
Lloh87:
	adrp	x9, _VMIN@GOTPAGE
Lloh88:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh89:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh90:
	adrp	x9, _VTIME@GOTPAGE
Lloh91:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh92:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
	cmn	w19, #1
	b.ne	LBB0_18
LBB0_21:
	str	wzr, [sp, #12]
Lloh93:
	adrp	x8, _old_tc@GOTPAGE
Lloh94:
	ldr	x8, [x8, _old_tc@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	b	LBB0_32
LBB0_22:
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
LBB0_23:
	str	w8, [sp, #16]
Lloh95:
	adrp	x8, _MODE_OUTBIN@GOTPAGE
Lloh96:
	ldr	x8, [x8, _MODE_OUTBIN@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	ands	w8, w8, w19
	b.ne	LBB0_25
; %bb.24:
Lloh98:
	adrp	x9, _MODE_OUT8@GOTPAGE
Lloh99:
	ldr	x9, [x9, _MODE_OUT8@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_28
LBB0_25:
Lloh101:
	adrp	x9, _CSIZE@GOTPAGE
Lloh102:
	ldr	x9, [x9, _CSIZE@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
Lloh104:
	adrp	x10, _PARENB@GOTPAGE
Lloh105:
	ldr	x10, [x10, _PARENB@GOTPAGEOFF]
Lloh106:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [sp, #32]
	bic	w9, w10, w9
Lloh107:
	adrp	x10, _CS8@GOTPAGE
Lloh108:
	ldr	x10, [x10, _CS8@GOTPAGEOFF]
Lloh109:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #32]
Lloh110:
	adrp	x9, _OPOST@GOTPAGE
Lloh111:
	ldr	x9, [x9, _OPOST@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
	cbz	w8, LBB0_27
; %bb.26:
	ldr	w8, [sp, #40]
	bic	w8, w8, w9
	str	w8, [sp, #40]
	b	LBB0_29
LBB0_27:
	ldr	w8, [sp, #40]
	orr	w8, w8, w9
	str	w8, [sp, #40]
	b	LBB0_29
LBB0_28:
Lloh113:
	adrp	x8, _CSIZE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh115:
	ldr	w8, [x8]
Lloh116:
	adrp	x9, _PARENB@GOTPAGE
Lloh117:
	ldr	x9, [x9, _PARENB@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #32]
	ldr	w10, [sp, #40]
	bic	w9, w9, w8
Lloh119:
	adrp	x11, _old_tc@GOTPAGE
Lloh120:
	ldr	x11, [x11, _old_tc@GOTPAGEOFF]
Lloh121:
	ldr	w11, [x11, #16]
	and	w8, w11, w8
	orr	w8, w8, w9
Lloh122:
	adrp	x9, _OPOST@GOTPAGE
Lloh123:
	ldr	x9, [x9, _OPOST@GOTPAGEOFF]
Lloh124:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w8, [sp, #32]
	str	w9, [sp, #40]
LBB0_29:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh125:
	adrp	x8, _rlogin@GOTPAGE
Lloh126:
	ldr	x8, [x8, _rlogin@GOTPAGEOFF]
Lloh127:
	ldr	x8, [x8]
Lloh128:
	adrp	x9, __POSIX_VDISABLE@GOTPAGE
Lloh129:
	ldr	x9, [x9, __POSIX_VDISABLE@GOTPAGEOFF]
Lloh130:
	ldr	x11, [x9]
Lloh131:
	adrp	x9, _escape@GOTPAGE
Lloh132:
	ldr	x9, [x9, _escape@GOTPAGEOFF]
Lloh133:
	ldr	x9, [x9]
	cmp	x8, x11
	csel	x8, x9, x8, eq
	ldr	x9, [sp, #24]
Lloh134:
	adrp	x10, _VEOL@GOTPAGE
Lloh135:
	ldr	x10, [x10, _VEOL@GOTPAGEOFF]
Lloh136:
	ldr	x10, [x10]
	ldrsw	x12, [x9, x10, lsl #2]
	cmp	x12, x8
	b.eq	LBB0_32
; %bb.30:
	cmp	x12, x11
	b.ne	LBB0_32
; %bb.31:
	str	w8, [x9, x10, lsl #2]
LBB0_32:
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x2, sp, #16
	bl	_tcsetattr
	tbz	x0, #63, LBB0_34
; %bb.33:
	ldr	w0, [x20]
Lloh137:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh138:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh139:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_tcsetattr
LBB0_34:
	ldr	w0, [x20]
Lloh140:
	adrp	x19, _FIONBIO@GOTPAGE
Lloh141:
	ldr	x19, [x19, _FIONBIO@GOTPAGEOFF]
	ldr	w1, [x19]
	add	x2, sp, #12
	bl	_ioctl
Lloh142:
	adrp	x8, _tout@GOTPAGE
Lloh143:
	ldr	x8, [x8, _tout@GOTPAGEOFF]
Lloh144:
	ldr	w0, [x8]
	ldr	w1, [x19]
	add	x2, sp, #12
	bl	_ioctl
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh58
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotStr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGot	Lloh140, Lloh141
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_TerminalNewMode.prevmode,4,2 ; @TerminalNewMode.prevmode
	.comm	_MODE_FORCE,4,2                 ; @MODE_FORCE
	.comm	_globalmode,4,2                 ; @globalmode
	.comm	_SYNCHing,4,2                   ; @SYNCHing
	.comm	_flushout,4,2                   ; @flushout
	.comm	_tin,4,2                        ; @tin
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_new_tc,32,3                    ; @new_tc
	.comm	_MODE_ECHO,4,2                  ; @MODE_ECHO
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ONLCR,4,2                      ; @ONLCR
	.comm	_crlf,8,3                       ; @crlf
	.comm	_ICRNL,4,2                      ; @ICRNL
	.comm	_MODE_FLOW,4,2                  ; @MODE_FLOW
	.comm	_IXOFF,4,2                      ; @IXOFF
	.comm	_IXON,4,2                       ; @IXON
	.comm	_restartany,8,3                 ; @restartany
	.comm	_IXANY,4,2                      ; @IXANY
	.comm	_MODE_TRAPSIG,4,2               ; @MODE_TRAPSIG
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_localchars,4,2                 ; @localchars
	.comm	_MODE_EDIT,4,2                  ; @MODE_EDIT
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_MODE_SOFT_TAB,4,2              ; @MODE_SOFT_TAB
	.comm	_MODE_LIT_ECHO,4,2              ; @MODE_LIT_ECHO
	.comm	_MODE_INBIN,4,2                 ; @MODE_INBIN
	.comm	_ISTRIP,4,2                     ; @ISTRIP
	.comm	_MODE_OUTBIN,4,2                ; @MODE_OUTBIN
	.comm	_MODE_OUT8,4,2                  ; @MODE_OUT8
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_CS8,4,2                        ; @CS8
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	_old_tc,32,3                    ; @old_tc
	.comm	_rlogin,8,3                     ; @rlogin
	.comm	__POSIX_VDISABLE,8,3            ; @_POSIX_VDISABLE
	.comm	_escape,8,3                     ; @escape
	.comm	_VEOL,8,3                       ; @VEOL
	.comm	_TCSANOW,4,2                    ; @TCSANOW
	.comm	_FIONBIO,4,2                    ; @FIONBIO
	.comm	_tout,4,2                       ; @tout
	.comm	_ECHOCTL,4,2                    ; @ECHOCTL
	.comm	_NOKERNINFO,4,2                 ; @NOKERNINFO
	.comm	_OXTABS,4,2                     ; @OXTABS
	.comm	_SIGINFO,4,2                    ; @SIGINFO
	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SIG_UNBLOCK,4,2                ; @SIG_UNBLOCK
	.comm	_TAB3,4,2                       ; @TAB3
	.comm	_TABDLY,4,2                     ; @TABDLY
	.comm	_VDSUSP,8,3                     ; @VDSUSP
	.comm	_VEOL2,8,3                      ; @VEOL2
	.comm	_VLNEXT,8,3                     ; @VLNEXT
	.comm	_ayt,4,2                        ; @ayt
	.comm	_ayt_status,4,2                 ; @ayt_status
	.comm	_susp,4,2                       ; @susp
.subsections_via_symbols
