	.file	"56067.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"chcp 1253 >nul "
	.align 8
.LC1:
	.string	"Choose the initial formation of your ships from .txt files(1/2/3/4/5/6): "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Wrong formation number. Please choose the initial formation of your ships again(1/2/3/4/5/6): "
.LC4:
	.string	"r"
.LC5:
	.string	"1.txt"
.LC6:
	.string	"2.txt"
.LC7:
	.string	"3.txt"
.LC8:
	.string	"4.txt"
.LC9:
	.string	"5.txt"
.LC10:
	.string	"6.txt"
.LC11:
	.string	"File Open Error"
.LC12:
	.string	"pause"
.LC13:
	.string	" A B \316\223 \316\224 \316\225 \316\226 \316\227 \316\230 \316\231 \316\232"
.LC14:
	.string	"--------------------- "
	.align 8
.LC15:
	.string	"\nEnter <<N>> in case it is your turn to shoot or <<O>> if it is your opponent's turn: "
.LC16:
	.string	"Is it your turn? (N/O): "
.LC17:
	.string	"%c"
	.align 8
.LC18:
	.string	"\nIncorrect Order!Enter <<N>> in case it is your turn to shoot or <<O>> if it is your opponent's turn: "
.LC19:
	.string	"You Lose"
.LC20:
	.string	"VICTORY IS OURS"
	.text
	.globl	main
	.type	main, @function
