	.file	"864734.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Patrol Boat"
.LC1:
	.string	"Submarine"
.LC2:
	.string	"Cruiser"
.LC3:
	.string	"Destroyer"
.LC4:
	.string	"Battleship"
.LC5:
	.string	"Aircraft Carrier"
	.section	.data.rel.local,"aw"
	.align 32
	.type	ships, @object
	.size	ships, 96
ships:
	.quad	.LC0
	.long	2
	.long	0
	.quad	.LC1
	.long	2
	.long	0
	.quad	.LC2
	.long	3
	.long	0
	.quad	.LC3
	.long	3
	.long	0
	.quad	.LC4
	.long	4
	.long	0
	.quad	.LC5
	.long	5
	.long	0
	.globl	nships
	.data
	.align 8
	.type	nships, @object
	.size	nships, 8
nships:
	.quad	6
	.section	.rodata
.LC6:
	.string	"usage: %s [-h] [SIZE]\n"
	.text
	.type	usage, @function
usage:
.LFB0:
	.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	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	usage, .-usage
	.type	sunk, @function
sunk:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -64[rbp], al
	mov	DWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	movsx	eax, BYTE PTR -64[rbp]
	mov	edi, eax
	call	toupper@PLT
	mov	BYTE PTR -41[rbp], al
	mov	QWORD PTR -24[rbp], 0
	jmp	.L3
