	.file	"499313.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <option: -p -c> <fichier a lire> \n"
.LC1:
	.string	"Error fprintf"
.LC2:
	.string	"-p"
.LC3:
	.string	"Error open"
.LC4:
	.string	"Error fork"
.LC5:
	.string	"Error read"
.LC6:
	.string	"Petit fils chaine lue: %s \n"
.LC7:
	.string	"Fils, chaine lue: %s \n"
.LC8:
	.string	"Error wait"
.LC9:
	.string	"Pere, chaine lue: %s \n"
.LC10:
	.string	"Error close"
.LC11:
	.string	"-c"
.LC12:
	.string	"r"
	.align 8
.LC13:
	.string	"Petit fils, Caractere lu: %c \n"
.LC14:
	.string	"Fils, caractere lu: %c \n"
.LC15:
	.string	"Pere, caractere lu: %c \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
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -10[rbp], 0
	cmp	DWORD PTR -68[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L3:
	mov	eax, -1
	jmp	.L35
.L2:
	mov	BYTE PTR -8[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L6:
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L7:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L18
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L9:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L14
	jmp	.L11
.L13:
	cmp	QWORD PTR -24[rbp], -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L12:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -10[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L11:
	mov	BYTE PTR -10[rbp], 0
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	mov	eax, 0
	jmp	.L35
.L16:
	cmp	QWORD PTR -24[rbp], -1
	jne	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L15:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -10[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L14
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L14:
	mov	BYTE PTR -10[rbp], 0
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L16
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L17:
	mov	eax, 0
	jmp	.L35
.L20:
	cmp	QWORD PTR -24[rbp], -1
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L19:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -10[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L18
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L18:
	mov	BYTE PTR -10[rbp], 0
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L20
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L5:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L22:
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L23
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L23:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L32
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L25:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L29
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L27
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L27:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L28
	mov	eax, 0
	jmp	.L35
.L30:
	mov	eax, DWORD PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L29
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L29:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L30
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L31
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L31:
	mov	eax, 0
	jmp	.L35
.L33:
	mov	eax, DWORD PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L32
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L35
.L32:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L33
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L21:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L35
.L34:
	mov	eax, 0
.L35:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	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	"499313.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <option: -p -c> <fichier a lire> \012\000"
	.align	2
.LC1:
	.ascii	"Error fprintf\000"
	.align	2
.LC2:
	.ascii	"-p\000"
	.align	2
.LC3:
	.ascii	"Error open\000"
	.align	2
.LC4:
	.ascii	"Error fork\000"
	.align	2
.LC5:
	.ascii	"Error read\000"
	.align	2
.LC6:
	.ascii	"Petit fils chaine lue: %s \012\000"
	.align	2
.LC7:
	.ascii	"Fils, chaine lue: %s \012\000"
	.align	2
.LC8:
	.ascii	"Error wait\000"
	.align	2
.LC9:
	.ascii	"Pere, chaine lue: %s \012\000"
	.align	2
.LC10:
	.ascii	"Error close\000"
	.align	2
.LC11:
	.ascii	"-c\000"
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"Petit fils, Caractere lu: %c \012\000"
	.align	2
.LC14:
	.ascii	"Fils, caractere lu: %c \012\000"
	.align	2
.LC15:
	.ascii	"Pere, caractere lu: %c \012\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L37+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L37+8
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L3:
	mvn	r3, #0
	b	.L35
.L2:
	mov	r3, #0
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+20
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L6:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+24
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L18
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+24
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L14
	b	.L11
.L13:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+28
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L12:
	ldr	r3, .L37+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L37+32
	mov	r0, r3
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L11:
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	b	.L35
.L16:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+28
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L15:
	ldr	r3, .L37+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L37+36
	mov	r0, r3
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L14:
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #52
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+40
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L17:
	mov	r3, #0
	b	.L35
.L20:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+28
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L19:
	ldr	r3, .L37+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L37+44
	mov	r0, r3
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L18:
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	ldr	r0, [fp, #-48]
	bl	close
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+48
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L5:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L37+56
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L22
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+20
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L22:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+24
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L23:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L32
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L25
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+24
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L25:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L29
	b	.L27
.L28:
	ldr	r3, .L37+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L37+60
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L27:
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L28
	mov	r3, #0
	b	.L35
.L30:
	ldr	r3, .L37+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L37+64
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L29:
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L30
	sub	r3, fp, #52
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L31
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+40
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L31:
	mov	r3, #0
	b	.L35
.L33:
	ldr	r3, .L37+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L37+68
	bl	fprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L37+12
	bl	perror
	ldr	r3, [fp, #-40]
	b	.L35
.L32:
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L33
	ldr	r0, [fp, #-48]
	bl	close
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+48
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L21:
	sub	r3, fp, #52
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, .L37+40
	bl	perror
	ldr	r3, [fp, #-44]
	b	.L35
.L34:
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC16
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
