	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_Init                       ## -- Begin function CON_Init
	.p2align	4, 0x90
_CON_Init:                              ## @CON_Init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SIGTTIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTTOU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGCONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CON_SigCont@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_fcntl
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_fcntl
	movq	_stdinIsATTY@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_TTY_con@GOTPCREL(%rip), %rdi
	callq	_Field_Clear
	movl	(%r15), %edi
	movq	_TTY_tc@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	movq	(%rbx), %rax
	movq	_VERASE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_TTY_erase@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_VEOF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movups	(%rbx), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_ECHO@GOTPCREL(%rip), %rcx
	movq	_ICANON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, -40(%rbp)
	movq	_ISTRIP@GOTPCREL(%rip), %rcx
	movq	_INPCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, -36(%rbp)
	movq	_TTY_eof@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-48(%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)
	movl	(%r15), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_tcsetattr
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ttycon_on@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ttycon_hide@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_CON_Show
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ttycon_on@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_stdin_active@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGTTIN,4,2                    ## @SIGTTIN
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGTTOU,4,2                    ## @SIGTTOU
	.comm	_SIGCONT,4,2                    ## @SIGCONT
	.comm	_CON_SigCont,4,2                ## @CON_SigCont
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_stdinIsATTY,4,2                ## @stdinIsATTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tty console mode disabled\n"

	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ttycon_on,8,3                  ## @ttycon_on
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_stdin_active,8,3               ## @stdin_active
	.comm	_TTY_con,4,2                    ## @TTY_con
	.comm	_TTY_tc,16,3                    ## @TTY_tc
	.comm	_VERASE,8,3                     ## @VERASE
	.comm	_TTY_erase,4,2                  ## @TTY_erase
	.comm	_VEOF,8,3                       ## @VEOF
	.comm	_TTY_eof,4,2                    ## @TTY_eof
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_ISTRIP,4,2                     ## @ISTRIP
	.comm	_INPCK,4,2                      ## @INPCK
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_ttycon_hide,4,2                ## @ttycon_hide
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_Init                       ; -- Begin function CON_Init
	.p2align	2
_CON_Init:                              ; @CON_Init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _SIGTTIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGTTIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x19, _SIG_IGN@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SIG_IGN@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
Lloh5:
	adrp	x8, _SIGTTOU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGTTOU@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh8:
	adrp	x8, _SIGCONT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGCONT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _CON_SigCont@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CON_SigCont@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_signal
Lloh14:
	adrp	x21, _STDIN_FILENO@GOTPAGE
Lloh15:
	ldr	x21, [x21, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w19, [x21]
Lloh16:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
Lloh19:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fcntl
Lloh22:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_fcntl
Lloh25:
	adrp	x8, _stdinIsATTY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stdinIsATTY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh28:
	adrp	x0, _TTY_con@GOTPAGE
Lloh29:
	ldr	x0, [x0, _TTY_con@GOTPAGEOFF]
	bl	_Field_Clear
	ldr	w0, [x21]
Lloh30:
	adrp	x19, _TTY_tc@GOTPAGE
Lloh31:
	ldr	x19, [x19, _TTY_tc@GOTPAGEOFF]
	mov	x1, x19
	bl	_tcgetattr
Lloh32:
	adrp	x8, _VERASE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VERASE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh34:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh35:
	adrp	x10, _TTY_erase@GOTPAGE
Lloh36:
	ldr	x10, [x10, _TTY_erase@GOTPAGEOFF]
Lloh37:
	str	w8, [x10]
Lloh38:
	adrp	x8, _VEOF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VEOF@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh41:
	adrp	x9, _TTY_eof@GOTPAGE
Lloh42:
	ldr	x9, [x9, _TTY_eof@GOTPAGEOFF]
Lloh43:
	str	w8, [x9]
	ldr	q0, [x19]
	str	q0, [sp]
Lloh44:
	adrp	x8, _ECHO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _ICANON@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ICANON@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [sp, #8]
	bic	w8, w9, w8
Lloh50:
	adrp	x9, _ISTRIP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ISTRIP@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
Lloh53:
	adrp	x11, _INPCK@GOTPAGE
Lloh54:
	ldr	x11, [x11, _INPCK@GOTPAGEOFF]
Lloh55:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bic	w9, w10, w9
	stp	w8, w9, [sp, #8]
	ldr	x8, [sp]
Lloh56:
	adrp	x9, _VMIN@GOTPAGE
Lloh57:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	mov	w19, #1
	str	w19, [x8, x9, lsl #2]
Lloh59:
	adrp	x9, _VTIME@GOTPAGE
Lloh60:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
	ldr	w0, [x21]
Lloh62:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh63:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_tcsetattr
Lloh65:
	adrp	x8, _qtrue@GOTPAGE
Lloh66:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
Lloh68:
	adrp	x9, _ttycon_on@GOTPAGE
Lloh69:
	ldr	x9, [x9, _ttycon_on@GOTPAGEOFF]
Lloh70:
	str	x8, [x9]
Lloh71:
	adrp	x8, _ttycon_hide@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ttycon_hide@GOTPAGEOFF]
Lloh73:
	str	w19, [x8]
	bl	_CON_Show
	b	LBB0_3
LBB0_2:
Lloh74:
	adrp	x0, l_.str@PAGE
Lloh75:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh76:
	adrp	x8, _qfalse@GOTPAGE
Lloh77:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
Lloh79:
	adrp	x9, _ttycon_on@GOTPAGE
Lloh80:
	ldr	x9, [x9, _ttycon_on@GOTPAGEOFF]
Lloh81:
	str	x8, [x9]
Lloh82:
	adrp	x8, _qtrue@GOTPAGE
Lloh83:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
Lloh85:
	adrp	x9, _stdin_active@GOTPAGE
Lloh86:
	ldr	x9, [x9, _stdin_active@GOTPAGEOFF]
Lloh87:
	str	x8, [x9]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotStr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotStr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGTTIN,4,2                    ; @SIGTTIN
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGTTOU,4,2                    ; @SIGTTOU
	.comm	_SIGCONT,4,2                    ; @SIGCONT
	.comm	_CON_SigCont,4,2                ; @CON_SigCont
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_stdinIsATTY,4,2                ; @stdinIsATTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tty console mode disabled\n"

	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ttycon_on,8,3                  ; @ttycon_on
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_stdin_active,8,3               ; @stdin_active
	.comm	_TTY_con,4,2                    ; @TTY_con
	.comm	_TTY_tc,16,3                    ; @TTY_tc
	.comm	_VERASE,8,3                     ; @VERASE
	.comm	_TTY_erase,4,2                  ; @TTY_erase
	.comm	_VEOF,8,3                       ; @VEOF
	.comm	_TTY_eof,4,2                    ; @TTY_eof
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_ISTRIP,4,2                     ; @ISTRIP
	.comm	_INPCK,4,2                      ; @INPCK
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_ttycon_hide,4,2                ; @ttycon_hide
.subsections_via_symbols
