	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function defttymode
_defttymode:                            ## @defttymode
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tmode@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movups	(%rbx), %xmm0
	movq	_omode@GOTPCREL(%rip), %r14
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	callq	_dogettytab
	leaq	-32(%rbp), %rdi
	callq	_cfmakesane
	movdqa	-32(%rbp), %xmm0
	movdqu	%xmm0, (%rbx)
	movq	_NC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	movd	%xmm0, %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_3:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	4(%rbx), %rax
	movq	%rax, 4(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 12(%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ttyn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_tmode,16,2                     ## @tmode
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcgetattr %s: %m"

	.comm	_ttyn,4,2                       ## @ttyn
	.comm	_omode,16,2                     ## @omode
	.comm	_NC,8,3                         ## @NC
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.no_dead_strip	_defttymode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function defttymode
_defttymode:                            ; @defttymode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x19, _tmode@GOTPAGE
Lloh4:
	ldr	x19, [x19, _tmode@GOTPAGEOFF]
	mov	x1, x19
	bl	_tcgetattr
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	q0, [x19]
Lloh5:
	adrp	x20, _omode@GOTPAGE
Lloh6:
	ldr	x20, [x20, _omode@GOTPAGEOFF]
	str	q0, [x20]
	bl	_dogettytab
	mov	x0, sp
	bl	_cfmakesane
	ldr	q0, [sp]
	str	q0, [x19]
Lloh7:
	adrp	x8, _NC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NC@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _CLOCAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CLOCAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	fmov	w9, s0
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_3:
	ldr	q0, [x19]
	str	q0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh13:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ttyn@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ttyn@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_tmode,16,2                     ; @tmode
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcgetattr %s: %m"

	.comm	_ttyn,4,2                       ; @ttyn
	.comm	_omode,16,2                     ; @omode
	.comm	_NC,8,3                         ; @NC
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.no_dead_strip	_defttymode
.subsections_via_symbols
