	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_terminal_disable_input   ## -- Begin function linux_terminal_disable_input
	.p2align	4, 0x90
_linux_terminal_disable_input:          ## @linux_terminal_disable_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	movq	$0, -20(%rbp)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_isatty
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_linux_terminal_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_KDSKBMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_K_MEDIUMRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	leaq	-20(%rbp), %rdi
	movq	_linux_terminal_restore_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_SA_RESTART@GOTPCREL(%rip), %rax
	movq	_SA_RESETHAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -24(%rbp)
	callq	_sigemptyset
	movq	_SIGABRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGFPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_linux_terminal_restore_input@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_linux_terminal_flush
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KDSKBMODE,4,2                  ## @KDSKBMODE
	.comm	_K_MEDIUMRAW,4,2                ## @K_MEDIUMRAW
	.comm	_linux_terminal_restore_signal,4,2 ## @linux_terminal_restore_signal
	.comm	_SA_RESTART,4,2                 ## @SA_RESTART
	.comm	_SA_RESETHAND,4,2               ## @SA_RESETHAND
	.comm	_SIGABRT,4,2                    ## @SIGABRT
	.comm	_SIGBUS,4,2                     ## @SIGBUS
	.comm	_SIGFPE,4,2                     ## @SIGFPE
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
	.comm	_linux_terminal_restore_input,4,2 ## @linux_terminal_restore_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_terminal_disable_input   ; -- Begin function linux_terminal_disable_input
	.p2align	2
_linux_terminal_disable_input:          ; @linux_terminal_disable_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	str	wzr, [sp, #12]
	stur	xzr, [sp, #4]
	mov	w0, #0
	bl	_isatty
	cbz	w0, LBB0_5
; %bb.1:
	bl	_linux_terminal_init
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _KDSKBMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KDSKBMODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _K_MEDIUMRAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _K_MEDIUMRAW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x8, sp
	orr	x0, x8, #0x4
Lloh6:
	adrp	x8, _linux_terminal_restore_signal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _linux_terminal_restore_signal@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SA_RESTART@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SA_RESTART@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _SA_RESETHAND@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SA_RESETHAND@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w8, [sp, #8]
	str	w9, [sp]
	bl	_sigemptyset
Lloh15:
	adrp	x8, _SIGABRT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGABRT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh18:
	adrp	x8, _SIGBUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGBUS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh21:
	adrp	x8, _SIGFPE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIGFPE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh24:
	adrp	x8, _SIGILL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh27:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh30:
	adrp	x8, _SIGSEGV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIGSEGV@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
Lloh33:
	adrp	x8, _linux_terminal_restore_input@GOTPAGE
Lloh34:
	ldr	x8, [x8, _linux_terminal_restore_input@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_atexit
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	bl	_linux_terminal_flush
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KDSKBMODE,4,2                  ; @KDSKBMODE
	.comm	_K_MEDIUMRAW,4,2                ; @K_MEDIUMRAW
	.comm	_linux_terminal_restore_signal,4,2 ; @linux_terminal_restore_signal
	.comm	_SA_RESTART,4,2                 ; @SA_RESTART
	.comm	_SA_RESETHAND,4,2               ; @SA_RESETHAND
	.comm	_SIGABRT,4,2                    ; @SIGABRT
	.comm	_SIGBUS,4,2                     ; @SIGBUS
	.comm	_SIGFPE,4,2                     ; @SIGFPE
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
	.comm	_linux_terminal_restore_input,4,2 ; @linux_terminal_restore_input
.subsections_via_symbols
