	.file	"956360.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s: %s\n"
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
.LC1:
	.string	"endline\n"
.LC2:
	.string	"order%d.txt"
.LC3:
	.string	"a"
.LC4:
	.string	"%s"
.LC5:
	.string	"Error writing in file"
	.text
	.globl	printFromMain
	.type	printFromMain, @function
printFromMain:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR cont.0[rip]
	add	eax, 1
	mov	DWORD PTR cont.0[rip], eax
	jmp	.L2
.L3:
	mov	edx, DWORD PTR cont.0[rip]
	lea	rax, -60[rbp]
	mov	ecx, edx
	lea	rdx, .LC2[rip]
	mov	esi, 12
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -60[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L5
	lea	rax, -48[rbp]
	movabs	rsi, 8101729937912652099
	movabs	rdi, 2334391181802237541
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	BYTE PTR 16[rax], 0
	lea	rdx, -60[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	error
.L5:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC5[rip]
	call	error
.L6:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printFromMain, .-printFromMain
	.globl	my_env
	.section	.rodata
.LC6:
	.string	"JUICE=peach and apple"
	.section	.data.rel.local,"aw"
	.align 16
	.type	my_env, @object
	.size	my_env, 16
my_env:
	.quad	.LC6
	.quad	0
	.section	.rodata
.LC7:
	.string	"Can't create the pipe"
.LC8:
	.string	"Can't fork the process"
.LC9:
	.string	"%d"
.LC10:
	.string	"dinner_info"
.LC11:
	.string	"An error ocurred"
	.align 8
.LC12:
	.string	"Error waiting for child process"
.LC13:
	.string	"Error status non-zero"
	.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -280[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC7[rip]
	call	error
.L9:
	mov	DWORD PTR -288[rbp], 0
	jmp	.L10
.L16:
	call	fork@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], -1
	jne	.L11
	lea	rdi, .LC8[rip]
	call	error
.L11:
	cmp	DWORD PTR -284[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	ecx, edx
	lea	rdx, .LC9[rip]
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	lea	r8, my_env[rip]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	execle@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC11[rip]
	call	error
.L12:
	lea	rcx, -292[rbp]
	mov	eax, DWORD PTR -284[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC12[rip]
	call	error
.L14:
	mov	eax, DWORD PTR -292[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L15
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L15:
	add	DWORD PTR -288[rbp], 1
.L10:
	cmp	DWORD PTR -288[rbp], 9
	jle	.L16
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L17
.L18:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	printFromMain
.L17:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	cont.0
	.comm	cont.0,4,4
	.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	"956360.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"endline\012\000"
	.align	2
.LC2:
	.ascii	"order%d.txt\000"
	.align	2
.LC3:
	.ascii	"a\000"
	.align	2
.LC4:
	.ascii	"Can't open file \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"Error writing in file\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printFromMain
	.syntax unified
	.arm
	.fpu softvfp
	.type	printFromMain, %function
printFromMain:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L10+4
	ldr	r0, [fp, #-64]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L10+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+8
	str	r3, [r2]
	b	.L4
.L5:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	sub	r0, fp, #52
	ldr	r2, .L10+12
	mov	r1, #12
	bl	snprintf
	sub	r3, fp, #52
	ldr	r1, .L10+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #40
	ldr	r2, .L10+20
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	sub	r2, fp, #52
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #40
	mov	r0, r3
	bl	error
.L7:
	ldr	r2, [fp, #-64]
	ldr	r1, .L10+24
	ldr	r0, [fp, #-56]
	bl	fprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L10+28
	bl	error
.L8:
	ldr	r0, [fp, #-56]
	bl	fclose
.L4:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC1
	.word	cont.6273
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	printFromMain, .-printFromMain
	.global	my_env
	.section	.rodata
	.align	2
.LC8:
	.ascii	"JUICE=peach and apple\000"
	.data
	.align	2
	.type	my_env, %object
	.size	my_env, 8
my_env:
	.word	.LC8
	.word	0
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Can't create the pipe\000"
	.align	2
.LC10:
	.ascii	"Can't fork the process\000"
	.align	2
.LC11:
	.ascii	"%d\000"
	.align	2
.LC12:
	.ascii	"dinner_info\000"
	.align	2
.LC13:
	.ascii	"An error ocurred\000"
	.align	2
.LC14:
	.ascii	"Error waiting for child process\000"
	.align	2
.LC15:
	.ascii	"Error status non-zero\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #272
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L25+4
	bl	error
.L13:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L14
.L20:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L25+8
	bl	error
.L15:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-268]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	close
	sub	r0, fp, #264
	ldr	r3, [fp, #-280]
	ldr	r2, .L25+12
	mov	r1, #4
	bl	snprintf
	sub	r2, fp, #264
	ldr	r3, .L25+16
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, .L25+20
	ldr	r0, .L25+20
	bl	execle
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L25+24
	bl	error
.L16:
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	waitpid
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L25+28
	bl	error
.L18:
	ldr	r3, [fp, #-284]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L25+32
	bl	puts
.L19:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L14:
	ldr	r3, [fp, #-280]
	cmp	r3, #9
	ble	.L20
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-268]
	mov	r0, r3
	bl	close
	b	.L21
.L22:
	sub	r3, fp, #264
	mov	r0, r3
	bl	printFromMain
.L21:
	ldr	r3, .L25+36
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC16
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	my_env
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdin
	.size	main, .-main
	.local	cont.6273
	.comm	cont.6273,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
