	.file	"78775.c"
	.intel_syntax noprefix
	.text
	.globl	shm_fd
	.bss
	.align 2
	.type	shm_fd, @object
	.size	shm_fd, 2
shm_fd:
	.zero	2
	.globl	shm
	.align 8
	.type	shm, @object
	.size	shm, 8
shm:
	.zero	8
	.globl	alarm_active
	.align 2
	.type	alarm_active, @object
	.size	alarm_active, 2
alarm_active:
	.zero	2
	.globl	alarm_mutex
	.align 32
	.type	alarm_mutex, @object
	.size	alarm_mutex, 40
alarm_mutex:
	.zero	40
	.globl	alarm_condvar
	.align 32
	.type	alarm_condvar, @object
	.size	alarm_condvar, 48
alarm_condvar:
	.zero	48
	.globl	lv_id
	.align 16
	.type	lv_id, @object
	.size	lv_id, 20
lv_id:
	.zero	20
	.text
	.globl	deletenodes
	.type	deletenodes, @function
deletenodes:
.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
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	deletenodes
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
.L2:
	cmp	DWORD PTR -12[rbp], 0
	jg	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	deletenodes, .-deletenodes
	.globl	compare
	.type	compare, @function
compare:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare, .-compare
	.globl	tempmonitor
	.type	tempmonitor, @function
