	.file	"18760.c"
	.intel_syntax noprefix
	.text
	.globl	NB_DEMANDES
	.bss
	.align 4
	.type	NB_DEMANDES, @object
	.size	NB_DEMANDES, 4
NB_DEMANDES:
	.zero	4
	.globl	NB_DRONES
	.align 4
	.type	NB_DRONES, @object
	.size	NB_DRONES, 4
NB_DRONES:
	.zero	4
	.globl	navette
	.align 8
	.type	navette, @object
	.size	navette, 12
navette:
	.zero	12
	.globl	demandes
	.align 32
	.type	demandes, @object
	.size	demandes, 2400
demandes:
	.zero	2400
	.globl	drones
	.align 32
	.type	drones, @object
	.size	drones, 1200
drones:
	.zero	1200
	.globl	mutexAccesDrones
	.align 32
	.type	mutexAccesDrones, @object
	.size	mutexAccesDrones, 32
mutexAccesDrones:
	.zero	32
	.globl	mutexAccesSlots
	.align 32
	.type	mutexAccesSlots, @object
	.size	mutexAccesSlots, 32
mutexAccesSlots:
	.zero	32
	.globl	mutexLiberationDrone
	.align 32
	.type	mutexLiberationDrone, @object
	.size	mutexLiberationDrone, 32
mutexLiberationDrone:
	.zero	32
	.globl	mutexLiberationSlot
	.align 32
	.type	mutexLiberationSlot, @object
	.size	mutexLiberationSlot, 32
mutexLiberationSlot:
	.zero	32
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"%d,%f,%f"
	.align 8
.LC2:
	.string	"Erreur ouverture fichier navette"
	.text
	.globl	initialisation_navette
	.type	initialisation_navette, @function
initialisation_navette:
.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L3
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	lea	r8, navette[rip]
	lea	rcx, navette[rip+4]
	lea	rdx, navette[rip+8]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	initialisation_navette, .-initialisation_navette
	.section	.rodata
.LC3:
	.string	"%d,%f,%d,%d"
	.align 8
.LC5:
	.string	"Erreur ouverture fichier drones"
	.text
	.globl	initialisation_drones
	.type	initialisation_drones, @function
