	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttypause
_ttypause:                              ## @ttypause
	.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	_pauseall@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpl	$1, %edi
	jne	LBB0_9
## %bb.2:
	movq	_pausefst@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
LBB0_3:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edi
	callq	_putc
	movq	_EOF@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_getc
	cmpl	$10, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r14), %eax
	jne	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pauseall,8,3                   ## @pauseall
	.comm	_pausefst,8,3                   ## @pausefst
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/tty"

L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_ttypause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttypause
_ttypause:                              ; @ttypause
	.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, _pauseall@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pauseall@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _pausefst@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pausefst@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_isatty
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.5:
	mov	x19, x0
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w0, #7
	bl	_putc
Lloh16:
	adrp	x20, _EOF@GOTPAGE
Lloh17:
	ldr	x20, [x20, _EOF@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_getc
	cmp	w0, #10
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fclose
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_pauseall,8,3                   ; @pauseall
	.comm	_pausefst,8,3                   ; @pausefst
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/tty"

l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_ttypause
.subsections_via_symbols
