	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_Shutdown                   ## -- Begin function CON_Shutdown
	.p2align	4, 0x90
_CON_Shutdown:                          ## @CON_Shutdown
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ttycon_on@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_CON_Hide
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TTY_tc@GOTPCREL(%rip), %rdx
	callq	_tcsetattr
LBB0_2:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fcntl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ttycon_on,8,3                  ## @ttycon_on
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_TTY_tc,4,2                     ## @TTY_tc
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_Shutdown                   ; -- Begin function CON_Shutdown
	.p2align	2
_CON_Shutdown:                          ; @CON_Shutdown
	.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	x8, _ttycon_on@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ttycon_on@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x19, _STDIN_FILENO@GOTPAGE
Lloh4:
	ldr	x19, [x19, _STDIN_FILENO@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_CON_Hide
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, _TTY_tc@GOTPAGE
Lloh9:
	ldr	x2, [x2, _TTY_tc@GOTPAGEOFF]
	bl	_tcsetattr
LBB0_2:
	ldr	w19, [x19]
Lloh10:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fcntl
Lloh16:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fcntl
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ttycon_on,8,3                  ; @ttycon_on
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_TTY_tc,4,2                     ; @TTY_tc
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
.subsections_via_symbols
