	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doio
_doio:                                  ## @doio
	.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	_didfds@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_33
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_F_REPEAT@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	jne	LBB0_33
## %bb.2:
	movq	%rdx, %r14
	movq	_F_READ@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	jne	LBB0_13
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.4:
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_dcopy
	movq	_SHOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_dcopy
	movq	_SHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_dcopy
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_splicepipe
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_short2str
	movl	%eax, %edi
	callq	_strsave
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_xfree
	movq	_xfree@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cleanup_push
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xopen
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_stderror
LBB0_6:
	movq	%rbx, %rdi
	callq	_cleanup_until
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_dmove
	jmp	LBB0_13
LBB0_7:
	movq	_F_PIPEIN@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rsi, %rbx
	xorl	%edi, %edi
	callq	_xclose
	movl	(%rbx), %edi
	callq	_dup
	movl	%eax, %edi
	callq	_TCSH_IGNORE
	movl	(%rbx), %edi
	callq	_xclose
	movl	4(%rbx), %edi
	callq	_xclose
	jmp	LBB0_13
LBB0_9:
	movq	_F_NOINTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%r13, %rbx
	movq	_tpgrp@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_xclose
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	cmpl	$-1, %r15d
	jne	LBB0_12
## %bb.11:
	movq	__PATH_DEVNULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_xopen
	jmp	LBB0_13
LBB0_12:
	movq	_OLDSTD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, %edi
	callq	_TCSH_IGNORE
LBB0_13:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.14:
	movq	%r12, %rdi
	callq	_splicepipe
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_short2str
	movl	%eax, %edi
	callq	_strsave
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_xfree
	movq	_xfree@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cleanup_push
	movq	_SHOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_dcopy
	movq	_SHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_dcopy
	movq	_F_APPEND@GOTPCREL(%rip), %r15
	testq	%r13, (%r15)
	je	LBB0_15
## %bb.16:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xopen
	movl	%eax, %ebx
	movq	_L_XTND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	(%r15), %rcx
	andq	%r13, %rcx
	sete	%al
	cmpl	$-1, %ebx
	je	LBB0_18
## %bb.17:
	testq	%rcx, %rcx
	jne	LBB0_26
	jmp	LBB0_18
LBB0_27:
	movq	_F_PIPEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%r13, %rbx
	movl	$1, %edi
	callq	_xclose
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.28:
	movl	4(%r14), %edi
	callq	_dup
	movl	%eax, %edi
	callq	_TCSH_IGNORE
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_15:
	movb	$1, %al
LBB0_18:
	movq	_F_OVERWRITE@GOTPCREL(%rip), %rcx
	testq	%r13, (%rcx)
	jne	LBB0_23
## %bb.19:
	movq	_no_clobber@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_23
## %bb.20:
	testb	%al, %al
	jne	LBB0_22
## %bb.21:
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_stderror
LBB0_22:
	movq	%r14, %rdi
	callq	_chkclob
LBB0_23:
	movq	%r14, %rdi
	movl	$438, %esi                      ## imm = 0x1B6
	callq	_xcreat
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_25
## %bb.24:
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_stderror
LBB0_25:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
LBB0_26:
	movq	%r14, %rdi
	callq	_cleanup_until
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_dmove
	movl	$1, %edi
	callq	_isatty
LBB0_30:
	movq	_is1atty@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	$2, %edi
	callq	_xclose
	movq	_F_STDERR@GOTPCREL(%rip), %rax
	movl	$1, %edi
	andq	(%rax), %r13
	jne	LBB0_32
## %bb.31:
	movq	_SHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_isdiagatty@GOTPCREL(%rip), %rbx
