	.file	"689736.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"pipe"
.LC1:
	.string	"w"
.LC2:
	.string	"nombrePremier"
.LC3:
	.string	"open"
.LC4:
	.string	"fork"
.LC5:
	.string	"vie des fils"
.LC6:
	.string	"write"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L2:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L4:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	je	.L5
	cmp	DWORD PTR -28[rbp], 0
	je	.L6
	jmp	.L15
.L5:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L6:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -32[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	je	.L16
	mov	edx, DWORD PTR -32[rbp]
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vie_des_fils
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -32[rbp], 2
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, -32[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L11:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 19
	jle	.L12
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	jmp	.L9
.L16:
	nop
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L13:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	divisable
	.type	divisable, @function
divisable:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L18
	mov	eax, -1
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	divisable, .-divisable
	.section	.rodata
.LC7:
	.string	"%d\n"
.LC8:
	.string	"write premier"
	.text
	.globl	vie_des_fils
	.type	vie_des_fils, @function
vie_des_fils:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L21
.L25:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	divisable
	cmp	eax, -1
	jne	.L21
	cmp	DWORD PTR -20[rbp], 0
	jne	.L22
	mov	DWORD PTR -20[rbp], 1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L26
.L23:
	call	fork@PLT
	test	eax, eax
	jne	.L21
	mov	edx, DWORD PTR -24[rbp]
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vie_des_fils
	mov	edi, 0
	call	exit@PLT
.L22:
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, -24[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L21
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L26
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -24[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L25
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	mov	eax, 42
.L26:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vie_des_fils, .-vie_des_fils
	.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	"689736.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pipe\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"nombrePremier\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"fork\000"
	.align	2
.LC5:
	.ascii	"vie des fils\000"
	.align	2
.LC6:
	.ascii	"write\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L17+4
	bl	perror
	mov	r3, #1
	b	.L13
.L2:
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L17+16
	bl	perror
	mov	r3, #1
	b	.L13
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	b	.L15
.L5:
	ldr	r0, .L17+20
	bl	perror
	mov	r3, #1
	b	.L13
.L6:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	sub	r1, fp, #28
	mov	r2, #4
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r2, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	vie_des_fils
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L17+24
	bl	perror
	mov	r3, #1
	b	.L13
.L15:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, #2
	str	r3, [fp, #-28]
	b	.L10
.L12:
	ldr	r3, [fp, #-12]
	sub	r1, fp, #28
	mov	r2, #4
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L17+28
	bl	perror
	mov	r3, #1
	b	.L13
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #19
	ble	.L12
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	wait
	b	.L9
.L16:
	nop
.L9:
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
.L13:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	divisable
	.syntax unified
	.arm
	.fpu softvfp
	.type	divisable, %function
divisable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L20
	mvn	r3, #0
	b	.L21
.L20:
	mov	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	divisable, .-divisable
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d\012\000"
	.align	2
.LC9:
	.ascii	"write premier\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vie_des_fils
	.syntax unified
	.arm
	.fpu softvfp
	.type	vie_des_fils, %function
vie_des_fils:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-40]
	ldr	r1, .L30+4
	ldr	r0, [fp, #-32]
	bl	fprintf
	ldr	r0, [fp, #-32]
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	b	.L23
.L27:
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	divisable
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L24
	mov	r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L30+8
	bl	perror
	mvn	r3, #0
	b	.L28
.L25:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r2, [fp, #-24]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	vie_des_fils
	mov	r0, #0
	bl	exit
.L24:
	ldr	r3, [fp, #-12]
	sub	r1, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L30+12
	bl	perror
	mvn	r3, #0
	b	.L28
.L23:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	wait
	mov	r3, #42
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC10
	.word	.LC8
	.word	.LC0
	.word	.LC9
	.size	vie_des_fils, .-vie_des_fils
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
