	.file	"952434.c"
	.intel_syntax noprefix
	.text
	.globl	isLeftWindow
	.type	isLeftWindow, @function
isLeftWindow:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 4
	cmp	DWORD PTR -8[rbp], eax
	jge	.L2
	mov	eax, DWORD PTR -8[rbp]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	cmp	eax, 1
	je	.L3
.L2:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 4
	cmp	DWORD PTR -8[rbp], eax
	jne	.L4
.L3:
	mov	eax, 1
	jmp	.L6
.L4:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isLeftWindow, .-isLeftWindow
	.globl	isRightWindow
	.type	isRightWindow, @function
isRightWindow:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 4
	cmp	DWORD PTR -8[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 3
	test	eax, eax
	je	.L9
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L10
.L9:
	mov	eax, 1
	jmp	.L12
.L10:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isRightWindow, .-isRightWindow
	.globl	isWindow
	.type	isWindow, @function
isWindow:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isLeftWindow
	test	eax, eax
	jne	.L14
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isRightWindow
	test	eax, eax
	je	.L15
.L14:
	mov	eax, 1
	jmp	.L17
.L15:
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isWindow, .-isWindow
	.section	.rodata
.LC0:
	.string	"1. Emfanisi kenon theseon"
	.align 8
.LC1:
	.string	"2. Kratisi sygkekrimenis thesis"
	.align 8
.LC2:
	.string	"3. Evresi kai kratisi proths diathesimis thesis se parathiro"
.LC3:
	.string	"4. Akirosi kratisis thesis"
	.align 8
.LC4:
	.string	"5. Anazitisi thesis an einai kratimeni"
.LC5:
	.string	"6. Lista kratimenon theseon"
	.align 8
.LC6:
	.string	"7. Emfanisi pinakidas kai diagrammatos theseon"
	.align 8
.LC7:
	.string	"8. Apothikeysi pinakidas kai diagrammatos sto layout.txt"
	.align 8
.LC8:
	.string	"------------------------------------------------------------"
.LC9:
	.string	"0. Eksodos"
.LC10:
	.string	"\nEpilogi: "
	.text
	.globl	showMenu
	.type	showMenu, @function
showMenu:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	showMenu, .-showMenu
	.section	.rodata
.LC11:
	.string	"\nDiathesimes theseis"
.LC12:
	.string	"-------------------"
.LC13:
	.string	", "
.LC14:
	.string	"[%d]"
.LC15:
	.string	"%d"
	.align 8
.LC16:
	.string	"Den yparxei kamia diathesimi thsei!"
.LC17:
	.string	"\nSynolo: %d\n"
	.text
	.globl	showBlanks
	.type	showBlanks, @function
showBlanks:
.LFB4:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L21
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L22
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isWindow
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L21
	mov	edi, 10
	call	putchar@PLT
.L21:
	add	DWORD PTR -8[rbp], 1
.L20:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L25
	cmp	DWORD PTR -4[rbp], 0
	jne	.L26
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L28
.L26:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	showBlanks, .-showBlanks
	.section	.rodata
.LC18:
	.string	"\nDoste arithmo thesis: "
.LC19:
	.string	"H thesi kratithike"
	.align 8
.LC20:
	.string	"H thesi einai HDH kratimeni, epilexte allh!"
	.align 8
.LC21:
	.string	"Prepei na dosete enan egkyro arithmo thesis (Max = %d)\n"
	.text
	.globl	reserveSpecific
	.type	reserveSpecific, @function
reserveSpecific:
.LFB5:
	.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	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L30
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L30:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L31
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L32
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L34
.L32:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L34
.L31:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	reserveSpecific, .-reserveSpecific
	.section	.rodata
	.align 8
.LC22:
	.string	"\nH proti diathesimi thesi se parathyro einai h [%d]\n"
	.align 8
.LC23:
	.string	"\nDen yparxei diathesimi thesi se parathyro!"
	.text
	.globl	reserveFreeWindow
	.type	reserveFreeWindow, @function
reserveFreeWindow:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L36
.L39:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L37
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isWindow
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	reserveSpecific
	jmp	.L38
.L37:
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L39
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L41
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L41:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reserveFreeWindow, .-reserveFreeWindow
	.section	.rodata
.LC24:
	.string	"H thesi akyrothike"
	.align 8
.LC25:
	.string	"H thesi DEN einai kratimeni, epilexte allh!"
	.text
	.globl	cancelSpecific
	.type	cancelSpecific, @function
cancelSpecific:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L43
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L47
.L44:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L47
.L43:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L47:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cancelSpecific, .-cancelSpecific
	.section	.rodata
.LC26:
	.string	"\nKratimenes theseis"
.LC27:
	.string	"------------------"
.LC28:
	.string	"Thesi %d: "
	.align 8
.LC29:
	.string	"Den yparxei kamia kratimeni thesi!"
	.text
	.globl	showReserved
	.type	showReserved, @function
showReserved:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L49
.L53:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L50
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isWindow
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L52:
	mov	edi, 10
	call	putchar@PLT
.L50:
	add	DWORD PTR -8[rbp], 1
.L49:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L53
	cmp	DWORD PTR -4[rbp], 0
	jne	.L55
	lea	rdi, .LC29[rip]
	call	puts@PLT
.L55:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	showReserved, .-showReserved
	.section	.rodata
.LC30:
	.string	"H thesi einai kratimeni"
	.align 8
.LC31:
	.string	"H thesi DEN einai kratimeni apo allon"
	.text
	.globl	checkReservedSpecific
	.type	checkReservedSpecific, @function
checkReservedSpecific:
.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L57
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L58
	lea	rdi, .LC30[rip]
	call	puts@PLT
	jmp	.L61
.L58:
	lea	rdi, .LC31[rip]
	call	puts@PLT
	jmp	.L61
.L57:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	checkReservedSpecific, .-checkReservedSpecific
	.section	.rodata
.LC32:
	.string	"\n%s\n"
	.text
	.globl	showPlan
	.type	showPlan, @function
showPlan:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L63
.L69:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L64
.L68:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L65
	mov	eax, 42
	jmp	.L66
.L65:
	mov	eax, 95
.L66:
	mov	edi, eax
	call	putchar@PLT
	cmp	DWORD PTR -4[rbp], 1
	jne	.L67
	mov	edi, 32
	call	putchar@PLT
.L67:
	add	DWORD PTR -4[rbp], 1
.L64:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L68
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 4
.L63:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 5
	cmp	DWORD PTR -8[rbp], eax
	jl	.L69
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 5
	mov	DWORD PTR -8[rbp], eax
	jmp	.L70
.L73:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L71
	mov	eax, 42
	jmp	.L72
.L71:
	mov	eax, 95
.L72:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L70:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L73
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	showPlan, .-showPlan
	.section	.rodata
.LC33:
	.string	"w"
.LC34:
	.string	"layout.txt"
.LC35:
	.string	"%s\n"
	.align 8
.LC36:
	.string	"H pinakida kai to diagramma theseon apothikeytikan sto layout.txt"
	.text
	.globl	writePlanFile
	.type	writePlanFile, @function
writePlanFile:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	lea	rsi, .LC33[rip]
	lea	rdi, .LC34[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L75
.L81:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L76
.L80:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L77
	mov	edx, 42
	jmp	.L78
.L77:
	mov	edx, 95
.L78:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	putc@PLT
	cmp	DWORD PTR -12[rbp], 1
	jne	.L79
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 32
	call	putc@PLT
.L79:
	add	DWORD PTR -12[rbp], 1
.L76:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L80
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -16[rbp], 4
.L75:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 5
	cmp	DWORD PTR -16[rbp], eax
	jl	.L81
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 5
	mov	DWORD PTR -16[rbp], eax
	jmp	.L82
.L85:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L83
	mov	edx, 42
	jmp	.L84
.L83:
	mov	edx, 95
.L84:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	putc@PLT
	add	DWORD PTR -16[rbp], 1
.L82:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L85
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC36[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	writePlanFile, .-writePlanFile
	.section	.rodata
.LC37:
	.string	"r"
	.align 8
.LC38:
	.string	"I:\\Personal\\Education\\EAP\\PLS\\PLS50\\GE1\\CLion\\Exercise4\\bus.txt"
.LC39:
	.string	"%s %d"
	.align 8
.LC40:
	.string	"Adynatos syndyasmos arithmoy theseon (%d)\n"
	.align 8
.LC41:
	.string	"Prepei na isxyei Theseis=4xTheseis + 5 (Theseis >= 0)"
.LC42:
	.string	"Adynato plithos theseon (%d)\n"
	.align 8
.LC43:
	.string	"Oi theseis den prepei na einai pano apo 53"
.LC44:
	.string	" %c"
	.align 8
.LC45:
	.string	"H epilogh poy dosate den einai egkyrh!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC37[rip]
	lea	rdi, .LC38[rip]
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	lea	rcx, -256[rbp]
	lea	rdx, -15[rbp]
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -256[rbp]
	sub	eax, 5
	and	eax, 3
	test	eax, eax
	je	.L87
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, eax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC41[rip]
	call	puts@PLT
	jmp	.L88
.L87:
	mov	eax, DWORD PTR -256[rbp]
	cmp	eax, 53
	jle	.L89
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, eax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC43[rip]
	call	puts@PLT
	jmp	.L88
.L89:
	mov	DWORD PTR -252[rbp], 0
	jmp	.L90
.L91:
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	DWORD PTR -240[rbp+rax*4], 0
	add	DWORD PTR -252[rbp], 1
.L90:
	mov	eax, DWORD PTR -256[rbp]
	cmp	DWORD PTR -252[rbp], eax
	jl	.L91
.L104:
	call	showMenu
	lea	rax, -257[rbp]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -257[rbp]
	movsx	eax, al
	sub	eax, 48
	cmp	eax, 8
	ja	.L92
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L94[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L94[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L94:
	.long	.L108-.L94
	.long	.L101-.L94
	.long	.L100-.L94
	.long	.L99-.L94
	.long	.L98-.L94
	.long	.L97-.L94
	.long	.L96-.L94
	.long	.L95-.L94
	.long	.L93-.L94
	.text
.L101:
	mov	edx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	showBlanks
	jmp	.L103
.L100:
	mov	ecx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	reserveSpecific
	jmp	.L103
.L99:
	mov	edx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reserveFreeWindow
	jmp	.L103
.L98:
	mov	edx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cancelSpecific
	jmp	.L103
.L97:
	mov	edx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkReservedSpecific
	jmp	.L103
.L96:
	mov	edx, DWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	showReserved
	jmp	.L103
.L95:
	mov	ecx, DWORD PTR -256[rbp]
	lea	rdx, -15[rbp]
	lea	rax, -240[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	showPlan
	jmp	.L103
.L93:
	mov	ecx, DWORD PTR -256[rbp]
	lea	rdx, -15[rbp]
	lea	rax, -240[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writePlanFile
	jmp	.L103
.L92:
	lea	rdi, .LC45[rip]
	call	puts@PLT
	jmp	.L103
.L108:
	nop
.L103:
	movzx	eax, BYTE PTR -257[rbp]
	cmp	al, 48
	jne	.L104
	mov	eax, 1
	jmp	.L106
.L88:
	mov	eax, 0
.L106:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"952434.c"
	.text
	.align	2
	.global	isLeftWindow
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeftWindow, %function
isLeftWindow:
	@ 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]
	sub	r3, r3, #4
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #1
	beq	.L3
.L2:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #4
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L4
.L3:
	mov	r3, #1
	b	.L6
.L4:
	mov	r3, #0
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isLeftWindow, .-isLeftWindow
	.align	2
	.global	isRightWindow
	.syntax unified
	.arm
	.fpu softvfp
	.type	isRightWindow, %function
isRightWindow:
	@ 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]
	sub	r3, r3, #4
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L10
.L9:
	mov	r3, #1
	b	.L12
.L10:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isRightWindow, .-isRightWindow
	.align	2
	.global	isWindow
	.syntax unified
	.arm
	.fpu softvfp
	.type	isWindow, %function
isWindow:
	@ 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, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	isLeftWindow
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	isRightWindow
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
.L14:
	mov	r3, #1
	b	.L17
.L15:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isWindow, .-isWindow
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1. Emfanisi kenon theseon\000"
	.align	2
.LC1:
	.ascii	"2. Kratisi sygkekrimenis thesis\000"
	.align	2
.LC2:
	.ascii	"3. Evresi kai kratisi proths diathesimis thesis se "
	.ascii	"parathiro\000"
	.align	2
.LC3:
	.ascii	"4. Akirosi kratisis thesis\000"
	.align	2
.LC4:
	.ascii	"5. Anazitisi thesis an einai kratimeni\000"
	.align	2
.LC5:
	.ascii	"6. Lista kratimenon theseon\000"
	.align	2
.LC6:
	.ascii	"7. Emfanisi pinakidas kai diagrammatos theseon\000"
	.align	2
.LC7:
	.ascii	"8. Apothikeysi pinakidas kai diagrammatos sto layou"
	.ascii	"t.txt\000"
	.align	2
.LC8:
	.ascii	"---------------------------------------------------"
	.ascii	"---------\000"
	.align	2
.LC9:
	.ascii	"0. Eksodos\000"
	.align	2
.LC10:
	.ascii	"\012Epilogi: \000"
	.text
	.align	2
	.global	showMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	showMenu, %function
showMenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #10
	bl	putchar
	ldr	r0, .L19
	bl	puts
	ldr	r0, .L19+4
	bl	puts
	ldr	r0, .L19+8
	bl	puts
	ldr	r0, .L19+12
	bl	puts
	ldr	r0, .L19+16
	bl	puts
	ldr	r0, .L19+20
	bl	puts
	ldr	r0, .L19+24
	bl	puts
	ldr	r0, .L19+28
	bl	puts
	ldr	r0, .L19+32
	bl	puts
	ldr	r0, .L19+36
	bl	puts
	ldr	r0, .L19+40
	bl	printf
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	showMenu, .-showMenu
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012Diathesimes theseis\000"
	.align	2
.LC12:
	.ascii	"-------------------\000"
	.align	2
.LC13:
	.ascii	", \000"
	.align	2
.LC14:
	.ascii	"[%d]\000"
	.align	2
.LC15:
	.ascii	"%d\000"
	.align	2
.LC16:
	.ascii	"Den yparxei kamia diathesimi thsei!\000"
	.align	2
.LC17:
	.ascii	"\012Synolo: %d\012\000"
	.text
	.align	2
	.global	showBlanks
	.syntax unified
	.arm
	.fpu softvfp
	.type	showBlanks, %function
showBlanks:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L31
	bl	puts
	ldr	r0, .L31+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L27:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r1, [fp, #-8]
	ldr	r3, .L31+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L24
	ldr	r0, .L31+12
	bl	printf
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	isWindow
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	b	.L26
.L25:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L31+20
	bl	printf
.L26:
	ldr	r1, [fp, #-8]
	ldr	r3, .L31+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L23
	mov	r0, #10
	bl	putchar
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L31+24
	bl	puts
	b	.L30
.L28:
	ldr	r1, [fp, #-8]
	ldr	r0, .L31+28
	bl	printf
.L30:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC11
	.word	.LC12
	.word	1717986919
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	showBlanks, .-showBlanks
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Doste arithmo thesis: \000"
	.align	2
.LC19:
	.ascii	"H thesi kratithike\000"
	.align	2
.LC20:
	.ascii	"H thesi einai HDH kratimeni, epilexte allh!\000"
	.align	2
.LC21:
	.ascii	"Prepei na dosete enan egkyro arithmo thesis (Max = "
	.ascii	"%d)\012\000"
	.text
	.align	2
	.global	reserveSpecific
	.syntax unified
	.arm
	.fpu softvfp
	.type	reserveSpecific, %function
reserveSpecific:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L39
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L39+4
	bl	__isoc99_scanf
.L34:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L35
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L39+8
	bl	puts
	b	.L38
.L36:
	ldr	r0, .L39+12
	bl	puts
	b	.L38
.L35:
	ldr	r1, [fp, #-12]
	ldr	r0, .L39+16
	bl	printf
.L38:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC18
	.word	.LC15
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	reserveSpecific, .-reserveSpecific
	.section	.rodata
	.align	2
.LC22:
	.ascii	"\012H proti diathesimi thesi se parathyro einai h ["
	.ascii	"%d]\012\000"
	.align	2
.LC23:
	.ascii	"\012Den yparxei diathesimi thesi se parathyro!\000"
	.text
	.align	2
	.global	reserveFreeWindow
	.syntax unified
	.arm
	.fpu softvfp
	.type	reserveFreeWindow, %function
reserveFreeWindow:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L42
.L45:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	isWindow
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L48
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	reserveSpecific
	b	.L44
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L45
.L44:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L47
	ldr	r0, .L48+4
	bl	puts
.L47:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC22
	.word	.LC23
	.size	reserveFreeWindow, .-reserveFreeWindow
	.section	.rodata
	.align	2
.LC24:
	.ascii	"H thesi akyrothike\000"
	.align	2
.LC25:
	.ascii	"H thesi DEN einai kratimeni, epilexte allh!\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cancelSpecific
	.syntax unified
	.arm
	.fpu softvfp
	.type	cancelSpecific, %function
cancelSpecific:
	@ 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, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L56+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L56+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L51
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L56+12
	bl	puts
	b	.L55
.L52:
	ldr	r0, .L56+16
	bl	puts
	b	.L55
.L51:
	ldr	r1, [fp, #-20]
	ldr	r0, .L56+20
	bl	printf
.L55:
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC26
	.word	.LC18
	.word	.LC15
	.word	.LC24
	.word	.LC25
	.word	.LC21
	.size	cancelSpecific, .-cancelSpecific
	.section	.rodata
	.align	2
.LC27:
	.ascii	"\012Kratimenes theseis\000"
	.align	2
.LC28:
	.ascii	"------------------\000"
	.align	2
.LC29:
	.ascii	"Thesi %d: \000"
	.align	2
.LC30:
	.ascii	"Den yparxei kamia kratimeni thesi!\000"
	.text
	.align	2
	.global	showReserved
	.syntax unified
	.arm
	.fpu softvfp
	.type	showReserved, %function
showReserved:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L66
	bl	puts
	ldr	r0, .L66+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L59
.L63:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L66+8
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	isWindow
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L66+12
	bl	printf
	b	.L62
.L61:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L66+16
	bl	printf
.L62:
	mov	r0, #10
	bl	putchar
.L60:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L59:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L63
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L66+20
	bl	puts
.L65:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC14
	.word	.LC15
	.word	.LC30
	.size	showReserved, .-showReserved
	.section	.rodata
	.align	2
.LC31:
	.ascii	"H thesi einai kratimeni\000"
	.align	2
.LC32:
	.ascii	"H thesi DEN einai kratimeni apo allon\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkReservedSpecific
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkReservedSpecific, %function
checkReservedSpecific:
	@ 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, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L74+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L74+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L74+12
	bl	puts
	b	.L73
.L70:
	ldr	r0, .L74+16
	bl	puts
	b	.L73
.L69:
	ldr	r1, [fp, #-20]
	ldr	r0, .L74+20
	bl	printf
.L73:
	nop
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC33
	.word	.LC18
	.word	.LC15
	.word	.LC31
	.word	.LC32
	.word	.LC21
	.size	checkReservedSpecific, .-checkReservedSpecific
	.section	.rodata
	.align	2
.LC34:
	.ascii	"\012%s\012\000"
	.text
	.align	2
	.global	showPlan
	.syntax unified
	.arm
	.fpu softvfp
	.type	showPlan, %function
showPlan:
	@ 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]
	ldr	r1, [fp, #-24]
	ldr	r0, .L88
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L77
.L83:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L78
.L82:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L79
	mov	r3, #42
	b	.L80
.L79:
	mov	r3, #95
.L80:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L81
	mov	r0, #32
	bl	putchar
.L81:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L78:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L82
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L77:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #5
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L83
	ldr	r3, [fp, #-20]
	sub	r3, r3, #5
	str	r3, [fp, #-12]
	b	.L84
.L87:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L85
	mov	r3, #42
	b	.L86
.L85:
	mov	r3, #95
.L86:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L84:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L87
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC34
	.size	showPlan, .-showPlan
	.section	.rodata
	.align	2
.LC35:
	.ascii	"w\000"
	.align	2
.LC36:
	.ascii	"layout.txt\000"
	.align	2
.LC37:
	.ascii	"%s\012\000"
	.align	2
.LC38:
	.ascii	"H pinakida kai to diagramma theseon apothikeytikan "
	.ascii	"sto layout.txt\000"
	.text
	.align	2
	.global	writePlanFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	writePlanFile, %function
writePlanFile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, .L102
	ldr	r0, .L102+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r1, .L102+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L91
.L97:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L92
.L96:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L93
	mov	r3, #42
	b	.L94
.L93:
	mov	r3, #95
.L94:
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	putc
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L95
	ldr	r1, [fp, #-8]
	mov	r0, #32
	bl	putc
.L95:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L92:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L96
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L91:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #5
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L97
	ldr	r3, [fp, #-28]
	sub	r3, r3, #5
	str	r3, [fp, #-16]
	b	.L98
.L101:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L99
	mov	r3, #42
	b	.L100
.L99:
	mov	r3, #95
.L100:
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	putc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L98:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L101
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, .L102+12
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	writePlanFile, .-writePlanFile
	.section	.rodata
	.align	2
.LC39:
	.ascii	"r\000"
	.align	2
.LC40:
	.ascii	"I:\\Personal\\Education\\EAP\\PLS\\PLS50\\GE1\\CLio"
	.ascii	"n\\Exercise4\\bus.txt\000"
	.align	2
.LC41:
	.ascii	"%s %d\000"
	.align	2
.LC42:
	.ascii	"Adynatos syndyasmos arithmoy theseon (%d)\012\000"
	.align	2
.LC43:
	.ascii	"Prepei na isxyei Theseis=4xTheseis + 5 (Theseis >= "
	.ascii	"0)\000"
	.align	2
.LC44:
	.ascii	"Adynato plithos theseon (%d)\012\000"
	.align	2
.LC45:
	.ascii	"Oi theseis den prepei na einai pano apo 53\000"
	.align	2
.LC46:
	.ascii	" %c\000"
	.align	2
.LC47:
	.ascii	"H epilogh poy dosate den einai egkyrh!\000"
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	ldr	r3, .L127
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L127+4
	ldr	r0, .L127+8
	bl	fopen
	str	r0, [fp, #-232]
	sub	r3, fp, #240
	sub	r2, fp, #16
	ldr	r1, .L127+12
	ldr	r0, [fp, #-232]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-232]
	bl	fclose
	ldr	r3, [fp, #-240]
	sub	r3, r3, #5
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L105
	ldr	r3, [fp, #-240]
	mov	r1, r3
	ldr	r0, .L127+16
	bl	printf
	ldr	r0, .L127+20
	bl	puts
	b	.L106
.L105:
	ldr	r3, [fp, #-240]
	cmp	r3, #53
	ble	.L107
	ldr	r3, [fp, #-240]
	mov	r1, r3
	ldr	r0, .L127+24
	bl	printf
	ldr	r0, .L127+28
	bl	puts
	b	.L106
.L107:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L108
.L109:
	ldr	r3, [fp, #-236]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-224]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L108:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L109
.L122:
	bl	showMenu
	sub	r3, fp, #241
	mov	r1, r3
	ldr	r0, .L127+32
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-241]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L110
.L112:
	.word	.L126
	.word	.L119
	.word	.L118
	.word	.L117
	.word	.L116
	.word	.L115
	.word	.L114
	.word	.L113
	.word	.L111
.L119:
	ldr	r2, [fp, #-240]
	sub	r3, fp, #228
	mov	r1, r2
	mov	r0, r3
	bl	showBlanks
	b	.L121
.L118:
	ldr	r1, [fp, #-240]
	sub	r3, fp, #228
	mov	r2, #0
	mov	r0, r3
	bl	reserveSpecific
	b	.L121
.L117:
	ldr	r2, [fp, #-240]
	sub	r3, fp, #228
	mov	r1, r2
	mov	r0, r3
	bl	reserveFreeWindow
	b	.L121
.L116:
	ldr	r2, [fp, #-240]
	sub	r3, fp, #228
	mov	r1, r2
	mov	r0, r3
	bl	cancelSpecific
	b	.L121
.L115:
	ldr	r2, [fp, #-240]
	sub	r3, fp, #228
	mov	r1, r2
	mov	r0, r3
	bl	checkReservedSpecific
	b	.L121
.L114:
	ldr	r2, [fp, #-240]
	sub	r3, fp, #228
	mov	r1, r2
	mov	r0, r3
	bl	showReserved
	b	.L121
.L113:
	ldr	r1, [fp, #-240]
	sub	r2, fp, #16
	sub	r3, fp, #228
	mov	r0, r3
	bl	showPlan
	b	.L121
.L111:
	ldr	r1, [fp, #-240]
	sub	r2, fp, #16
	sub	r3, fp, #228
	mov	r0, r3
	bl	writePlanFile
	b	.L121
.L110:
	ldr	r0, .L127+36
	bl	puts
	b	.L121
.L126:
	nop
.L121:
	ldrb	r3, [fp, #-241]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L122
	mov	r3, #1
	b	.L124
.L106:
	mov	r3, #0
.L124:
	ldr	r2, .L127
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L125
	bl	__stack_chk_fail
.L125:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L128:
	.align	2
.L127:
	.word	.LC48
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
