	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cl_read
_cl_read:                               ## @cl_read
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	callq	_CLP
	movq	%rax, %rdi
	movq	_CL_STDIN_TTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_10
## %bb.7:
	leaq	-52(%rbp), %r13
	movq	%r13, %rdi
	callq	_FD_ZERO
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_FD_SET
	movl	(%r12), %edi
	incl	%edi
	xorl	%r12d, %r12d
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_select
	cmpl	$-1, %eax
	je	LBB0_31
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_INP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_43
LBB0_1:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_INP_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_43
LBB0_10:
	movq	_EC_QUOTED@GOTPCREL(%rip), %r14
	movq	_EC_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r14), %edi
	callq	_LF_ISSET
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-96(%rbp), %rsi
	callq	_tcgetattr
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movl	(%r14), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-96(%rbp), %rax
	movq	_ISIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	%rax, %rdx
	shrq	$32, %rdx
	andl	%ecx, %edx
	movl	%edx, -84(%rbp)
	movq	_IXON@GOTPCREL(%rip), %rcx
	movq	_IXOFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, -88(%rbp)
	movl	(%r12), %edi
	movq	_TCSASOFT@GOTPCREL(%rip), %rax
	movq	_TCSADRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	jmp	LBB0_15
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_5:
	movl	%eax, (%r14)
	movq	_INP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_43
LBB0_14:
	movl	(%r12), %edi
	movq	_TCSASOFT@GOTPCREL(%rip), %rax
	movq	_TCSADRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	24(%rbx), %rdx
LBB0_15:
	callq	_tcsetattr
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_G_SCRWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_F_ISSET
	testq	%rax, %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_25
## %bb.17:
	leaq	-52(%rbp), %r14
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r13
	movq	_SC_SCRIPT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_FD_ZERO
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_FD_SET
	movl	(%r13), %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_FD_SET
	movq	16(%r15), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	cmpl	$-1, %eax
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%eax, %eax
	je	LBB0_44
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %rdi
	callq	_sscr_input
	testq	%rax, %rax
	je	LBB0_18
## %bb.24:
	movq	_INP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_43
LBB0_25:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decq	%rdx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_30
## %bb.26:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.27:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rsi)
	cmpl	$48, %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jg	LBB0_29
## %bb.28:
	movq	8(%rsi), %rax
	movq	_VEOF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rax,%rcx), %al
	movb	%al, (%r14)
	movl	$1, (%rdx)
	jmp	LBB0_39
LBB0_30:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_31:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_33
## %bb.32:
	movq	_INP_INTR@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_33:
	movq	_INP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_msgq
	testl	%r12d, %r12d
	jne	LBB0_42
	jmp	LBB0_43
LBB0_34:
	movq	_SC_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_35
## %bb.36:
	movslq	%ebx, %rax
	cmpb	$10, -1(%rax,%r14)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movq	8(%rdi), %rcx
	movq	_VEOF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	(%rcx,%rdx), %cl
	incl	%ebx
	movb	%cl, (%r14,%rax)
	jmp	LBB0_38
LBB0_29:
	movq	_INP_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_35:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_38:
	movl	%ebx, (%rsi)
	movl	$0, (%rdi)
LBB0_39:
	movq	_INP_OK@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %ebx
	testl	%r12d, %r12d
	je	LBB0_43
LBB0_42:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCSASOFT@GOTPCREL(%rip), %rax
	movq	_TCSADRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_tcsetattr
LBB0_43:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_STDIN_TTY,4,2               ## @CL_STDIN_TTY
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_INP_EOF,4,2                    ## @INP_EOF
	.comm	_INP_OK,4,2                     ## @INP_OK
	.comm	_INP_TIMEOUT,4,2                ## @INP_TIMEOUT
	.comm	_EC_QUOTED,4,2                  ## @EC_QUOTED
	.comm	_EC_RAW,4,2                     ## @EC_RAW
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_IXON,4,2                       ## @IXON
	.comm	_IXOFF,4,2                      ## @IXOFF
	.comm	_TCSASOFT,4,2                   ## @TCSASOFT
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_G_SCRWIN,4,2                   ## @G_SCRWIN
	.comm	_SC_SCRIPT,4,2                  ## @SC_SCRIPT
	.comm	_INP_ERR,4,2                    ## @INP_ERR
	.comm	_VEOF,8,3                       ## @VEOF
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_INP_INTR,4,2                   ## @INP_INTR
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input"

	.comm	_SC_EX,4,2                      ## @SC_EX
	.comm	_ONE_FOR_EOF,8,3                ## @ONE_FOR_EOF
	.no_dead_strip	_cl_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cl_read
