	.file	"68677.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-rF"
.LC1:
	.string	"grep"
.LC2:
	.string	"/bin/grep"
.LC3:
	.string	"-l"
.LC4:
	.string	"wc"
.LC5:
	.string	"/bin/wc"
	.text
	.globl	at
	.type	at, @function
at:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	test	eax, eax
	jne	.L5
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, 0
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	execl@PLT
.L3:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	ecx, 0
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	execl@PLT
.L5:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	at, .-at
	.section	.rodata
.LC6:
	.string	"/bin/"
	.text
	.globl	dollar
	.type	dollar, @function
dollar:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	test	eax, eax
	jne	.L12
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r9d, 0
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	execl@PLT
.L8:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -28[rbp]
	lea	rcx, -61[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -61[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L9:
	mov	eax, DWORD PTR -40[rbp]
	lea	rcx, -61[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L10
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, .LC6[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rsi, rbx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
.L12:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dollar, .-dollar
	.section	.rodata
	.align 8
.LC7:
	.string	"Insufficient arguments!\n Format: ./pipes {@,$} Kanpur IITK [output.txt] [command]\n"
	.align 8
.LC8:
	.string	"Unidentified Symbol! Only @ and $ operators supported!\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 3
	jg	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 82
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jne	.L16
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	at
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L18
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, 5
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -28[rbp], 1
.L19:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 5
	cmp	DWORD PTR -28[rbp], eax
	jl	.L20
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	dollar
	jmp	.L17
.L18:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
.L17:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"68677.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-rF\000"
	.align	2
.LC1:
	.ascii	"grep\000"
	.align	2
.LC2:
	.ascii	"/bin/grep\000"
	.align	2
.LC3:
	.ascii	"-l\000"
	.align	2
.LC4:
	.ascii	"wc\000"
	.align	2
.LC5:
	.ascii	"/bin/wc\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	at
	.syntax unified
	.arm
	.fpu softvfp
	.type	at, %function
at:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, .L6+4
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	execl
.L3:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L6+16
	ldr	r1, .L6+20
	ldr	r0, .L6+24
	bl	execl
.L5:
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	at, .-at
	.section	.rodata
	.align	2
.LC7:
	.ascii	"/bin/\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dollar
	.syntax unified
	.arm
	.fpu softvfp
	.type	dollar, %function
dollar:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #32
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-28]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	close
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-60]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	ldr	r2, .L15+4
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	execl
.L10:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	close
	mov	r2, #420
	ldr	r1, .L15+16
	ldr	r0, [fp, #-64]
	bl	open
	str	r0, [fp, #-44]
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	sub	r1, fp, #45
	mov	r2, #1
	mov	r0, r3
	bl	write
	sub	r3, fp, #45
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	write
.L11:
	ldr	r3, [fp, #-32]
	sub	r1, fp, #45
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-44]
	bl	close
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	close
	ldr	r3, .L15+20
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	strcpy
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r2, r3, r2
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-36]
	bl	execvp
.L14:
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	577
	.word	.LC7
	.size	dollar, .-dollar
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Insufficient arguments!\012 Format: ./pipes {@,$} K"
	.ascii	"anpur IITK [output.txt] [command]\012\000"
	.align	2
.LC10:
	.ascii	"Unidentified Symbol! Only @ and $ operators support"
	.ascii	"ed!\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bgt	.L18
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #82
	mov	r1, #1
	ldr	r0, .L25+4
	bl	fwrite
	mov	r3, #0
	b	.L19
.L18:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L20
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	at
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L22
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L23
.L24:
	ldr	r3, [fp, #-20]
	add	r3, r3, #5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #5
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	dollar
	b	.L21
.L22:
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L25+8
	bl	fwrite
.L21:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
