	.file	"75137359.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	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
	.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
	.globl	flip_color
	.type	flip_color, @function
flip_color:
.LFB8:
	.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
.LFE8:
	.size	flip_color, .-flip_color
	.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:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 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	.L9
.L13:
	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	.L14
	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	.L12
	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
.L12:
	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	.L11
	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	.L11
.L14:
	nop
.L11:
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	count_liberty_sub, .-count_liberty_sub
	.globl	count_liberty
	.type	count_liberty, @function
count_liberty:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	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	.L16
.L17:
	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
.L16:
	cmp	DWORD PTR -4[rbp], 120
	jle	.L17
	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
.LFE10:
	.size	count_liberty, .-count_liberty
	.globl	take_stone
	.type	take_stone, @function
take_stone:
.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, 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	.L19
.L21:
	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	.L20
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	take_stone
.L20:
	add	DWORD PTR -8[rbp], 1
.L19:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 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	.L23
	mov	DWORD PTR ko_z[rip], 0
	mov	eax, 0
	jmp	.L43
.L23:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L25
.L33:
	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	.L26
	add	DWORD PTR -108[rbp], 1
.L26:
	cmp	DWORD PTR -68[rbp], 3
	jne	.L27
	add	DWORD PTR -104[rbp], 1
.L27:
	cmp	DWORD PTR -68[rbp], 0
	je	.L45
	cmp	DWORD PTR -68[rbp], 3
	je	.L45
	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	.L31
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jne	.L31
	mov	eax, DWORD PTR -112[rbp]
	add	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -92[rbp], eax
.L31:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jne	.L30
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jle	.L30
	add	DWORD PTR -100[rbp], 1
	jmp	.L30
.L45:
	nop
.L30:
	add	DWORD PTR -88[rbp], 1
.L25:
	cmp	DWORD PTR -88[rbp], 3
	jle	.L33
	cmp	DWORD PTR -96[rbp], 0
	jne	.L34
	cmp	DWORD PTR -108[rbp], 0
	jne	.L34
	cmp	DWORD PTR -100[rbp], 0
	jne	.L34
	mov	eax, 1
	jmp	.L43
.L34:
	mov	eax, DWORD PTR ko_z[rip]
	cmp	DWORD PTR -132[rbp], eax
	jne	.L35
	mov	eax, 2
	jmp	.L43
.L35:
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cmp	eax, 4
	jne	.L36
	cmp	DWORD PTR -140[rbp], 0
	je	.L36
	mov	eax, 3
	jmp	.L43
.L36:
	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	.L37
	mov	eax, 4
	jmp	.L43
.L37:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L38
.L40:
	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	.L39
	cmp	DWORD PTR -80[rbp], 1
	jne	.L39
	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	.L39
	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
.L39:
	add	DWORD PTR -88[rbp], 1
.L38:
	cmp	DWORD PTR -88[rbp], 3
	jle	.L40
	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	.L41
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, 1
	jne	.L41
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 1
	jne	.L41
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR ko_z[rip], eax
	jmp	.L42
.L41:
	mov	DWORD PTR ko_z[rip], 0
.L42:
	mov	eax, 0
.L43:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	put_stone, .-put_stone
	.section	.rodata
.LC0:
	.string	"."
.LC1:
	.string	"X"
.LC2:
	.string	"O"
.LC3:
	.string	"#"
.LC4:
	.string	"   "
.LC5:
	.string	"%d"
.LC6:
	.string	"%2d "
.LC7:
	.string	"%s"
.LC8:
	.string	"  ko_z=%d,moves=%d"
	.text
	.globl	print_board
	.type	print_board, @function
print_board:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -72[rbp], 1
.L47:
	cmp	DWORD PTR -72[rbp], 8
	jle	.L48
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L49
.L53:
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L50
.L51:
	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, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -72[rbp], 1
.L50:
	cmp	DWORD PTR -72[rbp], 8
	jle	.L51
	cmp	DWORD PTR -68[rbp], 4
	jne	.L52
	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, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L52:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -68[rbp], 1
