	.file	"170454118.c"
	.intel_syntax noprefix
	.text
	.globl	text
	.section	.rodata
	.align 8
.LC0:
	.string	"Let's send this through a pipe"
	.section	.data.rel.local,"aw"
	.align 8
	.type	text, @object
	.size	text, 8
text:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"pipe"
.LC2:
	.string	"Got %d bytes: <%s>\n"
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -120[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	fork@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	rax, QWORD PTR text[rip]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -116[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -120[rbp]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"170454118.c"
	.text
	.global	text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Let's send this through a pipe\000"
	.data
	.align	2
	.type	text, %object
	.size	text, 4
text:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pipe\000"
	.align	2
.LC2:
	.ascii	"Got %d bytes: <%s>\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #124
	mov	r0, r3
	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
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	close
	ldr	r4, [fp, #-120]
	ldr	r3, .L7+8
	ldr	r5, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	write
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	close
	b	.L4
.L3:
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-124]
	sub	r1, fp, #116
	mov	r2, #100
	mov	r0, r3
	bl	read
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	close
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, [fp, #-128]
	ldr	r0, .L7+12
	bl	printf
.L4:
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC1
	.word	text
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
