	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_filter                      ## -- Begin function ex_filter
	.p2align	4, 0x90
_ex_filter:                             ## @ex_filter
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdx), %rax
	testq	%rax, %rax
	movl	$1, %edx
	cmovneq	%rax, %rdx
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdi, %rbx
	movq	%rdx, (%r8)
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_opts_empty
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_51
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	movq	$-1, -64(%rbp)
	movq	$-1, -56(%rbp)
	movq	_FILTER_READ@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_15
LBB0_3:
	leaq	-64(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_15
## %bb.4:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	-64(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_vfork
	cmpq	$-1, %rax
	je	LBB0_17
## %bb.6:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_54
## %bb.7:
	movl	-56(%rbp), %edi
	cmpl	$-1, %edi
	movl	16(%rbp), %r15d
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	callq	_close
LBB0_9:
	movl	-60(%rbp), %edi
	callq	_close
	movq	_FILTER_RBANG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, %eax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_29
## %bb.10:
	movq	_FILTER_READ@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_29
## %bb.11:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_F_MULTILOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_F_SET
	xorl	%eax, %eax
	callq	_fork
	cmpq	$-1, %rax
	je	LBB0_35
## %bb.12:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_64
## %bb.13:
	movl	-52(%rbp), %edi
	callq	_close
	movq	_FILTER_WRITE@GOTPCREL(%rip), %rax
	movl	16(%rbp), %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_36
## %bb.14:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_filter_ldisplay
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_37
LBB0_15:
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.3(%rip), %rdx
LBB0_18:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_msgq
	movl	-56(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_20
## %bb.19:
	callq	_close
LBB0_20:
	movl	-52(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_22
## %bb.21:
	callq	_close
LBB0_22:
	testq	%r14, %r14
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_fclose
	jmp	LBB0_26
LBB0_24:
	movl	-64(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_26
## %bb.25:
	callq	_close
LBB0_26:
	movl	-60(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_28
## %bb.27:
	callq	_close
LBB0_28:
	movl	$1, %ecx
LBB0_51:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.52:
	movl	%ecx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	cmpl	%r15d, %eax
	jne	LBB0_31
## %bb.30:
	movl	-52(%rbp), %edi
	callq	_close
LBB0_31:
	leaq	L_.str.6(%rip), %rsi
	leaq	-96(%rbp), %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	$1, %r9d
	callq	_ex_readfp
	testq	%rax, %rax
	setne	%r14b
	movq	-96(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	_L_ADDED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%eax, (%rcx,%rdx,4)
	movq	_FILTER_READ@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_34
## %bb.32:
	cmpq	$0, (%r13)
	je	LBB0_41
## %bb.33:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
LBB0_34:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_35:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	callq	_msgq
	movl	-52(%rbp), %edi
	callq	_close
	movl	-64(%rbp), %edi
	callq	_close
	movb	$1, %r14b
	jmp	LBB0_47
LBB0_36:
	leaq	L_.str.6(%rip), %rsi
	leaq	-96(%rbp), %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, %r9d
	callq	_ex_readfp
	testq	%rax, %rax
	setne	%r14b
	movl	-96(%rbp), %eax
	movq	8(%rbx), %rcx
	movq	_L_ADDED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%eax, (%rcx,%rdx,4)
LBB0_37:
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_proc_wait
	testq	%rax, %rax
	setne	%r15b
	orb	%r14b, %r15b
	cmpb	$1, %r15b
	je	LBB0_43
## %bb.38:
	movq	_FILTER_BANG@GOTPCREL(%rip), %rax
	movl	16(%rbp), %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_43
## %bb.39:
	movq	_CUT_LINEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_cut
	movb	$1, %r14b
	testl	%eax, %eax
	je	LBB0_42
## %bb.40:
	movq	_F_MULTILOCK@GOTPCREL(%rip), %r12
	jmp	LBB0_47
LBB0_41:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_42:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_del
	testl	%eax, %eax
	movq	_F_MULTILOCK@GOTPCREL(%rip), %r12
	jne	LBB0_47
LBB0_43:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	cmpq	$2, %rsi
	jl	LBB0_46
## %bb.44:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_db_exist
	testl	%eax, %eax
	jne	LBB0_46
## %bb.45:
	decq	(%rbx)
LBB0_46:
	movl	%r15d, %r14d
LBB0_47:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_F_CLR
LBB0_48:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_STRLEN
	leaq	1(%rax), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_INT2CHAR
	xorl	%ecx, %ecx
	movl	16(%rbp), %eax
	movq	_FILTER_READ@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	jne	LBB0_50
## %bb.49:
	movq	_SC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_50:
	movq	%r15, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_proc_wait
	testq	%rax, %rax
	setne	%al
	orb	%al, %r14b
	movzbl	%r14b, %ecx
	jmp	LBB0_51
LBB0_53:
	callq	___stack_chk_fail
LBB0_54:
	movl	-56(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_56
## %bb.55:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
LBB0_56:
	movl	-60(%rbp), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	-60(%rbp), %edi
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	-56(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_58
## %bb.57:
	callq	_close
LBB0_58:
	movl	-52(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_60
## %bb.59:
	callq	_close
LBB0_60:
	movl	-64(%rbp), %edi
	callq	_close
	movl	-60(%rbp), %edi
	callq	_close
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_O_STR
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	jne	LBB0_62
## %bb.61:
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_O_STR
	movq	%rax, %r14
	jmp	LBB0_63
LBB0_62:
	movq	%rax, %r14
	incq	%r14
LBB0_63:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_STRLEN
	leaq	1(%rax), %rdx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_INT2CHAR
	movq	_O_SHELL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_O_STR
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_execl
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_O_STR
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_msgq_str
	movl	$127, %edi
	callq	__exit
LBB0_64:
	movl	-64(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_fdopen
	testq	%rax, %rax
	jne	LBB0_66
## %bb.65:
	movl	$1, %edi
	callq	__exit
LBB0_66:
	leaq	L_.str.6(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$0
	callq	_ex_writefp
	addq	$16, %rsp
	movl	%eax, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_O_SHELL,4,2                    ## @O_SHELL
	.comm	_FILTER_READ,4,2                ## @FILTER_READ
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe"

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

L_.str.2:                               ## @.str.2
	.asciz	"fdopen"

L_.str.3:                               ## @.str.3
	.asciz	"vfork"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
L_.str.4:                               ## @.str.4
	.asciz	"-c"

L_.str.5:                               ## @.str.5
	.asciz	"execl: %s"

	.comm	_FILTER_RBANG,4,2               ## @FILTER_RBANG
L_.str.6:                               ## @.str.6
	.asciz	"filter"

	.comm	_L_ADDED,8,3                    ## @L_ADDED
	.comm	_F_MULTILOCK,4,2                ## @F_MULTILOCK
L_.str.7:                               ## @.str.7
	.asciz	"fork"

L_.str.8:                               ## @.str.8
	.asciz	"w"

	.comm	_FILTER_WRITE,4,2               ## @FILTER_WRITE
L_.str.9:                               ## @.str.9
	.asciz	"parent-writer"

	.comm	_FILTER_BANG,4,2                ## @FILTER_BANG
	.comm	_CUT_LINEMODE,4,2               ## @CUT_LINEMODE
	.comm	_SC_VI,4,2                      ## @SC_VI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_filter                      ; -- Begin function ex_filter
	.p2align	2
_ex_filter:                             ; @ex_filter
	.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	x21, x6
	mov	x20, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x19, x0
	ldr	x8, [x2]
	cmp	x8, #0
	csinc	x8, x8, xzr, ne
	str	x8, [x4]
Lloh0:
	adrp	x27, _O_SHELL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _O_SHELL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_opts_empty
	cbnz	x0, LBB0_28
; %bb.1:
	movi.2d	v0, #0xffffffffffffffff
	stp	d0, d0, [sp, #8]
Lloh2:
	adrp	x28, _FILTER_READ@GOTPAGE
Lloh3:
	ldr	x28, [x28, _FILTER_READ@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.2:
	add	x0, sp, #16
	bl	_pipe
	tbnz	x0, #63, LBB0_15
LBB0_3:
	add	x0, sp, #8
	bl	_pipe
	tbnz	x0, #63, LBB0_15
; %bb.4:
	ldr	w0, [sp, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fdopen
	mov	x26, x0
	cbz	x0, LBB0_16
; %bb.5:
	bl	_vfork
	cmn	x0, #1
	b.eq	LBB0_17
; %bb.6:
	mov	x22, x0
	cbz	x0, LBB0_51
; %bb.7:
	ldr	w0, [sp, #16]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	bl	_close
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_close
Lloh6:
	adrp	x8, _FILTER_RBANG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILTER_RBANG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_30
; %bb.10:
	ldr	w9, [x28]
	cmp	w9, w21
	b.eq	LBB0_30
; %bb.11:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _F_MULTILOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_MULTILOCK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_F_SET
	bl	_fork
	cmn	x0, #1
	b.eq	LBB0_35
; %bb.12:
	mov	x27, x0
	cbz	x0, LBB0_61
; %bb.13:
	ldr	w0, [sp, #20]
	bl	_close
Lloh12:
	adrp	x8, _FILTER_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FILTER_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_36
; %bb.14:
	mov	x0, x19
	mov	x1, x26
	bl	_filter_ldisplay
	cmp	w0, #0
	cset	w26, ne
	b	LBB0_37
LBB0_15:
	mov	x26, #0
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_18:
Lloh21:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_msgq
	ldr	w0, [sp, #16]
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.19:
	bl	_close
LBB0_20:
	ldr	w0, [sp, #20]
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.21:
	bl	_close
LBB0_22:
	cbz	x26, LBB0_24
; %bb.23:
	mov	x0, x26
	bl	_fclose
	b	LBB0_26
LBB0_24:
	ldr	w0, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.25:
	bl	_close
LBB0_26:
	ldr	w0, [sp, #12]
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.27:
	bl	_close
LBB0_28:
	mov	w0, #1
LBB0_29:
	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_30:
	cmp	w8, w21
	b.ne	LBB0_32
; %bb.31:
	ldr	w0, [sp, #20]
	bl	_close
LBB0_32:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x4, sp, #24
	mov	x0, x19
	mov	x2, x26
	mov	x3, x24
	mov	w5, #1
	bl	_ex_readfp
	cmp	x0, #0
	cset	w26, ne
	ldr	x9, [x19, #8]
Lloh26:
	adrp	x8, _L_ADDED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _L_ADDED@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	ldr	x8, [sp, #24]
	add	w11, w11, w8
	str	w11, [x9, x10]
	ldr	w9, [x28]
	cmp	w9, w21
	b.ne	LBB0_46
; %bb.33:
	ldr	x9, [x24]
	cbz	x9, LBB0_50
; %bb.34:
	ldr	x9, [x23]
	add	x8, x9, x8
	str	x8, [x23]
	b	LBB0_46
LBB0_35:
Lloh29:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.7@PAGE
Lloh33:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_msgq
	ldr	w0, [sp, #20]
	bl	_close
	ldr	w0, [sp, #8]
	bl	_close
	mov	w26, #1
	b	LBB0_45
LBB0_36:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x4, sp, #24
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	mov	w5, #1
	bl	_ex_readfp
	cmp	x0, #0
	cset	w26, ne
	ldr	w8, [sp, #24]
	ldr	x9, [x19, #8]
Lloh36:
	adrp	x10, _L_ADDED@GOTPAGE
Lloh37:
	ldr	x10, [x10, _L_ADDED@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	add	w8, w11, w8
	str	w8, [x9, x10]
LBB0_37:
Lloh39:
	adrp	x2, l_.str.9@PAGE
Lloh40:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x1, x27
	mov	w3, #0
	mov	w4, #1
	bl	_proc_wait
	cmp	x0, #0
	cset	w8, ne
	orr	w27, w8, w26
	cmp	w27, #1
	b.eq	LBB0_41
; %bb.38:
Lloh41:
	adrp	x8, _FILTER_BANG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FILTER_BANG@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_41
; %bb.39:
Lloh44:
	adrp	x8, _CUT_LINEMODE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CUT_LINEMODE@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x24
	mov	x3, x25
	bl	_cut
	mov	w26, #1
	cbnz	w0, LBB0_45
; %bb.40:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	w3, #1
	bl	_del
	cbnz	w0, LBB0_45
LBB0_41:
	ldr	x1, [x23]
	cmp	x1, #2
	b.lt	LBB0_44
; %bb.42:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_db_exist
	cbnz	w0, LBB0_44
; %bb.43:
	ldr	x8, [x23]
	sub	x8, x8, #1
	str	x8, [x23]
LBB0_44:
	mov	x26, x27
LBB0_45:
	ldr	w0, [x19]
Lloh47:
	adrp	x8, _F_MULTILOCK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _F_MULTILOCK@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_F_CLR
LBB0_46:
	mov	x0, x20
	bl	_STRLEN
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_INT2CHAR
	ldr	w8, [x28]
	cmp	w8, w21
	b.ne	LBB0_48
; %bb.47:
Lloh50:
	adrp	x8, _SC_VI@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SC_VI@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cmp	x0, #0
	cset	w3, ne
	b	LBB0_49
LBB0_48:
	mov	w3, #0
LBB0_49:
	mov	x0, x19
	mov	x1, x22
	mov	w4, #0
	bl	_proc_wait
	cmp	x0, #0
	cset	w8, ne
	orr	w0, w26, w8
	b	LBB0_29
LBB0_50:
	str	x8, [x23]
	b	LBB0_46
LBB0_51:
	ldr	w0, [sp, #16]
	cmn	w0, #1
	b.eq	LBB0_53
; %bb.52:
Lloh53:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh54:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_dup2
LBB0_53:
	ldr	w0, [sp, #12]
Lloh56:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	bl	_dup2
	ldr	w0, [sp, #12]
Lloh59:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh60:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	bl	_dup2
	ldr	w0, [sp, #16]
	cmn	w0, #1
	b.eq	LBB0_55
; %bb.54:
	bl	_close
LBB0_55:
	ldr	w0, [sp, #20]
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.56:
	bl	_close
LBB0_57:
	ldr	w0, [sp, #8]
	bl	_close
	ldr	w0, [sp, #12]
	bl	_close
	ldr	w1, [x27]
	mov	x0, x19
	bl	_O_STR
	mov	w1, #47
	bl	_strrchr
	cbnz	x0, LBB0_59
; %bb.58:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_O_STR
	mov	x21, x0
	b	LBB0_60
LBB0_59:
	add	x21, x0, #1
LBB0_60:
	mov	x0, x20
	bl	_STRLEN
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_INT2CHAR
	ldr	w1, [x27]
	mov	x0, x19
	bl	_O_STR
Lloh62:
	adrp	x2, l_.str.4@PAGE
Lloh63:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x21
	mov	x4, #0
	bl	_execl
Lloh64:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh66:
	ldr	w20, [x8]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_O_STR
	mov	x2, x0
Lloh67:
	adrp	x3, l_.str.5@PAGE
Lloh68:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_msgq_str
	mov	w0, #127
	bl	__exit
LBB0_61:
	ldr	w0, [sp, #8]
	bl	_close
	ldr	w0, [sp, #20]
Lloh69:
	adrp	x1, l_.str.8@PAGE
Lloh70:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fdopen
	cbnz	x0, LBB0_63
; %bb.62:
	mov	w0, #1
	bl	__exit
LBB0_63:
	mov	x2, x0
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	mov	x4, x25
	mov	x5, #0
	mov	x6, #0
	mov	w7, #1
	bl	_ex_writefp
	bl	__exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_O_SHELL,4,2                    ; @O_SHELL
	.comm	_FILTER_READ,4,2                ; @FILTER_READ
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe"

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

l_.str.2:                               ; @.str.2
	.asciz	"fdopen"

l_.str.3:                               ; @.str.3
	.asciz	"vfork"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
l_.str.4:                               ; @.str.4
	.asciz	"-c"

l_.str.5:                               ; @.str.5
	.asciz	"execl: %s"

	.comm	_FILTER_RBANG,4,2               ; @FILTER_RBANG
l_.str.6:                               ; @.str.6
	.asciz	"filter"

	.comm	_L_ADDED,8,3                    ; @L_ADDED
	.comm	_F_MULTILOCK,4,2                ; @F_MULTILOCK
l_.str.7:                               ; @.str.7
	.asciz	"fork"

l_.str.8:                               ; @.str.8
	.asciz	"w"

	.comm	_FILTER_WRITE,4,2               ; @FILTER_WRITE
l_.str.9:                               ; @.str.9
	.asciz	"parent-writer"

	.comm	_FILTER_BANG,4,2                ; @FILTER_BANG
	.comm	_CUT_LINEMODE,4,2               ; @CUT_LINEMODE
	.comm	_SC_VI,4,2                      ; @SC_VI
.subsections_via_symbols