_cl_read:                               ; @cl_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x0
	ldr	x24, [x0, #32]
	bl	_CLP
	mov	x22, x0
Lloh0:
	adrp	x8, _CL_STDIN_TTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CL_STDIN_TTY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_F_ISSET
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x25, LBB0_8
; %bb.2:
	add	x0, sp, #12
	bl	_FD_ZERO
Lloh3:
	adrp	x26, _STDIN_FILENO@GOTPAGE
Lloh4:
	ldr	x26, [x26, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	w8, [x26]
	add	w0, w8, #1
	add	x1, sp, #12
	mov	x2, #0
	mov	x3, #0
	mov	x4, x25
	bl	_select
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.3:
	cbnz	w0, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _INP_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INP_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_39
LBB0_5:
Lloh8:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x23
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.6:
	cbnz	w0, LBB0_12
; %bb.7:
Lloh11:
	adrp	x8, _INP_EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INP_EOF@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	b	LBB0_39
LBB0_8:
Lloh14:
	adrp	x26, _EC_QUOTED@GOTPAGE
Lloh15:
	ldr	x26, [x26, _EC_QUOTED@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh16:
	adrp	x9, _EC_RAW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EC_RAW@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_LF_ISSET
	cbz	x0, LBB0_10
; %bb.9:
Lloh19:
	adrp	x25, _STDIN_FILENO@GOTPAGE
Lloh20:
	ldr	x25, [x25, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x1, sp, #24
	bl	_tcgetattr
	cbz	w0, LBB0_13
LBB0_10:
	mov	w25, #0
	b	LBB0_17
LBB0_11:
	mov	w25, #0
	b	LBB0_30
LBB0_12:
	str	w0, [x19]
Lloh21:
	adrp	x8, _INP_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INP_OK@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	b	LBB0_39
LBB0_13:
	ldr	w0, [x26]
	bl	_LF_ISSET
	cbz	x0, LBB0_15
; %bb.14:
	ldp	w8, w9, [sp, #24]
Lloh24:
	adrp	x10, _ISIG@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ISIG@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	bic	w9, w9, w10
Lloh27:
	adrp	x10, _IXON@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IXON@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _IXOFF@GOTPAGE
Lloh31:
	ldr	x11, [x11, _IXOFF@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bic	w8, w8, w10
	stp	w8, w9, [sp, #16]
Lloh33:
	adrp	x8, _TCSASOFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TCSASOFT@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _TCSADRAIN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TCSADRAIN@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x2, sp, #16
	b	LBB0_16
LBB0_15:
	ldr	w0, [x25]
Lloh39:
	adrp	x8, _TCSASOFT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TCSASOFT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _TCSADRAIN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TCSADRAIN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x2, x22, #24
LBB0_16:
	bl	_tcsetattr
	mov	w25, #1
LBB0_17:
Lloh45:
	adrp	x8, _G_SCRWIN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _G_SCRWIN@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_F_ISSET
	cbz	x0, LBB0_26
; %bb.18:
Lloh48:
	adrp	x24, _STDIN_FILENO@GOTPAGE
Lloh49:
	ldr	x24, [x24, _STDIN_FILENO@GOTPAGEOFF]
Lloh50:
	adrp	x26, _SC_SCRIPT@GOTPAGE
Lloh51:
	ldr	x26, [x26, _SC_SCRIPT@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	w0, [x24]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	w27, [x24]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, w27
	csel	w27, w8, w27, gt
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w0, w27, #1
	add	x1, sp, #12
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	w0, LBB0_41
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x24]
	add	x1, sp, #12
	bl	_FD_ISSET
	cbnz	w0, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_sscr_input
	cbz	x0, LBB0_19
; %bb.25:
Lloh52:
	adrp	x8, _INP_ERR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _INP_ERR@GOTPAGEOFF]
Lloh54:
	ldr	w19, [x8]
	b	LBB0_39
LBB0_26:
Lloh55:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh56:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	sub	x2, x23, #1
	mov	x1, x21
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.27:
	mov	x23, x0
	cbnz	w0, LBB0_33
; %bb.28:
	ldr	w8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
	cmp	w8, #48
	b.gt	LBB0_40
; %bb.29:
	ldr	x8, [x22, #8]
Lloh58:
	adrp	x9, _VEOF@GOTPAGE
Lloh59:
	ldr	x9, [x9, _VEOF@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	ldrb	w8, [x8, x9]
	strb	w8, [x21]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_37
LBB0_30:
Lloh61:
	adrp	x8, _errno@GOTPAGE
Lloh62:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _EINTR@GOTPAGE
Lloh65:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.31:
Lloh67:
	adrp	x8, _INP_INTR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _INP_INTR@GOTPAGEOFF]
Lloh69:
	ldr	w19, [x8]
	cbnz	w25, LBB0_38
	b	LBB0_39
LBB0_32:
Lloh70:
	adrp	x8, _INP_ERR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _INP_ERR@GOTPAGEOFF]
Lloh72:
	ldr	w19, [x8]
Lloh73:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	adrp	x2, l_.str@PAGE
Lloh77:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msgq
	cbnz	w25, LBB0_38
	b	LBB0_39
LBB0_33:
Lloh78:
	adrp	x8, _SC_EX@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SC_EX@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_36
; %bb.34:
	sxtw	x8, w23
	add	x9, x8, x21
	ldurb	w9, [x9, #-1]
	cmp	w9, #10
	b.eq	LBB0_36
; %bb.35:
	ldr	x9, [x22, #8]
Lloh81:
	adrp	x10, _VEOF@GOTPAGE
Lloh82:
	ldr	x10, [x10, _VEOF@GOTPAGEOFF]
Lloh83:
	ldr	x10, [x10]
	ldrb	w9, [x9, x10]
	add	w23, w23, #1
	strb	w9, [x21, x8]
LBB0_36:
	str	w23, [x19]
	str	wzr, [x22]
LBB0_37:
Lloh84:
	adrp	x8, _INP_OK@GOTPAGE
Lloh85:
	ldr	x8, [x8, _INP_OK@GOTPAGEOFF]
Lloh86:
	ldr	w19, [x8]
	cbz	w25, LBB0_39
LBB0_38:
Lloh87:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh88:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh89:
	adrp	x9, _TCSASOFT@GOTPAGE
Lloh90:
	ldr	x9, [x9, _TCSASOFT@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
Lloh92:
	ldr	w8, [x9]
Lloh93:
	adrp	x9, _TCSADRAIN@GOTPAGE
Lloh94:
	ldr	x9, [x9, _TCSADRAIN@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x2, sp, #24
	bl	_tcsetattr
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_40:
Lloh96:
	adrp	x8, _INP_EOF@GOTPAGE
Lloh97:
	ldr	x8, [x8, _INP_EOF@GOTPAGEOFF]
Lloh98:
	ldr	w19, [x8]
	cbnz	w25, LBB0_38
	b	LBB0_39
LBB0_41:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh91
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_STDIN_TTY,4,2               ; @CL_STDIN_TTY
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_INP_EOF,4,2                    ; @INP_EOF
	.comm	_INP_OK,4,2                     ; @INP_OK
	.comm	_INP_TIMEOUT,4,2                ; @INP_TIMEOUT
	.comm	_EC_QUOTED,4,2                  ; @EC_QUOTED
	.comm	_EC_RAW,4,2                     ; @EC_RAW
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_IXON,4,2                       ; @IXON
	.comm	_IXOFF,4,2                      ; @IXOFF
	.comm	_TCSASOFT,4,2                   ; @TCSASOFT
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_G_SCRWIN,4,2                   ; @G_SCRWIN
	.comm	_SC_SCRIPT,4,2                  ; @SC_SCRIPT
	.comm	_INP_ERR,4,2                    ; @INP_ERR
	.comm	_VEOF,8,3                       ; @VEOF
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_INP_INTR,4,2                   ; @INP_INTR
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input"

	.comm	_SC_EX,4,2                      ; @SC_EX
	.comm	_ONE_FOR_EOF,8,3                ; @ONE_FOR_EOF
	.no_dead_strip	_cl_read
.subsections_via_symbols