.L49:
	cmp	DWORD PTR -68[rbp], 8
	jle	.L53
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print_board, .-print_board
	.globl	count_score
	.type	count_score, @function
count_score:
.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, 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	.L56
.L64:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L57
.L63:
	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	.L71
	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	.L60
.L61:
	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
.L60:
	cmp	DWORD PTR -80[rbp], 3
	jle	.L61
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	je	.L62
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L62
	add	DWORD PTR -72[rbp], 1
.L62:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	je	.L59
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jne	.L59
	add	DWORD PTR -68[rbp], 1
	jmp	.L59
.L71:
	nop
.L59:
	add	DWORD PTR -88[rbp], 1
.L57:
	cmp	DWORD PTR -88[rbp], 8
	jle	.L63
	add	DWORD PTR -84[rbp], 1
.L56:
	cmp	DWORD PTR -84[rbp], 8
	jle	.L64
	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	.L65
	mov	DWORD PTR -76[rbp], 1
.L65:
	cmp	DWORD PTR -100[rbp], 2
	jne	.L67
	neg	DWORD PTR -76[rbp]
.L67:
	mov	eax, DWORD PTR -76[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	count_score, .-count_score
	.globl	playout
	.type	playout, @function
playout:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -548[rbp]
	mov	DWORD PTR -540[rbp], eax
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -508[rbp], 281
	mov	eax, DWORD PTR all_playouts[rip]
	add	eax, 1
	mov	DWORD PTR all_playouts[rip], eax
	mov	DWORD PTR -532[rbp], 0
	jmp	.L73
.L87:
	mov	DWORD PTR -528[rbp], 0
	mov	DWORD PTR -520[rbp], 0
	jmp	.L74
.L79:
	mov	DWORD PTR -524[rbp], 0
	jmp	.L75
.L78:
	mov	eax, DWORD PTR -520[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -524[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -500[rbp], eax
	mov	eax, DWORD PTR -500[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L91
	mov	eax, DWORD PTR -528[rbp]
	cdqe
	mov	edx, DWORD PTR -500[rbp]
	mov	DWORD PTR -496[rbp+rax*4], edx
	add	DWORD PTR -528[rbp], 1
	jmp	.L77
.L91:
	nop
.L77:
	add	DWORD PTR -524[rbp], 1
.L75:
	cmp	DWORD PTR -524[rbp], 8
	jle	.L78
	add	DWORD PTR -520[rbp], 1
.L74:
	cmp	DWORD PTR -520[rbp], 8
	jle	.L79
	mov	DWORD PTR -512[rbp], 0
.L84:
	cmp	DWORD PTR -528[rbp], 0
	jne	.L80
	mov	DWORD PTR -516[rbp], 0
	jmp	.L81
.L80:
	call	rand@PLT
	cdq
	idiv	DWORD PTR -528[rbp]
	mov	DWORD PTR -512[rbp], edx
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	eax, DWORD PTR -496[rbp+rax*4]
	mov	DWORD PTR -516[rbp], eax
.L81:
	mov	edx, 1
	mov	ecx, DWORD PTR -540[rbp]
	mov	eax, DWORD PTR -516[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -504[rbp], eax
	cmp	DWORD PTR -504[rbp], 0
	je	.L92
	mov	eax, DWORD PTR -528[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -496[rbp+rax*4]
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	DWORD PTR -496[rbp+rax*4], edx
	sub	DWORD PTR -528[rbp], 1
	jmp	.L84
.L92:
	nop
	cmp	DWORD PTR -516[rbp], 0
	jne	.L85
	cmp	DWORD PTR -536[rbp], 0
	je	.L93
.L85:
	mov	eax, DWORD PTR -516[rbp]
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -540[rbp], eax
	add	DWORD PTR -532[rbp], 1
.L73:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, DWORD PTR -508[rbp]
	jl	.L87
	jmp	.L86
.L93:
	nop
.L86:
	mov	eax, DWORD PTR -548[rbp]
	mov	edi, eax
	call	count_score
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L89
	call	__stack_chk_fail@PLT
.L89:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	playout, .-playout
	.section	.rodata
	.align 8
.LC11:
	.string	"best_z=%d,color=%d,v=%5.3f,try_num=%d\n"
	.text
	.globl	primitive_monte_calro
	.type	primitive_monte_calro, @function
primitive_monte_calro:
.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, 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 .LC10[rip]
	movsd	QWORD PTR -1008[rbp], xmm0
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L95
.L105:
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L96
.L104:
	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	.L109
	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	.L110
	mov	DWORD PTR -1036[rbp], 0
	mov	DWORD PTR -1040[rbp], 0
	jmp	.L100
.L101:
	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
.L100:
	mov	eax, DWORD PTR -1040[rbp]
	cmp	eax, DWORD PTR -1032[rbp]
	jl	.L101
	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	.L102
	movsd	xmm0, QWORD PTR -1000[rbp]
	movsd	QWORD PTR -1008[rbp], xmm0
	mov	eax, DWORD PTR -1024[rbp]
	mov	DWORD PTR -1052[rbp], eax
	mov	eax, DWORD PTR -1052[rbp]
	mov	edi, eax
	call	get81
	mov	esi, eax
	mov	ecx, DWORD PTR -1032[rbp]
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	movq	xmm0, rdx
	mov	edx, eax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
.L102:
	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	.L98
.L109:
	nop
	jmp	.L98
.L110:
	nop
.L98:
	add	DWORD PTR -1048[rbp], 1
.L96:
	cmp	DWORD PTR -1048[rbp], 8
	jle	.L104
	add	DWORD PTR -1044[rbp], 1
.L95:
	cmp	DWORD PTR -1044[rbp], 8
	jle	.L105
	mov	eax, DWORD PTR -1052[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	primitive_monte_calro, .-primitive_monte_calro
	.globl	node
	.bss
	.align 32
	.type	node, @object
	.size	node, 19840000
node:
	.zero	19840000
	.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:
.LFB17:
	.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
	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, 3
	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, 3
	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, 3
	add	rax, rcx
	add	rax, 16
	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, 3
	add	rax, rsi
	add	rax, 24
	mov	DWORD PTR [rax], ecx
	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
.LFE17:
	.size	add_child, .-add_child
	.section	.rodata
.LC12:
	.string	"node over Err"
	.text
	.globl	create_node
	.type	create_node, @function
create_node:
.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, 32
	mov	eax, DWORD PTR node_num[rip]
	cmp	eax, 10000
	jne	.L113
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L113:
	mov	eax, DWORD PTR node_num[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	sal	rax, 6
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 1976[rax], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L114
.L119:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L115
.L118:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	get_z
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L121
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	add_child
	jmp	.L117
.L121:
	nop
.L117:
	add	DWORD PTR -20[rbp], 1
.L115:
	cmp	DWORD PTR -20[rbp], 8
	jle	.L118
	add	DWORD PTR -16[rbp], 1
.L114:
	cmp	DWORD PTR -16[rbp], 8
	jle	.L119
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	add_child
	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
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	create_node, .-create_node
	.section	.rodata
.LC15:
	.string	"Err! select"
	.text
	.globl	select_best_ucb
	.type	select_best_ucb, @function
select_best_ucb:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	sal	rax, 6
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -48[rbp], -1
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L123
.L129:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, -1
	cmp	eax, edx
	je	.L133
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L126
	call	rand@PLT
	and	eax, 32767
	add	eax, 10000
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -32[rbp], xmm0
	jmp	.L127
.L126:
	movsd	xmm0, QWORD PTR .LC14[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm2, QWORD PTR 8[rax]
	movsd	QWORD PTR -64[rbp], xmm2
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1976[rax]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rdx]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movq	xmm1, rax
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	mulsd	xmm0, QWORD PTR -8[rbp]
	addsd	xmm0, QWORD PTR -64[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
.L127:
	movsd	xmm0, QWORD PTR -32[rbp]
	comisd	xmm0, QWORD PTR -40[rbp]
	jbe	.L125
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L125
.L133:
	nop
.L125:
	add	DWORD PTR -44[rbp], 1
.L123:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L129
	cmp	DWORD PTR -48[rbp], -1
	jne	.L130
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L130:
	mov	eax, DWORD PTR -48[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	select_best_ucb, .-select_best_ucb
	.globl	search_uct
	.type	search_uct, @function
search_uct:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	sal	rax, 6
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
.L137:
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	select_best_ucb
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	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 -40[rbp], eax
	mov	edx, 1
	mov	ecx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	put_stone
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L143
	mov	edx, -1
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L137
.L143:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jg	.L138
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	flip_color
	mov	edi, eax
	call	playout
	neg	eax
	mov	DWORD PTR -48[rbp], eax
	jmp	.L139
.L138:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, -1
	cmp	eax, edx
	jne	.L140
	mov	eax, 0
	call	create_node
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rdx], eax
.L140:
	mov	rax, QWORD PTR -24[rbp]
	mov	ebx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	flip_color
	mov	esi, ebx
	mov	edi, eax
	call	search_uct
	neg	eax
	mov	DWORD PTR -48[rbp], eax
.L139:
	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 -48[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 1976[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 1976[rax], edx
	mov	eax, DWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.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
.LC16:
	.string	"%2d:z=%2d,rate=%.4f,games=%3d\n"
	.align 8
.LC17:
	.string	"best_z=%d,rate=%.4f,games=%d,playouts=%d,nodes=%d\n"
	.text
	.globl	get_best_uct
	.type	get_best_uct, @function
get_best_uct:
.LFB21:
	.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 -564[rbp], -1
	mov	DWORD PTR -560[rbp], -999
	mov	DWORD PTR node_num[rip], 0
	mov	eax, 0
	call	create_node
	mov	DWORD PTR -556[rbp], eax
	mov	DWORD PTR -568[rbp], 0
	jmp	.L145
.L146:
	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	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 -568[rbp], 1
.L145:
	mov	eax, DWORD PTR uct_loop[rip]
	cmp	DWORD PTR -568[rbp], eax
	jl	.L146
	mov	eax, DWORD PTR -556[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	sal	rax, 6
	lea	rdx, node[rip]
	add	rax, rdx
	mov	QWORD PTR -544[rbp], rax
	mov	DWORD PTR -568[rbp], 0
	jmp	.L147
.L149:
	mov	eax, DWORD PTR -568[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	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 -560[rbp], eax
	jge	.L148
	mov	eax, DWORD PTR -568[rbp]
	mov	DWORD PTR -564[rbp], eax
	mov	rax, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -560[rbp], eax
.L148:
	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 -568[rbp]
	mov	ecx, r12d
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -568[rbp], 1
.L147:
	mov	rax, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -568[rbp], eax
	jl	.L149
	mov	rcx, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR -564[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	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 -564[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	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 -560[rbp]
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, eax
	movq	xmm0, rbx
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -552[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L151
	call	__stack_chk_fail@PLT
.L151:
	add	rsp, 568
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	get_best_uct, .-get_best_uct
	.section	.rodata
.LC18:
	.string	"Err!"
	.text
	.globl	add_moves
	.type	add_moves, @function
add_moves:
.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, 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	.L153
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L153:
	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
.LFE22:
	.size	add_moves, .-add_moves
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -12[rbp], 1
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L155
.L156:
	mov	DWORD PTR all_playouts[rip], 0
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	get_best_uct
	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
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	flip_color
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L155:
	cmp	DWORD PTR -8[rbp], 1
	jle	.L156
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.long	0
	.long	-1067909120
	.align 8
.LC13:
	.long	0
	.long	-1064355840
	.align 8
.LC14:
	.long	0
	.long	1072693248
	.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	"75137359.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"
	.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
	.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
	.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
	.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
	.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, .L17
	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	.L11
.L15:
	ldr	r2, .L17+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, .L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L16
	ldr	r2, .L17+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L14
	ldr	r2, .L17
	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]
.L14:
	ldr	r2, .L17+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	count_liberty_sub
	b	.L13
.L16:
	nop
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.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	.L20
.L21:
	ldr	r2, .L22
	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]
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #120
	ble	.L21
	ldr	r2, .L22+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}
.L23:
	.align	2
.L22:
	.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, .L28
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L27:
	ldr	r2, .L28+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, .L28
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L26
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	take_stone
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L27
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.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
.LC5:
	.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, .L54
	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	.L31
	ldr	r3, .L54+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L51
.L31:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L33
.L41:
	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, .L54+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, .L54+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L34:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	bne	.L35
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L35:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	beq	.L53
	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	.L39
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	bne	.L39
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-84]
.L39:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	bne	.L38
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	ble	.L38
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
	b	.L38
.L53:
	nop
.L38:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L33:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L41
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L42
	mov	r3, #1
	b	.L51
.L42:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bne	.L43
	mov	r3, #2
	b	.L51
.L43:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	cmp	r3, #4
	bne	.L44
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L44
	mov	r3, #3
	b	.L51
.L44:
	ldr	r2, .L54+12
	ldr	r3, [fp, #-112]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L45
	mov	r3, #4
	b	.L51
.L45:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L46
.L48:
	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	.L47
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L47
	ldr	r2, .L54+8
	ldr	r3, [fp, #-80]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, .L54+12
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L47
	ldr	r2, .L54+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
.L47:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L46:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L48
	ldr	r1, .L54+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	.L49
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bne	.L49
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	bne	.L49
	ldr	r2, .L54+4
	ldr	r3, [fp, #-84]
	str	r3, [r2]
	b	.L50
.L49:
	ldr	r3, .L54+4
	mov	r2, #0
	str	r2, [r3]
.L50:
	mov	r3, #0
.L51:
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC5
	.word	ko_z
	.word	dir4
	.word	board
	.size	put_stone, .-put_stone
	.section	.rodata
	.align	2
.LC7:
	.ascii	"   \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"%2d \000"
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	"  ko_z=%d,moves=%d\000"
	.align	2
.LC6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC12:
	.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, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L65+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L65+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L57
.L58:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L65+12
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L57:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L58
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L59
.L63:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L65+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L60
.L61:
	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, .L65+20
	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, .L65+24
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L60:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L61
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L62
	ldr	r3, .L65+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	get81
	mov	r1, r0
	ldr	r3, .L65+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L65+36
	bl	printf
.L62:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L59:
	ldr	r3, [fp, #-28]
	cmp	r3, #8
	ble	.L63
	nop
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	board
	.word	.LC10
	.word	ko_z
	.word	moves
	.word	.LC11
	.size	print_board, .-print_board
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC13:
	.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, .L84
	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	.L68
.L76:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L69
.L75:
	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, .L84+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	.L83
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L72
.L73:
	ldr	r2, .L84+8
	ldr	r3, [fp, #-72]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L84+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]
.L72:
	ldr	r3, [fp, #-72]
	cmp	r3, #3
	ble	.L73
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L74:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L71
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L71
.L83:
	nop
.L71:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L69:
	ldr	r3, [fp, #-80]
	cmp	r3, #8
	ble	.L75
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L68:
	ldr	r3, [fp, #-76]
	cmp	r3, #8
	ble	.L76
	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, .L84+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	.L77
	mov	r3, #1
	str	r3, [fp, #-68]
.L77:
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	bne	.L79
	ldr	r3, [fp, #-68]
	rsb	r3, r3, #0
	str	r3, [fp, #-68]
.L79:
	ldr	r3, [fp, #-68]
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC13
	.word	board
	.word	dir4
	.word	komi
	.size	count_score, .-count_score
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	playout
	.syntax unified
	.arm
	.fpu softvfp
	.type	playout, %function
playout:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-544]
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-532]
	ldr	r3, .L108+4
	str	r3, [fp, #-504]
	ldr	r3, .L108+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L108+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L87
.L101:
	mov	r3, #0
	str	r3, [fp, #-524]
	mov	r3, #0
	str	r3, [fp, #-516]
	b	.L88
.L93:
	mov	r3, #0
	str	r3, [fp, #-520]
	b	.L89
.L92:
	ldr	r3, [fp, #-520]
	add	r2, r3, #1
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-496]
	ldr	r2, .L108+12
	ldr	r3, [fp, #-496]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L105
	ldr	r3, [fp, #-524]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-496]
	str	r2, [r3, #-488]
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
	b	.L91
.L105:
	nop
.L91:
	ldr	r3, [fp, #-520]
	add	r3, r3, #1
	str	r3, [fp, #-520]
.L89:
	ldr	r3, [fp, #-520]
	cmp	r3, #8
	ble	.L92
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
.L88:
	ldr	r3, [fp, #-516]
	cmp	r3, #8
	ble	.L93
	mov	r3, #0
	str	r3, [fp, #-508]
.L98:
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L94
	mov	r3, #0
	str	r3, [fp, #-512]
	b	.L95
.L94:
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-508]
	ldr	r3, [fp, #-508]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-488]
	str	r3, [fp, #-512]
.L95:
	mov	r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-536]
	ldr	r0, [fp, #-512]
	bl	put_stone
	str	r0, [fp, #-500]
	ldr	r3, [fp, #-500]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-524]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-488]
	ldr	r3, [fp, #-508]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-488]
	ldr	r3, [fp, #-524]
	sub	r3, r3, #1
	str	r3, [fp, #-524]
	b	.L98
.L106:
	nop
	ldr	r3, [fp, #-512]
	cmp	r3, #0
	bne	.L99
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	beq	.L107
.L99:
	ldr	r3, [fp, #-512]
	str	r3, [fp, #-532]
	ldr	r0, [fp, #-536]
	bl	flip_color
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L87:
	ldr	r2, [fp, #-528]
	ldr	r3, [fp, #-504]
	cmp	r2, r3
	blt	.L101
	b	.L100
.L107:
	nop
.L100:
	ldr	r0, [fp, #-544]
	bl	count_score
	mov	r3, r0
	ldr	r2, .L108
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC14
	.word	281
	.word	all_playouts
	.word	board
	.size	playout, .-playout
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC15:
	.ascii	"best_z=%d,color=%d,v=%5.3f,try_num=%d\012\000"
	.align	2
.LC16:
	.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, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1056]
	ldr	r3, .L127
	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, .L127+4
	ldr	r3, [r3]
	str	r3, [fp, #-1024]
	ldr	r2, .L127+8
	sub	r3, fp, #984
	mov	r1, r2
	mov	r2, #484
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	ldr	r3, .L127+12
	str	r2, [fp, #-1004]
	str	r3, [fp, #-1000]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L111
.L121:
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L112
.L120:
	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, .L127+8
	ldr	r3, [fp, #-1020]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L125
	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	.L126
	mov	r3, #0
	str	r3, [fp, #-1032]
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L116
.L117:
	ldr	r3, .L127+4
	ldr	r3, [r3]
	str	r3, [fp, #-1012]
	ldr	r2, .L127+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, .L127+4
	ldr	r3, [fp, #-1012]
	str	r3, [r2]
	ldr	r3, .L127+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]
.L116:
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1028]
	cmp	r2, r3
	blt	.L117
	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	.L118
	sub	r3, fp, #996
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-1004]
	str	r3, [fp, #-1000]
	ldr	r3, [fp, #-1020]
	str	r3, [fp, #-1048]
	ldr	r0, [fp, #-1048]
	bl	get81
	mov	r1, r0
	ldr	r3, [fp, #-1028]
	str	r3, [sp, #8]
	sub	r3, fp, #1004
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-1056]
	ldr	r0, .L127+16
	bl	printf
.L118:
	ldr	r2, .L127+4
	ldr	r3, [fp, #-1024]
	str	r3, [r2]
	ldr	r3, .L127+8
	mov	r0, r3
	sub	r3, fp, #984
	mov	r2, #484
	mov	r1, r3
	bl	memcpy
	b	.L114
.L125:
	nop
	b	.L114
.L126:
	nop
.L114:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L112:
	ldr	r3, [fp, #-1044]
	cmp	r3, #8
	ble	.L120
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L111:
	ldr	r3, [fp, #-1040]
	cmp	r3, #8
	ble	.L121
	ldr	r3, [fp, #-1048]
	ldr	r2, .L127
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L123
	bl	__stack_chk_fail
.L123:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L128:
	.align	2
.L127:
	.word	.LC16
	.word	ko_z
	.word	board
	.word	-1067909120
	.word	.LC15
	.size	primitive_monte_calro, .-primitive_monte_calro
	.comm	node,19840000,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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	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, #3
	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, #3
	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, #3
	add	r3, r1, r3
	add	r1, r3, #16
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mvn	r0, #0
	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, #3
	add	r3, r1, r3
	str	r0, [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
.LC17:
	.ascii	"node over Err\000"
	.text
	.align	2
	.global	create_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_node, %function
create_node:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L140
	ldr	r3, [r3]
	ldr	r2, .L140+4
	cmp	r3, r2
	bne	.L131
	ldr	r0, .L140+8
	bl	puts
	mov	r0, #0
	bl	exit
.L131:
	ldr	r3, .L140
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #6
	ldr	r2, .L140+12
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #1976]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L132
.L137:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L133
.L136:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	get_z
	str	r0, [fp, #-8]
	ldr	r2, .L140+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L139
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	add_child
	b	.L135
.L139:
	nop
.L135:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L133:
	ldr	r3, [fp, #-20]
	cmp	r3, #8
	ble	.L136
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L132:
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	ble	.L137
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	add_child
	ldr	r3, .L140
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L140
	str	r3, [r2]
	ldr	r3, .L140
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	node_num
	.word	10000
	.word	.LC17
	.word	node
	.word	board
	.size	create_node, .-create_node
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Err! select\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	str	r0, [fp, #-64]
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #6
	ldr	r2, .L154
	add	r3, r3, r2
	str	r3, [fp, #-52]
	mvn	r3, #0
	str	r3, [fp, #-60]
	mov	r2, #0
	ldr	r3, .L154+4
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L143
.L149:
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #8
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	mvn	r2, #0
	cmp	r3, r2
	beq	.L153
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L146
	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, #-36]
	str	r3, [fp, #-32]
	b	.L147
.L146:
	mov	r2, #0
	ldr	r3, .L154+8
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #1976]
	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, #-48]
	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, #28
	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, #-36]
	str	r3, [fp, #-32]
.L147:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-60]
	b	.L145
.L153:
	nop
.L145:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L143:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L149
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L150
	ldr	r0, .L154+12
	bl	puts
	mov	r0, #0
	bl	exit
.L150:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L155:
	.align	2
.L154:
	.word	node
	.word	-1064355840
	.word	1072693248
	.word	.LC18
	.size	select_best_ucb, .-select_best_ucb
	.align	2
	.global	search_uct
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_uct, %function
search_uct:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #6
	ldr	r2, .L166
	add	r3, r3, r2
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L159:
	ldr	r0, [fp, #-44]
	bl	select_best_ucb
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #8
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-20]
	bl	put_stone
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L165
	mvn	r2, #0
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L159
.L165:
	nop
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L160
	ldr	r0, [fp, #-40]
	bl	flip_color
	mov	r3, r0
	mov	r0, r3
	bl	playout
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-36]
	b	.L161
.L160:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	mvn	r2, #0
	cmp	r3, r2
	bne	.L162
	bl	create_node
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3, #16]
.L162:
	ldr	r0, [fp, #-40]
	bl	flip_color
	mov	r2, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	mov	r1, r3
	mov	r0, r2
	bl	search_uct
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-36]
.L161:
	ldr	r3, [fp, #-28]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-28]
	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, #-36]
	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, #-28]
	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, #-28]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1976]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #1976]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L167:
	.align	2
.L166:
	.word	node
	.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
.LC19:
	.ascii	"%2d:z=%2d,rate=%.4f,games=%3d\012\000"
	.align	2
.LC20:
	.ascii	"best_z=%d,rate=%.4f,games=%d,playouts=%d,nodes=%d\012"
	.ascii	"\000"
	.align	2
.LC21:
	.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 = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-528]
	ldr	r3, .L176
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-520]
	ldr	r3, .L176+4
	str	r3, [fp, #-516]
	ldr	r3, .L176+8
	mov	r2, #0
	str	r2, [r3]
	bl	create_node
	str	r0, [fp, #-512]
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L169
.L170:
	ldr	r3, .L176+12
	ldr	r3, [r3]
	str	r3, [fp, #-496]
	ldr	r2, .L176+16
	sub	r3, fp, #492
	mov	r1, r2
	mov	r2, #484
	mov	r0, r3
	bl	memcpy
	ldr	r1, [fp, #-512]
	ldr	r0, [fp, #-528]
	bl	search_uct
	ldr	r2, .L176+12
	ldr	r3, [fp, #-496]
	str	r3, [r2]
	ldr	r3, .L176+16
	mov	r0, r3
	sub	r3, fp, #492
	mov	r2, #484
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L169:
	ldr	r3, .L176+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-524]
	cmp	r2, r3
	blt	.L170
	ldr	r2, [fp, #-512]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #6
	ldr	r2, .L176+24
	add	r3, r3, r2
	str	r3, [fp, #-508]
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L171
.L173:
	ldr	r2, [fp, #-524]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #8
	ldr	r2, [fp, #-508]
	add	r3, r2, r3
	str	r3, [fp, #-500]
	ldr	r3, [fp, #-500]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-516]
	cmp	r2, r3
	bge	.L172
	ldr	r3, [fp, #-524]
	str	r3, [fp, #-520]
	ldr	r3, [fp, #-500]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-516]
.L172:
	ldr	r3, [fp, #-500]
	ldr	r3, [r3]
	mov	r0, r3
	bl	get81
	ldr	r3, [fp, #-500]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-500]
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r0
	ldr	r1, [fp, #-524]
	ldr	r0, .L176+28
	bl	printf
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L171:
	ldr	r3, [fp, #-508]
	ldr	r3, [r3]
	ldr	r2, [fp, #-524]
	cmp	r2, r3
	blt	.L173
	ldr	r1, [fp, #-508]
	ldr	r2, [fp, #-520]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-504]
	ldr	r0, [fp, #-504]
	bl	get81
	mov	ip, r0
	ldr	r1, [fp, #-508]
	ldr	r2, [fp, #-520]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldr	r1, .L176+32
	ldr	r1, [r1]
	ldr	r0, .L176+8
	ldr	r0, [r0]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	ldr	r1, [fp, #-516]
	str	r1, [sp]
	mov	r1, ip
	ldr	r0, .L176+36
	bl	printf
	ldr	r3, [fp, #-504]
	ldr	r2, .L176
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L175
	bl	__stack_chk_fail
.L175:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L177:
	.align	2
.L176:
	.word	.LC21
	.word	-999
	.word	node_num
	.word	ko_z
	.word	board
	.word	uct_loop
	.word	node
	.word	.LC19
	.word	all_playouts
	.word	.LC20
	.size	get_best_uct, .-get_best_uct
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Err!\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	.L179
	ldr	r0, .L180
	bl	puts
	mov	r0, #0
	bl	exit
.L179:
	ldr	r3, .L180+4
	ldr	r3, [r3]
	ldr	r1, .L180+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L180+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L180+4
	str	r3, [r2]
	bl	print_board
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L181:
	.align	2
.L180:
	.word	.LC22
	.word	moves
	.word	record
	.size	add_moves, .-add_moves
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L183
.L184:
	ldr	r3, .L186
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	get_best_uct
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	add_moves
	ldr	r0, [fp, #-16]
	bl	flip_color
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L183:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L184
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L187:
	.align	2
.L186:
	.word	all_playouts
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