LBB0_32:
	callq	_dup
	movl	%eax, %edi
	callq	_TCSH_IGNORE
	movq	(%rbx), %rax
	movq	_is2atty@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_didfds@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_SHOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, %edi
	callq	_TCSH_IGNORE
	movq	_isoutatty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_didfds,4,2                     ## @didfds
	.comm	_F_REPEAT,8,3                   ## @F_REPEAT
	.comm	_F_READ,8,3                     ## @F_READ
	.comm	_SHIN,4,2                       ## @SHIN
	.comm	_SHOUT,4,2                      ## @SHOUT
	.comm	_SHDIAG,4,2                     ## @SHDIAG
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_LARGEFILE,4,2                ## @O_LARGEFILE
	.comm	_ERR_SYSTEM,4,2                 ## @ERR_SYSTEM
	.comm	_errno,4,2                      ## @errno
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_PIPEIN,8,3                   ## @F_PIPEIN
	.comm	_F_NOINTERRUPT,8,3              ## @F_NOINTERRUPT
	.comm	_tpgrp,4,2                      ## @tpgrp
	.comm	__PATH_DEVNULL,8,3              ## @_PATH_DEVNULL
	.comm	_OLDSTD,4,2                     ## @OLDSTD
	.comm	_F_APPEND,8,3                   ## @F_APPEND
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_L_XTND,4,2                     ## @L_XTND
	.comm	_F_OVERWRITE,8,3                ## @F_OVERWRITE
	.comm	_no_clobber,8,3                 ## @no_clobber
	.comm	_is1atty,8,3                    ## @is1atty
	.comm	_F_PIPEOUT,8,3                  ## @F_PIPEOUT
	.comm	_isoutatty,8,3                  ## @isoutatty
	.comm	_F_STDERR,8,3                   ## @F_STDERR
	.comm	_is2atty,8,3                    ## @is2atty
	.comm	_isdiagatty,8,3                 ## @isdiagatty
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.no_dead_strip	_doio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doio
_doio:                                  ; @doio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x24, _didfds@GOTPAGE
Lloh1:
	ldr	x24, [x24, _didfds@GOTPAGEOFF]
	ldr	w8, [x24]
	cbnz	w8, LBB0_28
; %bb.1:
	mov	x20, x0
	ldr	x25, [x0]
Lloh2:
	adrp	x8, _F_REPEAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_REPEAT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	tst	x8, x25
	b.ne	LBB0_28
; %bb.2:
	mov	x19, x2
