	.file	"236312.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fork"
.LC1:
	.string	"Received string: %s"
	.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
	movabs	rax, 3684054920427746098
	mov	QWORD PTR -107[rbp], rax
	mov	WORD PTR -99[rbp], 2615
	mov	BYTE PTR -97[rbp], 0
	lea	rax, -116[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L5
.L2:
	cmp	DWORD PTR -124[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -107[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -112[rbp]
	lea	rcx, -107[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, 0
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -112[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -116[rbp]
	lea	rcx, -96[rbp]
	mov	edx, 80
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -120[rbp], eax
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L5:
	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	"236312.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"fork\000"
	.align	2
.LC2:
	.ascii	"Received string: %s\000"
	.align	2
.LC0:
	.ascii	"23 and 37\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L7+4
	sub	r3, fp, #108
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #116
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+8
	bl	perror
	mov	r3, #1
	b	.L5
.L2:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-116]
	mov	r0, r3
	bl	close
	ldr	r4, [fp, #-112]
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #108
	mov	r1, r3
	mov	r0, r4
	bl	write
	mov	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-116]
	sub	r1, fp, #96
	mov	r2, #80
	mov	r0, r3
	bl	read
	str	r0, [fp, #-120]
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	mov	r3, #0
.L5:
	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, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
