	.file	"50138520.c"
	.intel_syntax noprefix
	.text
	.globl	cur
	.section	.rodata
.LC0:
	.string	"p\303\250re"
	.section	.data.rel.local,"aw"
	.align 8
	.type	cur, @object
	.size	cur, 8
cur:
	.quad	.LC0
	.globl	id_fils
	.bss
	.align 4
	.type	id_fils, @object
	.size	id_fils, 4
id_fils:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%s: Signal %d intercept\303\251\n"
	.text
	.globl	sighandler
	.type	sighandler, @function
sighandler:
.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	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR cur[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighandler, .-sighandler
	.section	.rodata
.LC2:
	.string	"Signal ALARM recu"
	.text
	.globl	exitprgm
	.type	exitprgm, @function
exitprgm:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 5
	jne	.L4
	mov	eax, DWORD PTR id_fils[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	exitprgm, .-exitprgm
	.section	.rodata
.LC3:
	.string	"Erreur fork"
.LC4:
	.string	"Fils invoqu\303\251"
	.align 8
.LC5:
	.string	"Processus %d (fils), de p\303\250re %d\n"
.LC6:
	.string	"wait "
.LC7:
	.string	"Fin du fils par exit %d\n"
.LC8:
	.string	"Fin du fils par signal %d\n"
	.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
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, exitprgm[rip]
	mov	edi, 14
	call	signal@PLT
	call	fork@PLT
	mov	DWORD PTR id_fils[rip], eax
	mov	eax, DWORD PTR id_fils[rip]
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR id_fils[rip]
	test	eax, eax
	jne	.L7
	mov	esi, 1
	mov	edi, 14
	call	signal@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L8
.L7:
	lea	rax, -32[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L9
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -32[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"50138520.c"
	.text
	.global	cur
	.section	.rodata
	.align	2
.LC0:
	.ascii	"p\303\250re\000"
	.data
	.align	2
	.type	cur, %object
	.size	cur, 4
cur:
	.word	.LC0
	.global	id_fils
	.bss
	.align	2
	.type	id_fils, %object
	.size	id_fils, 4
id_fils:
	.space	4
	.global	count
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s: Signal %d intercept\303\251\012\000"
	.text
	.align	2
	.global	sighandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ 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]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	cur
	.word	.LC1
	.size	sighandler, .-sighandler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Signal ALARM recu\000"
	.text
	.align	2
	.global	exitprgm
	.syntax unified
	.arm
	.fpu softvfp
	.type	exitprgm, %function
exitprgm:
	@ 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]
	ldr	r0, .L7
	bl	puts
	ldr	r3, .L7+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L6
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	count
	.word	id_fils
	.size	exitprgm, .-exitprgm
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Erreur fork\000"
	.align	2
.LC4:
	.ascii	"Fils invoqu\303\251\000"
	.align	2
.LC5:
	.ascii	"Processus %d (fils), de p\303\250re %d\012\000"
	.align	2
.LC6:
	.ascii	"wait \000"
	.align	2
.LC7:
	.ascii	"Fin du fils par exit %d\012\000"
	.align	2
.LC8:
	.ascii	"Fin du fils par signal %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L18+4
	mov	r0, #14
	bl	signal
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+8
	str	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L18+12
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	mov	r1, #1
	mov	r0, #14
	bl	signal
	ldr	r0, .L18+16
	bl	puts
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L18+20
	bl	printf
.L12:
	mov	r0, #1
	bl	sleep
	b	.L12
.L11:
	sub	r3, fp, #24
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L18+24
	bl	perror
	mov	r0, #2
	bl	exit
.L13:
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L18+28
	bl	printf
	b	.L15
.L14:
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L18+32
	bl	printf
.L15:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	exitprgm
	.word	id_fils
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
