	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixerror                       ## -- Begin function fixerror
	.p2align	4, 0x90
_fixerror:                              ## @fixerror
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_didfds@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_exitset@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_exiterr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_child@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_3:
	movl	$1, %edi
	callq	_xexit
LBB0_4:
	xorl	%eax, %eax
	callq	_btoeof
	movq	_STRstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_setcopy                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_didfds,8,3                     ## @didfds
	.comm	_exitset,4,2                    ## @exitset
	.comm	_exiterr,8,3                    ## @exiterr
	.comm	_child,8,3                      ## @child
	.comm	_STRstatus,4,2                  ## @STRstatus
	.comm	_STR1,4,2                       ## @STR1
	.comm	_VAR_READWRITE,4,2              ## @VAR_READWRITE
	.comm	_FSHTTY,4,2                     ## @FSHTTY
	.comm	_tpgrp,8,3                      ## @tpgrp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixerror                       ; -- Begin function fixerror
	.p2align	2
_fixerror:                              ; @fixerror
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _didfds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _didfds@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _exitset@GOTPAGE
Lloh4:
	ldr	x8, [x8, _exitset@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _exiterr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _exiterr@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _child@GOTPAGE
Lloh10:
	ldr	x10, [x10, _child@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_xexit
LBB0_2:
	bl	_btoeof
Lloh12:
	adrp	x8, _STRstatus@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRstatus@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _STR1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STR1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_setcopy
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_didfds,8,3                     ; @didfds
	.comm	_exitset,4,2                    ; @exitset
	.comm	_exiterr,8,3                    ; @exiterr
	.comm	_child,8,3                      ; @child
	.comm	_STRstatus,4,2                  ; @STRstatus
	.comm	_STR1,4,2                       ; @STR1
	.comm	_VAR_READWRITE,4,2              ; @VAR_READWRITE
	.comm	_FSHTTY,4,2                     ; @FSHTTY
	.comm	_tpgrp,8,3                      ; @tpgrp
.subsections_via_symbols