Lloh5:
	adrp	x8, _F_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_READ@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x26, _SHDIAG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SHDIAG@GOTPAGEOFF]
	tst	x8, x25
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _SHIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SHIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_dcopy
Lloh13:
	adrp	x8, _SHOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SHOUT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_dcopy
	ldr	w0, [x26]
	mov	w1, #2
	bl	_dcopy
	ldr	x1, [x20, #16]
	mov	x0, x20
	bl	_splicepipe
	mov	x21, x0
	bl	_short2str
	bl	_strsave
	mov	x22, x0
	mov	x0, x21
	bl	_xfree
Lloh16:
	adrp	x1, _xfree@GOTPAGE
Lloh17:
	ldr	x1, [x1, _xfree@GOTPAGEOFF]
	mov	x0, x22
	bl	_cleanup_push
Lloh18:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x27, _O_LARGEFILE@GOTPAGE
Lloh22:
	ldr	x27, [x27, _O_LARGEFILE@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_xopen
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _ERR_SYSTEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_SYSTEM@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_stderror
LBB0_6:
	mov	x0, x22
	bl	_cleanup_until
Lloh29:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
Lloh32:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_fcntl
	ldr	w8, [x27]
	orr	w8, w8, w0
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_fcntl
	mov	x0, x21
	mov	w1, #0
	bl	_dmove
	b	LBB0_12
LBB0_7:
Lloh35:
	adrp	x8, _F_PIPEIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _F_PIPEIN@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_9
; %bb.8:
	mov	x21, x1
	mov	w0, #0
	bl	_xclose
	ldr	w0, [x21]
	bl	_dup
	bl	_TCSH_IGNORE
	ldr	w0, [x21]
	bl	_xclose
	ldr	w0, [x21, #4]
	bl	_xclose
	b	LBB0_12
LBB0_9:
Lloh38:
	adrp	x8, _F_NOINTERRUPT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _F_NOINTERRUPT@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	and	x21, x8, x25
Lloh41:
	adrp	x8, _tpgrp@GOTPAGE
Lloh42:
	ldr	x8, [x8, _tpgrp@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_xclose
	cmp	x21, #0
	ccmn	w22, #1, #0, ne
	b.eq	LBB0_11
; %bb.10:
Lloh44:
	adrp	x8, _OLDSTD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OLDSTD@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_dup
	bl	_TCSH_IGNORE
	b	LBB0_12
LBB0_11:
Lloh47:
	adrp	x8, __PATH_DEVNULL@GOTPAGE
Lloh48:
	ldr	x8, [x8, __PATH_DEVNULL@GOTPAGEOFF]
Lloh49:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh50:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh51:
	ldr	x0, [x8]
Lloh52:
	ldr	w8, [x9]
Lloh53:
	adrp	x9, _O_LARGEFILE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _O_LARGEFILE@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_xopen
LBB0_12:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_24
; %bb.13:
	mov	x0, x20
	bl	_splicepipe
	mov	x20, x0
	bl	_short2str
	bl	_strsave
	mov	x19, x0
	mov	x0, x20
	bl	_xfree
Lloh56:
	adrp	x1, _xfree@GOTPAGE
Lloh57:
	ldr	x1, [x1, _xfree@GOTPAGEOFF]
	mov	x0, x19
	bl	_cleanup_push
Lloh58:
	adrp	x8, _SHOUT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SHOUT@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	w21, #1
	mov	w1, #1
	bl	_dcopy
	ldr	w0, [x26]
	mov	w1, #2
	bl	_dcopy
Lloh61:
	adrp	x23, _F_APPEND@GOTPAGE
Lloh62:
	ldr	x23, [x23, _F_APPEND@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh63:
	adrp	x22, _O_LARGEFILE@GOTPAGE
Lloh64:
	ldr	x22, [x22, _O_LARGEFILE@GOTPAGEOFF]
	tst	x8, x25
	b.eq	LBB0_15
; %bb.14:
Lloh65:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh66:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_xopen
	mov	x20, x0
Lloh68:
	adrp	x8, _L_XTND@GOTPAGE
Lloh69:
	ldr	x8, [x8, _L_XTND@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	ldr	x8, [x23]
	ands	x8, x8, x25
	cset	w21, eq
	cmn	w20, #1
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_23
LBB0_15:
Lloh71:
	adrp	x8, _F_OVERWRITE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _F_OVERWRITE@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	tst	x8, x25
	b.ne	LBB0_20
; %bb.16:
Lloh74:
	adrp	x8, _no_clobber@GOTPAGE
Lloh75:
	ldr	x8, [x8, _no_clobber@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.17:
	tbnz	w21, #0, LBB0_19
; %bb.18:
Lloh77:
	adrp	x8, _ERR_SYSTEM@GOTPAGE
Lloh78:
	ldr	x8, [x8, _ERR_SYSTEM@GOTPAGEOFF]
Lloh79:
	ldr	w20, [x8]
Lloh80:
	adrp	x8, _errno@GOTPAGE
Lloh81:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_stderror
LBB0_19:
	mov	x0, x19
	bl	_chkclob
LBB0_20:
	mov	x0, x19
	mov	w1, #438
	bl	_xcreat
	mov	x20, x0
	tbz	w0, #31, LBB0_22
; %bb.21:
Lloh83:
	adrp	x8, _ERR_SYSTEM@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ERR_SYSTEM@GOTPAGEOFF]
Lloh85:
	ldr	w21, [x8]
Lloh86:
	adrp	x8, _errno@GOTPAGE
Lloh87:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_stderror
LBB0_22:
Lloh89:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh90:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh91:
	ldr	w21, [x8]
Lloh92:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh93:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fcntl
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_fcntl
LBB0_23:
	mov	x0, x19
	bl	_cleanup_until
	mov	x0, x20
	mov	w1, #1
	bl	_dmove
	mov	w0, #1
	bl	_isatty
	b	LBB0_27
LBB0_24:
Lloh95:
	adrp	x8, _F_PIPEOUT@GOTPAGE
Lloh96:
	ldr	x8, [x8, _F_PIPEOUT@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8]
	and	x20, x8, x25
	mov	w0, #1
	bl	_xclose
	cbz	x20, LBB0_26
; %bb.25:
	ldr	w0, [x19, #4]
	bl	_dup
	bl	_TCSH_IGNORE
	mov	x0, #0
	b	LBB0_27
LBB0_26:
Lloh98:
	adrp	x8, _SHOUT@GOTPAGE
Lloh99:
	ldr	x8, [x8, _SHOUT@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
	bl	_dup
	bl	_TCSH_IGNORE
Lloh101:
	adrp	x8, _isoutatty@GOTPAGE
Lloh102:
	ldr	x8, [x8, _isoutatty@GOTPAGEOFF]
Lloh103:
	ldr	x0, [x8]
LBB0_27:
Lloh104:
	adrp	x19, _is1atty@GOTPAGE
Lloh105:
	ldr	x19, [x19, _is1atty@GOTPAGEOFF]
	str	x0, [x19]
	mov	w0, #2
	bl	_xclose
Lloh106:
	adrp	x8, _F_STDERR@GOTPAGE
Lloh107:
	ldr	x8, [x8, _F_STDERR@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
	ldr	w9, [x26]
	tst	x8, x25
	csinc	w0, w9, wzr, eq
Lloh109:
	adrp	x8, _isdiagatty@GOTPAGE
Lloh110:
	ldr	x8, [x8, _isdiagatty@GOTPAGEOFF]
	csel	x19, x8, x19, eq
	bl	_dup
	bl	_TCSH_IGNORE
	ldr	x8, [x19]
Lloh111:
	adrp	x9, _is2atty@GOTPAGE
Lloh112:
	ldr	x9, [x9, _is2atty@GOTPAGEOFF]
Lloh113:
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x24]
LBB0_28:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh51
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotStr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh104, Lloh105
	.cfi_endproc
                                        ; -- End function
	.comm	_didfds,4,2                     ; @didfds
	.comm	_F_REPEAT,8,3                   ; @F_REPEAT
	.comm	_F_READ,8,3                     ; @F_READ
	.comm	_SHIN,4,2                       ; @SHIN
	.comm	_SHOUT,4,2                      ; @SHOUT
	.comm	_SHDIAG,4,2                     ; @SHDIAG
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_LARGEFILE,4,2                ; @O_LARGEFILE
	.comm	_ERR_SYSTEM,4,2                 ; @ERR_SYSTEM
	.comm	_errno,4,2                      ; @errno
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_PIPEIN,8,3                   ; @F_PIPEIN
	.comm	_F_NOINTERRUPT,8,3              ; @F_NOINTERRUPT
	.comm	_tpgrp,4,2                      ; @tpgrp
	.comm	__PATH_DEVNULL,8,3              ; @_PATH_DEVNULL
	.comm	_OLDSTD,4,2                     ; @OLDSTD
	.comm	_F_APPEND,8,3                   ; @F_APPEND
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_L_XTND,4,2                     ; @L_XTND
	.comm	_F_OVERWRITE,8,3                ; @F_OVERWRITE
	.comm	_no_clobber,8,3                 ; @no_clobber
	.comm	_is1atty,8,3                    ; @is1atty
	.comm	_F_PIPEOUT,8,3                  ; @F_PIPEOUT
	.comm	_isoutatty,8,3                  ; @isoutatty
	.comm	_F_STDERR,8,3                   ; @F_STDERR
	.comm	_is2atty,8,3                    ; @is2atty
	.comm	_isdiagatty,8,3                 ; @isdiagatty
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.no_dead_strip	_doio
.subsections_via_symbols