tempmonitor:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
.L17:
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	add	ax, 2496
	mov	WORD PTR -86[rbp], ax
	mov	rdx, QWORD PTR shm[rip]
	movsx	rax, WORD PTR -86[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	WORD PTR -84[rbp], ax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, WORD PTR -84[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	deletenodes
	mov	DWORD PTR -80[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L8
.L9:
	add	DWORD PTR -80[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -48[rbp], rax
.L8:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L9
	cmp	DWORD PTR -80[rbp], 5
	jne	.L10
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -80[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -40[rbp]
	movzx	ecx, WORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -80[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movzx	eax, cx
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
.L11:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, compare[rip]
	mov	edx, 4
	mov	esi, 5
	mov	rdi, rax
	call	qsort@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	WORD PTR -82[rbp], ax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	movzx	edx, WORD PTR -82[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	deletenodes
	mov	DWORD PTR -80[rbp], 0
	mov	WORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 57
	jbe	.L14
	movzx	eax, WORD PTR -88[rbp]
	add	eax, 1
	mov	WORD PTR -88[rbp], ax
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -56[rbp], rax
	add	DWORD PTR -80[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L13:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L15
	cmp	DWORD PTR -80[rbp], 30
	jne	.L10
	cmp	WORD PTR -88[rbp], 26
	jle	.L16
	mov	WORD PTR alarm_active[rip], 1
	mov	rdx, QWORD PTR shm[rip]
	movsx	rax, WORD PTR -86[rbp]
	add	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 1
.L16:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	ecx, ax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 7
	jle	.L10
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	test	ax, ax
	je	.L10
	mov	WORD PTR alarm_active[rip], 1
	mov	rdx, QWORD PTR shm[rip]
	movsx	rax, WORD PTR -86[rbp]
	add	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 1
.L10:
	mov	edi, 2000
	call	usleep@PLT
	jmp	.L17
	.cfi_endproc
.LFE8:
	.size	tempmonitor, .-tempmonitor
	.globl	open_en_boomgate
	.type	open_en_boomgate, @function
open_en_boomgate:
.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
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR shm[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 5
	cdqe
	add	rax, 96
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	cmp	al, 67
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 88[rax], 82
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	jmp	.L22
.L19:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	cmp	al, 79
	jne	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 40
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L22
	.cfi_endproc
.LFE9:
	.size	open_en_boomgate, .-open_en_boomgate
	.globl	open_ex_boomgate
	.type	open_ex_boomgate, @function
open_ex_boomgate:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR shm[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 6
	cdqe
	add	rax, 1536
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	cmp	al, 79
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 88[rax], 82
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	jmp	.L27
.L24:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	cmp	al, 79
	jne	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 40
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L27
	.cfi_endproc
.LFE10:
	.size	open_ex_boomgate, .-open_ex_boomgate
	.section	.rodata
.LC0:
	.string	"PARKING"
.LC1:
	.string	"EVACUATE "
	.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	lea	rdi, .LC0[rip]
	call	shm_open@PLT
	mov	WORD PTR shm_fd[rip], ax
	movzx	eax, WORD PTR shm_fd[rip]
	cwde
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 2920
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR shm[rip], rax
	nop
.L29:
	mov	rax, QWORD PTR shm[rip]
	add	rax, 2919
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L29
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -140[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, lv_id[rip]
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lv_id[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, tempmonitor[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -140[rbp], 1
.L30:
	cmp	DWORD PTR -140[rbp], 4
	jle	.L31
.L35:
	movzx	eax, WORD PTR alarm_active[rip]
	test	ax, ax
	jne	.L51
	mov	rax, QWORD PTR shm[rip]
	add	rax, 2919
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L52
	mov	edi, 1000
	call	usleep@PLT
	jmp	.L35
.L51:
	nop
	jmp	.L33
.L52:
	nop
.L33:
	movzx	eax, WORD PTR alarm_active[rip]
	test	ax, ax
	je	.L36
	mov	DWORD PTR -136[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -136[rbp]
	imul	eax, eax, 104
	add	eax, 2498
	mov	DWORD PTR -116[rbp], eax
	mov	rdx, QWORD PTR shm[rip]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR [rax], 1
	add	DWORD PTR -136[rbp], 1
.L37:
	cmp	DWORD PTR -136[rbp], 4
	jle	.L38
	mov	edi, 80
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	edx, DWORD PTR -132[rbp]
	mov	DWORD PTR -64[rbp+rax*4], edx
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, open_en_boomgate[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -132[rbp], 1
.L39:
	cmp	DWORD PTR -132[rbp], 4
	jle	.L40
	mov	DWORD PTR -128[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	edx, DWORD PTR -128[rbp]
	mov	DWORD PTR -32[rbp+rax*4], edx
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	add	rax, 5
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, open_ex_boomgate[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -128[rbp], 1
.L41:
	cmp	DWORD PTR -128[rbp], 4
	jle	.L42
.L48:
	mov	rax, QWORD PTR shm[rip]
	add	rax, 2919
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L53
	lea	rax, .LC1[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L44
.L47:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L45
.L46:
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 5
	add	eax, 192
	mov	DWORD PTR -120[rbp], eax
	mov	rdx, QWORD PTR shm[rip]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -112[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	BYTE PTR 88[rax], dl
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -124[rbp], 1
.L45:
	cmp	DWORD PTR -124[rbp], 4
	jle	.L46
	mov	edi, 20000
	call	usleep@PLT
	add	QWORD PTR -112[rbp], 1
.L44:
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L47
	jmp	.L48
.L53:
	nop
.L36:
	mov	rax, QWORD PTR shm[rip]
	mov	esi, 2920
	mov	rdi, rax
	call	munmap@PLT
	movzx	eax, WORD PTR shm_fd[rip]
	cwde
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"78775.c"
	.text
	.comm	shm_fd,2,2
	.comm	shm,4,4
	.global	alarm_active
	.bss
	.align	1
	.type	alarm_active, %object
	.size	alarm_active, 2
alarm_active:
	.space	2
	.global	alarm_mutex
	.align	2
	.type	alarm_mutex, %object
	.size	alarm_mutex, 24
alarm_mutex:
	.space	24
	.global	alarm_condvar
	.align	3
	.type	alarm_condvar, %object
	.size	alarm_condvar, 48
alarm_condvar:
	.space	48
	.comm	lv_id,20,4
	.text
	.align	2
	.global	deletenodes
	.syntax unified
	.arm
	.fpu softvfp
	.type	deletenodes, %function
deletenodes:
	@ 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	r3, [r3, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	deletenodes
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L3
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deletenodes, .-deletenodes
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare, .-compare
	.align	2
	.global	tempmonitor
	.syntax unified
	.arm
	.fpu softvfp
	.type	tempmonitor, %function
tempmonitor:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
.L17:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3	@ movhi
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r2, r2, #2
	add	r3, r2, r3
	lsl	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #2496
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-54]	@ movhi
	ldr	r3, .L18
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-54]
	add	r3, r2, r3
	ldr	r3, [r3]
	strh	r3, [fp, #-52]	@ movhi
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrh	r2, [fp, #-52]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-48]
	mov	r1, #5
	ldr	r0, [fp, #-48]
	bl	deletenodes
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-32]
	b	.L8
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-36]
	cmp	r3, #5
	bne	.L10
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
	b	.L11
.L12:
	ldr	r3, [fp, #-28]
	ldrh	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
.L11:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L18+4
	mov	r2, #4
	mov	r1, #5
	ldr	r0, [fp, #-12]
	bl	qsort
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	strh	r3, [fp, #-50]	@ movhi
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldrh	r2, [fp, #-50]
	ldr	r3, [fp, #-16]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-44]
	mov	r1, #30
	ldr	r0, [fp, #-44]
	bl	deletenodes
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	strh	r3, [fp, #-56]	@ movhi
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	b	.L13
.L15:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	cmp	r3, #57
	bls	.L14
	ldrsh	r3, [fp, #-56]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-56]	@ movhi
.L14:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
.L13:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-36]
	cmp	r3, #30
	bne	.L10
	ldrsh	r3, [fp, #-56]
	cmp	r3, #26
	ble	.L16
	ldr	r3, .L18+8
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, .L18
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-54]
	add	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3]
.L16:
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #7
	ble	.L10
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L18+8
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, .L18
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-54]
	add	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3]
.L10:
	mov	r0, #2000
	bl	usleep
	b	.L17
.L19:
	.align	2
.L18:
	.word	shm
	.word	compare
	.word	alarm_active
	.size	tempmonitor, .-tempmonitor
	.align	2
	.global	open_en_boomgate
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_en_boomgate, %function
open_en_boomgate:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L25
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #96
	add	r3, r1, r3
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #72]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L21
	ldr	r3, [fp, #-8]
	mov	r2, #82
	strb	r2, [r3, #72]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_broadcast
	b	.L24
.L21:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #72]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L23
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	ldr	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	b	.L24
.L23:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L24
.L26:
	.align	2
.L25:
	.word	shm
	.size	open_en_boomgate, .-open_en_boomgate
	.align	2
	.global	open_ex_boomgate
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_ex_boomgate, %function
open_ex_boomgate:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L32
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #6
	add	r3, r3, #1536
	add	r3, r1, r3
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #72]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L28
	ldr	r3, [fp, #-8]
	mov	r2, #82
	strb	r2, [r3, #72]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_broadcast
	b	.L31
.L28:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #72]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L30
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	ldr	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	b	.L31
.L30:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L31
.L33:
	.align	2
.L32:
	.word	shm
	.size	open_ex_boomgate, .-open_ex_boomgate
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PARKING\000"
	.align	2
.LC1:
	.ascii	"EVACUATE \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	ldr	r0, .L60+4
	bl	shm_open
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L60+8
	strh	r3, [r2]	@ movhi
	ldr	r3, .L60+8
	ldrsh	r3, [r3]
	mov	r2, r3
	mov	r3, #0
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, #1
	mov	r2, #3
	ldr	r1, .L60+12
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L60+16
	str	r3, [r2]
	nop
.L35:
	ldr	r3, .L60+16
	ldr	r3, [r3]
	add	r3, r3, #2912
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L35
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L36
.L37:
	ldr	r1, .L60+20
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-100]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r0, r2, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, .L60+20
	add	r3, r3, r2
	ldr	r2, .L60+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L36:
	ldr	r3, [fp, #-100]
	cmp	r3, #4
	ble	.L37
.L41:
	ldr	r3, .L60+28
	ldrsh	r3, [r3]
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L60+16
	ldr	r3, [r3]
	add	r3, r3, #2912
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L58
	mov	r0, #1000
	bl	usleep
	b	.L41
.L57:
	nop
	b	.L39
.L58:
	nop
.L39:
	ldr	r3, .L60+28
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L42
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L43
.L44:
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #2496
	add	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, .L60+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L43:
	ldr	r3, [fp, #-96]
	cmp	r3, #4
	ble	.L44
	mov	r0, #40
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L45
.L46:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-92]
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r0, r2, r3
	sub	r2, fp, #48
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L60+32
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L45:
	ldr	r3, [fp, #-92]
	cmp	r3, #4
	ble	.L46
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L47
.L48:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-88]
	str	r2, [r3, #-24]
	ldr	r3, [fp, #-88]
	add	r3, r3, #5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r0, r2, r3
	sub	r2, fp, #28
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L60+36
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L47:
	ldr	r3, [fp, #-88]
	cmp	r3, #4
	ble	.L48
.L54:
	ldr	r3, .L60+16
	ldr	r3, [r3]
	add	r3, r3, #2912
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L59
	ldr	r3, .L60+40
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-84]
	b	.L50
.L53:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L51
.L52:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #192
	str	r3, [fp, #-64]
	ldr	r3, .L60+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-84]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-60]
	strb	r2, [r3, #72]
	ldr	r3, [fp, #-60]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_broadcast
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L51:
	ldr	r3, [fp, #-80]
	cmp	r3, #4
	ble	.L52
	ldr	r0, .L60+44
	bl	usleep
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L50:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
	b	.L54
.L59:
	nop
.L42:
	ldr	r3, .L60+16
	ldr	r3, [r3]
	ldr	r1, .L60+12
	mov	r0, r3
	bl	munmap
	ldr	r3, .L60+8
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-76]
	bl	free
	mov	r3, #0
	ldr	r2, .L60
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC2
	.word	.LC0
	.word	shm_fd
	.word	2920
	.word	shm
	.word	lv_id
	.word	tempmonitor
	.word	alarm_active
	.word	open_en_boomgate
	.word	open_ex_boomgate
	.word	.LC1
	.word	20000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
