	.file	"220456848.c"
	.intel_syntax noprefix
	.text
	.globl	board
	.bss
	.align 32
	.type	board, @object
	.size	board, 64
board:
	.zero	64
	.globl	score_arr
	.align 32
	.type	score_arr, @object
	.size	score_arr, 180
score_arr:
	.zero	180
	.globl	point
	.align 32
	.type	point, @object
	.size	point, 60
point:
	.zero	60
	.globl	turn
	.align 4
	.type	turn, @object
	.size	turn, 4
turn:
	.zero	4
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"whitedatawin.txt"
.LC2:
	.string	"whitedatalose.txt"
.LC3:
	.string	"text file error"
.LC5:
	.string	"\345\256\237\350\241\214\346\231\202\351\226\223: %.4lf[s]\n"
	.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, 48
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -24[rbp], xmm0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L2
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L4
.L11:
	call	setup
	mov	edi, 0
	call	time@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	edi, eax
	call	srand@PLT
	jmp	.L5
.L9:
	mov	DWORD PTR turn[rip], 2
	mov	BYTE PTR -33[rbp], 1
	mov	BYTE PTR -34[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	call	setup
	jmp	.L6
.L8:
	cmp	BYTE PTR -33[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	think
	add	DWORD PTR -32[rbp], 1
.L7:
	movzx	eax, BYTE PTR -33[rbp]
	mov	BYTE PTR -34[rbp], al
	mov	edx, DWORD PTR turn[rip]
	mov	eax, 3
	sub	eax, edx
	mov	DWORD PTR turn[rip], eax
.L6:
	call	check_all
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 0
	jne	.L8
	cmp	BYTE PTR -34[rbp], 0
	jne	.L8
.L5:
	call	win
	xor	eax, 1
	test	al, al
	jne	.L9
	cmp	DWORD PTR -32[rbp], 60
	jne	.L10
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print
.L10:
	add	DWORD PTR -28[rbp], 1
.L4:
	cmp	DWORD PTR -28[rbp], 999
	jle	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	subsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	think
	.type	think, @function
think:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], -64
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -112[rbp], eax
	mov	BYTE PTR -123[rbp], 0
	mov	BYTE PTR -122[rbp], 0
	mov	BYTE PTR -121[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L13
.L19:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L14
.L18:
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, edx
	mov	edi, eax
	call	check
	test	al, al
	je	.L15
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, board[rip]
	call	copy
	lea	rdx, -80[rbp]
	mov	ecx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	cal_score
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jle	.L16
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -120[rbp], eax
	movzx	eax, BYTE PTR -14[rbp]
	mov	BYTE PTR -13[rbp], al
	movzx	eax, BYTE PTR -11[rbp]
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -108[rbp]
	mov	BYTE PTR -14[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	mov	BYTE PTR -11[rbp], al
	mov	BYTE PTR -123[rbp], 1
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jle	.L17
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	BYTE PTR -13[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	mov	BYTE PTR -10[rbp], al
	mov	BYTE PTR -122[rbp], 1
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L15
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	mov	BYTE PTR -9[rbp], al
	mov	BYTE PTR -121[rbp], 1
.L15:
	add	DWORD PTR -104[rbp], 1
.L14:
	cmp	DWORD PTR -104[rbp], 7
	jle	.L18
	add	DWORD PTR -108[rbp], 1
.L13:
	cmp	DWORD PTR -108[rbp], 7
	jle	.L19
	cmp	BYTE PTR -123[rbp], 0
	je	.L20
	movzx	eax, BYTE PTR -122[rbp]
	xor	eax, 1
	test	al, al
	je	.L20
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, point[rip]
	mov	BYTE PTR [rax+rdx], -1
	movzx	eax, BYTE PTR -11[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -14[rbp]
	movsx	eax, al
	lea	rdx, board[rip]
	mov	esi, ecx
	mov	edi, eax
	call	put
	jmp	.L21
.L20:
	cmp	BYTE PTR -123[rbp], 0
	je	.L22
	cmp	BYTE PTR -122[rbp], 0
	je	.L22
	movzx	eax, BYTE PTR -121[rbp]
	xor	eax, 1
	test	al, al
	je	.L22
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, point[rip]
	mov	BYTE PTR [rax+rdx], -1
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	movsx	eax, al
	lea	rdx, board[rip]
	mov	esi, ecx
	mov	edi, eax
	call	put
	jmp	.L21
.L22:
	cmp	BYTE PTR -121[rbp], 0
	je	.L21
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -88[rbp], edx
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	movsx	eax, al
	lea	rdx, board[rip]
	mov	esi, ecx
	mov	edi, eax
	call	put
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, point[rip]
	mov	BYTE PTR [rax+rdx], cl
.L21:
	mov	eax, DWORD PTR turn[rip]
	cmp	eax, 1
	jne	.L31
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L24
.L29:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR turn[rip]
	cmp	edx, eax
	jne	.L26
	add	DWORD PTR -100[rbp], 1
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 2
	jne	.L27
	add	DWORD PTR -96[rbp], 1
.L27:
	add	DWORD PTR -104[rbp], 1
.L25:
	cmp	DWORD PTR -104[rbp], 7
	jle	.L28
	add	DWORD PTR -108[rbp], 1
.L24:
	cmp	DWORD PTR -108[rbp], 7
	jle	.L29
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -96[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+1]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR turn[rip]
	mov	ecx, eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+2]
	mov	BYTE PTR [rdx+rax], cl
.L31:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	think, .-think
	.section	.rodata
.LC6:
	.string	"%3d"
.LC7:
	.string	"%3d%3d"
.LC8:
	.string	"%d\n"
	.text
	.globl	print
	.type	print, @function
print:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+2]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	jne	.L34
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip]
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jle	.L35
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, point[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L34
.L35:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, score_arr[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, point[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L34:
	add	DWORD PTR -8[rbp], 1
.L33:
	cmp	DWORD PTR -8[rbp], 59
	jle	.L36
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print, .-print
	.globl	cal_score
	.type	cal_score, @function
cal_score:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	eax, DWORD PTR turn[rip]
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR turn[rip]
	mov	eax, 3
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L38
.L43:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	DWORD PTR -8[rbp], eax
	jne	.L40
	add	DWORD PTR -20[rbp], 1
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	jne	.L41
	sub	DWORD PTR -20[rbp], 1
.L41:
	add	DWORD PTR -12[rbp], 1
.L39:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L42
	add	DWORD PTR -16[rbp], 1
.L38:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L43
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cal_score, .-cal_score
	.globl	copy
	.type	copy, @function
copy:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L46
.L49:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -4[rbp], 1
.L47:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L48
	add	DWORD PTR -8[rbp], 1
.L46:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L49
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	copy, .-copy
	.section	.rodata
.LC9:
	.string	"\n  "
.LC10:
	.string	" %d "
.LC11:
	.string	"\n -------------------------"
.LC12:
	.string	"%d"
.LC13:
	.string	"|  "
.LC14:
	.string	"|\342\227\217"
.LC15:
	.string	"|\342\227\213"
.LC16:
	.string	"|\n -------------------------"
	.text
	.globl	printb
	.type	printb, @function
printb:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L51
.L52:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -56[rbp], 1
.L51:
	cmp	DWORD PTR -56[rbp], 7
	jle	.L52
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L53
.L59:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L54
.L58:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L55
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L55:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L57
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L57:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 2
	jne	.L56
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L56:
	add	DWORD PTR -52[rbp], 1
.L54:
	cmp	DWORD PTR -52[rbp], 7
	jle	.L58
	lea	rdi, .LC16[rip]
	call	puts@PLT
	add	DWORD PTR -56[rbp], 1
.L53:
	cmp	DWORD PTR -56[rbp], 7
	jle	.L59
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printb, .-printb
	.globl	setup
	.type	setup, @function
setup:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 0
	jmp	.L62
.L65:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
.L63:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L64
	add	DWORD PTR -8[rbp], 1
.L62:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L65
	mov	BYTE PTR board[rip+27], 1
	mov	BYTE PTR board[rip+36], 1
	mov	BYTE PTR board[rip+28], 2
	mov	BYTE PTR board[rip+35], 2
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setup, .-setup
	.globl	win
	.type	win, @function
win:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 2
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L67
.L72:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L68
.L71:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -8[rbp], eax
	jne	.L69
	add	DWORD PTR -20[rbp], 1
	jmp	.L70
.L69:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	jne	.L70
	sub	DWORD PTR -20[rbp], 1
.L70:
	add	DWORD PTR -12[rbp], 1
.L68:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L71
	add	DWORD PTR -16[rbp], 1
.L67:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L72
	cmp	DWORD PTR -20[rbp], 0
	setg	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	win, .-win
	.globl	check_all
	.type	check_all, @function
check_all:
.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	DWORD PTR -8[rbp], 0
	jmp	.L75
.L80:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L76
.L79:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	check
	test	al, al
	je	.L77
	mov	eax, 1
	jmp	.L78
.L77:
	add	DWORD PTR -4[rbp], 1
.L76:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L79
	add	DWORD PTR -8[rbp], 1
.L75:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L80
	mov	eax, 0
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	check_all, .-check_all
	.globl	check
	.type	check, @function
check:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L82
	mov	eax, 0
	jmp	.L83
.L82:
	mov	eax, DWORD PTR turn[rip]
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR turn[rip]
	mov	eax, 3
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], -1
	jmp	.L84
.L92:
	mov	DWORD PTR -12[rbp], -1
	jmp	.L85
.L91:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L86
	cmp	DWORD PTR -12[rbp], 0
	je	.L87
.L86:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L88
.L90:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	add	ecx, edx
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -8[rbp], eax
	jne	.L89
	mov	eax, 1
	jmp	.L83
.L89:
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -20[rbp], eax
.L88:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	je	.L90
.L87:
	add	DWORD PTR -12[rbp], 1
.L85:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L91
	add	DWORD PTR -16[rbp], 1
.L84:
	cmp	DWORD PTR -16[rbp], 1
	jle	.L92
	mov	eax, 0
.L83:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	check, .-check
	.globl	put
	.type	put, @function
put:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	mov	eax, DWORD PTR turn[rip]
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR turn[rip]
	mov	eax, 3
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	DWORD PTR -20[rbp], -1
	jmp	.L94
.L105:
	mov	DWORD PTR -16[rbp], -1
	jmp	.L95
.L104:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L96
	cmp	DWORD PTR -16[rbp], 0
	je	.L97
.L96:
	mov	DWORD PTR -32[rbp], 0
	mov	BYTE PTR -33[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L98
.L100:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	ecx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	DWORD PTR -8[rbp], eax
	jne	.L99
	mov	BYTE PTR -33[rbp], 1
	jmp	.L97
.L99:
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -24[rbp], eax
	add	DWORD PTR -32[rbp], 1
.L98:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	ecx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	je	.L100
.L97:
	cmp	BYTE PTR -33[rbp], 0
	je	.L101
	mov	DWORD PTR -12[rbp], 1
	jmp	.L102
.L103:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, ecx
	mov	ecx, DWORD PTR -8[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -12[rbp], 1
.L102:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jle	.L103
.L101:
	add	DWORD PTR -16[rbp], 1
.L95:
	cmp	DWORD PTR -16[rbp], 1
	jle	.L104
	add	DWORD PTR -20[rbp], 1
.L94:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L105
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	put, .-put
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.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	"220456848.c"
	.text
	.global	board
	.bss
	.align	2
	.type	board, %object
	.size	board, 64
board:
	.space	64
	.global	score_arr
	.align	2
	.type	score_arr, %object
	.size	score_arr, 180
score_arr:
	.space	180
	.global	point
	.align	2
	.type	point, %object
	.size	point, 60
point:
	.space	60
	.comm	turn,4,4
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"whitedatawin.txt\000"
	.align	2
.LC2:
	.ascii	"whitedatalose.txt\000"
	.align	2
.LC3:
	.ascii	"text file error\000"
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"\345\256\237\350\241\214\346\231\202\351\226\223: %"
	.ascii	".4lf[s]\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r1, .L12
	ldr	r0, .L12+4
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L12
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r0, .L12+12
	bl	puts
	mvn	r0, #0
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L11:
	bl	setup
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	bl	srand
	b	.L5
.L9:
	ldr	r3, .L12+16
	mov	r2, #2
	str	r2, [r3]
	mov	r3, #1
	strb	r3, [fp, #-29]
	mov	r3, #1
	strb	r3, [fp, #-30]
	mov	r3, #0
	str	r3, [fp, #-28]
	bl	setup
	b	.L6
.L8:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-28]
	bl	think
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldrb	r3, [fp, #-29]
	strb	r3, [fp, #-30]
	ldr	r3, .L12+16
	ldr	r3, [r3]
	rsb	r3, r3, #3
	ldr	r2, .L12+16
	str	r3, [r2]
.L6:
	bl	check_all
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
.L5:
	bl	win
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-28]
	cmp	r3, #60
	bne	.L10
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	print
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #1000
	blt	.L11
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L12+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+24
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	turn
	.word	1093567616
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	think
	.syntax unified
	.arm
	.fpu softvfp
	.type	think, %function
think:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #63
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-112]
	mov	r3, #0
	strb	r3, [fp, #-123]
	mov	r3, #0
	strb	r3, [fp, #-122]
	mov	r3, #0
	strb	r3, [fp, #-121]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L15
.L21:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L16
.L20:
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	check
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L34+4
	bl	copy
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	put
	sub	r3, fp, #80
	mov	r0, r3
	bl	cal_score
	str	r0, [fp, #-84]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-120]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	strb	r3, [fp, #-15]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-108]
	and	r3, r3, #255
	strb	r3, [fp, #-16]
	ldr	r3, [fp, #-104]
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	mov	r3, #1
	strb	r3, [fp, #-123]
	b	.L17
.L18:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-108]
	and	r3, r3, #255
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-104]
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	mov	r3, #1
	strb	r3, [fp, #-122]
	b	.L17
.L19:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-108]
	and	r3, r3, #255
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-104]
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	mov	r3, #1
	strb	r3, [fp, #-121]
.L17:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L16:
	ldr	r3, [fp, #-104]
	cmp	r3, #7
	ble	.L20
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L15:
	ldr	r3, [fp, #-108]
	cmp	r3, #7
	ble	.L21
	ldrb	r3, [fp, #-123]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	ldrb	r3, [fp, #-122]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L22
	ldr	r2, .L34+8
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L34+4
	mov	r1, r3
	bl	put
	b	.L23
.L22:
	ldrb	r3, [fp, #-123]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldrb	r3, [fp, #-122]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldrb	r3, [fp, #-121]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L24
	ldr	r2, .L34+8
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-92]
	sub	r2, fp, #16
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	r2, fp, #12
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L34+4
	mov	r1, r3
	bl	put
	b	.L23
.L24:
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	bl	rand
	mov	r2, r0
	ldr	r3, .L34+12
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-88]
	sub	r2, fp, #16
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	r2, fp, #12
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L34+4
	mov	r1, r3
	bl	put
	ldr	r3, [fp, #-88]
	and	r1, r3, #255
	ldr	r2, .L34+8
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L23:
	ldr	r3, .L34+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L33
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L26
.L31:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L27
.L30:
	ldr	r2, .L34+4
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L34+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L28
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L29
.L28:
	ldr	r2, .L34+4
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L29
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L29:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L27:
	ldr	r3, [fp, #-104]
	cmp	r3, #7
	ble	.L30
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L26:
	ldr	r3, [fp, #-108]
	cmp	r3, #7
	ble	.L31
	ldr	r3, [fp, #-100]
	and	r0, r3, #255
	ldr	r1, .L34+20
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	and	r0, r3, #255
	ldr	r1, .L34+20
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #1
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, .L34+16
	ldr	r3, [r3]
	and	r0, r3, #255
	ldr	r1, .L34+20
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #2
	mov	r2, r0
	strb	r2, [r3]
.L33:
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC5
	.word	board
	.word	point
	.word	1431655766
	.word	turn
	.word	score_arr
	.size	think, .-think
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%3d\000"
	.align	2
.LC7:
	.ascii	"%3d%3d\000"
	.align	2
.LC8:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L37
.L40:
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L38
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r0, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bls	.L39
	ldr	r2, [fp, #-12]
	ldr	r1, .L41+4
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r0
	ldr	r1, .L41+8
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r2, .L41+12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L41+16
	ldr	r0, [fp, #-16]
	bl	fprintf
	b	.L38
.L39:
	ldr	r2, [fp, #-12]
	ldr	r1, .L41+4
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r1, .L41
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r0
	ldr	r1, .L41+8
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r2, .L41+12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L41+16
	ldr	r0, [fp, #-20]
	bl	fprintf
.L38:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-12]
	cmp	r3, #59
	ble	.L40
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	score_arr
	.word	.LC6
	.word	.LC7
	.word	point
	.word	.LC8
	.size	print, .-print
	.align	2
	.global	cal_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	cal_score, %function
cal_score:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L51
	ldr	r3, [r3]
	rsb	r3, r3, #3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L44
.L49:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L45
.L48:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L46
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L47
.L46:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L47
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L47:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L48
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L49
	ldr	r3, [fp, #-24]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L52:
	.align	2
.L51:
	.word	turn
	.size	cal_score, .-cal_score
	.align	2
	.global	copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy, %function
copy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L57:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L55
.L56:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r1, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L56
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L57
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	copy, .-copy
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012  \000"
	.align	2
.LC10:
	.ascii	" %d \000"
	.align	2
.LC11:
	.ascii	"\012 -------------------------\000"
	.align	2
.LC12:
	.ascii	"%d\000"
	.align	2
.LC13:
	.ascii	"|  \000"
	.align	2
.LC14:
	.ascii	"|\342\227\217\000"
	.align	2
.LC15:
	.ascii	"|\342\227\213\000"
	.align	2
.LC16:
	.ascii	"|\012 -------------------------\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printb
	.syntax unified
	.arm
	.fpu softvfp
	.type	printb, %function
printb:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L69+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L59
.L60:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r1, r3
	ldr	r0, .L69+8
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L59:
	ldr	r3, [fp, #-48]
	cmp	r3, #7
	ble	.L60
	ldr	r0, .L69+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L61
.L67:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r1, r3
	ldr	r0, .L69+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L62
.L66:
	ldr	r2, .L69+20
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L63
	ldr	r0, .L69+24
	bl	printf
	b	.L64
.L63:
	ldr	r2, .L69+20
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L65
	ldr	r0, .L69+28
	bl	printf
	b	.L64
.L65:
	ldr	r2, .L69+20
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L64
	ldr	r0, .L69+32
	bl	printf
.L64:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L62:
	ldr	r3, [fp, #-44]
	cmp	r3, #7
	ble	.L66
	ldr	r0, .L69+36
	bl	puts
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L61:
	ldr	r3, [fp, #-48]
	cmp	r3, #7
	ble	.L67
	nop
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC17
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	board
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	printb, .-printb
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ 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, #0
	str	r3, [fp, #-12]
	b	.L72
.L75:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L73
.L74:
	ldr	r2, .L76
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L73:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L74
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L72:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L75
	ldr	r3, .L76
	mov	r2, #1
	strb	r2, [r3, #27]
	ldr	r3, .L76
	mov	r2, #1
	strb	r2, [r3, #36]
	ldr	r3, .L76
	mov	r2, #2
	strb	r2, [r3, #28]
	ldr	r3, .L76
	mov	r2, #2
	strb	r2, [r3, #35]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L77:
	.align	2
.L76:
	.word	board
	.size	setup, .-setup
	.align	2
	.global	win
	.syntax unified
	.arm
	.fpu softvfp
	.type	win, %function
win:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L79
.L84:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L80
.L83:
	ldr	r2, .L86
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L81
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L82
.L81:
	ldr	r2, .L86
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L82
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L82:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L80:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L83
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L79:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L84
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L87:
	.align	2
.L86:
	.word	board
	.size	win, .-win
	.align	2
	.global	check_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_all, %function
check_all:
	@ 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, #0
	str	r3, [fp, #-12]
	b	.L89
.L94:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L90
.L93:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	check
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	mov	r3, #1
	b	.L92
.L91:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L90:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L93
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L89:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L94
	mov	r3, #0
.L92:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_all, .-check_all
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r2, .L107
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L96
	mov	r3, #0
	b	.L97
.L96:
	ldr	r3, .L107+4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L107+4
	ldr	r3, [r3]
	rsb	r3, r3, #3
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L98
.L106:
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L99
.L105:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L100
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L101
.L100:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	b	.L102
.L104:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-16]
	add	r1, r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	ldr	r1, .L107
	lsl	r2, r2, #3
	add	r2, r1, r2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L103
	mov	r3, #1
	b	.L97
.L103:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L102:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	ldr	r1, .L107
	lsl	r2, r2, #3
	add	r2, r1, r2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L104
.L101:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L99:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L105
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L98:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L106
	mov	r3, #0
.L97:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L108:
	.align	2
.L107:
	.word	board
	.word	turn
	.size	check, .-check
	.align	2
	.global	put
	.syntax unified
	.arm
	.fpu softvfp
	.type	put, %function
put:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L122
	ldr	r3, [r3]
	rsb	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	and	r1, r3, #255
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-24]
	b	.L110
.L121:
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L111
.L120:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L112
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L113
.L112:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	b	.L114
.L116:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-20]
	add	r1, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L115
	mov	r3, #1
	strb	r3, [fp, #-37]
	b	.L113
.L115:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L114:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L116
.L113:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L117
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L118
.L119:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-52]
	add	r3, r1, r3
	ldr	r1, [fp, #-12]
	and	r1, r1, #255
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L118:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L119
.L117:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L111:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L120
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L110:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L121
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L123:
	.align	2
.L122:
	.word	turn
	.size	put, .-put
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
