	.file	"137469.c"
	.intel_syntax noprefix
	.text
	.globl	pid
	.bss
	.align 4
	.type	pid, @object
	.size	pid, 4
pid:
	.zero	4
	.globl	pipefd
	.align 8
	.type	pipefd, @object
	.size	pipefd, 8
pipefd:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Error Init Pipe"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, pipefd[rip]
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	mov	eax, DWORD PTR pid[rip]
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jne	.L4
	mov	eax, 0
	call	exec1
.L4:
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	mov	eax, DWORD PTR pid[rip]
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jne	.L6
	mov	eax, 0
	call	exec2
.L6:
	mov	eax, DWORD PTR pipefd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipefd[rip+4]
	mov	edi, eax
	call	close@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"aux"
.LC2:
	.string	"ps"
.LC3:
	.string	"Error with ps aux"
	.text
	.globl	exec1
	.type	exec1, @function
exec1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR pipefd[rip+4]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipefd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipefd[rip+4]
	mov	edi, eax
	call	close@PLT
	mov	ecx, 0
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	exec1, .-exec1
	.section	.rodata
.LC4:
	.string	"login"
.LC5:
	.string	"grep"
.LC6:
	.string	"Error with grep login"
	.text
	.globl	exec2
	.type	exec2, @function
exec2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR pipefd[rip]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipefd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipefd[rip+4]
	mov	edi, eax
	call	close@PLT
	mov	ecx, 0
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	exec2, .-exec2
	.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	"137469.c"
	.text
	.comm	pid,4,4
	.comm	pipefd,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error Init Pipe\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+8
	str	r2, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	bl	exec1
.L4:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+8
	str	r2, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	bl	exec2
.L6:
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L7
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	pipefd
	.word	.LC0
	.word	pid
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"aux\000"
	.align	2
.LC2:
	.ascii	"ps\000"
	.align	2
.LC3:
	.ascii	"Error with ps aux\000"
	.text
	.align	2
	.global	exec1
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec1, %function
exec1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	ldr	r3, [r3, #4]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L10
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	ldr	r0, .L10+8
	bl	execlp
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	.align	2
.L10:
	.word	pipefd
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	exec1, .-exec1
	.section	.rodata
	.align	2
.LC4:
	.ascii	"login\000"
	.align	2
.LC5:
	.ascii	"grep\000"
	.align	2
.LC6:
	.ascii	"Error with grep login\000"
	.text
	.align	2
	.global	exec2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec2, %function
exec2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L13
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L13+4
	ldr	r1, .L13+8
	ldr	r0, .L13+8
	bl	execlp
	ldr	r0, .L13+12
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	.align	2
.L13:
	.word	pipefd
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	exec2, .-exec2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
