	.file	"751569.c"
	.intel_syntax noprefix
	.text
	.globl	komi
	.data
	.align 8
	.type	komi, @object
	.size	komi, 8
komi:
	.long	0
	.long	1075445760
	.globl	board
	.align 32
	.type	board, @object
	.size	board, 484
board:
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.globl	dir4
	.align 16
	.type	dir4, @object
	.size	dir4, 16
dir4:
	.long	1
	.long	11
	.long	-1
	.long	-11
	.globl	dir8
	.align 32
	.type	dir8, @object
	.size	dir8, 32
dir8:
	.long	1
	.long	11
	.long	-1
	.long	-11
	.long	12
	.long	10
	.long	-12
	.long	-10
	.globl	ko_z
	.bss
	.align 4
	.type	ko_z, @object
	.size	ko_z, 4
ko_z:
	.zero	4
	.globl	record
	.align 32
	.type	record, @object
	.size	record, 4000
record:
	.zero	4000
	.globl	moves
	.align 4
	.type	moves, @object
	.size	moves, 4
moves:
	.zero	4
	.globl	all_playouts
	.align 4
	.type	all_playouts, @object
	.size	all_playouts, 4
all_playouts:
	.zero	4
	.globl	flag_test_playout
	.align 4
	.type	flag_test_playout, @object
	.size	flag_test_playout, 4
flag_test_playout:
	.zero	4
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 4000
path:
	.zero	4000
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.text
	.globl	get_z
	.type	get_z, @function
get_z:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_z, .-get_z
	.globl	get81
	.type	get81, @function
get81:
.LFB7:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 780903145
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	edx, eax, -11
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get81, .-get81
	.section	.rodata
.LC0:
	.string	"pass"
.LC1:
	.string	"%c%d"
	.text
	.globl	get_char_z
	.type	get_char_z, @function
get_char_z:
.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	DWORD PTR -20[rbp], edi
	lea	rsi, .LC0[rip]
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	sprintf@PLT
	cmp	DWORD PTR -20[rbp], 0
	jne	.L7
	lea	rax, buf.0[rip]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 780903145
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	edx, eax, -11
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 64
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 72
	jle	.L9
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, 10
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC1[rip]
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, buf.0[rip]
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_char_z, .-get_char_z
	.globl	flip_color
	.type	flip_color, @function
flip_color:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, 3
	sub	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	flip_color, .-flip_color
	.globl	prt
	.type	prt, @function
prt:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L13
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L13:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	prt, .-prt
	.globl	send_gtp
	.type	send_gtp, @function
send_gtp:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L16
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L16:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	send_gtp, .-send_gtp
	.section	.rodata
.LC2:
	.string	"."
.LC3:
	.string	"X"
.LC4:
	.string	"O"
.LC5:
	.string	"#"
.LC6:
	.string	"   "
.LC7:
	.string	"%c"
.LC8:
	.string	"\n"
.LC9:
	.string	"%2d "
.LC10:
	.string	"%s"
