	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function real_tty_read_thread
_real_tty_read_thread:                  ## @real_tty_read_thread
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r12
	leaq	-41(%rbp), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_tty_input
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$28, -41(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_raise
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_printk
	testl	%ebx, %ebx
	jns	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tty read returned %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"error: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SIGINT,4,2                     ## @SIGINT
	.no_dead_strip	_real_tty_read_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function real_tty_read_thread
_real_tty_read_thread:                  ; @real_tty_read_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SIGINT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SIGINT@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x25, _errno@GOTPAGE
Lloh7:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_tty_input
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #28
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_raise
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_printk
	tbz	w22, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_strerror
	mov	x1, x0
	mov	x0, x21
	bl	_printk
	b	LBB0_2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tty read returned %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"error: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SIGINT,4,2                     ; @SIGINT
	.no_dead_strip	_real_tty_read_thread
.subsections_via_symbols
