	.file	"19925.c"
	.intel_syntax noprefix
	.text
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	boards
	.align 32
	.type	boards, @object
	.size	boards, 40
boards:
	.zero	40
	.globl	starting
	.data
	.align 32
	.type	starting, @object
	.size	starting, 72
starting:
	.string	"RNBKQBNR"
	.string	"PPPPPPPP"
	.string	"........"
	.string	"........"
	.string	"........"
	.string	"........"
	.string	"pppppppp"
	.string	"rnbkqbnr"
	.text
	.globl	is_lower_case
	.type	is_lower_case, @function
is_lower_case:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 32
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_lower_case, .-is_lower_case
	.globl	is_upper_case
	.type	is_upper_case, @function
is_upper_case:
.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, 8
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	mov	edi, eax
	call	is_lower_case
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_upper_case, .-is_upper_case
	.globl	to_lower_case
	.type	to_lower_case, @function
to_lower_case:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	or	eax, 32
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	to_lower_case, .-to_lower_case
	.globl	to_upper_case
	.type	to_upper_case, @function
to_upper_case:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, -33
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	to_upper_case, .-to_upper_case
	.globl	is_letter
	.type	is_letter, @function
is_letter:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 64
	jle	.L10
	cmp	BYTE PTR -4[rbp], 90
	jle	.L11
.L10:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L12
	cmp	BYTE PTR -4[rbp], 122
	jg	.L12
.L11:
	mov	eax, 1
	jmp	.L14
.L12:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_letter, .-is_letter
	.globl	make_board
	.type	make_board, @function
make_board:
.LFB11:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR starting[rip]
	mov	rbx, QWORD PTR starting[rip+8]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR starting[rip+16]
	mov	rbx, QWORD PTR starting[rip+24]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR starting[rip+32]
	mov	rbx, QWORD PTR starting[rip+40]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR starting[rip+48]
	mov	rbx, QWORD PTR starting[rip+56]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rdx, QWORD PTR starting[rip+64]
	mov	QWORD PTR 64[rax], rdx
	mov	DWORD PTR -28[rbp], 0
	jmp	.L16
.L17:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -28[rbp], 1
.L16:
	cmp	DWORD PTR -28[rbp], 7
	jle	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	make_board, .-make_board
	.section	.rodata
.LC0:
	.string	"  "
.LC1:
	.string	"%d"
.LC2:
	.string	"-x"
.LC3:
	.string	"%d %s\n"
.LC4:
	.string	"|\ny"
	.text
	.globl	print_board
	.type	print_board, @function
print_board:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L20:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L21
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L22:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L23
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_board, .-print_board
	.globl	move_piece
	.type	move_piece, @function