initialisation_drones:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	cmp	QWORD PTR -72[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L7
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -32[rbp]
	lea	rdi, 20[rdx]
	lea	rdx, -32[rbp]
	lea	rsi, 16[rdx]
	lea	rdx, -32[rbp]
	lea	rcx, 12[rdx]
	lea	rdx, -32[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC4[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rsi, rax
	lea	rcx, drones[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rsi+rcx], rax
	mov	QWORD PTR 8[rsi+rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rsi+rcx], rax
	add	DWORD PTR -60[rbp], 1
.L8:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L9
	jmp	.L6
.L7:
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialisation_drones, .-initialisation_drones
	.section	.rodata
.LC8:
	.string	"%f,%f,%d,%d,%d"
	.align 8
.LC9:
	.string	"Erreur ouverture fichier demandes"
	.text
	.globl	initialisation_demandes
	.type	initialisation_demandes, @function
initialisation_demandes:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	cmp	QWORD PTR -88[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L14
	mov	DWORD PTR -68[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -64[rbp], xmm0
	mov	DWORD PTR -72[rbp], 0
	jmp	.L15
.L19:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+12]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -60[rbp], xmm0
	movss	xmm0, DWORD PTR -60[rbp]
	comiss	xmm0, DWORD PTR -64[rbp]
	jbe	.L16
	movss	xmm0, DWORD PTR -60[rbp]
	movss	DWORD PTR -64[rbp], xmm0
.L16:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -68[rbp], eax
	jge	.L18
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -68[rbp], eax
.L18:
	add	DWORD PTR -72[rbp], 1
.L15:
	mov	eax, DWORD PTR NB_DRONES[rip]
	cmp	DWORD PTR -72[rbp], eax
	jl	.L19
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -32[rbp]
	lea	r8, 16[rdx]
	lea	rdx, -32[rbp]
	lea	rdi, 12[rdx]
	lea	rdx, -32[rbp]
	lea	rcx, 4[rdx]
	lea	rdx, -32[rbp]
	add	rdx, 8
	sub	rsp, 8
	lea	rsi, -32[rbp]
	add	rsi, 20
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	mov	rdx, QWORD PTR navette[rip]
	mov	rax, QWORD PTR -28[rbp]
	movq	xmm1, rdx
	movq	xmm0, rax
	call	get_distance
	movd	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR -64[rbp]
	comiss	xmm0, xmm1
	jb	.L20
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L20
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rsi, rax
	lea	rcx, demandes[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rsi+rcx], rax
	mov	QWORD PTR 8[rsi+rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rsi+rcx], rax
	add	DWORD PTR -76[rbp], 1
.L20:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L23
	jmp	.L13
.L14:
	lea	rdi, .LC9[rip]
	call	perror@PLT
.L13:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -76[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initialisation_demandes, .-initialisation_demandes
	.globl	get_distance
	.type	get_distance, @function
get_distance:
.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, 32
	movq	QWORD PTR -8[rbp], xmm0
	movq	QWORD PTR -16[rbp], xmm1
	movss	xmm0, DWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR -16[rbp]
	subss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movsd	xmm0, QWORD PTR .LC10[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	movss	xmm1, DWORD PTR -12[rbp]
	subss	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movsd	xmm0, QWORD PTR .LC10[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -24[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	movsd	xmm1, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_distance, .-get_distance
	.section	.rodata
.LC12:
	.string	"navette.txt"
.LC13:
	.string	"drones.txt"
.LC14:
	.string	"\033[0;32m"
.LC15:
	.string	"\t%s%d drones initialises...\n"
.LC16:
	.string	"demandes.txt"
	.align 8
.LC17:
	.string	"\t%s%d demandes initialisees...\n"
	.text
	.globl	initialisation_tableaux
	.type	initialisation_tableaux, @function
initialisation_tableaux:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC12[rip]
	call	initialisation_navette
	lea	rdi, .LC13[rip]
	call	initialisation_drones
	mov	DWORD PTR NB_DRONES[rip], eax
	mov	eax, DWORD PTR NB_DRONES[rip]
	mov	edx, eax
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC16[rip]
	call	initialisation_demandes
	mov	DWORD PTR NB_DEMANDES[rip], eax
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	mov	edx, eax
	lea	rsi, .LC14[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	initialisation_tableaux, .-initialisation_tableaux
	.section	.rodata
.LC18:
	.string	"\033[0;33m"
	.align 8
.LC19:
	.string	"\t%sInitialisation semaphores...\n"
	.align 8
.LC20:
	.string	"Erreur initialisation mutexAccesDrones"
	.align 8
.LC21:
	.string	"Erreur initialisation mutexAccesSlots"
	.align 8
.LC22:
	.string	"Erreur initialisation mutexLiberationDrone"
	.align 8
.LC23:
	.string	"Erreur initialisation mutexLiberationSlot"
	.text
	.globl	initialisation_semaphores
	.type	initialisation_semaphores, @function
initialisation_semaphores:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, mutexAccesDrones[rip]
	call	sem_init@PLT
	cmp	eax, -1
	jne	.L32
	lea	rdi, .LC20[rip]
	call	perror@PLT
.L32:
	mov	edx, 1
	mov	esi, 0
	lea	rdi, mutexAccesSlots[rip]
	call	sem_init@PLT
	cmp	eax, -1
	jne	.L33
	lea	rdi, .LC21[rip]
	call	perror@PLT
.L33:
	mov	edx, 0
	mov	esi, 0
	lea	rdi, mutexLiberationDrone[rip]
	call	sem_init@PLT
	cmp	eax, -1
	jne	.L34
	lea	rdi, .LC22[rip]
	call	perror@PLT
.L34:
	mov	edx, 0
	mov	esi, 0
	lea	rdi, mutexLiberationSlot[rip]
	call	sem_init@PLT
	cmp	eax, -1
	jne	.L36
	lea	rdi, .LC23[rip]
	call	perror@PLT
.L36:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	initialisation_semaphores, .-initialisation_semaphores
	.globl	tri_demandes_par_priorite
	.type	tri_demandes_par_priorite, @function
tri_demandes_par_priorite:
.LFB12:
	.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 -40[rbp], 1
	jmp	.L38
.L42:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rsi, rax
	lea	rcx, demandes[rip]
	mov	rax, QWORD PTR [rsi+rcx]
	mov	rdx, QWORD PTR 8[rsi+rcx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR 16[rsi+rcx]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -36[rbp]
	lea	esi, -1[rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	lea	rcx, demandes[rip]
	movsx	rdx, esi
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	r8, rax
	lea	rsi, demandes[rip]
	mov	rax, QWORD PTR [r8+rsi]
	mov	rdx, QWORD PTR 8[r8+rsi]
	mov	QWORD PTR [rdi+rcx], rax
	mov	QWORD PTR 8[rdi+rcx], rdx
	mov	rax, QWORD PTR 16[r8+rsi]
	mov	QWORD PTR 16[rdi+rcx], rax
	sub	DWORD PTR -36[rbp], 1
.L39:
	cmp	DWORD PTR -36[rbp], 0
	jle	.L40
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip+12]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	ja	.L41
.L40:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rsi, rax
	lea	rcx, demandes[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rsi+rcx], rax
	mov	QWORD PTR 8[rsi+rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rsi+rcx], rax
	add	DWORD PTR -40[rbp], 1
.L38:
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L42
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	tri_demandes_par_priorite, .-tri_demandes_par_priorite
	.globl	calcul_temps_drone
	.type	calcul_temps_drone, @function
calcul_temps_drone:
.LFB13:
	.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	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	addss	xmm0, xmm0
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+12]
	movss	xmm1, DWORD PTR [rdx+rax]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	calcul_temps_drone, .-calcul_temps_drone
	.globl	verification_drone_demande
	.type	verification_drone_demande, @function
verification_drone_demande:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], -1
	mov	eax, DWORD PTR NB_DRONES[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L46
.L48:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calcul_temps_drone
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L47
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L47
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+20]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jl	.L47
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
.L47:
	sub	DWORD PTR -12[rbp], 1
.L46:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L48
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	verification_drone_demande, .-verification_drone_demande
	.section	.rodata
.LC24:
	.string	"\033[0;35m"
	.align 8
.LC25:
	.string	"\t\t\t%sExpedition %d : Verification disponibilite de slot avec drone %d...\n"
	.align 8
.LC26:
	.string	"\t\t\t%sExpedition %d : Aucun slot disponible, attente disponibilite avec drone %d...\n"
.LC27:
	.string	"\033[0m"
	.align 8
.LC28:
	.string	"\t\t\t%sExpedition %d : Occupation d'un slot avec drone %d...\n"
	.align 8
.LC29:
	.string	"\t\t\t%sExpedition %d : Liberation du slot occupe avec drone %d...\n"
	.text
	.globl	occupation_slot
	.type	occupation_slot, @function
occupation_slot:
.LFB15:
	.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	DWORD PTR -8[rbp], esi
	lea	rdi, mutexAccesSlots[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR navette[rip+8], 0
	mov	eax, DWORD PTR navette[rip+8]
	test	eax, eax
	je	.L51
	lea	rdi, mutexAccesSlots[rip]
	call	sem_post@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mutexLiberationSlot[rip]
	call	sem_wait@PLT
	jmp	.L53
.L51:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR navette[rip+8]
	sub	eax, 1
	mov	DWORD PTR navette[rip+8], eax
	lea	rdi, mutexAccesSlots[rip]
	call	sem_post@PLT
	mov	edi, 5000000
	call	usleep@PLT
	lea	rdi, mutexAccesSlots[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR navette[rip+8]
	add	eax, 1
	mov	DWORD PTR navette[rip+8], eax
	lea	rdi, mutexAccesSlots[rip]
	call	sem_post@PLT
.L53:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	occupation_slot, .-occupation_slot
	.section	.rodata
.LC30:
	.string	"\033[0;36m"
	.align 8
.LC31:
	.string	"\t\t\t%sExpedition %d : La livraison avec drone %d prendra %d...\n"
	.align 8
.LC32:
	.string	"\t\t\t%sExpedition %d : La recuperation avec drone %d prendra %d...\n"
	.text
	.globl	livrer
	.type	livrer, @function
livrer:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calcul_temps_drone
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L55
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR -4[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L55:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR -4[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
.L56:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 1000000
	mov	edi, eax
	call	usleep@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, drones[rip+4]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+8]
	mov	DWORD PTR [rdx+rax], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	livrer, .-livrer
	.section	.rodata
.LC33:
	.string	"\t%sDestruction semaphores...\n"
	.align 8
.LC34:
	.string	"Erreur destruction mutexAccesDrones"
	.align 8
.LC35:
	.string	"Erreur destruction mutexAccesSlots"
	.align 8
.LC36:
	.string	"Erreur destruction mutexLiberationDrone"
	.align 8
.LC37:
	.string	"Erreur destruction mutexLiberationSlot"
	.text
	.globl	destruction_semaphores
	.type	destruction_semaphores, @function
destruction_semaphores:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC18[rip]
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mutexAccesDrones[rip]
	call	sem_destroy@PLT
	cmp	eax, -1
	jne	.L58
	lea	rdi, .LC34[rip]
	call	perror@PLT
.L58:
	lea	rdi, mutexAccesSlots[rip]
	call	sem_destroy@PLT
	cmp	eax, -1
	jne	.L59
	lea	rdi, .LC35[rip]
	call	perror@PLT
.L59:
	lea	rdi, mutexLiberationDrone[rip]
	call	sem_destroy@PLT
	cmp	eax, -1
	jne	.L60
	lea	rdi, .LC36[rip]
	call	perror@PLT
.L60:
	lea	rdi, mutexLiberationSlot[rip]
	call	sem_destroy@PLT
	cmp	eax, -1
	jne	.L61
	lea	rdi, .LC37[rip]
	call	perror@PLT
.L61:
	lea	rdi, .LC27[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	destruction_semaphores, .-destruction_semaphores
	.section	.rodata
.LC38:
	.string	"\033[0;37m"
	.align 8
.LC39:
	.string	"\t\t%sNavette : Lancement du rechargement des drones...\n"
	.align 8
.LC40:
	.string	"Erreur creation thread recharge drones"
	.align 8
.LC41:
	.string	"\t\t%sNavette : Tri des demandes par priorite...\n"
	.align 8
.LC42:
	.string	"\t\t%sNavette : Lancement de l'expedition %d...\n"
	.align 8
.LC43:
	.string	"Erreur creation thread expedition"
	.align 8
.LC44:
	.string	"\t\t%sNavette : Attente de la fin des expeditions...\n"
	.align 8
.LC45:
	.string	"\t\t%sNavette : Fin de toutes les expeditions...\n"
	.text
	.globl	thread_navette
	.type	thread_navette, @function
thread_navette:
.LFB18:
	.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, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L63:
	cmp	rsp, rdx
	je	.L64
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L63
.L64:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L65
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L65:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	movsx	rdx, eax
	mov	rsi, rdx
	mov	edi, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L66:
	cmp	rsp, rdx
	je	.L67
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L66
.L67:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L68
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L68:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC38[rip]
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	ecx, 0
	lea	rdx, thread_recharge_drones[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L69
	lea	rdi, .LC40[rip]
	call	perror@PLT
.L69:
	lea	rsi, .LC38[rip]
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	tri_demandes_par_priorite
	mov	DWORD PTR -68[rbp], 0
	jmp	.L70
.L72:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -68[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	mov	edx, eax
	lea	rsi, .LC38[rip]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_expedition[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L71
	lea	rdi, .LC43[rip]
	call	perror@PLT
.L71:
	add	DWORD PTR -68[rbp], 1
.L70:
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L72
	lea	rsi, .LC38[rip]
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L73
.L74:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -68[rbp], 1
.L73:
	mov	eax, DWORD PTR NB_DEMANDES[rip]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L74
	lea	rsi, .LC38[rip]
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE18:
	.size	thread_navette, .-thread_navette
	.section	.rodata
	.align 8
.LC46:
	.string	"\t\t\t%sExpedition %d : Verification disponibilite de drone...\n"
	.align 8
.LC47:
	.string	"\t\t\t%sExpedition %d : Aucun drone disponible, attente disponibilite...\n"
	.align 8
.LC48:
	.string	"\t\t\t%sExpedition %d : Choix drone %d...\n"
	.align 8
.LC49:
	.string	"\t\t\t%sExpedition %d : Lancement livraison avec drone %d...\n"
	.align 8
.LC50:
	.string	"\t\t\t%sExpedition %d : Lancement recuperation avec drone %d...\n"
	.align 8
.LC51:
	.string	"\t\t\t%sExpedition %d : Recuperation effectue avec drone %d...\n"
	.align 8
.LC52:
	.string	"\t\t\t%sExpedition %d : Livraison effectuee avec drone %d...\n"
	.text
	.globl	thread_expedition
	.type	thread_expedition, @function
thread_expedition:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
.L83:
	lea	rdi, mutexAccesDrones[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	verification_drone_demande
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L77
	lea	rdi, mutexAccesDrones[rip]
	call	sem_post@PLT
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mutexLiberationDrone[rip]
	call	sem_wait@PLT
	jmp	.L83
.L77:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+8]
	mov	DWORD PTR [rdx+rax], 2
	lea	rdi, mutexAccesDrones[rip]
	call	sem_post@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L79
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	occupation_slot
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L80
.L79:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
.L80:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	livrer
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, demandes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 2
	jne	.L81
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	occupation_slot
	jmp	.L82
.L81:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC27[rip]
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
.L82:
	lea	rdi, mutexLiberationDrone[rip]
	call	sem_post@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE19:
	.size	thread_expedition, .-thread_expedition
	.globl	thread_recharge_drones
	.type	thread_recharge_drones, @function
thread_recharge_drones:
.LFB20:
	.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
.L90:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L86
.L89:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L87
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jge	.L88
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, drones[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L87
.L88:
	lea	rdi, mutexLiberationDrone[rip]
	call	sem_post@PLT
.L87:
	add	DWORD PTR -4[rbp], 1
.L86:
	mov	eax, DWORD PTR NB_DRONES[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L89
	mov	edi, 1000000
	call	usleep@PLT
	jmp	.L90
	.cfi_endproc
.LFE20:
	.size	thread_recharge_drones, .-thread_recharge_drones
	.section	.rodata
.LC53:
	.string	"Probleme sur SIGINT..."
.LC54:
	.string	"\t"
	.text
	.globl	traitantSIGINT
	.type	traitantSIGINT, @function
traitantSIGINT:
.LFB21:
	.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
	cmp	DWORD PTR -4[rbp], 2
	je	.L92
	lea	rdi, .LC53[rip]
	call	perror@PLT
.L92:
	lea	rdi, .LC54[rip]
	call	puts@PLT
	mov	eax, 0
	call	destruction_semaphores
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE21:
	.size	traitantSIGINT, .-traitantSIGINT
	.section	.rodata
.LC55:
	.string	"\033[0;34m"
	.align 8
.LC56:
	.string	"\t%sLancement de la navette...\n"
	.align 8
.LC57:
	.string	"Erreur creation thread navette"
.LC58:
	.string	"\t%sArret de la navette...\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	initialisation_tableaux
	mov	eax, 0
	call	initialisation_semaphores
	lea	rsi, traitantSIGINT[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, .LC55[rip]
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread_navette[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L94
	lea	rdi, .LC57[rip]
	call	perror@PLT
.L94:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rsi, .LC55[rip]
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	destruction_semaphores
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE22:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC4:
	.long	1163984896
	.align 4
.LC7:
	.long	1073741824
	.align 8
.LC10:
	.long	0
	.long	1073741824
	.align 8
.LC11:
	.long	0
	.long	1076101120
	.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	"18760.c"
	.text
	.comm	NB_DEMANDES,4,4
	.comm	NB_DRONES,4,4
	.comm	navette,12,4
	.comm	demandes,2400,4
	.comm	drones,1200,4
	.comm	mutexAccesDrones,16,4
	.comm	mutexAccesSlots,16,4
	.comm	mutexLiberationDrone,16,4
	.comm	mutexLiberationSlot,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"%d,%f,%f\000"
	.align	2
.LC2:
	.ascii	"Erreur ouverture fichier navette\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initialisation_navette
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialisation_navette, %function
initialisation_navette:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L5+4
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L3
	sub	r1, fp, #16
	sub	r3, fp, #20
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	beq	.L2
	ldr	r0, [fp, #-20]
	ldr	r3, .L5+8
	str	r3, [sp]
	ldr	r3, .L5+12
	ldr	r2, .L5+16
	ldr	r1, .L5+20
	bl	__isoc99_sscanf
	b	.L2
.L3:
	ldr	r0, .L5+24
	bl	perror
.L2:
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	.LC0
	.word	navette
	.word	navette+4
	.word	navette+8
	.word	.LC1
	.word	.LC2
	.size	initialisation_navette, .-initialisation_navette
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d,%f,%d,%d\000"
	.global	__aeabi_fdiv
	.align	2
.LC5:
	.ascii	"Erreur ouverture fichier drones\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initialisation_drones
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialisation_drones, %function
initialisation_drones:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L8
	ldr	r1, .L14+4
	ldr	r0, [fp, #-56]
	bl	fopen
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L9
	b	.L10
.L11:
	ldr	r0, [fp, #-48]
	sub	r3, fp, #32
	add	r1, r3, #12
	sub	r2, fp, #32
	sub	r3, fp, #32
	add	r3, r3, #20
	str	r3, [sp, #4]
	sub	r3, fp, #32
	add	r3, r3, #16
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+8
	bl	__isoc99_sscanf
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]	@ float
	ldr	r1, .L14+12
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, .L14+16
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #32
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L10:
	sub	r1, fp, #44
	sub	r3, fp, #48
	ldr	r2, [fp, #-40]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	b	.L8
.L9:
	ldr	r0, .L14+20
	bl	perror
.L8:
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r3, [fp, #-36]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	1163984896
	.word	drones
	.word	.LC5
	.size	initialisation_drones, .-initialisation_drones
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fcmplt
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%f,%f,%d,%d,%d\000"
	.global	__aeabi_fcmpge
	.align	2
.LC8:
	.ascii	"Erreur ouverture fichier demandes\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initialisation_demandes
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialisation_demandes, %function
initialisation_demandes:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L17
	ldr	r1, .L32+4
	ldr	r0, [fp, #-72]
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L19
.L23:
	ldr	r1, .L32+8
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	ldr	r1, .L32+8
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r1, [fp, #-36]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-36]	@ float
	str	r3, [fp, #-40]	@ float
.L20:
	ldr	r1, .L32+8
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L22
	ldr	r1, .L32+8
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	str	r3, [fp, #-44]
.L22:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L19:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L23
	b	.L24
.L27:
	ldr	r0, [fp, #-64]
	sub	r3, fp, #32
	add	r1, r3, #4
	sub	r3, fp, #32
	add	r2, r3, #8
	sub	r3, fp, #32
	add	r3, r3, #20
	str	r3, [sp, #8]
	sub	r3, fp, #32
	add	r3, r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #32
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L32+16
	bl	__isoc99_sscanf
	ldr	r3, .L32+20
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	get_distance
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-32]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L24
	ldr	r1, .L32+24
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #32
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L24:
	sub	r1, fp, #60
	sub	r3, fp, #64
	ldr	r2, [fp, #-56]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L27
	b	.L17
.L18:
	ldr	r0, .L32+28
	bl	perror
.L17:
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r3, [fp, #-52]
	ldr	r2, .L32
	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}
.L33:
	.align	2
.L32:
	.word	.LC9
	.word	.LC0
	.word	drones
	.word	NB_DRONES
	.word	.LC7
	.word	navette
	.word	demandes
	.word	.LC8
	.size	initialisation_demandes, .-initialisation_demandes
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.align	2
	.global	get_distance
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_distance, %function
get_distance:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r3, [fp, #-20]	@ float
	ldr	r2, [fp, #-28]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]	@ float
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, #0
	ldr	r3, .L36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L37:
	.align	2
.L36:
	.word	1076101120
	.size	get_distance, .-get_distance
	.section	.rodata
	.align	2
.LC10:
	.ascii	"navette.txt\000"
	.align	2
.LC11:
	.ascii	"drones.txt\000"
	.align	2
.LC12:
	.ascii	"\033[0;32m\000"
	.align	2
.LC13:
	.ascii	"\011%s%d drones initialises...\012\000"
	.align	2
.LC14:
	.ascii	"demandes.txt\000"
	.align	2
.LC15:
	.ascii	"\011%s%d demandes initialisees...\012\000"
	.text
	.align	2
	.global	initialisation_tableaux
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialisation_tableaux, %function
initialisation_tableaux:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L39
	bl	initialisation_navette
	ldr	r0, .L39+4
	bl	initialisation_drones
	mov	r3, r0
	ldr	r2, .L39+8
	str	r3, [r2]
	ldr	r3, .L39+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+12
	ldr	r0, .L39+16
	bl	printf
	ldr	r0, .L39+20
	bl	initialisation_demandes
	mov	r3, r0
	ldr	r2, .L39+24
	str	r3, [r2]
	ldr	r3, .L39+24
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+12
	ldr	r0, .L39+28
	bl	printf
	nop
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC10
	.word	.LC11
	.word	NB_DRONES
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	NB_DEMANDES
	.word	.LC15
	.size	initialisation_tableaux, .-initialisation_tableaux
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\033[0;33m\000"
	.align	2
.LC17:
	.ascii	"\011%sInitialisation semaphores...\012\000"
	.align	2
.LC18:
	.ascii	"Erreur initialisation mutexAccesDrones\000"
	.align	2
.LC19:
	.ascii	"Erreur initialisation mutexAccesSlots\000"
	.align	2
.LC20:
	.ascii	"Erreur initialisation mutexLiberationDrone\000"
	.align	2
.LC21:
	.ascii	"Erreur initialisation mutexLiberationSlot\000"
	.text
	.align	2
	.global	initialisation_semaphores
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialisation_semaphores, %function
initialisation_semaphores:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L47
	ldr	r0, .L47+4
	bl	printf
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L47+8
	bl	sem_init
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L47+12
	bl	perror
.L42:
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L47+16
	bl	sem_init
	mov	r3, r0
	cmn	r3, #1
	bne	.L43
	ldr	r0, .L47+20
	bl	perror
.L43:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L47+24
	bl	sem_init
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L47+28
	bl	perror
.L44:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L47+32
	bl	sem_init
	mov	r3, r0
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L47+36
	bl	perror
.L46:
	nop
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC16
	.word	.LC17
	.word	mutexAccesDrones
	.word	.LC18
	.word	mutexAccesSlots
	.word	.LC19
	.word	mutexLiberationDrone
	.word	.LC20
	.word	mutexLiberationSlot
	.word	.LC21
	.size	initialisation_semaphores, .-initialisation_semaphores
	.align	2
	.global	tri_demandes_par_priorite
	.syntax unified
	.arm
	.fpu softvfp
	.type	tri_demandes_par_priorite, %function
tri_demandes_par_priorite:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L50
.L54:
	ldr	r1, .L55
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L51
.L53:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r0, .L55
	ldr	r1, [fp, #-32]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r0, r0, r3
	ldr	r1, .L55
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	ip, r0
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L51:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r1, .L55
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L53
.L52:
	ldr	r1, .L55
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L50:
	ldr	r3, .L55+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L54
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	demandes
	.word	NB_DEMANDES
	.size	tri_demandes_par_priorite, .-tri_demandes_par_priorite
	.global	__aeabi_fadd
	.global	__aeabi_d2iz
	.align	2
	.global	calcul_temps_drone
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcul_temps_drone, %function
calcul_temps_drone:
	@ 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	r1, .L59
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	ldr	r1, .L59+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	demandes
	.word	drones
	.size	calcul_temps_drone, .-calcul_temps_drone
	.align	2
	.global	verification_drone_demande
	.syntax unified
	.arm
	.fpu softvfp
	.type	verification_drone_demande, %function
verification_drone_demande:
	@ 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, #-24]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L62
.L64:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	calcul_temps_drone
	str	r0, [fp, #-8]
	ldr	r1, .L66+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L63
	ldr	r1, .L66+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L63
	ldr	r1, .L66+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r1, [r3]
	ldr	r0, .L66+8
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r1, r3
	blt	.L63
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
.L63:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L62:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L64
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	NB_DRONES
	.word	drones
	.word	demandes
	.size	verification_drone_demande, .-verification_drone_demande
	.section	.rodata
	.align	2
.LC22:
	.ascii	"\033[0;35m\000"
	.align	2
.LC23:
	.ascii	"\011\011\011%sExpedition %d : Verification disponib"
	.ascii	"ilite de slot avec drone %d...\012\000"
	.align	2
.LC24:
	.ascii	"\011\011\011%sExpedition %d : Aucun slot disponible"
	.ascii	", attente disponibilite avec drone %d...\012\000"
	.align	2
.LC25:
	.ascii	"\033[0m\000"
	.align	2
.LC26:
	.ascii	"\011\011\011%sExpedition %d : Occupation d'un slot "
	.ascii	"avec drone %d...\012\000"
	.align	2
.LC27:
	.ascii	"\011\011\011%sExpedition %d : Liberation du slot oc"
	.ascii	"cupe avec drone %d...\012\000"
	.text
	.align	2
	.global	occupation_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	occupation_slot, %function
occupation_slot:
	@ 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	r0, .L72
	bl	sem_wait
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L72+4
	ldr	r0, .L72+8
	bl	printf
	ldr	r3, .L72+12
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L72+12
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L69
	ldr	r0, .L72
	bl	sem_post
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L72+4
	ldr	r0, .L72+16
	bl	printf
	ldr	r0, .L72+20
	bl	sem_wait
	b	.L71
.L69:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L72+24
	ldr	r0, .L72+28
	bl	printf
	ldr	r3, .L72+12
	ldr	r3, [r3, #8]
	sub	r3, r3, #1
	ldr	r2, .L72+12
	str	r3, [r2, #8]
	ldr	r0, .L72
	bl	sem_post
	ldr	r0, .L72+32
	bl	usleep
	ldr	r0, .L72
	bl	sem_wait
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L72+24
	ldr	r0, .L72+36
	bl	printf
	ldr	r3, .L72+12
	ldr	r3, [r3, #8]
	add	r3, r3, #1
	ldr	r2, .L72+12
	str	r3, [r2, #8]
	ldr	r0, .L72
	bl	sem_post
.L71:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	mutexAccesSlots
	.word	.LC22
	.word	.LC23
	.word	navette
	.word	.LC24
	.word	mutexLiberationSlot
	.word	.LC25
	.word	.LC26
	.word	5000000
	.word	.LC27
	.size	occupation_slot, .-occupation_slot
	.section	.rodata
	.align	2
.LC28:
	.ascii	"\033[0;36m\000"
	.align	2
.LC29:
	.ascii	"\011\011\011%sExpedition %d : La livraison avec dro"
	.ascii	"ne %d prendra %d...\012\000"
	.align	2
.LC30:
	.ascii	"\011\011\011%sExpedition %d : La recuperation avec "
	.ascii	"drone %d prendra %d...\012\000"
	.text
	.align	2
	.global	livrer
	.syntax unified
	.arm
	.fpu softvfp
	.type	livrer, %function
livrer:
	@ args = 0, pretend = 0, frame = 16
	@ 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]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	calcul_temps_drone
	str	r0, [fp, #-8]
	ldr	r1, .L77
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L75
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L77+4
	ldr	r0, .L77+8
	bl	printf
	b	.L76
.L75:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L77+4
	ldr	r0, .L77+12
	bl	printf
.L76:
	ldr	r1, [fp, #-8]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r0, r3
	bl	usleep
	ldr	r1, .L77+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r1, r2, r3
	ldr	r0, .L77+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r1, .L77+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	demandes
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	drones
	.size	livrer, .-livrer
	.section	.rodata
	.align	2
.LC31:
	.ascii	"\011%sDestruction semaphores...\012\000"
	.align	2
.LC32:
	.ascii	"Erreur destruction mutexAccesDrones\000"
	.align	2
.LC33:
	.ascii	"Erreur destruction mutexAccesSlots\000"
	.align	2
.LC34:
	.ascii	"Erreur destruction mutexLiberationDrone\000"
	.align	2
.LC35:
	.ascii	"Erreur destruction mutexLiberationSlot\000"
	.text
	.align	2
	.global	destruction_semaphores
	.syntax unified
	.arm
	.fpu softvfp
	.type	destruction_semaphores, %function
destruction_semaphores:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L84
	ldr	r0, .L84+4
	bl	printf
	ldr	r0, .L84+8
	bl	sem_destroy
	mov	r3, r0
	cmn	r3, #1
	bne	.L80
	ldr	r0, .L84+12
	bl	perror
.L80:
	ldr	r0, .L84+16
	bl	sem_destroy
	mov	r3, r0
	cmn	r3, #1
	bne	.L81
	ldr	r0, .L84+20
	bl	perror
.L81:
	ldr	r0, .L84+24
	bl	sem_destroy
	mov	r3, r0
	cmn	r3, #1
	bne	.L82
	ldr	r0, .L84+28
	bl	perror
.L82:
	ldr	r0, .L84+32
	bl	sem_destroy
	mov	r3, r0
	cmn	r3, #1
	bne	.L83
	ldr	r0, .L84+36
	bl	perror
.L83:
	ldr	r0, .L84+40
	bl	puts
	nop
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC16
	.word	.LC31
	.word	mutexAccesDrones
	.word	.LC32
	.word	mutexAccesSlots
	.word	.LC33
	.word	mutexLiberationDrone
	.word	.LC34
	.word	mutexLiberationSlot
	.word	.LC35
	.word	.LC25
	.size	destruction_semaphores, .-destruction_semaphores
	.section	.rodata
	.align	2
.LC36:
	.ascii	"\033[0;37m\000"
	.align	2
.LC37:
	.ascii	"\011\011%sNavette : Lancement du rechargement des d"
	.ascii	"rones...\012\000"
	.align	2
.LC38:
	.ascii	"Erreur creation thread recharge drones\000"
	.align	2
.LC39:
	.ascii	"\011\011%sNavette : Tri des demandes par priorite.."
	.ascii	".\012\000"
	.align	2
.LC40:
	.ascii	"\011\011%sNavette : Lancement de l'expedition %d..."
	.ascii	"\012\000"
	.align	2
.LC41:
	.ascii	"Erreur creation thread expedition\000"
	.align	2
.LC42:
	.ascii	"\011\011%sNavette : Attente de la fin des expeditio"
	.ascii	"ns...\012\000"
	.align	2
.LC43:
	.ascii	"\011\011%sNavette : Fin de toutes les expeditions.."
	.ascii	".\012\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_navette
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_navette, %function
thread_navette:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L94
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L94+4
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, .L94+4
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-16]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r1, .L94+8
	ldr	r0, .L94+12
	bl	printf
	sub	r0, fp, #32
	mov	r3, #0
	ldr	r2, .L94+16
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	ldr	r0, .L94+20
	bl	perror
.L87:
	ldr	r1, .L94+8
	ldr	r0, .L94+24
	bl	printf
	bl	tri_demandes_par_priorite
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L88
.L90:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-28]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L94+8
	ldr	r0, .L94+28
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r0, r2, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, .L94+32
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r0, .L94+36
	bl	perror
.L89:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L88:
	ldr	r3, .L94+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L90
	ldr	r1, .L94+8
	ldr	r0, .L94+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L91
.L92:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L91:
	ldr	r3, .L94+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L92
	ldr	r1, .L94+8
	ldr	r0, .L94+44
	bl	printf
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_cancel
	mov	r0, #0
	bl	pthread_exit
.L95:
	.align	2
.L94:
	.word	.LC44
	.word	NB_DEMANDES
	.word	.LC36
	.word	.LC37
	.word	thread_recharge_drones
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	thread_expedition
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	thread_navette, .-thread_navette
	.section	.rodata
	.align	2
.LC45:
	.ascii	"\011\011\011%sExpedition %d : Verification disponib"
	.ascii	"ilite de drone...\012\000"
	.align	2
.LC46:
	.ascii	"\011\011\011%sExpedition %d : Aucun drone disponibl"
	.ascii	"e, attente disponibilite...\012\000"
	.align	2
.LC47:
	.ascii	"\011\011\011%sExpedition %d : Choix drone %d...\012"
	.ascii	"\000"
	.align	2
.LC48:
	.ascii	"\011\011\011%sExpedition %d : Lancement livraison a"
	.ascii	"vec drone %d...\012\000"
	.align	2
.LC49:
	.ascii	"\011\011\011%sExpedition %d : Lancement recuperatio"
	.ascii	"n avec drone %d...\012\000"
	.align	2
.LC50:
	.ascii	"\011\011\011%sExpedition %d : Recuperation effectue"
	.ascii	" avec drone %d...\012\000"
	.align	2
.LC51:
	.ascii	"\011\011\011%sExpedition %d : Livraison effectuee a"
	.ascii	"vec drone %d...\012\000"
	.text
	.align	2
	.global	thread_expedition
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_expedition, %function
thread_expedition:
	@ 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, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L103:
	ldr	r0, .L105
	bl	sem_wait
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L105+4
	ldr	r0, .L105+8
	bl	printf
	ldr	r0, [fp, #-12]
	bl	verification_drone_demande
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L97
	ldr	r0, .L105
	bl	sem_post
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L105+12
	ldr	r0, .L105+16
	bl	printf
	ldr	r0, .L105+20
	bl	sem_wait
	b	.L103
.L97:
	ldr	r1, .L105+24
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #2
	str	r2, [r3]
	ldr	r0, .L105
	bl	sem_post
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L105+4
	ldr	r0, .L105+28
	bl	printf
	ldr	r1, .L105+32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L99
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	occupation_slot
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L105+12
	ldr	r0, .L105+36
	bl	printf
	b	.L100
.L99:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L105+12
	ldr	r0, .L105+40
	bl	printf
.L100:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	livrer
	ldr	r1, .L105+32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L101
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L105+12
	ldr	r0, .L105+44
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	occupation_slot
	b	.L102
.L101:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L105+12
	ldr	r0, .L105+48
	bl	printf
.L102:
	ldr	r0, .L105+20
	bl	sem_post
	mov	r0, #0
	bl	pthread_exit
.L106:
	.align	2
.L105:
	.word	mutexAccesDrones
	.word	.LC22
	.word	.LC45
	.word	.LC25
	.word	.LC46
	.word	mutexLiberationDrone
	.word	drones
	.word	.LC47
	.word	demandes
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.size	thread_expedition, .-thread_expedition
	.align	2
	.global	thread_recharge_drones
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_recharge_drones, %function
thread_recharge_drones:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L112:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L108
.L111:
	ldr	r1, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L109
	ldr	r1, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3]
	cmp	r1, r3
	bge	.L110
	ldr	r1, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r0, .L113
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	b	.L109
.L110:
	ldr	r0, .L113+4
	bl	sem_post
.L109:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L108:
	ldr	r3, .L113+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L111
	ldr	r0, .L113+12
	bl	usleep
	b	.L112
.L114:
	.align	2
.L113:
	.word	drones
	.word	mutexLiberationDrone
	.word	NB_DRONES
	.word	1000000
	.size	thread_recharge_drones, .-thread_recharge_drones
	.section	.rodata
	.align	2
.LC52:
	.ascii	"Probleme sur SIGINT...\000"
	.align	2
.LC53:
	.ascii	"\011\000"
	.text
	.align	2
	.global	traitantSIGINT
	.syntax unified
	.arm
	.fpu softvfp
	.type	traitantSIGINT, %function
traitantSIGINT:
	@ 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, [fp, #-8]
	cmp	r3, #2
	beq	.L116
	ldr	r0, .L117
	bl	perror
.L116:
	ldr	r0, .L117+4
	bl	puts
	bl	destruction_semaphores
	mov	r0, #0
	bl	exit
.L118:
	.align	2
.L117:
	.word	.LC52
	.word	.LC53
	.size	traitantSIGINT, .-traitantSIGINT
	.section	.rodata
	.align	2
.LC54:
	.ascii	"\033[0;34m\000"
	.align	2
.LC55:
	.ascii	"\011%sLancement de la navette...\012\000"
	.align	2
.LC56:
	.ascii	"Erreur creation thread navette\000"
	.align	2
.LC57:
	.ascii	"\011%sArret de la navette...\012\000"
	.align	2
.LC58:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	initialisation_tableaux
	bl	initialisation_semaphores
	ldr	r1, .L122+4
	mov	r0, #2
	bl	signal
	ldr	r1, .L122+8
	ldr	r0, .L122+12
	bl	printf
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L122+16
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L120
	ldr	r0, .L122+20
	bl	perror
.L120:
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r1, .L122+8
	ldr	r0, .L122+24
	bl	printf
	bl	destruction_semaphores
	mov	r0, #0
	bl	exit
.L123:
	.align	2
.L122:
	.word	.LC58
	.word	traitantSIGINT
	.word	.LC54
	.word	.LC55
	.word	thread_navette
	.word	.LC56
	.word	.LC57
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