main:
.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, 608
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	welcomeScreen
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	QWORD PTR -552[rbp], 0
	mov	DWORD PTR -592[rbp], 0
	mov	DWORD PTR -568[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	mov	DWORD PTR -560[rbp], 1
	mov	DWORD PTR -556[rbp], 1
	mov	DWORD PTR -572[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -596[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -596[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 1
	je	.L3
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 2
	je	.L3
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 3
	je	.L3
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 4
	je	.L3
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 5
	je	.L3
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 6
	jne	.L4
.L3:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 1
	jne	.L5
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 2
	jne	.L7
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 3
	jne	.L8
	lea	rsi, .LC4[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 4
	jne	.L9
	lea	rsi, .LC4[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 5
	jne	.L10
	lea	rsi, .LC4[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -596[rbp]
	cmp	eax, 6
	jne	.L6
	lea	rsi, .LC4[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
.L6:
	cmp	QWORD PTR -552[rbp], 0
	jne	.L11
	lea	rdi, .LC11[rip]
	call	perror@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	eax, -1
	jmp	.L40
.L11:
	cmp	QWORD PTR -552[rbp], 0
	je	.L13
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -588[rbp], 0
	jmp	.L14
.L18:
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -20[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	fgets@PLT
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -584[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -584[rbp]
	cdqe
	movzx	edx, BYTE PTR -20[rbp+rax]
	mov	eax, DWORD PTR -584[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -588[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rbp
	add	rax, rsi
	sub	rax, 544
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -584[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -588[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 544
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L16
	mov	eax, DWORD PTR -584[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -588[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 544
	mov	BYTE PTR [rax], 32
.L16:
	mov	eax, DWORD PTR -584[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -588[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 544
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	edi, 124
	call	putchar@PLT
	add	DWORD PTR -584[rbp], 1
.L15:
	cmp	DWORD PTR -584[rbp], 9
	jle	.L17
	mov	eax, DWORD PTR -588[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	add	DWORD PTR -588[rbp], 1
.L14:
	cmp	DWORD PTR -588[rbp], 9
	jle	.L18
.L13:
	mov	DWORD PTR -580[rbp], 0
	jmp	.L19
.L22:
	mov	DWORD PTR -576[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -576[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -580[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -432[rbp+rax*4], 0
	add	DWORD PTR -576[rbp], 1
.L20:
	cmp	DWORD PTR -576[rbp], 9
	jle	.L21
	add	DWORD PTR -580[rbp], 1
.L19:
	cmp	DWORD PTR -580[rbp], 9
	jle	.L22
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	call	getchar@PLT
	lea	rax, -597[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L23
.L25:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	call	getchar@PLT
	lea	rax, -597[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L23:
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 78
	je	.L24
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 79
	je	.L24
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 111
	je	.L24
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 110
	jne	.L25
.L24:
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 110
	je	.L26
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 78
	jne	.L27
.L26:
	lea	rdx, -432[rbp]
	mov	eax, DWORD PTR -572[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	executeShot
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 1
	jne	.L28
	add	DWORD PTR -592[rbp], 1
.L28:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
	add	DWORD PTR -572[rbp], 1
.L33:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	incomingShot
	mov	DWORD PTR -568[rbp], eax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
	cmp	DWORD PTR -568[rbp], 17
	jne	.L29
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L30
.L29:
	lea	rdx, -432[rbp]
	mov	eax, DWORD PTR -572[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	executeShot
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 1
	jne	.L31
	add	DWORD PTR -592[rbp], 1
.L31:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
	add	DWORD PTR -572[rbp], 1
	cmp	DWORD PTR -592[rbp], 17
	jne	.L33
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L30:
	jmp	.L34
.L27:
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 79
	je	.L35
	movzx	eax, BYTE PTR -597[rbp]
	cmp	al, 111
	jne	.L34
.L35:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	incomingShot
	mov	DWORD PTR -568[rbp], eax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
.L39:
	lea	rdx, -432[rbp]
	mov	eax, DWORD PTR -572[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	executeShot
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 1
	jne	.L36
	add	DWORD PTR -592[rbp], 1
.L36:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
	add	DWORD PTR -572[rbp], 1
	cmp	DWORD PTR -592[rbp], 17
	jne	.L37
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L34
.L37:
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	incomingShot
	mov	DWORD PTR -568[rbp], eax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	printMap
	cmp	DWORD PTR -568[rbp], 17
	jne	.L39
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L34:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	eax, 0
.L40:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC21:
	.string	"XXXXX   XXXX  XXXXXX XXXXXX XX     XXXXXX  XXXXX XX  XX XX XXXX"
	.align 8
.LC22:
	.string	"XX  XX XX  XX   XX     XX   XX     XX     XX     XX  XX XX XX  XX"
	.align 8
.LC23:
	.string	"XXXXX  XX  XX   XX     XX   XX     XXXX    XXXX  XXXXXX XX XXXX"
	.align 8
.LC24:
	.string	"XX  XX XXXXXX   XX     XX   XX     XX         XX XX  XX XX XX"
	.align 8
.LC25:
	.string	"XXXXX  XX  XX   XX     XX   XXXXXX XXXXXX XXXXX  XX  XX XX XX"
.LC26:
	.string	"\n"
.LC27:
	.string	"RULES OF THE GAME:"
	.align 8
.LC28:
	.string	"1. This is a two player game.However each players uses his own computer and his own instance of this programme"
	.align 8
.LC29:
	.string	"2. Player will be prompted to select the initial formation of his ships"
.LC30:
	.string	"    for the game board "
	.align 8
.LC31:
	.string	"3. There are 6 types of formations to be placed "
	.align 8
.LC32:
	.string	"4. The ship grid is printed and user should select which goes first: himself or the opponent "
	.align 8
.LC33:
	.string	"5. The computer randomly selects where the next player's shot will hit(coordinates in GREEK)"
	.align 8
.LC34:
	.string	"6. When the enemy hits the player, user has to enter incoming shot coordinates(using GREEK letters)"
	.align 8
.LC35:
	.string	"7. The game begins as each player tries to guess the location of the ships"
	.align 8
.LC36:
	.string	"   of the opposing player's game board; [*] hit and [X] miss"
	.align 8
.LC37:
	.string	"8. First player to guess the location of all ships wins\n"
	.text
	.globl	welcomeScreen
	.type	welcomeScreen, @function
welcomeScreen:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	lea	rdi, .LC35[rip]
	call	puts@PLT
	lea	rdi, .LC36[rip]
	call	puts@PLT
	lea	rdi, .LC37[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	welcomeScreen, .-welcomeScreen
	.globl	printMap
	.type	printMap, @function
printMap:
.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
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L44
.L47:
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	edi, 124
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L45:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L46
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L44:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L47
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printMap, .-printMap
	.section	.rodata
.LC38:
	.string	"State: Shot fire"
.LC39:
	.string	"Coordinates to shoot: %c%d\n"
	.align 8
.LC40:
	.string	"Result of the shot you fired:(Enter <<E>> for success or <<A>> for missed shot)"
.LC41:
	.string	"Shot %c %d: \n"
.LC42:
	.string	"%s"
	.align 8
.LC43:
	.string	"Wrong Input!\nResult of the shot you fired:(Enter <<E>> for success or <<A>> for missed shot)"
	.text
	.globl	executeShot
	.type	executeShot, @function
executeShot:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -8[rbp], edx
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
.L52:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L49
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -8[rbp], edx
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
.L49:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	jne	.L52
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 1
	nop
	sub	DWORD PTR -4[rbp], 63
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, pin.5[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, pin2.4[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 101
	je	.L53
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 69
	jne	.L54
.L53:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin.5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -54
	je	.L54
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin.5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin.5[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin2.4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pin2.4[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L54:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin2.4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, pin.5[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pin2.4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, pin.5[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, apotelesma.3[rip]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L55
.L57:
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, apotelesma.3[rip]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L55:
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 65
	je	.L56
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 69
	je	.L56
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 101
	je	.L56
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 97
	jne	.L57
.L56:
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 69
	je	.L58
	movzx	eax, BYTE PTR apotelesma.3[rip]
	cmp	al, 101
	jne	.L59
.L58:
	mov	eax, 1
	jmp	.L60
.L59:
	mov	eax, 2
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	executeShot, .-executeShot
	.section	.rodata
	.align 8
.LC44:
	.string	"State: Taking fire from opponent"
	.align 8
.LC45:
	.string	"Coordinates of incoming fire: "
.LC46:
	.string	"Confirm incoming shot: "
	.align 8
.LC47:
	.string	"Wrong confirmation of coordinates, please enter incoming shot coordinates again: "
.LC48:
	.string	"Confirm Incoming shot: "
	.align 8
.LC49:
	.string	"You entered wrong coordinates(out of bounds)"
.LC50:
	.string	"Confirm incoming Shot: "
	.align 8
.LC51:
	.string	"Result of incoming shot: Missed!"
	.align 8
.LC52:
	.string	"Result of incoming shot: Success!!!"
	.text
	.globl	incomingShot
	.type	incomingShot, @function
incomingShot:
.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 -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC44[rip]
	call	puts@PLT
	lea	rdi, .LC45[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -30[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC46[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L63
.L64:
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -30[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L63:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L64
	movzx	edx, BYTE PTR -30[rbp]
	movzx	eax, BYTE PTR -29[rbp]
	cmp	dl, al
	jne	.L64
	movzx	eax, BYTE PTR -30[rbp]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	jmp	.L65
.L68:
	lea	rdi, .LC49[rip]
	call	puts@PLT
	lea	rdi, .LC44[rip]
	call	puts@PLT
	lea	rdi, .LC45[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -30[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L66
.L67:
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -30[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC50[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L66:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L67
	movzx	edx, BYTE PTR -30[rbp]
	movzx	eax, BYTE PTR -29[rbp]
	cmp	dl, al
	jne	.L67
	movzx	eax, BYTE PTR -30[rbp]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
.L65:
	cmp	DWORD PTR -20[rbp], -63
	jl	.L68
	cmp	DWORD PTR -20[rbp], -53
	jl	.L69
	cmp	DWORD PTR -20[rbp], -31
	jl	.L68
.L69:
	cmp	DWORD PTR -20[rbp], -21
	jge	.L68
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 10
	jg	.L68
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jle	.L68
	cmp	DWORD PTR -20[rbp], -63
	jl	.L70
	cmp	DWORD PTR -20[rbp], -53
	jge	.L70
	add	DWORD PTR -20[rbp], 63
	jmp	.L71
.L70:
	cmp	DWORD PTR -20[rbp], -31
	jl	.L71
	cmp	DWORD PTR -20[rbp], -21
	jge	.L71
	add	DWORD PTR -20[rbp], 31
.L71:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L72
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 88
	lea	rdi, .LC51[rip]
	call	puts@PLT
.L72:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L73
	lea	rdi, .LC52[rip]
	call	puts@PLT
	mov	eax, DWORD PTR loseCounter.0[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR loseCounter.0[rip], edx
	jmp	.L62
.L73:
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	incomingShot, .-incomingShot
	.local	pin.5
	.comm	pin.5,400,32
	.local	pin2.4
	.comm	pin2.4,400,32
	.data
	.type	apotelesma.3, @object
	.size	apotelesma.3, 1
apotelesma.3:
	.byte	-111
	.local	i.2
	.comm	i.2,4,4
	.local	shotResult.1
	.comm	shotResult.1,4,4
	.align 4
	.type	loseCounter.0, @object
	.size	loseCounter.0, 4
loseCounter.0:
	.long	1
	.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	"56067.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"chcp 1253 >nul \000"
	.align	2
.LC1:
	.ascii	"Choose the initial formation of your ships from .tx"
	.ascii	"t files(1/2/3/4/5/6): \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Wrong formation number. Please choose the initial f"
	.ascii	"ormation of your ships again(1/2/3/4/5/6): \000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"1.txt\000"
	.align	2
.LC6:
	.ascii	"2.txt\000"
	.align	2
.LC7:
	.ascii	"3.txt\000"
	.align	2
.LC8:
	.ascii	"4.txt\000"
	.align	2
.LC9:
	.ascii	"5.txt\000"
	.align	2
.LC10:
	.ascii	"6.txt\000"
	.align	2
.LC11:
	.ascii	"File Open Error\000"
	.align	2
.LC12:
	.ascii	"pause\000"
	.align	2
.LC13:
	.ascii	" A B \316\223 \316\224 \316\225 \316\226 \316\227 \316"
	.ascii	"\230 \316\231 \316\232\000"
	.align	2
.LC14:
	.ascii	"--------------------- \000"
	.align	2
.LC15:
	.ascii	"\012Enter <<N>> in case it is your turn to shoot or"
	.ascii	" <<O>> if it is your opponent's turn: \000"
	.align	2
.LC16:
	.ascii	"Is it your turn? (N/O): \000"
	.align	2
.LC17:
	.ascii	"%c\000"
	.align	2
.LC18:
	.ascii	"\012Incorrect Order!Enter <<N>> in case it is your "
	.ascii	"turn to shoot or <<O>> if it is your opponent's tur"
	.ascii	"n: \000"
	.align	2
.LC19:
	.ascii	"You Lose\000"
	.align	2
.LC20:
	.ascii	"VICTORY IS OURS\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #568
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	welcomeScreen
	ldr	r0, .L42+4
	bl	system
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r3, #0
	str	r3, [fp, #-560]
	mov	r3, #0
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #1
	str	r3, [fp, #-528]
	mov	r3, #1
	str	r3, [fp, #-524]
	mov	r3, #0
	str	r3, [fp, #-540]
	ldr	r0, .L42+8
	bl	puts
	sub	r3, fp, #568
	mov	r1, r3
	ldr	r0, .L42+12
	bl	__isoc99_scanf
	b	.L2
.L4:
	ldr	r0, .L42+16
	bl	puts
	sub	r3, fp, #568
	mov	r1, r3
	ldr	r0, .L42+12
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-568]
	cmp	r3, #1
	beq	.L3
	ldr	r3, [fp, #-568]
	cmp	r3, #2
	beq	.L3
	ldr	r3, [fp, #-568]
	cmp	r3, #3
	beq	.L3
	ldr	r3, [fp, #-568]
	cmp	r3, #4
	beq	.L3
	ldr	r3, [fp, #-568]
	cmp	r3, #5
	beq	.L3
	ldr	r3, [fp, #-568]
	cmp	r3, #6
	bne	.L4
.L3:
	ldr	r3, [fp, #-568]
	cmp	r3, #1
	bne	.L5
	ldr	r1, .L42+20
	ldr	r0, .L42+24
	bl	fopen
	str	r0, [fp, #-564]
	b	.L6
.L5:
	ldr	r3, [fp, #-568]
	cmp	r3, #2
	bne	.L7
	ldr	r1, .L42+20
	ldr	r0, .L42+28
	bl	fopen
	str	r0, [fp, #-564]
	b	.L6
.L7:
	ldr	r3, [fp, #-568]
	cmp	r3, #3
	bne	.L8
	ldr	r1, .L42+20
	ldr	r0, .L42+32
	bl	fopen
	str	r0, [fp, #-564]
	b	.L6
.L8:
	ldr	r3, [fp, #-568]
	cmp	r3, #4
	bne	.L9
	ldr	r1, .L42+20
	ldr	r0, .L42+36
	bl	fopen
	str	r0, [fp, #-564]
	b	.L6
.L9:
	ldr	r3, [fp, #-568]
	cmp	r3, #5
	bne	.L10
	ldr	r1, .L42+20
	ldr	r0, .L42+40
	bl	fopen
	str	r0, [fp, #-564]
	b	.L6
.L10:
	ldr	r3, [fp, #-568]
	cmp	r3, #6
	bne	.L6
	ldr	r1, .L42+20
	ldr	r0, .L42+44
	bl	fopen
	str	r0, [fp, #-564]
.L6:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L42+48
	bl	perror
	ldr	r0, .L42+52
	bl	system
	mvn	r3, #0
	b	.L40
.L11:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L42+56
	bl	puts
	ldr	r0, .L42+60
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-556]
	b	.L14
.L18:
	sub	r3, fp, #20
	ldr	r2, [fp, #-564]
	mov	r1, #12
	mov	r0, r3
	bl	fgets
	mov	r0, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-552]
	b	.L15
.L17:
	sub	r2, fp, #20
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-556]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	sub	r3, r3, #516
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-556]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	sub	r3, r3, #516
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L16
	ldr	r2, [fp, #-556]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	sub	r3, r3, #516
	mov	r2, #32
	strb	r2, [r3]
.L16:
	ldr	r2, [fp, #-556]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	sub	r3, r3, #516
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	mov	r0, #124
	bl	putchar
	ldr	r3, [fp, #-552]
	add	r3, r3, #1
	str	r3, [fp, #-552]
.L15:
	ldr	r3, [fp, #-552]
	cmp	r3, #9
	ble	.L17
	ldr	r3, [fp, #-556]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L42+12
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L42+60
	bl	puts
	ldr	r3, [fp, #-556]
	add	r3, r3, #1
	str	r3, [fp, #-556]
.L14:
	ldr	r3, [fp, #-556]
	cmp	r3, #9
	ble	.L18
.L13:
	mov	r3, #0
	str	r3, [fp, #-548]
	b	.L19
.L22:
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L20
.L21:
	ldr	r2, [fp, #-548]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-544]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-416]
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L20:
	ldr	r3, [fp, #-544]
	cmp	r3, #9
	ble	.L21
	ldr	r3, [fp, #-548]
	add	r3, r3, #1
	str	r3, [fp, #-548]
.L19:
	ldr	r3, [fp, #-548]
	cmp	r3, #9
	ble	.L22
	ldr	r0, .L42+64
	bl	puts
	ldr	r0, .L42+68
	bl	puts
	bl	getchar
	sub	r3, fp, #568
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L42+72
	bl	__isoc99_scanf
	b	.L23
.L25:
	ldr	r0, .L42+76
	bl	puts
	ldr	r0, .L42+68
	bl	puts
	bl	getchar
	sub	r3, fp, #568
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L42+72
	bl	__isoc99_scanf
.L23:
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #78
	beq	.L24
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L24
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #111
	beq	.L24
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L25
.L24:
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L26
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L27
.L26:
	sub	r3, fp, #420
	mov	r1, r3
	ldr	r0, [fp, #-540]
	bl	executeShot
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #1
	bne	.L28
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L28:
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L33:
	sub	r3, fp, #520
	mov	r0, r3
	bl	incomingShot
	str	r0, [fp, #-536]
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
	ldr	r3, [fp, #-536]
	cmp	r3, #17
	bne	.L29
	ldr	r0, .L42+80
	bl	puts
	b	.L30
.L29:
	sub	r3, fp, #420
	mov	r1, r3
	ldr	r0, [fp, #-540]
	bl	executeShot
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #1
	bne	.L31
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L31:
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-560]
	cmp	r3, #17
	bne	.L33
	ldr	r0, .L42+84
	bl	puts
.L30:
	b	.L34
.L27:
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L35
	ldrb	r3, [fp, #-569]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L34
.L35:
	sub	r3, fp, #520
	mov	r0, r3
	bl	incomingShot
	str	r0, [fp, #-536]
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
.L39:
	sub	r3, fp, #420
	mov	r1, r3
	ldr	r0, [fp, #-540]
	bl	executeShot
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #1
	bne	.L36
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L36:
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-560]
	cmp	r3, #17
	bne	.L37
	ldr	r0, .L42+84
	bl	puts
	b	.L34
.L37:
	sub	r3, fp, #520
	mov	r0, r3
	bl	incomingShot
	str	r0, [fp, #-536]
	sub	r3, fp, #520
	mov	r0, r3
	bl	printMap
	ldr	r3, [fp, #-536]
	cmp	r3, #17
	bne	.L39
	ldr	r0, .L42+80
	bl	puts
.L34:
	ldr	r0, [fp, #-564]
	bl	fclose
	ldr	r0, .L42+52
	bl	system
	mov	r3, #0
.L40:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC21
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.section	.rodata
	.align	2
.LC22:
	.ascii	"XXXXX   XXXX  XXXXXX XXXXXX XX     XXXXXX  XXXXX XX"
	.ascii	"  XX XX XXXX\000"
	.align	2
.LC23:
	.ascii	"XX  XX XX  XX   XX     XX   XX     XX     XX     XX"
	.ascii	"  XX XX XX  XX\000"
	.align	2
.LC24:
	.ascii	"XXXXX  XX  XX   XX     XX   XX     XXXX    XXXX  XX"
	.ascii	"XXXX XX XXXX\000"
	.align	2
.LC25:
	.ascii	"XX  XX XXXXXX   XX     XX   XX     XX         XX XX"
	.ascii	"  XX XX XX\000"
	.align	2
.LC26:
	.ascii	"XXXXX  XX  XX   XX     XX   XXXXXX XXXXXX XXXXX  XX"
	.ascii	"  XX XX XX\000"
	.align	2
.LC27:
	.ascii	"\012\000"
	.align	2
.LC28:
	.ascii	"RULES OF THE GAME:\000"
	.align	2
.LC29:
	.ascii	"1. This is a two player game.However each players u"
	.ascii	"ses his own computer and his own instance of this p"
	.ascii	"rogramme\000"
	.align	2
.LC30:
	.ascii	"2. Player will be prompted to select the initial fo"
	.ascii	"rmation of his ships\000"
	.align	2
.LC31:
	.ascii	"    for the game board \000"
	.align	2
.LC32:
	.ascii	"3. There are 6 types of formations to be placed \000"
	.align	2
.LC33:
	.ascii	"4. The ship grid is printed and user should select "
	.ascii	"which goes first: himself or the opponent \000"
	.align	2
.LC34:
	.ascii	"5. The computer randomly selects where the next pla"
	.ascii	"yer's shot will hit(coordinates in GREEK)\000"
	.align	2
.LC35:
	.ascii	"6. When the enemy hits the player, user has to ente"
	.ascii	"r incoming shot coordinates(using GREEK letters)\000"
	.align	2
.LC36:
	.ascii	"7. The game begins as each player tries to guess th"
	.ascii	"e location of the ships\000"
	.align	2
.LC37:
	.ascii	"   of the opposing player's game board; [*] hit and"
	.ascii	" [X] miss\000"
	.align	2
.LC38:
	.ascii	"8. First player to guess the location of all ships "
	.ascii	"wins\012\000"
	.text
	.align	2
	.global	welcomeScreen
	.syntax unified
	.arm
	.fpu softvfp
	.type	welcomeScreen, %function
welcomeScreen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L45
	bl	puts
	ldr	r0, .L45+4
	bl	puts
	ldr	r0, .L45+8
	bl	puts
	ldr	r0, .L45+12
	bl	puts
	ldr	r0, .L45+16
	bl	puts
	ldr	r0, .L45+20
	bl	puts
	ldr	r0, .L45+24
	bl	puts
	ldr	r0, .L45+28
	bl	puts
	ldr	r0, .L45+32
	bl	puts
	ldr	r0, .L45+36
	bl	puts
	ldr	r0, .L45+40
	bl	puts
	ldr	r0, .L45+44
	bl	puts
	ldr	r0, .L45+48
	bl	puts
	ldr	r0, .L45+52
	bl	puts
	ldr	r0, .L45+56
	bl	puts
	ldr	r0, .L45+60
	bl	puts
	ldr	r0, .L45+64
	bl	puts
	nop
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	welcomeScreen, .-welcomeScreen
	.align	2
	.global	printMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMap, %function
printMap:
	@ 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	r0, .L52
	bl	puts
	ldr	r0, .L52+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L48
.L51:
	mov	r0, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L50:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	mov	r0, #124
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L50
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L52+8
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L52+4
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L48:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L51
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC13
	.word	.LC14
	.word	.LC2
	.size	printMap, .-printMap
	.section	.rodata
	.align	2
.LC39:
	.ascii	"State: Shot fire\000"
	.align	2
.LC40:
	.ascii	"Coordinates to shoot: %c%d\012\000"
	.align	2
.LC41:
	.ascii	"Result of the shot you fired:(Enter <<E>> for succe"
	.ascii	"ss or <<A>> for missed shot)\000"
	.align	2
.LC42:
	.ascii	"Shot %c %d: \012\000"
	.align	2
.LC43:
	.ascii	"%s\000"
	.align	2
.LC44:
	.ascii	"Wrong Input!\012Result of the shot you fired:(Enter"
	.ascii	" <<E>> for success or <<A>> for missed shot)\000"
	.text
	.align	2
	.global	executeShot
	.syntax unified
	.arm
	.fpu softvfp
	.type	executeShot, %function
executeShot:
	@ 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	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L68
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	bl	rand
	mov	r2, r0
	ldr	r3, .L68
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L58:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L55
	bl	rand
	mov	r2, r0
	ldr	r3, .L68
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	bl	rand
	mov	r2, r0
	ldr	r3, .L68
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L55:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L58
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	nop
	ldr	r3, [fp, #-8]
	sub	r3, r3, #63
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, .L68+4
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L68+8
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L59
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L60
.L59:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L68+4
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #54
	beq	.L60
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L68+4
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L68+4
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L68+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L68+8
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L60:
	ldr	r0, .L68+16
	bl	puts
	ldr	r2, .L68+4
	ldr	r3, [fp, #-16]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L68+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L68+20
	bl	printf
	ldr	r0, .L68+24
	bl	puts
	ldr	r2, .L68+4
	ldr	r3, [fp, #-16]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L68+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L68+28
	bl	printf
	ldr	r1, .L68+12
	ldr	r0, .L68+32
	bl	__isoc99_scanf
	b	.L61
.L63:
	ldr	r0, .L68+36
	bl	puts
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L68+28
	bl	printf
	ldr	r1, .L68+12
	ldr	r0, .L68+32
	bl	__isoc99_scanf
.L61:
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L62
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #69
	beq	.L62
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L62
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L63
.L62:
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #69
	beq	.L64
	ldr	r3, .L68+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	bne	.L65
.L64:
	mov	r3, #1
	b	.L66
.L65:
	mov	r3, #2
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	1717986919
	.word	pin.5303
	.word	pin2.5304
	.word	apotelesma.5307
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.size	executeShot, .-executeShot
	.section	.rodata
	.align	2
.LC45:
	.ascii	"State: Taking fire from opponent\000"
	.align	2
.LC46:
	.ascii	"Coordinates of incoming fire: \000"
	.align	2
.LC47:
	.ascii	"Confirm incoming shot: \000"
	.align	2
.LC48:
	.ascii	"Wrong confirmation of coordinates, please enter inc"
	.ascii	"oming shot coordinates again: \000"
	.align	2
.LC49:
	.ascii	"Confirm Incoming shot: \000"
	.align	2
.LC50:
	.ascii	"You entered wrong coordinates(out of bounds)\000"
	.align	2
.LC51:
	.ascii	"Confirm incoming Shot: \000"
	.align	2
.LC52:
	.ascii	"Result of incoming shot: Missed!\000"
	.align	2
.LC53:
	.ascii	"Result of incoming shot: Success!!!\000"
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	incomingShot
	.syntax unified
	.arm
	.fpu softvfp
	.type	incomingShot, %function
incomingShot:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L84+4
	bl	puts
	ldr	r0, .L84+8
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #30
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	ldr	r0, .L84+24
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #29
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	b	.L71
.L72:
	ldr	r0, .L84+28
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #30
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	ldr	r0, .L84+32
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #29
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
.L71:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L72
	ldrb	r2, [fp, #-30]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L72
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	str	r3, [fp, #-20]
	b	.L73
.L76:
	ldr	r0, .L84+36
	bl	puts
	ldr	r0, .L84+4
	bl	puts
	ldr	r0, .L84+8
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #30
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	ldr	r0, .L84+32
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #29
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	b	.L74
.L75:
	ldr	r0, .L84+28
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #30
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
	ldr	r0, .L84+40
	bl	puts
	ldr	r3, .L84+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #29
	mov	r1, r3
	ldr	r0, .L84+16
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L84+20
	bl	__isoc99_scanf
.L74:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L75
	ldrb	r2, [fp, #-30]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L75
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	str	r3, [fp, #-20]
.L73:
	ldr	r3, [fp, #-20]
	cmn	r3, #63
	blt	.L76
	ldr	r3, [fp, #-20]
	cmn	r3, #53
	blt	.L77
	ldr	r3, [fp, #-20]
	cmn	r3, #31
	blt	.L76
.L77:
	ldr	r3, [fp, #-20]
	cmn	r3, #21
	bge	.L76
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	bgt	.L76
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L76
	ldr	r3, [fp, #-20]
	cmn	r3, #63
	blt	.L78
	ldr	r3, [fp, #-20]
	cmn	r3, #53
	bge	.L78
	ldr	r3, [fp, #-20]
	add	r3, r3, #63
	str	r3, [fp, #-20]
	b	.L79
.L78:
	ldr	r3, [fp, #-20]
	cmn	r3, #31
	blt	.L79
	ldr	r3, [fp, #-20]
	cmn	r3, #21
	bge	.L79
	ldr	r3, [fp, #-20]
	add	r3, r3, #31
	str	r3, [fp, #-20]
.L79:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L80
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #88
	strb	r2, [r3]
	ldr	r0, .L84+44
	bl	puts
.L80:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L81
	ldr	r0, .L84+48
	bl	puts
	ldr	r3, .L84+52
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L84+52
	str	r2, [r1]
	b	.L70
.L81:
.L70:
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC54
	.word	.LC45
	.word	.LC46
	.word	stdin
	.word	.LC17
	.word	.LC2
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	loseCounter.5323
	.size	incomingShot, .-incomingShot
	.local	pin.5303
	.comm	pin.5303,400,4
	.local	pin2.5304
	.comm	pin2.5304,400,4
	.data
	.type	apotelesma.5307, %object
	.size	apotelesma.5307, 1
apotelesma.5307:
	.byte	-111
	.local	i.5302
	.comm	i.5302,4,4
	.local	shotResult.5301
	.comm	shotResult.5301,4,4
	.align	2
	.type	loseCounter.5323, %object
	.size	loseCounter.5323, 4
loseCounter.5323:
	.word	1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