move_piece:
.LFB13:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -80[rbp], rdi
	mov	DWORD PTR -84[rbp], esi
	mov	DWORD PTR -88[rbp], edx
	mov	DWORD PTR -92[rbp], ecx
	mov	DWORD PTR -96[rbp], r8d
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -58[rbp], al
	movsx	eax, BYTE PTR -58[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	jne	.L25
	mov	eax, 1
	jmp	.L26
.L25:
	movsx	eax, BYTE PTR -58[rbp]
	mov	edi, eax
	call	to_lower_case
	mov	BYTE PTR -57[rbp], al
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jne	.L27
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jne	.L27
	mov	eax, 1
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_lower_case
	mov	ebx, eax
	movsx	eax, BYTE PTR -58[rbp]
	mov	edi, eax
	call	is_lower_case
	cmp	ebx, eax
	jne	.L28
	mov	eax, 1
	jmp	.L26
.L28:
	cmp	BYTE PTR -57[rbp], 112
	jne	.L29
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	je	.L30
	mov	eax, 1
	jmp	.L26
.L30:
	movsx	eax, BYTE PTR -58[rbp]
	mov	edi, eax
	call	is_lower_case
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -88[rbp], 6
	sete	al
	movzx	eax, al
	mov	DWORD PTR -52[rbp], eax
	jmp	.L32
.L31:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -88[rbp], 1
	sete	al
	movzx	eax, al
	mov	DWORD PTR -52[rbp], eax
.L32:
	cmp	DWORD PTR -56[rbp], 1
	je	.L33
	cmp	DWORD PTR -56[rbp], 2
	jne	.L34
	cmp	DWORD PTR -52[rbp], 0
	jne	.L33
.L34:
	mov	eax, 1
	jmp	.L26
.L29:
	cmp	BYTE PTR -57[rbp], 114
	jne	.L35
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	je	.L36
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	je	.L36
	mov	eax, 1
	jmp	.L26
.L36:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jne	.L37
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -96[rbp], eax
	cmovle	eax, DWORD PTR -96[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	jmp	.L38
.L40:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L39
	mov	eax, 1
	jmp	.L26
.L39:
	add	DWORD PTR -48[rbp], 1
.L38:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -96[rbp], eax
	cmovge	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L40
	jmp	.L33
.L37:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -92[rbp], eax
	cmovle	eax, DWORD PTR -92[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
	jmp	.L41
.L43:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L42
	mov	eax, 1
	jmp	.L26
.L42:
	add	DWORD PTR -44[rbp], 1
.L41:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -92[rbp], eax
	cmovge	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L43
	jmp	.L33
.L35:
	cmp	BYTE PTR -57[rbp], 110
	jne	.L44
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, DWORD PTR -84[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 2
	jne	.L45
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -88[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 1
	je	.L33
.L45:
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, DWORD PTR -84[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 1
	jne	.L46
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -88[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 2
	je	.L33
.L46:
	mov	eax, 1
	jmp	.L26
.L44:
	cmp	BYTE PTR -57[rbp], 98
	jne	.L47
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 31
	mov	edx, eax
	xor	edx, DWORD PTR -16[rbp]
	sub	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -12[rbp]
	sub	eax, ecx
	cmp	edx, eax
	je	.L48
	mov	eax, 1
	jmp	.L26
.L48:
	cmp	DWORD PTR -16[rbp], 0
	je	.L49
	cmp	DWORD PTR -16[rbp], 0
	jle	.L50
	mov	eax, 1
	jmp	.L52
.L50:
	mov	eax, -1
	jmp	.L52
.L49:
	mov	eax, 0
.L52:
	mov	DWORD PTR -40[rbp], eax
	jmp	.L53
.L67:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	je	.L54
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jge	.L55
	mov	eax, 1
	jmp	.L57
.L55:
	mov	eax, -1
	jmp	.L57
.L54:
	mov	eax, 0
.L57:
	imul	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	je	.L58
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jge	.L59
	mov	eax, 1
	jmp	.L61
.L59:
	mov	eax, -1
	jmp	.L61
.L58:
	mov	eax, 0
.L61:
	imul	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L62
	mov	eax, 1
	jmp	.L26
.L62:
	cmp	DWORD PTR -16[rbp], 0
	je	.L63
	cmp	DWORD PTR -16[rbp], 0
	jle	.L64
	mov	eax, 1
	jmp	.L66
.L64:
	mov	eax, -1
	jmp	.L66
.L63:
	mov	eax, 0
.L66:
	add	DWORD PTR -40[rbp], eax
.L53:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L67
	jmp	.L33
.L47:
	cmp	BYTE PTR -57[rbp], 107
	jne	.L68
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -92[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 1
	jg	.L69
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, DWORD PTR -96[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 1
	jle	.L33
.L69:
	mov	eax, 1
	jmp	.L26
.L68:
	cmp	BYTE PTR -57[rbp], 113
	jne	.L70
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L71
	cmp	DWORD PTR -20[rbp], 0
	jne	.L72
.L71:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jne	.L73
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -96[rbp], eax
	cmovle	eax, DWORD PTR -96[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L74
.L76:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L75
	mov	eax, 1
	jmp	.L26
.L75:
	add	DWORD PTR -36[rbp], 1
.L74:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -96[rbp], eax
	cmovge	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L76
	jmp	.L81
.L73:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -92[rbp], eax
	cmovle	eax, DWORD PTR -92[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L78
.L80:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L79
	mov	eax, 1
	jmp	.L26
.L79:
	add	DWORD PTR -32[rbp], 1
.L78:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -92[rbp], eax
	cmovge	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L80
	jmp	.L81
.L72:
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 31
	mov	edx, eax
	xor	edx, DWORD PTR -24[rbp]
	sub	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, ecx
	cmp	edx, eax
	jne	.L81
	cmp	DWORD PTR -24[rbp], 0
	je	.L82
	cmp	DWORD PTR -24[rbp], 0
	jle	.L83
	mov	eax, 1
	jmp	.L85
.L83:
	mov	eax, -1
	jmp	.L85
.L82:
	mov	eax, 0
.L85:
	mov	DWORD PTR -28[rbp], eax
	jmp	.L86
.L100:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	je	.L87
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jge	.L88
	mov	eax, 1
	jmp	.L90
.L88:
	mov	eax, -1
	jmp	.L90
.L87:
	mov	eax, 0
.L90:
	imul	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	je	.L91
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jge	.L92
	mov	eax, 1
	jmp	.L94
.L92:
	mov	eax, -1
	jmp	.L94
.L91:
	mov	eax, 0
.L94:
	imul	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L95
	mov	eax, 1
	jmp	.L26
.L95:
	cmp	DWORD PTR -24[rbp], 0
	je	.L96
	cmp	DWORD PTR -24[rbp], 0
	jle	.L97
	mov	eax, 1
	jmp	.L99
.L97:
	mov	eax, -1
	jmp	.L99
.L96:
	mov	eax, 0
.L99:
	add	DWORD PTR -28[rbp], eax
.L86:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L100
.L81:
	mov	eax, 1
	jmp	.L26
.L70:
	mov	eax, 1
	jmp	.L26
.L33:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -58[rbp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 46
	mov	eax, 0
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	move_piece, .-move_piece
	.globl	smite_piece
	.type	smite_piece, @function
smite_piece:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 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]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L102
	mov	edx, DWORD PTR t[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, 0
	jmp	.L103
.L102:
	mov	eax, 1
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	smite_piece, .-smite_piece
	.globl	readint
	.type	readint, @function
readint:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	readint, .-readint
	.section	.rodata
.LC5:
	.string	"What would you like to do?"
.LC6:
	.string	"1) New Board"
.LC7:
	.string	"2) Print Board"
.LC8:
	.string	"3) Move Piece"
.LC9:
	.string	"4) Smite Piece"
.LC10:
	.string	"5) Delete Board"
.LC11:
	.string	"What is the board index?"
	.align 8
.LC12:
	.string	"The board index must be from 0-4"
.LC13:
	.string	"Board %d:\n"
	.align 8
.LC14:
	.string	"Please provide the x and y values of the piece, separated by spaces."
.LC15:
	.string	"%d %d"
	.align 8
.LC16:
	.string	"Please provide the x and y values of the position to move to, separated by spaces."
.LC17:
	.string	"Invalid move."
.LC18:
	.string	"Move made."
.LC19:
	.string	"Smite failed."
.LC20:
	.string	"Piece smotenified."
.LC21:
	.string	"I don't know what that is."
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	call	getegid@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	setresgid@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L108
.L109:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -40[rbp], 1
.L108:
	cmp	DWORD PTR -40[rbp], 4
	jle	.L109
.L130:
	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]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 1
	jne	.L110
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L111
	cmp	DWORD PTR -12[rbp], 4
	jle	.L112
.L111:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L113
.L112:
	mov	edi, 64
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	make_board
	jmp	.L130
.L110:
	cmp	DWORD PTR -32[rbp], 2
	jne	.L114
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	js	.L115
	cmp	DWORD PTR -16[rbp], 4
	jle	.L116
.L115:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L113
.L116:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	print_board
	jmp	.L130
.L114:
	cmp	DWORD PTR -32[rbp], 3
	jne	.L117
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	js	.L118
	cmp	DWORD PTR -20[rbp], 4
	jle	.L119
.L118:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L130
.L119:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdx, -52[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdx, -44[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	r8d, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	esi, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdi, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdi+rax]
	mov	rdi, rax
	call	move_piece
	test	eax, eax
	je	.L120
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L130
.L120:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
	jmp	.L130
.L117:
	cmp	DWORD PTR -32[rbp], 4
	jne	.L122
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	js	.L123
	cmp	DWORD PTR -24[rbp], 4
	jle	.L124
.L123:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L130
.L124:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdx, -44[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rsi+rax]
	mov	esi, ecx
	mov	rdi, rax
	call	smite_piece
	test	eax, eax
	je	.L125
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L130
.L125:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L130
.L122:
	cmp	DWORD PTR -32[rbp], 5
	jne	.L127
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L128
	cmp	DWORD PTR -28[rbp], 4
	jle	.L129
.L128:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L113
.L129:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L130
.L127:
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L113:
	jmp	.L130
	.cfi_endproc
.LFE16:
	.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	"19925.c"
	.text
	.global	t
	.bss
	.align	2
	.type	t, %object
	.size	t, 4
t:
	.space	4
	.comm	boards,20,4
	.global	starting
	.data
	.align	2
	.type	starting, %object
	.size	starting, 72
starting:
	.ascii	"RNBKQBNR\000PPPPPPPP\000........\000........\000..."
	.ascii	".....\000........\000pppppppp\000rnbkqbnr\000"
	.text
	.align	2
	.global	is_lower_case
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_lower_case, %function
is_lower_case:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #32
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_lower_case, .-is_lower_case
	.align	2
	.global	is_upper_case
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_upper_case, %function
is_upper_case:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_lower_case
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_upper_case, .-is_upper_case
	.align	2
	.global	to_lower_case
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_lower_case, %function
to_lower_case:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]
	orr	r3, r3, #32
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	to_lower_case, .-to_lower_case
	.align	2
	.global	to_upper_case
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_upper_case, %function
to_upper_case:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]
	bic	r3, r3, #32
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	to_upper_case, .-to_upper_case
	.align	2
	.global	is_letter
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_letter, %function
is_letter:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L10
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L11
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L12
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L12
.L11:
	mov	r3, #1
	b	.L14
.L12:
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_letter, .-is_letter
	.align	2
	.global	make_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_board, %function
make_board:
	@ 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]
	mov	r0, #72
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L19
	mov	r0, r3
	mov	r1, r2
	mov	r3, #72
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L17
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	starting
	.size	make_board, .-make_board
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"-x\000"
	.align	2
.LC3:
	.ascii	"%d %s\012\000"
	.align	2
.LC4:
	.ascii	"|\012y\000"
	.text
	.align	2
	.global	print_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_board, %function
print_board:
	@ 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, .L26
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L23:
	ldr	r1, [fp, #-12]
	ldr	r0, .L26+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L23
	ldr	r0, .L26+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L25:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L26+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L25
	ldr	r0, .L26+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	print_board, .-print_board
	.align	2
	.global	move_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_piece, %function
move_piece:
	@ args = 4, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-62]
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r3, #1
	b	.L30
.L29:
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	mov	r0, r3
	bl	to_lower_case
	mov	r3, r0
	strb	r3, [fp, #-61]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L31
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bne	.L31
	mov	r3, #1
	b	.L30
.L31:
	ldr	r3, [fp, #4]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #4]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_lower_case
	mov	r4, r0
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_lower_case
	mov	r3, r0
	cmp	r4, r3
	bne	.L32
	mov	r3, #1
	b	.L30
.L32:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L33
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	beq	.L34
	mov	r3, #1
	b	.L30
.L34:
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_lower_case
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r3, #6
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-56]
	b	.L36
.L35:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-56]
.L36:
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	beq	.L37
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	bne	.L38
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L37
.L38:
	mov	r3, #1
	b	.L30
.L33:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L39
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	beq	.L40
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	beq	.L40
	mov	r3, #1
	b	.L30
.L40:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L41
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-52]
	b	.L42
.L44:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	mov	r3, #1
	b	.L30
.L43:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L42:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L44
	b	.L37
.L41:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L45
.L47:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	mov	r3, #1
	b	.L30
.L46:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L45:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L47
	b	.L37
.L39:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L48
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #2
	bne	.L49
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #1
	beq	.L37
.L49:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L50
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #2
	beq	.L37
.L50:
	mov	r3, #1
	b	.L30
.L48:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L51
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	beq	.L52
	mov	r3, #1
	b	.L30
.L52:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L54
	mov	r3, #1
	b	.L56
.L54:
	mvn	r3, #0
	b	.L56
.L53:
	mov	r3, #0
.L56:
	str	r3, [fp, #-44]
	b	.L57
.L71:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	beq	.L58
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L59
	mov	r3, #1
	b	.L61
.L59:
	mvn	r3, #0
	b	.L61
.L58:
	mov	r3, #0
.L61:
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r1, r3
	beq	.L62
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r1, r3
	bge	.L63
	mov	r3, #1
	b	.L65
.L63:
	mvn	r3, #0
	b	.L65
.L62:
	mov	r3, #0
.L65:
	ldr	r1, [fp, #-44]
	mul	r1, r3, r1
	ldr	r3, [fp, #-76]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	mov	r3, #1
	b	.L30
.L66:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L68
	mov	r3, #1
	b	.L70
.L68:
	mvn	r3, #0
	b	.L70
.L67:
	mov	r3, #0
.L70:
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L57:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L71
	b	.L37
.L51:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #107
	bne	.L72
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #1
	bgt	.L73
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #1
	ble	.L37
.L73:
	mov	r3, #1
	b	.L30
.L72:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L74
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L76
.L75:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L77
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L78
.L80:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	mov	r3, #1
	b	.L30
.L79:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L78:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L80
	b	.L85
.L77:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L82
.L84:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L83
	mov	r3, #1
	b	.L30
.L83:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L82:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L84
	b	.L85
.L76:
	ldr	r3, [fp, #-28]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bne	.L85
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L87
	mov	r3, #1
	b	.L89
.L87:
	mvn	r3, #0
	b	.L89
.L86:
	mov	r3, #0
.L89:
	str	r3, [fp, #-32]
	b	.L90
.L104:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	beq	.L91
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L92
	mov	r3, #1
	b	.L94
.L92:
	mvn	r3, #0
	b	.L94
.L91:
	mov	r3, #0
.L94:
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r1, r3
	beq	.L95
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r1, r3
	bge	.L96
	mov	r3, #1
	b	.L98
.L96:
	mvn	r3, #0
	b	.L98
.L95:
	mov	r3, #0
.L98:
	ldr	r1, [fp, #-32]
	mul	r1, r3, r1
	ldr	r3, [fp, #-76]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	mov	r3, #1
	b	.L30
.L99:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L101
	mov	r3, #1
	b	.L103
.L101:
	mvn	r3, #0
	b	.L103
.L100:
	mov	r3, #0
.L103:
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L90:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L104
.L85:
	mov	r3, #1
	b	.L30
.L74:
	mov	r3, #1
	b	.L30
.L37:
	ldr	r3, [fp, #4]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	ldrb	r2, [fp, #-62]
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	mov	r3, #0
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	move_piece, .-move_piece
	.align	2
	.global	smite_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	smite_piece, %function
smite_piece:
	@ 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]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L106
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #0
	b	.L107
.L106:
	mov	r3, #1
.L107:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	t
	.size	smite_piece, .-smite_piece
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readint
	.syntax unified
	.arm
	.fpu softvfp
	.type	readint, %function
readint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L113
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L113+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L113
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L112
	bl	__stack_chk_fail
.L112:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	.LC5
	.word	.LC1
	.size	readint, .-readint
	.section	.rodata
	.align	2
.LC6:
	.ascii	"What would you like to do?\000"
	.align	2
.LC7:
	.ascii	"1) New Board\000"
	.align	2
.LC8:
	.ascii	"2) Print Board\000"
	.align	2
.LC9:
	.ascii	"3) Move Piece\000"
	.align	2
.LC10:
	.ascii	"4) Smite Piece\000"
	.align	2
.LC11:
	.ascii	"5) Delete Board\000"
	.align	2
.LC12:
	.ascii	"What is the board index?\000"
	.align	2
.LC13:
	.ascii	"The board index must be from 0-4\000"
	.align	2
.LC14:
	.ascii	"Board %d:\012\000"
	.align	2
.LC15:
	.ascii	"Please provide the x and y values of the piece, sep"
	.ascii	"arated by spaces.\000"
	.align	2
.LC16:
	.ascii	"%d %d\000"
	.align	2
.LC17:
	.ascii	"Please provide the x and y values of the position t"
	.ascii	"o move to, separated by spaces.\000"
	.align	2
.LC18:
	.ascii	"Invalid move.\000"
	.align	2
.LC19:
	.ascii	"Move made.\000"
	.align	2
.LC20:
	.ascii	"Smite failed.\000"
	.align	2
.LC21:
	.ascii	"Piece smotenified.\000"
	.align	2
.LC22:
	.ascii	"I don't know what that is.\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L140
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L140+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	bl	getegid
	str	r0, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	setresgid
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L116
.L117:
	ldr	r2, .L140+8
	ldr	r3, [fp, #-40]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L116:
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	ble	.L117
.L138:
	ldr	r0, .L140+12
	bl	puts
	ldr	r0, .L140+16
	bl	puts
	ldr	r0, .L140+20
	bl	puts
	ldr	r0, .L140+24
	bl	puts
	ldr	r0, .L140+28
	bl	puts
	ldr	r0, .L140+32
	bl	puts
	bl	readint
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L118
	ldr	r0, .L140+36
	bl	puts
	bl	readint
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L119
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L120
.L119:
	ldr	r0, .L140+40
	bl	puts
	b	.L121
.L120:
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L140+8
	ldr	r3, [fp, #-12]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L140+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	make_board
	b	.L138
.L118:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L122
	ldr	r0, .L140+36
	bl	puts
	bl	readint
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L123
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L124
.L123:
	ldr	r0, .L140+40
	bl	puts
	b	.L121
.L124:
	ldr	r1, [fp, #-16]
	ldr	r0, .L140+44
	bl	printf
	ldr	r2, .L140+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	print_board
	b	.L138
.L122:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L125
	ldr	r0, .L140+36
	bl	puts
	bl	readint
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L126
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	ble	.L127
.L126:
	ldr	r0, .L140+40
	bl	puts
	b	.L138
.L127:
	ldr	r0, .L140+48
	bl	puts
	sub	r2, fp, #52
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L140+52
	bl	__isoc99_scanf
	ldr	r0, .L140+56
	bl	puts
	sub	r2, fp, #44
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L140+52
	bl	__isoc99_scanf
	ldr	r2, .L140+8
	ldr	r3, [fp, #-20]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	ip, [fp, #-48]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, ip
	bl	move_piece
	mov	r3, r0
	cmp	r3, #0
	beq	.L128
	ldr	r0, .L140+60
	bl	puts
	b	.L138
.L128:
	ldr	r0, .L140+64
	bl	puts
	ldr	r3, .L140+68
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L140+68
	str	r3, [r2]
	b	.L138
.L125:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bne	.L130
	ldr	r0, .L140+36
	bl	puts
	bl	readint
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L131
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	ble	.L132
.L131:
	ldr	r0, .L140+40
	bl	puts
	b	.L138
.L132:
	ldr	r0, .L140+48
	bl	puts
	sub	r2, fp, #44
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L140+52
	bl	__isoc99_scanf
	ldr	r2, .L140+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	smite_piece
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
	ldr	r0, .L140+72
	bl	puts
	b	.L138
.L133:
	ldr	r0, .L140+76
	bl	puts
	b	.L138
.L130:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bne	.L135
	ldr	r0, .L140+36
	bl	puts
	bl	readint
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L136
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	ble	.L137
.L136:
	ldr	r0, .L140+40
	bl	puts
	b	.L121
.L137:
	ldr	r2, .L140+8
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L140+8
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	b	.L138
.L135:
	ldr	r0, .L140+80
	bl	puts
.L121:
	b	.L138
.L141:
	.align	2
.L140:
	.word	.LC23
	.word	stdout
	.word	boards
	.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	t
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