.L8:
	movsx	ebx, BYTE PTR -41[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	cmp	ebx, eax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	jmp	.L7
.L4:
	add	QWORD PTR -24[rbp], 1
.L3:
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L8
.L7:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -41[rbp], al
	sete	al
	movzx	eax, al
	add	DWORD PTR -40[rbp], eax
	add	DWORD PTR -36[rbp], 1
.L9:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, eax
	cmp	DWORD PTR -36[rbp], eax
	jl	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -40[rbp], eax
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sunk, .-sunk
	.section	.rodata
.LC7:
	.string	"   "
.LC9:
	.string	"%c"
.LC10:
	.string	"\n"
.LC11:
	.string	"%2d "
.LC8:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	.text
	.type	cheat, @function
cheat:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L13
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	movsx	eax, BYTE PTR -13[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L16
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -8[rbp], 1
.L14:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L17
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 1
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	cheat, .-cheat
	.section	.rodata
.LC12:
	.string	"%d - %s\n"
.LC13:
	.string	"\nMove: %s"
	.text
	.type	updatescreen, @function
updatescreen:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -20[rbp], 1
.L19:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L20
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L21
.L26:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printw@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -21[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 512
	test	eax, eax
	je	.L23
	mov	BYTE PTR -21[rbp], 32
	jmp	.L24
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -21[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L24
	movsx	edx, BYTE PTR -21[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	sunk
	test	eax, eax
	jne	.L24
	mov	BYTE PTR -21[rbp], 33
.L24:
	movsx	eax, BYTE PTR -21[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -12[rbp], 1
.L22:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L25
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -16[rbp], 1
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L26
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printw@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rcx, rax
	lea	rax, ships[rip+8]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printw@PLT
	add	QWORD PTR -8[rbp], 1
.L27:
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L28
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	updatescreen, .-updatescreen
	.type	place_ship, @function
place_ship:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	cmp	DWORD PTR -44[rbp], 1
	je	.L30
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L31
.L30:
	mov	eax, 1
.L31:
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	cmp	edx, eax
	jle	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	cmp	DWORD PTR -44[rbp], 1
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	ecx, edx
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	cmp	ecx, eax
	jge	.L34
	mov	eax, 0
	jmp	.L33
.L34:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L36
	mov	eax, 0
	jmp	.L33
.L36:
	add	DWORD PTR -12[rbp], 1
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L37
	mov	DWORD PTR -8[rbp], 0
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L38:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L39
	mov	eax, 1
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	place_ship, .-place_ship
	.type	setup_board, @function
setup_board:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L41
	mov	eax, 0
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -16[rbp], 0
	jmp	.L43
.L45:
	mov	DWORD PTR -20[rbp], 0
.L44:
	call	rand@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	mov	ecx, eax
	mov	eax, edx
	cdq
	idiv	ecx
	mov	DWORD PTR -20[rbp], edx
	call	rand@PLT
	and	eax, 1
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip]
	lea	rdi, [rdx+rax]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, esi
	mov	rsi, rax
	call	place_ship
	cmp	eax, 1
	jne	.L44
	add	QWORD PTR -16[rbp], 1
.L43:
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -16[rbp], rax
	jb	.L45
	mov	rax, QWORD PTR -8[rbp]
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	setup_board, .-setup_board
	.type	fire, @function
fire:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 5208208757389214273
	movabs	rdx, 5786930140093827657
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 6365651522798441041
	mov	QWORD PTR -32[rbp], rax
	mov	WORD PTR -24[rbp], 23129
	mov	BYTE PTR -22[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	lea	rax, -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L57
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, rdx
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	js	.L58
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jg	.L58
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	sub	eax, 1
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	js	.L59
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jg	.L59
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L53
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 46
	jmp	.L46
.L53:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	jmp	.L46
.L57:
	nop
	jmp	.L46
.L58:
	nop
	jmp	.L46
.L59:
	nop
.L46:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fire, .-fire
	.section	.rodata
.LC14:
	.string	"h"
	.align 8
.LC15:
	.string	"size must be between %d and %d\n"
.LC16:
	.string	"\rYou win! Play again [Y/N]? "
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -8260[rbp], edi
	mov	QWORD PTR -8272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8256[rbp], 10
	jmp	.L61
.L63:
	cmp	DWORD PTR -8252[rbp], 104
	jne	.L62
	mov	rax, QWORD PTR -8272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	usage
	jmp	.L61
.L62:
	mov	rax, QWORD PTR -8272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	usage
.L61:
	mov	rcx, QWORD PTR -8272[rbp]
	mov	eax, DWORD PTR -8260[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -8252[rbp], eax
	cmp	DWORD PTR -8252[rbp], -1
	jne	.L63
	mov	eax, DWORD PTR -8260[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR optind[rip]
	cmp	edx, eax
	jne	.L64
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8272[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8256[rbp], eax
	jmp	.L65
.L64:
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -8260[rbp], eax
	jle	.L65
	mov	rax, QWORD PTR -8272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	usage
.L65:
	cmp	DWORD PTR -8256[rbp], 5
	jle	.L66
	cmp	DWORD PTR -8256[rbp], 26
	jle	.L67
.L66:
	mov	edx, 26
	mov	esi, 6
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L68
.L67:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, DWORD PTR -8256[rbp]
	mov	edi, eax
	call	setup_board
	mov	QWORD PTR -8248[rbp], rax
	call	initscr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	noecho@PLT
	call	raw@PLT
	mov	QWORD PTR -8208[rbp], 0
	mov	QWORD PTR -8200[rbp], 0
	lea	rdx, -8192[rbp]
	mov	eax, 0
	mov	ecx, 1022
	mov	rdi, rdx
	rep stosq
	lea	rax, -8208[rbp]
	mov	QWORD PTR -8240[rbp], rax
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -8256[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	updatescreen
	jmp	.L69
.L84:
	cmp	DWORD PTR -8252[rbp], 263
	je	.L70
	cmp	DWORD PTR -8252[rbp], 263
	jg	.L71
	cmp	DWORD PTR -8252[rbp], 257
	je	.L72
	cmp	DWORD PTR -8252[rbp], 257
	jg	.L71
	cmp	DWORD PTR -8252[rbp], 10
	je	.L73
	cmp	DWORD PTR -8252[rbp], 10
	jg	.L71
	cmp	DWORD PTR -8252[rbp], 3
	je	.L72
	cmp	DWORD PTR -8252[rbp], 9
	je	.L74
	jmp	.L71
.L73:
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -8256[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fire
	lea	rax, -8208[rbp]
	mov	QWORD PTR -8240[rbp], rax
	mov	rax, QWORD PTR -8240[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L75
.L74:
	mov	edx, DWORD PTR -8256[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cheat
	jmp	.L75
.L70:
	lea	rax, -8208[rbp]
	cmp	QWORD PTR -8240[rbp], rax
	je	.L86
	sub	QWORD PTR -8240[rbp], 1
	mov	rax, QWORD PTR -8240[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L86
.L72:
	call	endwin@PLT
	mov	edi, 0
	call	exit@PLT
.L71:
	mov	rax, QWORD PTR -8240[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8240[rbp], rdx
	mov	edx, DWORD PTR -8252[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8240[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L75
.L86:
	nop
.L75:
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -8256[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	updatescreen
	mov	QWORD PTR -8232[rbp], 0
	mov	QWORD PTR -8224[rbp], 0
	jmp	.L77
.L78:
	mov	rax, QWORD PTR -8224[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	add	QWORD PTR -8232[rbp], rax
	add	QWORD PTR -8224[rbp], 1
.L77:
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -8224[rbp], rax
	jb	.L78
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -8232[rbp], rax
	jne	.L69
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L79
.L83:
	mov	eax, DWORD PTR -8252[rbp]
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 110
	jne	.L80
	call	endwin@PLT
	mov	edi, 0
	call	exit@PLT
.L80:
	mov	eax, DWORD PTR -8252[rbp]
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 121
	jne	.L79
	mov	QWORD PTR -8216[rbp], 0
	jmp	.L81
.L82:
	mov	rax, QWORD PTR -8216[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, ships[rip+12]
	mov	DWORD PTR [rdx+rax], 0
	add	QWORD PTR -8216[rbp], 1
.L81:
	mov	rax, QWORD PTR nships[rip]
	cmp	QWORD PTR -8216[rbp], rax
	jb	.L82
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -8256[rbp]
	mov	edi, eax
	call	setup_board
	mov	QWORD PTR -8248[rbp], rax
	mov	BYTE PTR -8208[rbp], 0
	lea	rax, -8208[rbp]
	mov	QWORD PTR -8240[rbp], rax
	mov	rdx, QWORD PTR -8240[rbp]
	mov	ecx, DWORD PTR -8256[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	updatescreen
	jmp	.L69
.L79:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -8252[rbp], eax
	cmp	DWORD PTR -8252[rbp], 0
	jne	.L83
.L69:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -8252[rbp], eax
	cmp	DWORD PTR -8252[rbp], 0
	jne	.L84
	mov	eax, 0
.L68:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"864734.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Patrol Boat\000"
	.align	2
.LC1:
	.ascii	"Submarine\000"
	.align	2
.LC2:
	.ascii	"Cruiser\000"
	.align	2
.LC3:
	.ascii	"Destroyer\000"
	.align	2
.LC4:
	.ascii	"Battleship\000"
	.align	2
.LC5:
	.ascii	"Aircraft Carrier\000"
	.data
	.align	2
	.type	ships, %object
	.size	ships, 72
ships:
	.word	.LC0
	.word	2
	.word	0
	.word	.LC1
	.word	2
	.word	0
	.word	.LC2
	.word	3
	.word	0
	.word	.LC3
	.word	3
	.word	0
	.word	.LC4
	.word	4
	.word	0
	.word	.LC5
	.word	5
	.word	0
	.global	nships
	.align	2
	.type	nships, %object
	.size	nships, 4
nships:
	.word	6
	.section	.rodata
	.align	2
.LC6:
	.ascii	"usage: %s [-h] [SIZE]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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, #-8]
	ldr	r0, .L2
	bl	printf
	ldr	r0, [fp, #-12]
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC6
	.size	usage, .-usage
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sunk, %function
sunk:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, r2
	strb	r3, [fp, #-45]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L10:
	ldrb	r4, [fp, #-29]	@ zero_extendqisi2
	ldr	r1, .L13
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r4, r3
	bne	.L6
	ldr	r1, .L13
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	mov	r3, #1
	b	.L8
.L7:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, .L13
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L9
.L6:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L10
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-44]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	ships
	.word	nships
	.size	sunk, .-sunk
	.section	.rodata
	.align	2
.LC7:
	.ascii	"   \000"
	.align	2
.LC9:
	.ascii	"%c\000"
	.align	2
.LC10:
	.ascii	"\012\000"
	.align	2
.LC11:
	.ascii	"%2d \000"
	.align	2
.LC8:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZ\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cheat, %function
cheat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	wmove
	ldr	r0, .L22+4
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L17:
	ldr	r2, .L22+8
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printw
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L17
	ldr	r0, .L22+16
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+20
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printw
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L20
	ldr	r0, .L22+16
	bl	printw
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r0, #1
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stdscr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	cheat, .-cheat
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%d - %s\012\000"
	.align	2
.LC13:
	.ascii	"\012Move: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	updatescreen, %function
updatescreen:
	@ 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, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	wmove
	ldr	r0, .L35+4
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L25
.L26:
	ldr	r2, .L35+8
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L35+12
	bl	printw
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L26
	ldr	r0, .L35+16
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L27
.L32:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L35+20
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L28
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L29
	mov	r3, #32
	strb	r3, [fp, #-21]
	b	.L30
.L29:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L30
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	sunk
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, #33
	strb	r3, [fp, #-21]
.L30:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L35+12
	bl	printw
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L31
	ldr	r0, .L35+16
	bl	printw
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L27:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L32
	ldr	r0, .L35+16
	bl	printw
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r1, .L35+24
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L35+24
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L35+28
	bl	printw
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, .L35+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L34
	ldr	r1, [fp, #-40]
	ldr	r0, .L35+36
	bl	printw
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	stdscr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	ships
	.word	.LC12
	.word	nships
	.word	.LC13
	.size	updatescreen, .-updatescreen
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	place_ship, %function
place_ship:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #4]
	cmp	r3, #1
	beq	.L38
	ldr	r3, [fp, #-40]
	b	.L39
.L38:
	mov	r3, #1
.L39:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	cmp	r2, r3
	ble	.L40
	mov	r3, #0
	b	.L41
.L40:
	ldr	r3, [fp, #4]
	cmp	r3, #1
	bne	.L42
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r4, r3
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r4, r3
	bge	.L42
	mov	r3, #0
	b	.L41
.L42:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L43
.L45:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L44
	mov	r3, #0
	b	.L41
.L44:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L43:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L45
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L46
.L47:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r1, r0
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L46:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L47
	mov	r3, #1
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	place_ship, .-place_ship
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_board, %function
setup_board:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L49
	mov	r3, #0
	b	.L50
.L49:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-20]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L51
.L53:
	mov	r3, #0
	str	r3, [fp, #-16]
.L52:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-32]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, .L54
	add	r4, r2, r3
	bl	rand
	mov	r3, r0
	and	r3, r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	mov	r0, r4
	bl	place_ship
	mov	r3, r0
	cmp	r3, #1
	bne	.L52
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L51:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L53
	ldr	r3, [fp, #-20]
.L50:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	ships
	.word	nships
	.size	setup_board, .-setup_board
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fire, %function
fire:
	@ 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, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L70+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r2, #16
	strb	r3, [ip]
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r2, r0
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L67
	sub	r3, fp, #36
	ldr	r2, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	blt	.L68
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bgt	.L68
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L69
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bgt	.L69
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	mul	r3, r2, r3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L63
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	b	.L56
.L63:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r1, r0
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	b	.L56
.L67:
	nop
	b	.L56
.L68:
	nop
	b	.L56
.L69:
	nop
.L56:
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC14
	.word	.LC8
	.size	fire, .-fire
	.section	.rodata
	.align	2
.LC15:
	.ascii	"h\000"
	.align	2
.LC16:
	.ascii	"size must be between %d and %d\012\000"
	.align	2
.LC17:
	.ascii	"\015You win! Play again [Y/N]? \000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L99
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #10
	str	r3, [r2, #-32]
	b	.L73
.L75:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #104
	bne	.L74
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	usage
	b	.L73
.L74:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	usage
.L73:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L99+4
	ldr	r1, [r1, #-40]
	ldr	r0, [r3, #-36]
	bl	getopt
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #1
	bne	.L75
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r2, r3, #1
	ldr	r3, .L99+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L76
	ldr	r3, .L99+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-32]
	b	.L77
.L76:
	ldr	r3, .L99+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-36]
	cmp	r2, r3
	ble	.L77
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	usage
.L77:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #5
	ble	.L78
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #26
	ble	.L79
.L78:
	mov	r2, #26
	mov	r1, #6
	ldr	r0, .L99+12
	bl	printf
	mov	r3, #1
	b	.L80
.L79:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	setup_board
	str	r0, [r4, #-28]
	bl	initscr
	ldr	r3, .L99+16
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	noecho
	bl	raw
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L99+20
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	updatescreen
	b	.L81
.L96:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L99+24
	cmp	r3, r2
	beq	.L82
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #264
	bge	.L83
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L99+28
	cmp	r3, r2
	beq	.L84
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L99+28
	cmp	r3, r2
	bgt	.L83
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #10
	beq	.L85
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #10
	bgt	.L83
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #3
	beq	.L84
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #9
	beq	.L86
	b	.L83
.L85:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	fire
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r2, #0
	strb	r2, [r3]
	b	.L87
.L86:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r2, #-32]
	ldr	r0, [r3, #-28]
	bl	cheat
	b	.L87
.L82:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	cmp	r2, r3
	beq	.L98
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r3, r3, #1
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r2, #0
	strb	r2, [r3]
	b	.L98
.L84:
	bl	endwin
	mov	r0, #0
	bl	exit
.L83:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-24]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r2, #0
	strb	r2, [r3]
	b	.L87
.L98:
	nop
.L87:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	updatescreen
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	b	.L89
.L90:
	ldr	r1, .L99+32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, r1
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L89:
	ldr	r3, .L99+36
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	cmp	r2, r3
	bcc	.L90
	ldr	r3, .L99+36
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	str	r2, [r1, #-28]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-20]
	cmp	r2, r3
	bne	.L81
	ldr	r0, .L99+40
	bl	printw
	ldr	r3, .L99+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L91
.L95:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	tolower
	mov	r3, r0
	cmp	r3, #110
	bne	.L92
	bl	endwin
	mov	r0, #0
	bl	exit
.L92:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	tolower
	mov	r3, r0
	cmp	r3, #121
	bne	.L91
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	b	.L93
.L94:
	ldr	r1, .L99+32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
.L93:
	ldr	r3, .L99+36
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-12]
	cmp	r2, r3
	bcc	.L94
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	free
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	setup_board
	str	r0, [r4, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r1, [r1, #-32]
	ldr	r0, [r3, #-28]
	bl	updatescreen
	b	.L81
.L91:
	ldr	r3, .L99+16
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	wgetch
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	str	r3, [r2, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L95
.L81:
	ldr	r3, .L99+16
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	wgetch
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L96
	mov	r3, #0
.L80:
	ldr	r2, .L99
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC18
	.word	.LC15
	.word	optind
	.word	.LC16
	.word	stdscr
	.word	8188
	.word	263
	.word	257
	.word	ships
	.word	nships
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