.LC11:
	.string	"  ko_z=%d,moves=%d"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	prt
	mov	DWORD PTR -72[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, 65[rax]
	cmp	DWORD PTR -72[rbp], 7
	setg	al
	movzx	eax, al
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	prt
	add	DWORD PTR -72[rbp], 1
.L19:
	cmp	DWORD PTR -72[rbp], 8
	jle	.L20
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	prt
	mov	DWORD PTR -68[rbp], 0
	jmp	.L21
.L25:
	mov	eax, 9
	sub	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	prt
	mov	DWORD PTR -72[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	prt
	add	DWORD PTR -72[rbp], 1
.L22:
	cmp	DWORD PTR -72[rbp], 8
	jle	.L23
	cmp	DWORD PTR -68[rbp], 4
	jne	.L24
	mov	ebx, DWORD PTR moves[rip]
	mov	eax, DWORD PTR ko_z[rip]
	mov	edi, eax
	call	get81
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	prt
.L24:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	prt
	add	DWORD PTR -68[rbp], 1
.L21:
	cmp	DWORD PTR -68[rbp], 8
	jle	.L25
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_board, .-print_board
	.globl	check_board
	.bss
	.align 32
	.type	check_board, @object
	.size	check_board, 484
check_board:
	.zero	484
	.text
	.globl	count_liberty_sub
	.type	count_liberty_sub, @function
count_liberty_sub:
.LFB13:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, check_board[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L28
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, check_board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L33
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, check_board[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L30
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	count_liberty_sub
	jmp	.L30
.L33:
	nop
.L30:
	add	DWORD PTR -8[rbp], 1
.L28:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	count_liberty_sub, .-count_liberty_sub
	.globl	count_liberty
	.type	count_liberty, @function
count_liberty:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, check_board[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -4[rbp], 1
.L35:
	cmp	DWORD PTR -4[rbp], 120
	jle	.L36
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	count_liberty_sub
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	count_liberty, .-count_liberty
	.globl	take_stone
	.type	take_stone, @function
take_stone:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L38
.L40:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L39
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	take_stone
.L39:
	add	DWORD PTR -8[rbp], 1
.L38:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	take_stone, .-take_stone
	.globl	FILL_EYE_ERR
	.section	.rodata
	.align 4
	.type	FILL_EYE_ERR, @object
	.size	FILL_EYE_ERR, 4
FILL_EYE_ERR:
	.long	1
	.globl	FILL_EYE_OK
	.align 4
	.type	FILL_EYE_OK, @object
	.size	FILL_EYE_OK, 4
FILL_EYE_OK:
	.zero	4
	.text
	.globl	put_stone
	.type	put_stone, @function
put_stone:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	DWORD PTR -140[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	cmp	DWORD PTR -132[rbp], 0
	jne	.L42
	mov	DWORD PTR ko_z[rip], 0
	mov	eax, 0
	jmp	.L62
.L42:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L44
.L52:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jne	.L45
	add	DWORD PTR -108[rbp], 1
.L45:
	cmp	DWORD PTR -68[rbp], 3
	jne	.L46
	add	DWORD PTR -104[rbp], 1
.L46:
	cmp	DWORD PTR -68[rbp], 0
	je	.L64
	cmp	DWORD PTR -68[rbp], 3
	je	.L64
	lea	rdx, -112[rbp]
	lea	rcx, -116[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	count_liberty
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	lea	rdx, -56[rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jne	.L50
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jne	.L50
	mov	eax, DWORD PTR -112[rbp]
	add	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -92[rbp], eax
.L50:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jne	.L49
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jle	.L49
	add	DWORD PTR -100[rbp], 1
	jmp	.L49
.L64:
	nop
.L49:
	add	DWORD PTR -88[rbp], 1
.L44:
	cmp	DWORD PTR -88[rbp], 3
	jle	.L52
	cmp	DWORD PTR -96[rbp], 0
	jne	.L53
	cmp	DWORD PTR -108[rbp], 0
	jne	.L53
	cmp	DWORD PTR -100[rbp], 0
	jne	.L53
	mov	eax, 1
	jmp	.L62
.L53:
	mov	eax, DWORD PTR ko_z[rip]
	cmp	DWORD PTR -132[rbp], eax
	jne	.L54
	mov	eax, 2
	jmp	.L62
.L54:
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cmp	eax, 4
	jne	.L55
	cmp	DWORD PTR -140[rbp], 0
	je	.L55
	mov	eax, 3
	jmp	.L62
.L55:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L56
	mov	eax, 4
	jmp	.L62
.L56:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L57
.L59:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jne	.L58
	cmp	DWORD PTR -80[rbp], 1
	jne	.L58
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -132[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	mov	edi, edx
	call	take_stone
.L58:
	add	DWORD PTR -88[rbp], 1
.L57:
	cmp	DWORD PTR -88[rbp], 3
	jle	.L59
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, board[rip]
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rdx, -112[rbp]
	lea	rcx, -116[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	count_liberty
	cmp	DWORD PTR -96[rbp], 1
	jne	.L60
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, 1
	jne	.L60
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jne	.L60
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR ko_z[rip], eax
	jmp	.L61
.L60:
	mov	DWORD PTR ko_z[rip], 0
.L61:
	mov	eax, 0
.L62:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	put_stone, .-put_stone
	.globl	count_score
	.type	count_score, @function
count_score:
.LFB17:
	.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	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L66
.L74:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L67
.L73:
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR -44[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	DWORD PTR -44[rbp+rax*4], edx
	cmp	DWORD PTR -48[rbp], 0
	jne	.L81
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L70
.L71:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dir4[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -32[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], edx
	add	DWORD PTR -80[rbp], 1
.L70:
	cmp	DWORD PTR -80[rbp], 3
	jle	.L71
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	je	.L72
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L72
	add	DWORD PTR -72[rbp], 1
.L72:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	je	.L69
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jne	.L69
	add	DWORD PTR -68[rbp], 1
	jmp	.L69
.L81:
	nop
.L69:
	add	DWORD PTR -88[rbp], 1
.L67:
	cmp	DWORD PTR -88[rbp], 8
	jle	.L73
	add	DWORD PTR -84[rbp], 1
.L66:
	cmp	DWORD PTR -84[rbp], 8
	jle	.L74
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	DWORD PTR -76[rbp], 0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR komi[rip]
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L75
	mov	DWORD PTR -76[rbp], 1
.L75:
	cmp	DWORD PTR -100[rbp], 2
	jne	.L77
	neg	DWORD PTR -76[rbp]
.L77:
	mov	eax, DWORD PTR -76[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	count_score, .-count_score
	.section	.rodata
	.align 8
.LC13:
	.string	"Err! prob_sum=%d,sum=%d,r=%d,r=%d\n"
	.text
	.globl	playout
	.type	playout, @function
playout:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -1044[rbp]
	mov	DWORD PTR -1036[rbp], eax
	mov	DWORD PTR -1032[rbp], 0
	mov	DWORD PTR -996[rbp], 281
	mov	eax, DWORD PTR all_playouts[rip]
	add	eax, 1
	mov	DWORD PTR all_playouts[rip], eax
	mov	DWORD PTR -1028[rbp], 0
	jmp	.L83
.L104:
	mov	DWORD PTR -1024[rbp], 0
	mov	DWORD PTR -1020[rbp], 0
	mov	DWORD PTR -1012[rbp], 0
	jmp	.L84
.L89:
	mov	DWORD PTR -1016[rbp], 0
	jmp	.L85
.L88:
	mov	eax, DWORD PTR -1012[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -1016[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -984[rbp], eax
	mov	eax, DWORD PTR -984[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L108
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	mov	edx, DWORD PTR -984[rbp]
	mov	DWORD PTR -976[rbp+rax*8], edx
	mov	DWORD PTR -980[rbp], 100
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	mov	edx, DWORD PTR -980[rbp]
	mov	DWORD PTR -972[rbp+rax*8], edx
	mov	eax, DWORD PTR -980[rbp]
	add	DWORD PTR -1020[rbp], eax
	add	DWORD PTR -1024[rbp], 1
	jmp	.L87
.L108:
	nop
.L87:
	add	DWORD PTR -1016[rbp], 1
.L85:
	cmp	DWORD PTR -1016[rbp], 8
	jle	.L88
	add	DWORD PTR -1012[rbp], 1
.L84:
	cmp	DWORD PTR -1012[rbp], 8
	jle	.L89
.L99:
	mov	DWORD PTR -1004[rbp], 0
	cmp	DWORD PTR -1024[rbp], 0
	jne	.L90
	mov	DWORD PTR -1008[rbp], 0
	jmp	.L91
.L90:
	call	rand@PLT
	cdq
	idiv	DWORD PTR -1020[rbp]
	mov	DWORD PTR -992[rbp], edx
	mov	DWORD PTR -1000[rbp], 0
	mov	DWORD PTR -1004[rbp], 0
	jmp	.L92
.L95:
	mov	eax, DWORD PTR -1004[rbp]
	cdqe
	mov	eax, DWORD PTR -972[rbp+rax*8]
	add	DWORD PTR -1000[rbp], eax
	mov	eax, DWORD PTR -1000[rbp]
	cmp	eax, DWORD PTR -992[rbp]
	jg	.L109
	add	DWORD PTR -1004[rbp], 1
.L92:
	mov	eax, DWORD PTR -1004[rbp]
	cmp	eax, DWORD PTR -1024[rbp]
	jl	.L95
	jmp	.L94
.L109:
	nop
.L94:
	mov	eax, DWORD PTR -1004[rbp]
	cmp	eax, DWORD PTR -1024[rbp]
	jne	.L96
	mov	esi, DWORD PTR -1004[rbp]
	mov	ecx, DWORD PTR -992[rbp]
	mov	edx, DWORD PTR -1000[rbp]
	mov	eax, DWORD PTR -1020[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	prt
	mov	edi, 0
	call	exit@PLT
.L96:
	mov	eax, DWORD PTR -1004[rbp]
	cdqe
	mov	eax, DWORD PTR -976[rbp+rax*8]
	mov	DWORD PTR -1008[rbp], eax
.L91:
	mov	edx, 1
	mov	ecx, DWORD PTR -1036[rbp]
	mov	eax, DWORD PTR -1008[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -988[rbp], eax
	cmp	DWORD PTR -988[rbp], 0
	je	.L110
	mov	eax, DWORD PTR -1004[rbp]
	cdqe
	mov	eax, DWORD PTR -972[rbp+rax*8]
	sub	DWORD PTR -1020[rbp], eax
	mov	eax, DWORD PTR -1024[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -976[rbp+rax*8]
	mov	eax, DWORD PTR -1004[rbp]
	cdqe
	mov	DWORD PTR -976[rbp+rax*8], edx
	mov	eax, DWORD PTR -1024[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -972[rbp+rax*8]
	mov	eax, DWORD PTR -1004[rbp]
	cdqe
	mov	DWORD PTR -972[rbp+rax*8], edx
	sub	DWORD PTR -1024[rbp], 1
	jmp	.L99
.L110:
	nop
	mov	eax, DWORD PTR flag_test_playout[rip]
	test	eax, eax
	je	.L100
	mov	eax, DWORD PTR moves[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR moves[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, record[rip]
	mov	eax, DWORD PTR -1008[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L100:
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 999
	jg	.L101
	mov	eax, DWORD PTR depth[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR depth[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, path[rip]
	mov	eax, DWORD PTR -1008[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L101:
	cmp	DWORD PTR -1008[rbp], 0
	jne	.L102
	cmp	DWORD PTR -1032[rbp], 0
	je	.L111
.L102:
	mov	eax, DWORD PTR -1008[rbp]
	mov	DWORD PTR -1032[rbp], eax
	mov	eax, DWORD PTR -1036[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -1036[rbp], eax
	add	DWORD PTR -1028[rbp], 1
.L83:
	mov	eax, DWORD PTR -1028[rbp]
	cmp	eax, DWORD PTR -996[rbp]
	jl	.L104
	jmp	.L103
.L111:
	nop
.L103:
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	count_score
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	playout, .-playout
	.globl	primitive_monte_calro
	.type	primitive_monte_calro, @function
primitive_monte_calro:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1032[rbp], 30
	mov	DWORD PTR -1052[rbp], 0
	mov	eax, DWORD PTR ko_z[rip]
	mov	DWORD PTR -1028[rbp], eax
	lea	rax, -992[rbp]
	lea	rdx, board[rip]
	mov	ecx, 60
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	movsd	xmm0, QWORD PTR .LC14[rip]
	movsd	QWORD PTR -1008[rbp], xmm0
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L113
.L123:
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L114
.L122:
	mov	eax, DWORD PTR -1044[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -1048[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -1024[rbp], eax
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L127
	mov	edx, 1
	mov	ecx, DWORD PTR -1060[rbp]
	mov	eax, DWORD PTR -1024[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	jne	.L128
	mov	DWORD PTR -1036[rbp], 0
	mov	DWORD PTR -1040[rbp], 0
	jmp	.L118
.L119:
	mov	eax, DWORD PTR ko_z[rip]
	mov	DWORD PTR -1016[rbp], eax
	lea	rax, -496[rbp]
	lea	rdx, board[rip]
	mov	ecx, 60
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	flip_color
	mov	edi, eax
	call	playout
	neg	eax
	mov	DWORD PTR -1012[rbp], eax
	mov	eax, DWORD PTR -1012[rbp]
	add	DWORD PTR -1036[rbp], eax
	mov	eax, DWORD PTR -1016[rbp]
	mov	DWORD PTR ko_z[rip], eax
	lea	rdx, board[rip]
	lea	rax, -496[rbp]
	mov	ecx, 60
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	add	DWORD PTR -1040[rbp], 1
.L118:
	mov	eax, DWORD PTR -1040[rbp]
	cmp	eax, DWORD PTR -1032[rbp]
	jl	.L119
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -1036[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -1032[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -1000[rbp], xmm0
	movsd	xmm0, QWORD PTR -1000[rbp]
	comisd	xmm0, QWORD PTR -1008[rbp]
	jbe	.L120
	movsd	xmm0, QWORD PTR -1000[rbp]
	movsd	QWORD PTR -1008[rbp], xmm0
	mov	eax, DWORD PTR -1024[rbp]
	mov	DWORD PTR -1052[rbp], eax
.L120:
	mov	eax, DWORD PTR -1028[rbp]
	mov	DWORD PTR ko_z[rip], eax
	lea	rdx, board[rip]
	lea	rax, -992[rbp]
	mov	ecx, 60
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	jmp	.L116
.L127:
	nop
	jmp	.L116
.L128:
	nop
.L116:
	add	DWORD PTR -1048[rbp], 1
.L114:
	cmp	DWORD PTR -1048[rbp], 8
	jle	.L122
	add	DWORD PTR -1044[rbp], 1
.L113:
	cmp	DWORD PTR -1044[rbp], 8
	jle	.L123
	mov	eax, DWORD PTR -1052[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L125
	call	__stack_chk_fail@PLT
.L125:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	primitive_monte_calro, .-primitive_monte_calro
	.globl	node
	.bss
	.align 32
	.type	node, @object
	.size	node, 39520000
node:
	.zero	39520000
	.globl	node_num
	.align 4
	.type	node_num, @object
	.size	node_num, 4
node_num:
	.zero	4
	.globl	NODE_EMPTY
	.section	.rodata
	.align 4
	.type	NODE_EMPTY, @object
	.size	NODE_EMPTY, 4
NODE_EMPTY:
	.long	-1
	.globl	ILLEGAL_Z
	.align 4
	.type	ILLEGAL_Z, @object
	.size	ILLEGAL_Z, 4
ILLEGAL_Z:
	.long	-1
	.text
	.globl	add_child
	.type	add_child, @function
add_child:
.LFB20:
	.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	DWORD PTR -28[rbp], esi
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 12
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 16
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 24
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 32
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	ecx, -1
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 40
	mov	DWORD PTR [rax], ecx
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 48
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	add_child, .-add_child
	.section	.rodata
.LC15:
	.string	"node over Err\n"
	.text
	.globl	create_node
	.type	create_node, @function
create_node:
.LFB21:
	.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, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -116[rbp], edi
	mov	eax, DWORD PTR node_num[rip]
	cmp	eax, 10000
	jne	.L131
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	prt
	mov	edi, 0
	call	exit@PLT
.L131:
	mov	eax, DWORD PTR node_num[rip]
	cdqe
	imul	rax, rax, 3952
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 3944[rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 3948[rax], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L132
.L137:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L133
.L136:
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -112[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L148
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	pxor	xmm0, xmm0
	mov	esi, edx
	mov	rdi, rax
	call	add_child
	jmp	.L135
.L148:
	nop
.L135:
	add	DWORD PTR -112[rbp], 1
.L133:
	cmp	DWORD PTR -112[rbp], 8
	jle	.L136
	add	DWORD PTR -108[rbp], 1
.L132:
	cmp	DWORD PTR -108[rbp], 8
	jle	.L137
	mov	rax, QWORD PTR -80[rbp]
	pxor	xmm0, xmm0
	mov	esi, 0
	mov	rdi, rax
	call	add_child
	mov	DWORD PTR -104[rbp], 0
	jmp	.L138
.L146:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 48
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	add	eax, 1
	mov	DWORD PTR -100[rbp], eax
	jmp	.L139
.L143:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -80[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	movsd	xmm1, QWORD PTR 40[rax]
	movsd	xmm0, QWORD PTR -88[rbp]
	comisd	xmm0, xmm1
	jnb	.L149
	mov	rax, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR 40[rax]
	movsd	QWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -96[rbp], eax
	jmp	.L142
.L149:
	nop
.L142:
	add	DWORD PTR -100[rbp], 1
.L139:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L143
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	je	.L150
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rcx, QWORD PTR 24[rax]
	mov	rbx, QWORD PTR 32[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -40[rbp], rbx
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	rsi, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	mov	rcx, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rdx], rcx
	mov	QWORD PTR 16[rdx], rbx
	mov	rcx, QWORD PTR 24[rax]
	mov	rbx, QWORD PTR 32[rax]
	mov	QWORD PTR 24[rdx], rcx
	mov	QWORD PTR 32[rdx], rbx
	mov	rcx, QWORD PTR 40[rax]
	mov	rbx, QWORD PTR 48[rax]
	mov	QWORD PTR 40[rdx], rcx
	mov	QWORD PTR 48[rdx], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rcx
	mov	QWORD PTR 16[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rcx
	mov	QWORD PTR 32[rax], rbx
	mov	rcx, QWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], rcx
	mov	QWORD PTR 48[rax], rbx
	jmp	.L145
.L150:
	nop
.L145:
	add	DWORD PTR -104[rbp], 1
.L138:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cmp	DWORD PTR -104[rbp], eax
	jl	.L146
	mov	eax, DWORD PTR node_num[rip]
	add	eax, 1
	mov	DWORD PTR node_num[rip], eax
	mov	eax, DWORD PTR node_num[rip]
	sub	eax, 1
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	create_node, .-create_node
	.section	.rodata
.LC20:
	.string	"Err! select\n"
	.text
	.globl	select_best_ucb
	.type	select_best_ucb, @function
select_best_ucb:
.LFB22:
	.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	DWORD PTR -100[rbp], edi
	mov	DWORD PTR -104[rbp], esi
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rax, 3952
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -96[rbp], -1
	movsd	xmm0, QWORD PTR .LC16[rip]
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -80[rbp], xmm0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L152
.L159:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -56[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, -1
	cmp	eax, edx
	je	.L163
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L155
	call	rand@PLT
	and	eax, 32767
	add	eax, 10000
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -80[rbp], xmm0
	jmp	.L156
.L155:
	movsd	xmm0, QWORD PTR .LC17[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -72[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR 24[rax]
	movsd	QWORD PTR -64[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L157
	mov	eax, 1
	sub	eax, DWORD PTR -104[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -64[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 3944[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -72[rbp], xmm0
.L157:
	movsd	xmm0, QWORD PTR -72[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR -72[rbp]
	mulsd	xmm0, QWORD PTR -16[rbp]
	divsd	xmm0, QWORD PTR -24[rbp]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movsd	xmm3, QWORD PTR 8[rax]
	movsd	QWORD PTR -112[rbp], xmm3
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 3944[rax]
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movq	rax, xmm4
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rdx]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movq	xmm2, rax
	divsd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	mulsd	xmm0, QWORD PTR -32[rbp]
	addsd	xmm0, QWORD PTR -112[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR .LC19[rip]
	subsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -48[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
.L156:
	movsd	xmm0, QWORD PTR -80[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L154
	movsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -96[rbp], eax
	jmp	.L154
.L163:
	nop
.L154:
	add	DWORD PTR -92[rbp], 1
.L152:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L159
	cmp	DWORD PTR -96[rbp], -1
	jne	.L160
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	prt
	mov	edi, 0
	call	exit@PLT
.L160:
	mov	eax, DWORD PTR -96[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	select_best_ucb, .-select_best_ucb
	.globl	update_rave
	.type	update_rave, @function
update_rave:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 560
	mov	QWORD PTR -536[rbp], rdi
	mov	DWORD PTR -540[rbp], esi
	mov	DWORD PTR -544[rbp], edx
	movsd	QWORD PTR -552[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -540[rbp]
	mov	DWORD PTR -512[rbp], eax
	lea	rax, -496[rbp]
	mov	edx, 484
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -544[rbp]
	mov	DWORD PTR -516[rbp], eax
	jmp	.L165
.L167:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -508[rbp], eax
	mov	eax, DWORD PTR -508[rbp]
	cdqe
	mov	eax, DWORD PTR -496[rbp+rax*4]
	test	eax, eax
	jne	.L166
	mov	eax, DWORD PTR -508[rbp]
	cdqe
	mov	edx, DWORD PTR -512[rbp]
	mov	DWORD PTR -496[rbp+rax*4], edx
.L166:
	mov	eax, DWORD PTR -512[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -512[rbp], eax
	add	DWORD PTR -516[rbp], 1
.L165:
	mov	eax, DWORD PTR depth[rip]
	cmp	DWORD PTR -516[rbp], eax
	jl	.L167
	mov	DWORD PTR -496[rbp], 0
	mov	DWORD PTR -516[rbp], 0
	jmp	.L168
.L172:
	mov	eax, DWORD PTR -516[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -536[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -504[rbp], rax
	mov	rax, QWORD PTR -504[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, -1
	cmp	eax, edx
	je	.L174
	mov	rax, QWORD PTR -504[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	eax, DWORD PTR -496[rbp+rax*4]
	cmp	DWORD PTR -540[rbp], eax
	jne	.L175
	mov	rax, QWORD PTR -504[rbp]
	mov	eax, DWORD PTR 16[rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR -504[rbp]
	movsd	xmm0, QWORD PTR 24[rax]
	mulsd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -504[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	mov	rax, QWORD PTR -504[rbp]
	movsd	QWORD PTR 24[rax], xmm0
	mov	rax, QWORD PTR -504[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -504[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR 3948[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -536[rbp]
	mov	DWORD PTR 3948[rax], edx
	jmp	.L170
.L174:
	nop
	jmp	.L170
.L175:
	nop
.L170:
	add	DWORD PTR -516[rbp], 1
.L168:
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -516[rbp], eax
	jl	.L172
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L173
	call	__stack_chk_fail@PLT
.L173:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	update_rave, .-update_rave
	.globl	search_uct
	.type	search_uct, @function
search_uct:
.LFB24:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	imul	rax, rax, 3952
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
.L179:
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, edx
	mov	edi, eax
	call	select_best_ucb
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -44[rbp], eax
	mov	edx, 1
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	je	.L186
	mov	edx, -1
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L179
.L186:
	nop
	mov	eax, DWORD PTR depth[rip]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR depth[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR depth[rip], edx
	mov	rdx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rdx]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, path[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jle	.L180
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1000
	je	.L180
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L181
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jle	.L181
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L181
.L180:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	flip_color
	mov	edi, eax
	call	playout
	neg	eax
	mov	DWORD PTR -52[rbp], eax
	jmp	.L182
.L181:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	edx, -1
	cmp	eax, edx
	jne	.L183
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	create_node
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 32[rdx], eax
.L183:
	mov	rax, QWORD PTR -24[rbp]
	mov	ebx, DWORD PTR 32[rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	flip_color
	mov	esi, ebx
	mov	edi, eax
	call	search_uct
	neg	eax
	mov	DWORD PTR -52[rbp], eax
.L182:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -52[rbp]
	movq	rsi, xmm2
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rsi
	mov	esi, ecx
	mov	rdi, rax
	call	update_rave
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	mov	rax, QWORD PTR -24[rbp]
	movsd	QWORD PTR 8[rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 3944[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 3944[rax], edx
	mov	eax, DWORD PTR -52[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	search_uct, .-search_uct
	.globl	uct_loop
	.data
	.align 4
	.type	uct_loop, @object
	.size	uct_loop, 4
uct_loop:
	.long	1000
	.section	.rodata
	.align 8
.LC21:
	.string	"%2d:z=%2d,rate=%6.3f,games=%4d, rave_r=%6.3f,g=%4d\n"
	.align 8
.LC22:
	.string	"best_z=%d,rate=%6.3f,games=%4d,playouts=%d,nodes=%d\n"
	.text
	.globl	get_best_uct
	.type	get_best_uct, @function
get_best_uct:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 568
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -580[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -568[rbp], -1
	mov	DWORD PTR -564[rbp], -999
	mov	DWORD PTR -560[rbp], 0
	mov	eax, DWORD PTR moves[rip]
	test	eax, eax
	jle	.L188
	mov	eax, DWORD PTR moves[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, record[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -560[rbp], eax
.L188:
	mov	DWORD PTR node_num[rip], 0
	mov	eax, DWORD PTR -560[rbp]
	mov	edi, eax
	call	create_node
	mov	DWORD PTR -556[rbp], eax
	mov	DWORD PTR -572[rbp], 0
	jmp	.L189
.L190:
	mov	eax, DWORD PTR ko_z[rip]
	mov	DWORD PTR -548[rbp], eax
	lea	rax, -528[rbp]
	lea	rdx, board[rip]
	mov	ecx, 60
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR depth[rip], 0
	mov	edx, DWORD PTR -556[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	esi, edx
	mov	edi, eax
	call	search_uct
	mov	eax, DWORD PTR -548[rbp]
	mov	DWORD PTR ko_z[rip], eax
	lea	rdx, board[rip]
	lea	rax, -528[rbp]
	mov	ecx, 60
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	add	DWORD PTR -572[rbp], 1
.L189:
	mov	eax, DWORD PTR uct_loop[rip]
	cmp	DWORD PTR -572[rbp], eax
	jl	.L190
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	imul	rax, rax, 3952
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -544[rbp], rax
	mov	DWORD PTR -572[rbp], 0
	jmp	.L191
.L193:
	mov	eax, DWORD PTR -572[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -544[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -564[rbp], eax
	jge	.L192
	mov	eax, DWORD PTR -572[rbp]
	mov	DWORD PTR -568[rbp], eax
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -564[rbp], eax
.L192:
	mov	rax, QWORD PTR -536[rbp]
	mov	r13d, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -536[rbp]
	movsd	xmm2, QWORD PTR 24[rax]
	movsd	QWORD PTR -592[rbp], xmm2
	mov	rax, QWORD PTR -536[rbp]
	mov	r12d, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -536[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	get81
	mov	edx, eax
	mov	eax, DWORD PTR -572[rbp]
	mov	r8d, r13d
	movsd	xmm1, QWORD PTR -592[rbp]
	mov	ecx, r12d
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 2
	call	prt
	add	DWORD PTR -572[rbp], 1
.L191:
	mov	rax, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -572[rbp], eax
	jl	.L193
	mov	rcx, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR -568[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -552[rbp], eax
	mov	r13d, DWORD PTR node_num[rip]
	mov	r12d, DWORD PTR all_playouts[rip]
	mov	rcx, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR -568[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 16
	mov	rbx, QWORD PTR [rax]
	mov	eax, DWORD PTR -552[rbp]
	mov	edi, eax
	call	get81
	mov	esi, eax
	mov	eax, DWORD PTR -564[rbp]
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, eax
	movq	xmm0, rbx
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	prt
	mov	eax, DWORD PTR -552[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L195
	call	__stack_chk_fail@PLT
.L195:
	add	rsp, 568
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	get_best_uct, .-get_best_uct
	.globl	init_board
	.type	init_board, @function
init_board:
.LFB26:
	.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 -12[rbp], 0
	jmp	.L197
.L198:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	DWORD PTR [rdx+rax], 3
	add	DWORD PTR -12[rbp], 1
.L197:
	cmp	DWORD PTR -12[rbp], 120
	jle	.L198
	mov	DWORD PTR -4[rbp], 0
	jmp	.L199
.L202:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L200
.L201:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -8[rbp], 1
.L200:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L201
	add	DWORD PTR -4[rbp], 1
.L199:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L202
	mov	DWORD PTR moves[rip], 0
	mov	DWORD PTR ko_z[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	init_board, .-init_board
	.section	.rodata
.LC23:
	.string	"Err!\n"
	.text
	.globl	add_moves
	.type	add_moves, @function
add_moves:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	edx, 0
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L204
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	prt
	mov	edi, 0
	call	exit@PLT
.L204:
	mov	eax, DWORD PTR moves[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, record[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR moves[rip]
	add	eax, 1
	mov	DWORD PTR moves[rip], eax
	mov	eax, 0
	call	print_board
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	add_moves, .-add_moves
	.globl	SEARCH_PRIMITIVE
	.section	.rodata
	.align 4
	.type	SEARCH_PRIMITIVE, @object
	.size	SEARCH_PRIMITIVE, 4
SEARCH_PRIMITIVE:
	.zero	4
	.globl	SEARCH_UCT
	.align 4
	.type	SEARCH_UCT, @object
	.size	SEARCH_UCT, 4
SEARCH_UCT:
	.long	1
	.align 8
.LC25:
	.string	"z=%s,color=%d,moves=%d,playouts=%d, %.1f sec(%.0f po/sec),depth=%d\n"
	.text
	.globl	get_computer_move
	.type	get_computer_move, @function
get_computer_move:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	call	clock@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR all_playouts[rip], 0
	mov	eax, 1
	cmp	DWORD PTR -72[rbp], eax
	jne	.L206
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	get_best_uct
	mov	DWORD PTR -52[rbp], eax
	jmp	.L207
.L206:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	primitive_monte_calro
	mov	DWORD PTR -52[rbp], eax
.L207:
	call	clock@PLT
	add	rax, 1
	sub	rax, QWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC24[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	r13d, DWORD PTR depth[rip]
	mov	eax, DWORD PTR all_playouts[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	mov	r12d, DWORD PTR all_playouts[rip]
	mov	ebx, DWORD PTR moves[rip]
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	get_char_z
	mov	rsi, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	r9d, r13d
	movsd	xmm1, QWORD PTR -80[rbp]
	movq	xmm0, rdx
	mov	r8d, r12d
	mov	ecx, ebx
	mov	edx, eax
	lea	rdi, .LC25[rip]
	mov	eax, 2
	call	prt
	mov	eax, DWORD PTR -52[rbp]
	add	rsp, 56
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	get_computer_move, .-get_computer_move
	.section	.rodata
	.align 8
.LC26:
	.string	"(;GM[1]SZ[%d]KM[%.1f]PB[]PW[]\n"
.LC27:
	.string	"B"
.LC28:
	.string	"W"
.LC29:
	.string	";%s"
.LC30:
	.string	"[]"
.LC31:
	.string	"[%c%c]"
.LC32:
	.string	")\n"
	.text
	.globl	print_sgf
	.type	print_sgf, @function
print_sgf:
.LFB29:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR komi[rip]
	movq	xmm0, rax
	mov	esi, 9
	lea	rdi, .LC26[rip]
	mov	eax, 1
	call	prt
	mov	DWORD PTR -48[rbp], 0
	jmp	.L210
.L214:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, record[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 780903145
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	imul	edx, eax, -11
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	lea	rax, .LC27[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC28[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	and	eax, 1
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	prt
	cmp	DWORD PTR -44[rbp], 0
	jne	.L211
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	prt
	jmp	.L212
.L211:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 96[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 96
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	prt
.L212:
	mov	eax, DWORD PTR -48[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L213
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	prt
.L213:
	add	DWORD PTR -48[rbp], 1
.L210:
	mov	eax, DWORD PTR moves[rip]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L214
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	prt
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L215
	call	__stack_chk_fail@PLT
.L215:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	print_sgf, .-print_sgf
	.globl	selfplay
	.type	selfplay, @function
selfplay:
.LFB30:
	.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 -12[rbp], 1
.L222:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L217
	mov	DWORD PTR -8[rbp], 1
	jmp	.L218
.L217:
	mov	DWORD PTR -8[rbp], 1
.L218:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_computer_move
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add_moves
	cmp	DWORD PTR -4[rbp], 0
	jne	.L219
	mov	eax, DWORD PTR moves[rip]
	cmp	eax, 1
	jle	.L219
	mov	eax, DWORD PTR moves[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, record[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L223
.L219:
	mov	eax, DWORD PTR moves[rip]
	cmp	eax, 300
	jg	.L224
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -12[rbp], eax
	jmp	.L222
.L223:
	nop
	jmp	.L220
.L224:
	nop
.L220:
	mov	eax, 0
	call	print_sgf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	selfplay, .-selfplay
	.globl	test_playout
	.type	test_playout, @function
test_playout:
.LFB31:
	.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 flag_test_playout[rip], 1
	mov	edi, 1
	call	playout
	mov	eax, 0
	call	print_board
	mov	eax, 0
	call	print_sgf
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	test_playout, .-test_playout
	.section	.rodata
.LC33:
	.string	"boardsize"
.LC34:
	.string	"= \n\n"
.LC35:
	.string	"clear_board"
.LC36:
	.string	"quit"
.LC37:
	.string	"protocol_version"
.LC38:
	.string	"= 2\n\n"
.LC39:
	.string	"name"
.LC40:
	.string	"= your_program_name\n\n"
.LC41:
	.string	"version"
.LC42:
	.string	"= 0.0.1\n\n"
.LC43:
	.string	"list_commands"
	.align 8
.LC44:
	.string	"= boardsize\nclear_board\nquit\nprotocol_version\nname\nversion\nlist_commands\nkomi\ngenmove\nplay\n\n"
.LC45:
	.string	"komi"
.LC46:
	.string	"genmove"
.LC47:
	.string	"= %s\n\n"
.LC48:
	.string	"play"
.LC49:
	.string	"? unknown_command\n\n"
	.text
	.globl	gtp_loop
	.type	gtp_loop, @function
gtp_loop:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1104
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -274[rbp], 32
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
.L248:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L250
	mov	DWORD PTR -1084[rbp], 0
	lea	rdx, -274[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1064[rbp], rax
	jmp	.L229
.L232:
	lea	rdx, -1056[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	sal	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	add	DWORD PTR -1084[rbp], 1
	cmp	DWORD PTR -1084[rbp], 3
	je	.L251
	lea	rax, -274[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1064[rbp], rax
.L229:
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L232
	jmp	.L231
.L251:
	nop
.L231:
	lea	rax, -1056[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L233
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L233:
	lea	rax, -1056[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L235
	mov	eax, 0
	call	init_board
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L235:
	lea	rax, -1056[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L252
	lea	rax, -1056[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L237
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L237:
	lea	rax, -1056[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L238
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L238:
	lea	rax, -1056[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L239
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L239:
	lea	rax, -1056[rbp]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L240
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L240:
	lea	rax, -1056[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L241
	lea	rax, -1056[rbp]
	add	rax, 256
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR komi[rip], rax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L241:
	lea	rax, -1056[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L242
	mov	DWORD PTR -1080[rbp], 1
	movzx	eax, BYTE PTR -800[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 119
	jne	.L243
	mov	DWORD PTR -1080[rbp], 2
.L243:
	mov	edx, 1
	mov	eax, DWORD PTR -1080[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_computer_move
	mov	DWORD PTR -1088[rbp], eax
	mov	edx, DWORD PTR -1080[rbp]
	mov	eax, DWORD PTR -1088[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add_moves
	mov	eax, DWORD PTR -1088[rbp]
	mov	edi, eax
	call	get_char_z
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L242:
	lea	rax, -1056[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L244
	mov	DWORD PTR -1076[rbp], 1
	movzx	eax, BYTE PTR -800[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 119
	jne	.L245
	mov	DWORD PTR -1076[rbp], 2
.L245:
	movzx	eax, BYTE PTR -544[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	DWORD PTR -1072[rbp], eax
	mov	eax, DWORD PTR -1072[rbp]
	sub	eax, 96
	mov	DWORD PTR -1092[rbp], eax
	cmp	DWORD PTR -1072[rbp], 104
	jle	.L246
	sub	DWORD PTR -1092[rbp], 1
.L246:
	lea	rax, -1056[rbp]
	add	rax, 513
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1068[rbp], eax
	mov	eax, 10
	sub	eax, DWORD PTR -1068[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1092[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -1088[rbp], eax
	movzx	eax, BYTE PTR -544[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 112
	jne	.L247
	mov	DWORD PTR -1088[rbp], 0
.L247:
	mov	edx, DWORD PTR -1076[rbp]
	mov	eax, DWORD PTR -1088[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add_moves
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L244:
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	send_gtp
	jmp	.L248
.L250:
	nop
	jmp	.L228
.L252:
	nop
.L228:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L249
	call	__stack_chk_fail@PLT
.L249:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	gtp_loop, .-gtp_loop
	.globl	main
	.type	main, @function
main:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	init_board
	mov	eax, 0
	call	gtp_loop
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,16,16
	.section	.rodata
	.align 8
.LC14:
	.long	0
	.long	-1067909120
	.align 8
.LC16:
	.long	0
	.long	-1064355840
	.align 8
.LC17:
	.long	858993459
	.long	1070805811
	.align 8
.LC18:
	.long	0
	.long	1084715008
	.align 8
.LC19:
	.long	0
	.long	1072693248
	.align 8
.LC24:
	.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	"751569.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"X\000"
	.align	2
.LC2:
	.ascii	"O\000"
	.align	2
.LC3:
	.ascii	"#\000"
	.align	2
.LC5:
	.ascii	"B\000"
	.align	2
.LC6:
	.ascii	"W\000"
	.text
	.global	komi
	.data
	.align	3
	.type	komi, %object
	.size	komi, 8
komi:
	.word	0
	.word	1075445760
	.global	board
	.align	2
	.type	board, %object
	.size	board, 484
board:
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.global	dir4
	.align	2
	.type	dir4, %object
	.size	dir4, 16
dir4:
	.word	1
	.word	11
	.word	-1
	.word	-11
	.global	dir8
	.align	2
	.type	dir8, %object
	.size	dir8, 32
dir8:
	.word	1
	.word	11
	.word	-1
	.word	-11
	.word	12
	.word	10
	.word	-12
	.word	-10
	.comm	ko_z,4,4
	.comm	record,4000,4
	.global	moves
	.bss
	.align	2
	.type	moves, %object
	.size	moves, 4
moves:
	.space	4
	.global	all_playouts
	.align	2
	.type	all_playouts, %object
	.size	all_playouts, 4
all_playouts:
	.space	4
	.global	flag_test_playout
	.align	2
	.type	flag_test_playout, %object
	.size	flag_test_playout, 4
flag_test_playout:
	.space	4
	.comm	path,4000,4
	.comm	depth,4,4
	.text
	.align	2
	.global	get_z
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_z, %function
get_z:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_z, .-get_z
	.align	2
	.global	get81
	.syntax unified
	.arm
	.fpu softvfp
	.type	get81, %function
get81:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r2, .L6
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #28
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	780903145
	.size	get81, .-get81
	.section	.rodata
	.align	2
.LC8:
	.ascii	"pass\000"
	.align	2
.LC9:
	.ascii	"%c%d\000"
	.text
	.align	2
	.global	get_char_z
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_char_z, %function
get_char_z:
	@ 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]
	ldr	r1, .L12
	ldr	r0, .L12+4
	bl	sprintf
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L12+4
	b	.L10
.L9:
	ldr	r3, [fp, #-24]
	ldr	r2, .L12+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #28
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #72
	ble	.L11
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #10
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+12
	ldr	r0, .L12+4
	bl	sprintf
	ldr	r3, .L12+4
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	buf.6571
	.word	780903145
	.word	.LC9
	.size	get_char_z, .-get_char_z
	.align	2
	.global	flip_color
	.syntax unified
	.arm
	.fpu softvfp
	.type	flip_color, %function
flip_color:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	flip_color, .-flip_color
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prt
	.syntax unified
	.arm
	.fpu softvfp
	.type	prt, %function
prt:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	stderr
	.size	prt, .-prt
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_gtp
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_gtp, %function
send_gtp:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	stdout
	.size	send_gtp, .-send_gtp
	.section	.rodata
	.align	2
.LC13:
	.ascii	"   \000"
	.align	2
.LC14:
	.ascii	"%c\000"
	.align	2
.LC15:
	.ascii	"\012\000"
	.align	2
.LC16:
	.ascii	"%2d \000"
	.align	2
.LC17:
	.ascii	"%s\000"
	.align	2
.LC18:
	.ascii	"  ko_z=%d,moves=%d\000"
	.align	2
.LC12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_board, %function
print_board:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L33+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L33+8
	bl	prt
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L26:
	ldr	r3, [fp, #-32]
	add	r3, r3, #65
	ldr	r2, [fp, #-32]
	cmp	r2, #7
	movgt	r2, #1
	movle	r2, #0
	and	r2, r2, #255
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L33+12
	bl	prt
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L26
	ldr	r0, .L33+16
	bl	prt
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L27
.L31:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #9
	mov	r1, r3
	ldr	r0, .L33+20
	bl	prt
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L28
.L29:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	mov	r3, r0
	ldr	r2, .L33+24
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r1, r3
	ldr	r0, .L33+28
	bl	prt
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L28:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L29
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L30
	ldr	r3, .L33+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	get81
	mov	r1, r0
	ldr	r3, .L33+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L33+40
	bl	prt
.L30:
	ldr	r0, .L33+16
	bl	prt
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #8
	ble	.L31
	nop
	ldr	r3, .L33
	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}
.L34:
	.align	2
.L33:
	.word	.LC19
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	board
	.word	.LC17
	.word	ko_z
	.word	moves
	.word	.LC18
	.size	print_board, .-print_board
	.comm	check_board,484,4
	.align	2
	.global	count_liberty_sub
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_liberty_sub, %function
count_liberty_sub:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, .L42
	ldr	r3, [fp, #-16]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L40:
	ldr	r2, .L42+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, .L42
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L41
	ldr	r2, .L42+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L39
	ldr	r2, .L42
	ldr	r3, [fp, #-8]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L39:
	ldr	r2, .L42+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L38
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	count_liberty_sub
	b	.L38
.L41:
	nop
.L38:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L40
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	check_board
	.word	dir4
	.word	board
	.size	count_liberty_sub, .-count_liberty_sub
	.align	2
	.global	count_liberty
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_liberty, %function
count_liberty:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L45
.L46:
	ldr	r2, .L47
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L45:
	ldr	r3, [fp, #-8]
	cmp	r3, #120
	ble	.L46
	ldr	r2, .L47+4
	ldr	r3, [fp, #-16]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	count_liberty_sub
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	check_board
	.word	board
	.size	count_liberty, .-count_liberty
	.align	2
	.global	take_stone
	.syntax unified
	.arm
	.fpu softvfp
	.type	take_stone, %function
take_stone:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L53
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L50
.L52:
	ldr	r2, .L53+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, .L53
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L51
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	take_stone
.L51:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L52
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	board
	.word	dir4
	.size	take_stone, .-take_stone
	.global	FILL_EYE_ERR
	.section	.rodata
	.align	2
	.type	FILL_EYE_ERR, %object
	.size	FILL_EYE_ERR, 4
FILL_EYE_ERR:
	.word	1
	.global	FILL_EYE_OK
	.align	2
	.type	FILL_EYE_OK, %object
	.size	FILL_EYE_OK, 4
FILL_EYE_OK:
	.space	4
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	put_stone
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_stone, %function
put_stone:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-116]
	bl	flip_color
	str	r0, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L56
	ldr	r3, .L79+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L76
.L56:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L58
.L66:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #44
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #44
	ldr	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	str	r1, [r3]
	ldr	r2, .L79+8
	ldr	r3, [fp, #-80]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r2, .L79+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L59:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	bne	.L60
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L60:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	beq	.L78
	sub	r2, fp, #104
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	count_liberty
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	str	r1, [r3]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #44
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bne	.L64
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	bne	.L64
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-84]
.L64:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	bne	.L63
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	ble	.L63
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
	b	.L63
.L78:
	nop
.L63:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L58:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L66
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L67
	mov	r3, #1
	b	.L76
.L67:
	ldr	r3, .L79+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bne	.L68
	mov	r3, #2
	b	.L76
.L68:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	cmp	r3, #4
	bne	.L69
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L69
	mov	r3, #3
	b	.L76
.L69:
	ldr	r2, .L79+12
	ldr	r3, [fp, #-112]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L70
	mov	r3, #4
	b	.L76
.L70:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L71
.L73:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #44
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bne	.L72
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L72
	ldr	r2, .L79+8
	ldr	r3, [fp, #-80]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, .L79+12
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L72
	ldr	r2, .L79+8
	ldr	r3, [fp, #-80]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	take_stone
.L72:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L71:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L73
	ldr	r1, .L79+12
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-116]
	str	r2, [r1, r3, lsl #2]
	sub	r2, fp, #104
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	count_liberty
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	bne	.L74
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bne	.L74
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	bne	.L74
	ldr	r2, .L79+4
	ldr	r3, [fp, #-84]
	str	r3, [r2]
	b	.L75
.L74:
	ldr	r3, .L79+4
	mov	r2, #0
	str	r2, [r3]
.L75:
	mov	r3, #0
.L76:
	ldr	r2, .L79
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC20
	.word	ko_z
	.word	dir4
	.word	board
	.size	put_stone, .-put_stone
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	count_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_score, %function
count_score:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L82
.L90:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L83
.L89:
	ldr	r3, [fp, #-80]
	add	r2, r3, #1
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-44]
	ldr	r2, .L98+4
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L97
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L86
.L87:
	ldr	r2, .L98+8
	ldr	r3, [fp, #-72]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L98+4
	ldr	r2, [r2, r3, lsl #2]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-20]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-20]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L86:
	ldr	r3, [fp, #-72]
	cmp	r3, #3
	ble	.L87
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L88
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L88:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L85
.L97:
	nop
.L85:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L83:
	ldr	r3, [fp, #-80]
	cmp	r3, #8
	ble	.L89
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L82:
	ldr	r3, [fp, #-76]
	cmp	r3, #8
	ble	.L90
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2d
	ldr	r3, .L98+12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	mov	r3, #1
	str	r3, [fp, #-68]
.L91:
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	bne	.L93
	ldr	r3, [fp, #-68]
	rsb	r3, r3, #0
	str	r3, [fp, #-68]
.L93:
	ldr	r3, [fp, #-68]
	ldr	r2, .L98
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC21
	.word	board
	.word	dir4
	.word	komi
	.size	count_score, .-count_score
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Err! prob_sum=%d,sum=%d,r=%d,r=%d\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	playout
	.syntax unified
	.arm
	.fpu softvfp
	.type	playout, %function
playout:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1040]
	ldr	r3, .L130
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1040]
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1032]
	ldr	r3, .L130+4
	str	r3, [fp, #-996]
	ldr	r3, .L130+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L130+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L101
.L122:
	mov	r3, #0
	str	r3, [fp, #-1024]
	mov	r3, #0
	str	r3, [fp, #-1020]
	mov	r3, #0
	str	r3, [fp, #-1012]
	b	.L102
.L107:
	mov	r3, #0
	str	r3, [fp, #-1016]
	b	.L103
.L106:
	ldr	r3, [fp, #-1016]
	add	r2, r3, #1
	ldr	r3, [fp, #-1012]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-984]
	ldr	r2, .L130+12
	ldr	r3, [fp, #-984]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L126
	ldr	r3, [fp, #-1024]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-984]
	str	r2, [r3, #-972]
	mov	r3, #100
	str	r3, [fp, #-980]
	ldr	r3, [fp, #-1024]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-980]
	str	r2, [r3, #-968]
	ldr	r2, [fp, #-1020]
	ldr	r3, [fp, #-980]
	add	r3, r2, r3
	str	r3, [fp, #-1020]
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	str	r3, [fp, #-1024]
	b	.L105
.L126:
	nop
.L105:
	ldr	r3, [fp, #-1016]
	add	r3, r3, #1
	str	r3, [fp, #-1016]
.L103:
	ldr	r3, [fp, #-1016]
	cmp	r3, #8
	ble	.L106
	ldr	r3, [fp, #-1012]
	add	r3, r3, #1
	str	r3, [fp, #-1012]
.L102:
	ldr	r3, [fp, #-1012]
	cmp	r3, #8
	ble	.L107
.L117:
	mov	r3, #0
	str	r3, [fp, #-1004]
	ldr	r3, [fp, #-1024]
	cmp	r3, #0
	bne	.L108
	mov	r3, #0
	str	r3, [fp, #-1008]
	b	.L109
.L108:
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-1020]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-992]
	mov	r3, #0
	str	r3, [fp, #-1000]
	mov	r3, #0
	str	r3, [fp, #-1004]
	b	.L110
.L113:
	ldr	r3, [fp, #-1004]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-968]
	ldr	r2, [fp, #-1000]
	add	r3, r2, r3
	str	r3, [fp, #-1000]
	ldr	r2, [fp, #-1000]
	ldr	r3, [fp, #-992]
	cmp	r2, r3
	bgt	.L127
	ldr	r3, [fp, #-1004]
	add	r3, r3, #1
	str	r3, [fp, #-1004]
.L110:
	ldr	r2, [fp, #-1004]
	ldr	r3, [fp, #-1024]
	cmp	r2, r3
	blt	.L113
	b	.L112
.L127:
	nop
.L112:
	ldr	r2, [fp, #-1004]
	ldr	r3, [fp, #-1024]
	cmp	r2, r3
	bne	.L114
	ldr	r3, [fp, #-1004]
	str	r3, [sp]
	ldr	r3, [fp, #-992]
	ldr	r2, [fp, #-1000]
	ldr	r1, [fp, #-1020]
	ldr	r0, .L130+16
	bl	prt
	mov	r0, #0
	bl	exit
.L114:
	ldr	r3, [fp, #-1004]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-972]
	str	r3, [fp, #-1008]
.L109:
	mov	r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1008]
	bl	put_stone
	str	r0, [fp, #-988]
	ldr	r3, [fp, #-988]
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-1004]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-968]
	ldr	r2, [fp, #-1020]
	sub	r3, r2, r3
	str	r3, [fp, #-1020]
	ldr	r3, [fp, #-1024]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-972]
	ldr	r3, [fp, #-1004]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-972]
	ldr	r3, [fp, #-1024]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-968]
	ldr	r3, [fp, #-1004]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-968]
	ldr	r3, [fp, #-1024]
	sub	r3, r3, #1
	str	r3, [fp, #-1024]
	b	.L117
.L128:
	nop
	ldr	r3, .L130+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L118
	ldr	r3, .L130+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L130+24
	str	r2, [r1]
	ldr	r1, .L130+28
	ldr	r2, [fp, #-1008]
	str	r2, [r1, r3, lsl #2]
.L118:
	ldr	r3, .L130+32
	ldr	r3, [r3]
	cmp	r3, #1000
	bge	.L119
	ldr	r3, .L130+32
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L130+32
	str	r2, [r1]
	ldr	r1, .L130+36
	ldr	r2, [fp, #-1008]
	str	r2, [r1, r3, lsl #2]
.L119:
	ldr	r3, [fp, #-1008]
	cmp	r3, #0
	bne	.L120
	ldr	r3, [fp, #-1032]
	cmp	r3, #0
	beq	.L129
.L120:
	ldr	r3, [fp, #-1008]
	str	r3, [fp, #-1032]
	ldr	r0, [fp, #-1036]
	bl	flip_color
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L101:
	ldr	r2, [fp, #-1028]
	ldr	r3, [fp, #-996]
	cmp	r2, r3
	blt	.L122
	b	.L121
.L129:
	nop
.L121:
	ldr	r0, [fp, #-1040]
	bl	count_score
	mov	r3, r0
	ldr	r2, .L130
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L124
	bl	__stack_chk_fail
.L124:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L131:
	.align	2
.L130:
	.word	.LC23
	.word	281
	.word	all_playouts
	.word	board
	.word	.LC22
	.word	flag_test_playout
	.word	moves
	.word	record
	.word	depth
	.word	path
	.size	playout, .-playout
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	primitive_monte_calro
	.syntax unified
	.arm
	.fpu softvfp
	.type	primitive_monte_calro, %function
primitive_monte_calro:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1056]
	ldr	r3, .L149
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #30
	str	r3, [fp, #-1028]
	mov	r3, #0
	str	r3, [fp, #-1048]
	ldr	r3, .L149+4
	ldr	r3, [r3]
	str	r3, [fp, #-1024]
	ldr	r2, .L149+8
	sub	r3, fp, #984
	mov	r1, r2
	mov	r2, #484
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	ldr	r3, .L149+12
	str	r2, [fp, #-1004]
	str	r3, [fp, #-1000]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L133
.L143:
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L134
.L142:
	ldr	r3, [fp, #-1044]
	add	r2, r3, #1
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-1020]
	ldr	r2, .L149+8
	ldr	r3, [fp, #-1020]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L147
	mov	r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-1056]
	ldr	r0, [fp, #-1020]
	bl	put_stone
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bne	.L148
	mov	r3, #0
	str	r3, [fp, #-1032]
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L138
.L139:
	ldr	r3, .L149+4
	ldr	r3, [r3]
	str	r3, [fp, #-1012]
	ldr	r2, .L149+8
	sub	r3, fp, #500
	mov	r1, r2
	mov	r2, #484
	mov	r0, r3
	bl	memcpy
	ldr	r0, [fp, #-1056]
	bl	flip_color
	mov	r3, r0
	mov	r0, r3
	bl	playout
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-1008]
	ldr	r2, [fp, #-1032]
	ldr	r3, [fp, #-1008]
	add	r3, r2, r3
	str	r3, [fp, #-1032]
	ldr	r2, .L149+4
	ldr	r3, [fp, #-1012]
	str	r3, [r2]
	ldr	r3, .L149+8
	mov	r0, r3
	sub	r3, fp, #500
	mov	r2, #484
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L138:
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1028]
	cmp	r2, r3
	blt	.L139
	ldr	r0, [fp, #-1032]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-1028]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-996]
	str	r3, [fp, #-992]
	sub	r3, fp, #1004
	ldmia	r3, {r2-r3}
	sub	r1, fp, #996
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L140
	sub	r3, fp, #996
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-1004]
	str	r3, [fp, #-1000]
	ldr	r3, [fp, #-1020]
	str	r3, [fp, #-1048]
.L140:
	ldr	r2, .L149+4
	ldr	r3, [fp, #-1024]
	str	r3, [r2]
	ldr	r3, .L149+8
	mov	r0, r3
	sub	r3, fp, #984
	mov	r2, #484
	mov	r1, r3
	bl	memcpy
	b	.L136
.L147:
	nop
	b	.L136
.L148:
	nop
.L136:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L134:
	ldr	r3, [fp, #-1044]
	cmp	r3, #8
	ble	.L142
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L133:
	ldr	r3, [fp, #-1040]
	cmp	r3, #8
	ble	.L143
	ldr	r3, [fp, #-1048]
	ldr	r2, .L149
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L145
	bl	__stack_chk_fail
.L145:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L150:
	.align	2
.L149:
	.word	.LC24
	.word	ko_z
	.word	board
	.word	-1067909120
	.size	primitive_monte_calro, .-primitive_monte_calro
	.comm	node,39520000,8
	.global	node_num
	.bss
	.align	2
	.type	node_num, %object
	.size	node_num, 4
node_num:
	.space	4
	.global	NODE_EMPTY
	.section	.rodata
	.align	2
	.type	NODE_EMPTY, %object
	.size	NODE_EMPTY, 4
NODE_EMPTY:
	.word	-1
	.global	ILLEGAL_Z
	.align	2
	.type	ILLEGAL_Z, %object
	.size	ILLEGAL_Z, 4
ILLEGAL_Z:
	.word	-1
	.text
	.align	2
	.global	add_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_child, %function
add_child:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r1, r3, #16
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #24
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r1, r3, #32
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mvn	r0, #0
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #40
	str	r0, [r3]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r1, r1, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	add_child, .-add_child
	.section	.rodata
	.align	2
.LC25:
	.ascii	"node over Err\012\000"
	.global	__aeabi_dcmpge
	.text
	.align	2
	.global	create_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_node, %function
create_node:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	ldr	r3, .L173
	ldr	r3, [r3]
	ldr	r2, .L173+4
	cmp	r3, r2
	bne	.L153
	ldr	r0, .L173+8
	bl	prt
	mov	r0, #0
	bl	exit
.L153:
	ldr	r3, .L173
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L173+12
	add	r3, r3, r2
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	mov	r2, #0
	str	r2, [r3, #3944]
	ldr	r3, [fp, #-72]
	mov	r2, #0
	str	r2, [r3, #3948]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L154
.L159:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L155
.L158:
	ldr	r3, [fp, #-92]
	add	r2, r3, #1
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-64]
	ldr	r2, .L173+16
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L170
	mov	r2, #0
	mov	r3, #0
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	add_child
	b	.L157
.L170:
	nop
.L157:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L155:
	ldr	r3, [fp, #-92]
	cmp	r3, #8
	ble	.L158
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L154:
	ldr	r3, [fp, #-88]
	cmp	r3, #8
	ble	.L159
	mov	r2, #0
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	add_child
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L160
.L168:
	ldr	r1, [fp, #-72]
	ldr	r3, [fp, #-84]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L161
.L165:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L171
	ldr	r3, [fp, #-68]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	b	.L164
.L171:
	nop
.L164:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L161:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L165
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	beq	.L172
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	sub	ip, fp, #52
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #8
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	ip, r0
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	lr, r3
	sub	ip, fp, #52
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	b	.L167
.L172:
	nop
.L167:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L160:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L168
	ldr	r3, .L173
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L173
	str	r3, [r2]
	ldr	r3, .L173
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L174:
	.align	2
.L173:
	.word	node_num
	.word	10000
	.word	.LC25
	.word	node
	.word	board
	.size	create_node, .-create_node
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC26:
	.ascii	"Err! select\012\000"
	.text
	.align	2
	.global	select_best_ucb
	.syntax unified
	.arm
	.fpu softvfp
	.type	select_best_ucb, %function
select_best_ucb:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #96
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L188
	add	r3, r3, r2
	str	r3, [fp, #-100]
	mvn	r3, #0
	str	r3, [fp, #-108]
	mov	r2, #0
	ldr	r3, .L188+4
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L176
.L183:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	mvn	r2, #0
	cmp	r3, r2
	beq	.L187
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L179
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	add	r3, r3, #9984
	add	r3, r3, #16
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L180
.L179:
	ldr	r2, .L188+8
	ldr	r3, .L188+12
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L188+16
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-96]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L181
	ldr	r3, [fp, #-116]
	rsb	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #3944]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L181:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-96]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #3944]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L188+20
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L180:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L178
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-108]
	b	.L178
.L187:
	nop
.L178:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L176:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L183
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L184
	ldr	r0, .L188+24
	bl	prt
	mov	r0, #0
	bl	exit
.L184:
	ldr	r3, [fp, #-108]
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L189:
	.align	2
.L188:
	.word	node
	.word	-1064355840
	.word	858993459
	.word	1070805811
	.word	1084715008
	.word	1072693248
	.word	.LC26
	.size	select_best_ucb, .-select_best_ucb
	.section	.rodata
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_rave
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_rave, %function
update_rave:
	@ args = 8, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #520
	str	r0, [fp, #-520]
	str	r1, [fp, #-524]
	str	r2, [fp, #-528]
	ldr	r3, .L202
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-524]
	str	r3, [fp, #-512]
	sub	r3, fp, #500
	mov	r2, #484
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-528]
	str	r3, [fp, #-516]
	b	.L191
.L193:
	ldr	r2, .L202+4
	ldr	r3, [fp, #-516]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-504]
	ldr	r3, [fp, #-504]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-488]
	cmp	r3, #0
	bne	.L192
	ldr	r3, [fp, #-504]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-512]
	str	r2, [r3, #-488]
.L192:
	ldr	r0, [fp, #-512]
	bl	flip_color
	str	r0, [fp, #-512]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
.L191:
	ldr	r3, .L202+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-516]
	cmp	r2, r3
	blt	.L193
	mov	r3, #0
	str	r3, [fp, #-500]
	mov	r3, #0
	str	r3, [fp, #-516]
	b	.L194
.L198:
	ldr	r2, [fp, #-516]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-520]
	add	r3, r2, r3
	str	r3, [fp, #-508]
	ldr	r3, [fp, #-508]
	ldr	r3, [r3]
	mvn	r2, #0
	cmp	r3, r2
	beq	.L200
	ldr	r3, [fp, #-508]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-488]
	ldr	r2, [fp, #-524]
	cmp	r2, r3
	bne	.L201
	ldr	r3, [fp, #-508]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-508]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldmib	fp, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-508]
	ldr	r3, [r3, #16]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-508]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-508]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-508]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-520]
	ldr	r3, [r3, #3948]
	add	r2, r3, #1
	ldr	r3, [fp, #-520]
	str	r2, [r3, #3948]
	b	.L196
.L200:
	nop
	b	.L196
.L201:
	nop
.L196:
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
.L194:
	ldr	r3, [fp, #-520]
	ldr	r3, [r3]
	ldr	r2, [fp, #-516]
	cmp	r2, r3
	blt	.L198
	nop
	ldr	r3, .L202
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L199
	bl	__stack_chk_fail
.L199:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L203:
	.align	2
.L202:
	.word	.LC27
	.word	path
	.word	depth
	.size	update_rave, .-update_rave
	.align	2
	.global	search_uct
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_uct, %function
search_uct:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L215
	add	r3, r3, r2
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
.L207:
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	select_best_ucb
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	put_stone
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L214
	mvn	r2, #0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	b	.L207
.L214:
	nop
	ldr	r3, .L215+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L215+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L215+4
	str	r2, [r1]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	ldr	r1, .L215+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ble	.L208
	ldr	r3, .L215+4
	ldr	r3, [r3]
	cmp	r3, #1000
	beq	.L208
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L209
	ldr	r3, .L215+4
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L209
	ldr	r3, .L215+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L215+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L209
.L208:
	ldr	r0, [fp, #-48]
	bl	flip_color
	mov	r3, r0
	mov	r0, r3
	bl	playout
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-40]
	b	.L210
.L209:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #32]
	mvn	r2, #0
	cmp	r3, r2
	bne	.L211
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	create_node
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3, #32]
.L211:
	ldr	r0, [fp, #-48]
	bl	flip_color
	mov	r2, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #32]
	mov	r1, r3
	mov	r0, r2
	bl	search_uct
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-40]
.L210:
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-36]
	bl	update_rave
	ldr	r3, [fp, #-32]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #3944]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3, #3944]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L216:
	.align	2
.L215:
	.word	node
	.word	depth
	.word	path
	.size	search_uct, .-search_uct
	.global	uct_loop
	.data
	.align	2
	.type	uct_loop, %object
	.size	uct_loop, 4
uct_loop:
	.word	1000
	.section	.rodata
	.align	2
.LC28:
	.ascii	"%2d:z=%2d,rate=%6.3f,games=%4d, rave_r=%6.3f,g=%4d\012"
	.ascii	"\000"
	.align	2
.LC29:
	.ascii	"best_z=%d,rate=%6.3f,games=%4d,playouts=%d,nodes=%d"
	.ascii	"\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_best_uct
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_best_uct, %function
get_best_uct:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #572
	str	r0, [fp, #-544]
	ldr	r3, .L226
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-532]
	ldr	r3, .L226+4
	str	r3, [fp, #-528]
	mov	r3, #0
	str	r3, [fp, #-524]
	ldr	r3, .L226+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L218
	ldr	r3, .L226+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L226+12
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-524]
.L218:
	ldr	r3, .L226+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-524]
	bl	create_node
	str	r0, [fp, #-520]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L219
.L220:
	ldr	r3, .L226+20
	ldr	r3, [r3]
	str	r3, [fp, #-504]
	ldr	r2, .L226+24
	sub	r3, fp, #500
	mov	r1, r2
	mov	r2, #484
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L226+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-520]
	ldr	r0, [fp, #-544]
	bl	search_uct
	ldr	r2, .L226+20
	ldr	r3, [fp, #-504]
	str	r3, [r2]
	ldr	r3, .L226+24
	mov	r0, r3
	sub	r3, fp, #500
	mov	r2, #484
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L219:
	ldr	r3, .L226+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	blt	.L220
	ldr	r2, [fp, #-520]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L226+36
	add	r3, r3, r2
	str	r3, [fp, #-516]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L221
.L223:
	ldr	r2, [fp, #-536]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-516]
	add	r3, r2, r3
	str	r3, [fp, #-508]
	ldr	r3, [fp, #-508]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-528]
	cmp	r2, r3
	bge	.L222
	ldr	r3, [fp, #-536]
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-508]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-528]
.L222:
	ldr	r3, [fp, #-508]
	ldr	r3, [r3]
	mov	r0, r3
	bl	get81
	mov	r4, r0
	ldr	r3, [fp, #-508]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-508]
	ldr	ip, [r1, #4]
	ldr	r1, [fp, #-508]
	add	r1, r1, #24
	ldmia	r1, {r0-r1}
	ldr	lr, [fp, #-508]
	ldr	lr, [lr, #16]
	str	lr, [sp, #24]
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	str	ip, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, [fp, #-536]
	ldr	r0, .L226+40
	bl	prt
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L221:
	ldr	r3, [fp, #-516]
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	blt	.L223
	ldr	r1, [fp, #-516]
	ldr	r2, [fp, #-532]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-512]
	ldr	r0, [fp, #-512]
	bl	get81
	mov	ip, r0
	ldr	r1, [fp, #-516]
	ldr	r2, [fp, #-532]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldr	r1, .L226+44
	ldr	r1, [r1]
	ldr	r0, .L226+16
	ldr	r0, [r0]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	ldr	r1, [fp, #-528]
	str	r1, [sp]
	mov	r1, ip
	ldr	r0, .L226+48
	bl	prt
	ldr	r3, [fp, #-512]
	ldr	r2, .L226
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L225
	bl	__stack_chk_fail
.L225:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L227:
	.align	2
.L226:
	.word	.LC30
	.word	-999
	.word	moves
	.word	record
	.word	node_num
	.word	ko_z
	.word	board
	.word	depth
	.word	uct_loop
	.word	node
	.word	.LC28
	.word	all_playouts
	.word	.LC29
	.size	get_best_uct, .-get_best_uct
	.align	2
	.global	init_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_board, %function
init_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
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L229
.L230:
	ldr	r2, .L235
	ldr	r3, [fp, #-16]
	mov	r1, #3
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L229:
	ldr	r3, [fp, #-16]
	cmp	r3, #120
	ble	.L230
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L231
.L234:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L232
.L233:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	mov	r3, r0
	ldr	r2, .L235
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L232:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L233
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L231:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L234
	ldr	r3, .L235+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L235+8
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L236:
	.align	2
.L235:
	.word	board
	.word	moves
	.word	ko_z
	.size	init_board, .-init_board
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Err!\012\000"
	.text
	.align	2
	.global	add_moves
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_moves, %function
add_moves:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	put_stone
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L238
	ldr	r0, .L239
	bl	prt
	mov	r0, #0
	bl	exit
.L238:
	ldr	r3, .L239+4
	ldr	r3, [r3]
	ldr	r1, .L239+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L239+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L239+4
	str	r3, [r2]
	bl	print_board
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L240:
	.align	2
.L239:
	.word	.LC31
	.word	moves
	.word	record
	.size	add_moves, .-add_moves
	.global	SEARCH_PRIMITIVE
	.section	.rodata
	.align	2
	.type	SEARCH_PRIMITIVE, %object
	.size	SEARCH_PRIMITIVE, 4
SEARCH_PRIMITIVE:
	.space	4
	.global	SEARCH_UCT
	.align	2
	.type	SEARCH_UCT, %object
	.size	SEARCH_UCT, 4
SEARCH_UCT:
	.word	1
	.align	2
.LC32:
	.ascii	"z=%s,color=%d,moves=%d,playouts=%d, %.1f sec(%.0f p"
	.ascii	"o/sec),depth=%d\012\000"
	.text
	.align	2
	.global	get_computer_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_computer_move, %function
get_computer_move:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #60
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	bl	clock
	str	r0, [fp, #-32]
	ldr	r3, .L245
	mov	r2, #0
	str	r2, [r3]
	mov	r2, #1
	ldr	r3, [fp, #-44]
	cmp	r3, r2
	bne	.L242
	ldr	r0, [fp, #-40]
	bl	get_best_uct
	str	r0, [fp, #-36]
	b	.L243
.L242:
	ldr	r0, [fp, #-40]
	bl	primitive_monte_calro
	str	r0, [fp, #-36]
.L243:
	bl	clock
	mov	r3, r0
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L245+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	get_char_z
	mov	r6, r0
	ldr	r3, .L245+8
	ldr	r5, [r3]
	ldr	r3, .L245
	ldr	r4, [r3]
	ldr	r3, .L245
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L245+12
	ldr	r1, [r1]
	str	r1, [sp, #24]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r4, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-40]
	mov	r1, r6
	ldr	r0, .L245+16
	bl	prt
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L246:
	.align	2
.L245:
	.word	all_playouts
	.word	1093567616
	.word	moves
	.word	depth
	.word	.LC32
	.size	get_computer_move, .-get_computer_move
	.section	.rodata
	.align	2
.LC33:
	.ascii	"(;GM[1]SZ[%d]KM[%.1f]PB[]PW[]\012\000"
	.align	2
.LC35:
	.ascii	";%s\000"
	.align	2
.LC36:
	.ascii	"[]\000"
	.align	2
.LC37:
	.ascii	"[%c%c]\000"
	.align	2
.LC38:
	.ascii	")\012\000"
	.align	2
.LC34:
	.word	.LC5
	.word	.LC6
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_sgf
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_sgf, %function
print_sgf:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L254
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L254+4
	ldmia	r3, {r2-r3}
	mov	r1, #9
	ldr	r0, .L254+8
	bl	prt
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L248
.L252:
	ldr	r2, .L254+12
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L254+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #28
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, .L254+20
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-12]
	mov	r1, r3
	ldr	r0, .L254+24
	bl	prt
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L249
	ldr	r0, .L254+28
	bl	prt
	b	.L250
.L249:
	ldr	r3, [fp, #-20]
	add	r1, r3, #96
	ldr	r3, [fp, #-24]
	add	r3, r3, #96
	mov	r2, r3
	ldr	r0, .L254+32
	bl	prt
.L250:
	ldr	r3, [fp, #-32]
	add	r1, r3, #1
	ldr	r3, .L254+36
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L251
	ldr	r0, .L254+40
	bl	prt
.L251:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L248:
	ldr	r3, .L254+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L252
	ldr	r0, .L254+48
	bl	prt
	nop
	ldr	r3, .L254
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L253
	bl	__stack_chk_fail
.L253:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L255:
	.align	2
.L254:
	.word	.LC39
	.word	komi
	.word	.LC33
	.word	record
	.word	780903145
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	1717986919
	.word	.LC15
	.word	moves
	.word	.LC38
	.size	print_sgf, .-print_sgf
	.align	2
	.global	selfplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	selfplay, %function
selfplay:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-16]
.L262:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L257
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L258
.L257:
	mov	r3, #1
	str	r3, [fp, #-12]
.L258:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	get_computer_move
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	add_moves
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L259
	ldr	r3, .L265
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L259
	ldr	r3, .L265
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L265+4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L263
.L259:
	ldr	r3, .L265
	ldr	r3, [r3]
	cmp	r3, #300
	bgt	.L264
	ldr	r0, [fp, #-16]
	bl	flip_color
	str	r0, [fp, #-16]
	b	.L262
.L263:
	nop
	b	.L260
.L264:
	nop
.L260:
	bl	print_sgf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L266:
	.align	2
.L265:
	.word	moves
	.word	record
	.size	selfplay, .-selfplay
	.align	2
	.global	test_playout
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_playout, %function
test_playout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L268
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #1
	bl	playout
	bl	print_board
	bl	print_sgf
	nop
	pop	{fp, pc}
.L269:
	.align	2
.L268:
	.word	flag_test_playout
	.size	test_playout, .-test_playout
	.section	.rodata
	.align	2
.LC40:
	.ascii	"boardsize\000"
	.align	2
.LC41:
	.ascii	"= \012\012\000"
	.align	2
.LC42:
	.ascii	"clear_board\000"
	.align	2
.LC43:
	.ascii	"quit\000"
	.align	2
.LC44:
	.ascii	"protocol_version\000"
	.align	2
.LC45:
	.ascii	"= 2\012\012\000"
	.align	2
.LC46:
	.ascii	"name\000"
	.align	2
.LC47:
	.ascii	"= your_program_name\012\012\000"
	.align	2
.LC48:
	.ascii	"version\000"
	.align	2
.LC49:
	.ascii	"= 0.0.1\012\012\000"
	.align	2
.LC50:
	.ascii	"list_commands\000"
	.align	2
.LC51:
	.ascii	"= boardsize\012clear_board\012quit\012protocol_vers"
	.ascii	"ion\012name\012version\012list_commands\012komi\012"
	.ascii	"genmove\012play\012\012\000"
	.align	2
.LC52:
	.ascii	"komi\000"
	.align	2
.LC53:
	.ascii	"genmove\000"
	.align	2
.LC54:
	.ascii	"= %s\012\012\000"
	.align	2
.LC55:
	.ascii	"play\000"
	.align	2
.LC56:
	.ascii	"? unknown_command\012\012\000"
	.align	2
.LC57:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gtp_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	gtp_loop, %function
gtp_loop:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	ldr	r3, .L297
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4
	sub	r3, r3, #264
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r3, .L297+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, .L297+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
.L292:
	ldr	r3, .L297+12
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L294
	mov	r3, #0
	str	r3, [fp, #-1056]
	sub	r2, fp, #268
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1068]
	b	.L273
.L276:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1056]
	lsl	r2, r2, #8
	add	r3, r3, r2
	ldr	r1, [fp, #-1068]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1056]
	add	r3, r3, #1
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #3
	beq	.L295
	sub	r3, fp, #268
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1068]
.L273:
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	bne	.L276
	b	.L275
.L295:
	nop
.L275:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+16
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L277
	ldr	r0, .L297+20
	bl	send_gtp
	b	.L292
.L277:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+24
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L279
	bl	init_board
	ldr	r0, .L297+20
	bl	send_gtp
	b	.L292
.L279:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+28
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L296
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+32
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L281
	ldr	r0, .L297+36
	bl	send_gtp
	b	.L292
.L281:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+40
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L282
	ldr	r0, .L297+44
	bl	send_gtp
	b	.L292
.L282:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+48
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L283
	ldr	r0, .L297+52
	bl	send_gtp
	b	.L292
.L283:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+56
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L284
	ldr	r0, .L297+60
	bl	send_gtp
	b	.L292
.L284:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+64
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L285
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	add	r3, r3, #256
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L297+68
	stm	r1, {r2-r3}
	ldr	r0, .L297+20
	bl	send_gtp
	b	.L292
.L285:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+72
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L286
	mov	r3, #1
	str	r3, [fp, #-1052]
	ldrb	r3, [fp, #-780]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #119
	bne	.L287
	mov	r3, #2
	str	r3, [fp, #-1052]
.L287:
	mov	r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	get_computer_move
	str	r0, [fp, #-1060]
	ldr	r1, [fp, #-1052]
	ldr	r0, [fp, #-1060]
	bl	add_moves
	ldr	r0, [fp, #-1060]
	bl	get_char_z
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L297+76
	bl	send_gtp
	b	.L292
.L286:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L297+80
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L288
	mov	r3, #1
	str	r3, [fp, #-1048]
	ldrb	r3, [fp, #-780]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #119
	bne	.L289
	mov	r3, #2
	str	r3, [fp, #-1048]
.L289:
	ldrb	r3, [fp, #-524]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #96
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1044]
	cmp	r3, #104
	ble	.L290
	ldr	r3, [fp, #-1064]
	sub	r3, r3, #1
	str	r3, [fp, #-1064]
.L290:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	add	r3, r3, #512
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	rsb	r3, r3, #10
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	get_z
	str	r0, [fp, #-1060]
	ldrb	r3, [fp, #-524]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #112
	bne	.L291
	mov	r3, #0
	str	r3, [fp, #-1060]
.L291:
	ldr	r1, [fp, #-1048]
	ldr	r0, [fp, #-1060]
	bl	add_moves
	ldr	r0, .L297+20
	bl	send_gtp
	b	.L292
.L288:
	ldr	r0, .L297+84
	bl	send_gtp
	b	.L292
.L294:
	nop
	b	.L272
.L296:
	nop
.L272:
	nop
	ldr	r3, .L297
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L293
	bl	__stack_chk_fail
.L293:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L298:
	.align	2
.L297:
	.word	.LC57
	.word	stdout
	.word	stderr
	.word	stdin
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	komi
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.size	gtp_loop, .-gtp_loop
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	init_board
	bl	gtp_loop
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.local	buf.6571
	.comm	buf.6571,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
