	.file	"125139925.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"thread1"
	.text
	.globl	activite1
	.type	activite1, @function
activite1:
.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
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	activite1, .-activite1
	.section	.rodata
.LC1:
	.string	"thread2"
	.text
	.globl	activite2
	.type	activite2, @function
activite2:
.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	QWORD PTR -8[rbp], rdi
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	jmp	.L4
	.cfi_endproc
.LFE7:
	.size	activite2, .-activite2
	.section	.rodata
.LC2:
	.string	"thread3"
	.text
	.globl	activite3
	.type	activite3, @function
activite3:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
.L6:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	jmp	.L6
	.cfi_endproc
.LFE8:
	.size	activite3, .-activite3
	.section	.rodata
.LC3:
	.string	"signal"
	.text
	.globl	handler
	.type	handler, @function
handler:
.LFB9:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handler, .-handler
	.section	.rodata
.LC4:
	.string	"sigusr: sigaction"
	.text
	.globl	set_sig_handler
	.type	set_sig_handler, @function
set_sig_handler:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 4
	lea	rax, handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	set_sig_handler, .-set_sig_handler
	.section	.rodata
.LC5:
	.string	"mon PID est : %d \n"
	.align 8
.LC6:
	.string	"Lancez la commande kill -10 %d \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	set_sig_handler
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, activite1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, activite2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, activite3[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE11:
	.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	"125139925.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread1\000"
	.text
	.align	2
	.global	activite1
	.syntax unified
	.arm
	.fpu softvfp
	.type	activite1, %function
activite1:
	@ 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]
.L2:
	ldr	r0, .L3
	bl	puts
	mov	r0, #2
	bl	sleep
	b	.L2
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	activite1, .-activite1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"thread2\000"
	.text
	.align	2
	.global	activite2
	.syntax unified
	.arm
	.fpu softvfp
	.type	activite2, %function
activite2:
	@ 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]
.L6:
	ldr	r0, .L7
	bl	puts
	mov	r0, #2
	bl	sleep
	b	.L6
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	activite2, .-activite2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"thread3\000"
	.text
	.align	2
	.global	activite3
	.syntax unified
	.arm
	.fpu softvfp
	.type	activite3, %function
activite3:
	@ 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]
.L10:
	ldr	r0, .L11
	bl	puts
	mov	r0, #2
	bl	sleep
	b	.L10
.L12:
	.align	2
.L11:
	.word	.LC2
	.size	activite3, .-activite3
	.section	.rodata
	.align	2
.LC3:
	.ascii	"signal\000"
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	ldr	r0, .L16
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC4:
	.ascii	"sigusr: sigaction\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_sig_handler, %function
set_sig_handler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-16]
	ldr	r3, .L22+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L22+8
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	handler
	.word	.LC4
	.size	set_sig_handler, .-set_sig_handler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"mon PID est : %d \012\000"
	.align	2
.LC7:
	.ascii	"Lancez la commande kill -10 %d \012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L26+8
	bl	printf
	bl	set_sig_handler
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L26+12
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L26+16
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L26+20
	mov	r1, #0
	bl	pthread_create
	mov	r0, #0
	bl	pthread_exit
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.word	activite1
	.word	activite2
	.word	activite3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
