	.file	"75137154.c"
	.intel_syntax noprefix
	.text
	.globl	board
	.bss
	.align 32
	.type	board, @object
	.size	board, 72
board:
	.zero	72
	.globl	verbose
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	local_heap
	.align 8
	.type	local_heap, @object
	.size	local_heap, 8
local_heap:
	.zero	8
	.text
	.type	enqueue, @function
enqueue:
.LFB6:
	.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 -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR local_heap[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR local_heap[rip], rax
	jmp	.L1
.L4:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.type	dequeue, @function
dequeue:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR local_heap[rip]
	test	rax, rax
	jne	.L6
	mov	edi, 24
	call	malloc@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR local_heap[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR local_heap[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR local_heap[rip], rax
	mov	rax, QWORD PTR -8[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC0:
	.string	"%c: (h)uman or (c)omputer: "
.LC1:
	.string	"%s"
	.text
	.type	set_player_data, @function
set_player_data:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L10:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 104
	je	.L9
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 99
	jne	.L10
.L9:
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 104
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_player_data, .-set_player_data
	.section	.rodata
.LC2:
	.string	"\n       01234567"
.LC3:
	.string	"      +--------+"
.LC4:
	.string	"    %1d |%s|\n"
.LC5:
	.string	"      +--------+\n\n"
	.text
	.type	draw_board, @function
draw_board:
.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, 16
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 7
	jbe	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	draw_board, .-draw_board
	.section	.rodata
.LC6:
	.string	"the_stack_data/75137154.c"
.LC7:
	.string	"len < BOARD_SIZE - 1"
	.align 8
.LC8:
	.string	"num_changed + len <= MAX_CHANGES"
	.text
	.type	compute_effect, @function
compute_effect:
.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, 144
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	QWORD PTR -128[rbp], rdx
	mov	QWORD PTR -136[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L16
.L33:
	mov	DWORD PTR -84[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, vector.2[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, vector.2[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -68[rbp], eax
.L28:
	mov	eax, DWORD PTR -72[rbp]
	add	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	add	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -104[rbp], 7
	ja	.L17
	cmp	DWORD PTR -100[rbp], 7
	ja	.L17
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -104[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L18
.L17:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L19
.L18:
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -104[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, board[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L44
	cmp	DWORD PTR -104[rbp], 0
	je	.L21
	cmp	DWORD PTR -104[rbp], 7
	jne	.L22
.L21:
	mov	edx, 8
	jmp	.L23
.L22:
	mov	edx, 1
.L23:
	cmp	DWORD PTR -100[rbp], 0
	je	.L24
	cmp	DWORD PTR -100[rbp], 7
	jne	.L25
.L24:
	mov	eax, 8
	jmp	.L26
.L25:
	mov	eax, 1
.L26:
	imul	eax, edx
	add	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -80[rbp], 6
	jbe	.L27
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 192
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L27:
	mov	edx, DWORD PTR -80[rbp]
	lea	eax, 1[rdx]
	mov	DWORD PTR -80[rbp], eax
	mov	esi, DWORD PTR -100[rbp]
	mov	ecx, DWORD PTR -104[rbp]
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	lea	rcx, [rsi+rax]
	lea	rax, board[rip]
	add	rax, rcx
	mov	edx, edx
	mov	QWORD PTR -64[rbp+rdx*8], rax
	jmp	.L28
.L44:
	nop
.L19:
	cmp	DWORD PTR -80[rbp], 0
	je	.L29
	mov	DWORD PTR -76[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rdx, QWORD PTR -128[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -76[rbp], 1
.L30:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jb	.L31
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	cmp	eax, 20
	jbe	.L32
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 202
	lea	rsi, .LC6[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L32:
	mov	eax, DWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	eax, DWORD PTR -96[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rcx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -80[rbp]
	add	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	add	DWORD PTR -88[rbp], eax
.L29:
	add	DWORD PTR -92[rbp], 1
.L16:
	cmp	DWORD PTR -92[rbp], 7
	jbe	.L33
	cmp	DWORD PTR -96[rbp], 0
	je	.L34
	cmp	DWORD PTR -116[rbp], 0
	je	.L35
	cmp	DWORD PTR -116[rbp], 7
	jne	.L36
.L35:
	mov	edx, 8
	jmp	.L37
.L36:
	mov	edx, 1
.L37:
	cmp	DWORD PTR -120[rbp], 0
	je	.L38
	cmp	DWORD PTR -120[rbp], 7
	jne	.L39
.L38:
	mov	eax, 8
	jmp	.L40
.L39:
	mov	eax, 1
.L40:
	imul	eax, edx
	add	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	esi, DWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	lea	rcx, [rax+rsi]
	lea	rax, board[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 16[rax]
	sub	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR 4[rax], edx
.L34:
	cmp	QWORD PTR -144[rbp], 0
	je	.L41
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
.L41:
	mov	eax, DWORD PTR -88[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compute_effect, .-compute_effect
	.section	.rodata
.LC9:
	.string	"Ply %d: %c placed at (%d,%d)\n"
.LC10:
	.string	"effect > INIT_MAX_EFFECT"
.LC11:
	.string	"prune: %d - %d < %d\n"
.LC12:
	.string	"Ply %d: no best move chosen\n"
.LC13:
	.string	"Chose move %d of %d\n"
.LC14:
	.string	"Ply %d: %c @ (%d,%d) => %d\n"
	.text
	.type	best_move, @function
best_move:
.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, 752
	mov	QWORD PTR -728[rbp], rdi
	mov	QWORD PTR -736[rbp], rsi
	mov	DWORD PTR -740[rbp], edx
	mov	DWORD PTR -744[rbp], ecx
	mov	DWORD PTR -748[rbp], r8d
	mov	DWORD PTR -752[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -704[rbp], 0
	mov	DWORD PTR -696[rbp], -576
	mov	DWORD PTR -680[rbp], 0
	mov	QWORD PTR -672[rbp], 0
	mov	DWORD PTR -692[rbp], 0
	jmp	.L46
.L67:
	mov	DWORD PTR -688[rbp], 0
	jmp	.L47
.L65:
	mov	ecx, DWORD PTR -688[rbp]
	mov	edx, DWORD PTR -692[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L75
	lea	rdi, -708[rbp]
	lea	rcx, -656[rbp]
	mov	rdx, QWORD PTR -736[rbp]
	mov	esi, DWORD PTR -688[rbp]
	mov	eax, DWORD PTR -692[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	compute_effect
	mov	DWORD PTR -700[rbp], eax
	mov	eax, DWORD PTR -708[rbp]
	test	eax, eax
	je	.L76
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR -736[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	esi, DWORD PTR -688[rbp]
	mov	ecx, DWORD PTR -692[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	eax, DWORD PTR -740[rbp]
	cmp	eax, DWORD PTR -744[rbp]
	jnb	.L52
	mov	rax, QWORD PTR -736[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -736[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	cmp	eax, 63
	ja	.L52
	mov	eax, DWORD PTR -740[rbp]
	lea	edi, 1[rax]
	mov	rax, QWORD PTR -736[rbp]
	mov	rsi, QWORD PTR 16[rax]
	mov	r8d, DWORD PTR -696[rbp]
	mov	ecx, DWORD PTR -700[rbp]
	mov	edx, DWORD PTR -744[rbp]
	lea	rax, -672[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	best_move
	sub	DWORD PTR -700[rbp], eax
	cmp	DWORD PTR -700[rbp], -575
	jge	.L52
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 260
	lea	rsi, .LC6[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L52:
	mov	eax, DWORD PTR -700[rbp]
	cmp	eax, DWORD PTR -696[rbp]
	jle	.L53
	mov	DWORD PTR -684[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -684[rbp]
	mov	rax, QWORD PTR -496[rbp+rax*8]
	mov	rdi, rax
	call	enqueue
	add	DWORD PTR -684[rbp], 1
.L54:
	mov	eax, DWORD PTR -684[rbp]
	cmp	eax, DWORD PTR -680[rbp]
	jb	.L55
	cmp	DWORD PTR -740[rbp], 1
	jbe	.L56
	mov	eax, DWORD PTR -748[rbp]
	sub	eax, DWORD PTR -700[rbp]
	cmp	DWORD PTR -752[rbp], eax
	jle	.L56
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L57
	mov	ecx, DWORD PTR -752[rbp]
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, DWORD PTR -748[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L57:
	mov	DWORD PTR -704[rbp], 1
.L56:
	mov	eax, DWORD PTR -700[rbp]
	mov	DWORD PTR -696[rbp], eax
	mov	DWORD PTR -680[rbp], 0
.L53:
	mov	eax, DWORD PTR -700[rbp]
	cmp	eax, DWORD PTR -696[rbp]
	jne	.L58
	call	dequeue
	mov	QWORD PTR -664[rbp], rax
	mov	rax, QWORD PTR -664[rbp]
	mov	edx, DWORD PTR -692[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -664[rbp]
	mov	edx, DWORD PTR -688[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rdx, QWORD PTR -672[rbp]
	mov	rax, QWORD PTR -664[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -672[rbp]
	test	rax, rax
	je	.L59
	mov	rax, QWORD PTR -672[rbp]
	mov	rax, QWORD PTR 16[rax]
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -664[rbp]
	add	rax, 8
.L60:
	mov	rdx, QWORD PTR -664[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	eax, DWORD PTR -680[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -680[rbp], edx
	mov	edx, eax
	mov	rax, QWORD PTR -664[rbp]
	mov	QWORD PTR -496[rbp+rdx*8], rax
	jmp	.L61
.L58:
	mov	rax, QWORD PTR -672[rbp]
	mov	rdi, rax
	call	enqueue
.L61:
	mov	ecx, DWORD PTR -688[rbp]
	mov	edx, DWORD PTR -692[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, board[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	rax, QWORD PTR -736[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, DWORD PTR -708[rbp]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -736[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -736[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR 4[rax]
	mov	edx, DWORD PTR -708[rbp]
	mov	rax, QWORD PTR -736[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	edx, ecx
	mov	DWORD PTR 4[rax], edx
	mov	DWORD PTR -684[rbp], 0
	jmp	.L62
.L63:
	mov	rax, QWORD PTR -736[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -684[rbp]
	mov	rax, QWORD PTR -656[rbp+rax*8]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -684[rbp], 1
.L62:
	mov	eax, DWORD PTR -708[rbp]
	cmp	DWORD PTR -684[rbp], eax
	jb	.L63
	jmp	.L49
.L75:
	nop
	jmp	.L49
.L76:
	nop
.L49:
	add	DWORD PTR -688[rbp], 1
.L47:
	cmp	DWORD PTR -688[rbp], 7
	ja	.L64
	cmp	DWORD PTR -704[rbp], 0
	je	.L65
.L64:
	add	DWORD PTR -692[rbp], 1
.L46:
	cmp	DWORD PTR -692[rbp], 7
	ja	.L66
	cmp	DWORD PTR -704[rbp], 0
	je	.L67
.L66:
	cmp	QWORD PTR -728[rbp], 0
	je	.L68
	cmp	DWORD PTR -680[rbp], 0
	jne	.L69
	mov	eax, DWORD PTR -740[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -728[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -696[rbp], 0
	jmp	.L68
.L69:
	call	rand@PLT
	mov	edx, 0
	div	DWORD PTR -680[rbp]
	mov	DWORD PTR -676[rbp], edx
	mov	eax, DWORD PTR -676[rbp]
	mov	rdx, QWORD PTR -496[rbp+rax*8]
	mov	rax, QWORD PTR -728[rbp]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -692[rbp], 0
	jmp	.L70
.L72:
	mov	eax, DWORD PTR -692[rbp]
	cmp	eax, DWORD PTR -676[rbp]
	je	.L71
	mov	eax, DWORD PTR -692[rbp]
	mov	rax, QWORD PTR -496[rbp+rax*8]
	mov	rdi, rax
	call	enqueue
.L71:
	add	DWORD PTR -692[rbp], 1
.L70:
	mov	eax, DWORD PTR -692[rbp]
	cmp	eax, DWORD PTR -680[rbp]
	jb	.L72
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L68
	mov	edx, DWORD PTR -680[rbp]
	mov	eax, DWORD PTR -676[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -728[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -728[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -736[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	edi, DWORD PTR -696[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L68:
	mov	eax, DWORD PTR -696[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	best_move, .-best_move
	.section	.rodata
.LC15:
	.string	"verbose? "
.LC16:
	.string	"Enter skill level (1-10): "
.LC17:
	.string	"%d"
.LC18:
	.string	"Pause after computer move? : "
	.align 8
.LC19:
	.string	"Enter: row, column (comma-separated) (both in range 0-%d)\n"
.LC20:
	.string	"Checking viability..."
.LC21:
	.string	"%c cannot move\n"
.LC22:
	.string	"Deadlock: game terminated"
.LC23:
	.string	"X: %d;  O: %d\n"
.LC24:
	.string	"%c: "
	.align 8
.LC25:
	.string	"Suggest (%d,%d) with an effect of %d\n\n"
.LC26:
	.string	"%d,%d"
	.align 8
.LC27:
	.string	"Invalid coordinates; re-enter:"
	.align 8
.LC28:
	.string	"That position already occupied; try again:"
.LC29:
	.string	"Zero-yield move; try again:"
.LC30:
	.string	"Computer is moving..."
	.align 8
.LC31:
	.string	"Computer's move: %c placed at %d, %d\n"
.LC32:
	.string	"Optimal chain:"
.LC33:
	.string	"%c: (%d,%d)\n"
.LC34:
	.string	"\nEffect of move == %d\n"
.LC35:
	.string	"\nPress RETURN to continue..."
	.align 8
.LC36:
	.string	"%d objects were in application heap\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -312[rbp], 1
	mov	DWORD PTR -308[rbp], 0
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 121
	sete	al
	movzx	eax, al
	mov	DWORD PTR verbose[rip], eax
.L78:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -316[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -316[rbp]
	test	eax, eax
	je	.L78
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, 10
	ja	.L78
	mov	BYTE PTR -256[rbp], 88
	mov	BYTE PTR -224[rbp], 79
	lea	rax, -224[rbp]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, -256[rbp]
	mov	QWORD PTR -208[rbp], rax
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	set_player_data
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	set_player_data
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 110
	setne	al
	movzx	eax, al
	mov	DWORD PTR -296[rbp], eax
	mov	DWORD PTR -300[rbp], 0
	jmp	.L79
.L80:
	mov	edx, DWORD PTR -300[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, board[rip]
	add	rax, rdx
	mov	edx, 8
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -300[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rdx, rax
	lea	rax, board[rip+8]
	mov	BYTE PTR [rdx+rax], 0
	add	DWORD PTR -300[rbp], 1
.L79:
	cmp	DWORD PTR -300[rbp], 7
	jbe	.L80
	movzx	eax, BYTE PTR -256[rbp]
	mov	BYTE PTR board[rip+40], al
	movzx	eax, BYTE PTR board[rip+40]
	mov	BYTE PTR board[rip+30], al
	movzx	eax, BYTE PTR -224[rbp]
	mov	BYTE PTR board[rip+39], al
	movzx	eax, BYTE PTR board[rip+39]
	mov	BYTE PTR board[rip+31], al
	mov	DWORD PTR -220[rbp], 2
	mov	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR -252[rbp], eax
	lea	rax, -256[rbp]
	mov	QWORD PTR -280[rbp], rax
	call	draw_board
	mov	esi, 7
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L98:
	mov	eax, DWORD PTR -312[rbp]
	mov	DWORD PTR -292[rbp], eax
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	rsi, QWORD PTR -280[rbp]
	lea	rax, -288[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rax
	call	best_move
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	jne	.L81
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -292[rbp], 0
	jne	.L82
	lea	rdi, .LC22[rip]
	call	puts@PLT
	jmp	.L83
.L81:
	mov	rax, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L84
	mov	edx, DWORD PTR -220[rbp]
	mov	eax, DWORD PTR -252[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L94:
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L85:
	lea	rax, -18[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	movzx	eax, BYTE PTR -18[rbp]
	test	al, al
	je	.L85
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	cmp	eax, 81
	jne	.L86
	mov	DWORD PTR -308[rbp], 1
	jmp	.L87
.L86:
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	cmp	eax, 72
	jne	.L88
	mov	edx, DWORD PTR -316[rbp]
	mov	rsi, QWORD PTR -280[rbp]
	lea	rax, -288[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 1
	mov	rdi, rax
	call	best_move
	mov	DWORD PTR -304[rbp], eax
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -304[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	enqueue
	jmp	.L89
.L88:
	lea	rcx, -320[rbp]
	lea	rdx, -324[rbp]
	lea	rax, -18[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, 7
	ja	.L90
	mov	eax, DWORD PTR -320[rbp]
	cmp	eax, 7
	jbe	.L91
.L90:
	lea	rdi, .LC27[rip]
	call	puts@PLT
	jmp	.L89
.L91:
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, DWORD PTR -320[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, board[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L92
	lea	rdi, .LC28[rip]
	call	puts@PLT
	jmp	.L94
.L92:
	mov	esi, DWORD PTR -320[rbp]
	mov	eax, DWORD PTR -324[rbp]
	lea	rcx, -192[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	r8d, 0
	mov	edi, eax
	call	compute_effect
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], 0
	jne	.L103
	lea	rdi, .LC29[rip]
	call	puts@PLT
.L89:
	jmp	.L94
.L103:
	nop
.L87:
	cmp	DWORD PTR -308[rbp], 0
	je	.L82
	jmp	.L83
.L84:
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edx, DWORD PTR -316[rbp]
	mov	rsi, QWORD PTR -280[rbp]
	lea	rax, -288[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 1
	mov	rdi, rax
	call	best_move
	mov	DWORD PTR -304[rbp], eax
	mov	rax, QWORD PTR -288[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -192[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	r8d, 0
	mov	edi, eax
	call	compute_effect
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR -272[rbp], rax
	jmp	.L95
.L96:
	mov	rax, QWORD PTR -264[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -272[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -272[rbp], rax
.L95:
	cmp	QWORD PTR -264[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	enqueue
.L82:
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -296[rbp], 0
	je	.L97
	mov	rax, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L97
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	call	getchar@PLT
.L97:
	mov	edx, DWORD PTR -220[rbp]
	mov	eax, DWORD PTR -252[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	call	draw_board
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR -252[rbp]
	test	eax, eax
	je	.L83
	mov	eax, DWORD PTR -220[rbp]
	test	eax, eax
	je	.L83
	mov	edx, DWORD PTR -252[rbp]
	mov	eax, DWORD PTR -220[rbp]
	add	eax, edx
	cmp	eax, 63
	jbe	.L98
.L83:
	mov	DWORD PTR -300[rbp], 0
	jmp	.L99
.L100:
	mov	rax, QWORD PTR local_heap[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR local_heap[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR local_heap[rip], rax
	add	DWORD PTR -300[rbp], 1
.L99:
	mov	rax, QWORD PTR local_heap[rip]
	test	rax, rax
	jne	.L100
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.data
	.align 32
	.type	vector.2, @object
	.size	vector.2, 64
vector.2:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	1
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 15
__PRETTY_FUNCTION__.1:
	.string	"compute_effect"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
	.string	"best_move"
	.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	"75137154.c"
	.text
	.comm	board,72,4
	.comm	verbose,4,4
	.global	local_heap
	.bss
	.align	2
	.type	local_heap, %object
	.size	local_heap, 4
local_heap:
	.space	4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, .L5
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L1
.L4:
	nop
.L1:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	local_heap
	.size	enqueue, .-enqueue
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	b	.L9
.L8:
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L10
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	local_heap
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c: (h)uman or (c)omputer: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_player_data, %function
set_player_data:
	@ 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	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L14:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #104
	beq	.L13
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L14
.L13:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #104
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	set_player_data, .-set_player_data
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012       01234567\000"
	.align	2
.LC4:
	.ascii	"      +--------+\000"
	.align	2
.LC5:
	.ascii	"    %1d |%s|\012\000"
	.align	2
.LC6:
	.ascii	"      +--------+\012\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_board, %function
draw_board:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L21
	bl	puts
	ldr	r0, .L21+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, .L21+8
	add	r3, r3, r2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L21+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bls	.L20
	ldr	r0, .L21+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC4
	.word	board
	.word	.LC5
	.word	.LC6
	.size	draw_board, .-draw_board
	.section	.rodata
	.align	2
.LC7:
	.ascii	"the_stack_data/75137154.c\000"
	.align	2
.LC8:
	.ascii	"len < BOARD_SIZE - 1\000"
	.align	2
.LC9:
	.ascii	"num_changed + len <= MAX_CHANGES\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_effect, %function
compute_effect:
	@ args = 4, 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, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-96]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L24
.L41:
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-72]
	ldr	r2, .L53+4
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #3]
	str	r3, [fp, #-44]
	ldr	r2, .L53+4
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-40]
.L36:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	cmp	r3, #7
	bhi	.L25
	ldr	r3, [fp, #-72]
	cmp	r3, #7
	bhi	.L25
	ldr	r1, .L53+8
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L27
.L26:
	ldr	r1, .L53+8
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-88]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L52
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-76]
	cmp	r3, #7
	bne	.L30
.L29:
	mov	r3, #8
	b	.L31
.L30:
	mov	r3, #1
.L31:
	ldr	r2, [fp, #-72]
	cmp	r2, #0
	beq	.L32
	ldr	r2, [fp, #-72]
	cmp	r2, #7
	bne	.L33
.L32:
	mov	r2, #8
	b	.L34
.L33:
	mov	r2, #1
.L34:
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r3, #6
	bls	.L35
	ldr	r3, .L53+12
	mov	r2, #192
	ldr	r1, .L53+16
	ldr	r0, .L53+20
	bl	__assert_fail
.L35:
	ldr	r2, [fp, #-52]
	add	r3, r2, #1
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-76]
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	ldr	r1, [fp, #-72]
	add	r3, r3, r1
	ldr	r1, .L53+8
	add	r1, r3, r1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-32]
	b	.L36
.L52:
	nop
.L27:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L37
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L38
.L39:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	ldr	r2, [fp, #-88]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L38:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L39
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	cmp	r3, #20
	bls	.L40
	ldr	r3, .L53+12
	mov	r2, #202
	ldr	r1, .L53+16
	ldr	r0, .L53+24
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r0, r2, r3
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #2
	sub	r3, fp, #36
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-60]
.L37:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L24:
	ldr	r3, [fp, #-64]
	cmp	r3, #7
	bls	.L41
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-80]
	cmp	r3, #7
	bne	.L44
.L43:
	mov	r3, #8
	b	.L45
.L44:
	mov	r3, #1
.L45:
	ldr	r2, [fp, #-84]
	cmp	r2, #0
	beq	.L46
	ldr	r2, [fp, #-84]
	cmp	r2, #7
	bne	.L47
.L46:
	mov	r2, #8
	b	.L48
.L47:
	mov	r2, #1
.L48:
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-88]
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L53+8
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-88]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #12]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-68]
	sub	r2, r1, r2
	str	r2, [r3, #4]
.L42:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-68]
	str	r2, [r3]
.L49:
	ldr	r3, [fp, #-60]
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC10
	.word	vector.5586
	.word	board
	.word	__PRETTY_FUNCTION__.5588
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	compute_effect, .-compute_effect
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Ply %d: %c placed at (%d,%d)\012\000"
	.align	2
.LC12:
	.ascii	"effect > INIT_MAX_EFFECT\000"
	.align	2
.LC13:
	.ascii	"prune: %d - %d < %d\012\000"
	.align	2
.LC14:
	.ascii	"Ply %d: no best move chosen\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC15:
	.ascii	"Chose move %d of %d\012\000"
	.align	2
.LC16:
	.ascii	"Ply %d: %c @ (%d,%d) => %d\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	best_move, %function
best_move:
	@ args = 8, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	str	r0, [fp, #-376]
	str	r1, [fp, #-380]
	str	r2, [fp, #-384]
	str	r3, [fp, #-388]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-364]
	ldr	r3, .L87+4
	str	r3, [fp, #-356]
	mov	r3, #0
	str	r3, [fp, #-340]
	mov	r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-352]
	b	.L56
.L77:
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L57
.L75:
	ldr	r1, .L87+8
	ldr	r2, [fp, #-352]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-348]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L85
	sub	r2, fp, #328
	sub	r3, fp, #372
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-380]
	ldr	r1, [fp, #-348]
	ldr	r0, [fp, #-352]
	bl	compute_effect
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-380]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-348]
	str	r3, [sp]
	ldr	r3, [fp, #-352]
	ldr	r1, [fp, #-384]
	ldr	r0, .L87+16
	bl	printf
.L61:
	ldr	r2, [fp, #-384]
	ldr	r3, [fp, #-388]
	cmp	r2, r3
	bcs	.L62
	ldr	r3, [fp, #-380]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	cmp	r3, #63
	bhi	.L62
	ldr	r3, [fp, #-380]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-384]
	add	r2, r3, #1
	sub	r0, fp, #368
	ldr	r3, [fp, #-356]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-360]
	str	r3, [sp]
	ldr	r3, [fp, #-388]
	bl	best_move
	mov	r2, r0
	ldr	r3, [fp, #-360]
	sub	r3, r3, r2
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmn	r3, #576
	bgt	.L62
	ldr	r3, .L87+20
	mov	r2, #260
	ldr	r1, .L87+24
	ldr	r0, .L87+28
	bl	__assert_fail
.L62:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	ble	.L63
	mov	r3, #0
	str	r3, [fp, #-344]
	b	.L64
.L65:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	mov	r0, r3
	bl	enqueue
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L64:
	ldr	r2, [fp, #-344]
	ldr	r3, [fp, #-340]
	cmp	r2, r3
	bcc	.L65
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	bls	.L66
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-360]
	sub	r3, r2, r3
	ldr	r2, [fp, #8]
	cmp	r2, r3
	ble	.L66
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-360]
	ldr	r1, [fp, #4]
	ldr	r0, .L87+32
	bl	printf
.L67:
	mov	r3, #1
	str	r3, [fp, #-364]
.L66:
	ldr	r3, [fp, #-360]
	str	r3, [fp, #-356]
	mov	r3, #0
	str	r3, [fp, #-340]
.L63:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	bne	.L68
	bl	dequeue
	str	r0, [fp, #-336]
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-352]
	str	r2, [r3]
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-348]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-336]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-368]
	ldr	r3, [r3, #12]
	b	.L70
.L69:
	ldr	r3, [fp, #-336]
	add	r3, r3, #8
.L70:
	ldr	r2, [fp, #-336]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-340]
	add	r2, r3, #1
	str	r2, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-336]
	str	r2, [r3, #-244]
	b	.L71
.L68:
	ldr	r3, [fp, #-368]
	mov	r0, r3
	bl	enqueue
.L71:
	ldr	r1, .L87+8
	ldr	r2, [fp, #-352]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-348]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-380]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-372]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-380]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #12]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-372]
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #12]
	add	r2, r1, r2
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-344]
	b	.L72
.L73:
	ldr	r3, [fp, #-380]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L72:
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	bcc	.L73
	b	.L59
.L85:
	nop
	b	.L59
.L86:
	nop
.L59:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L57:
	ldr	r3, [fp, #-348]
	cmp	r3, #7
	bhi	.L74
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L75
.L74:
	ldr	r3, [fp, #-352]
	add	r3, r3, #1
	str	r3, [fp, #-352]
.L56:
	ldr	r3, [fp, #-352]
	cmp	r3, #7
	bhi	.L76
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L77
.L76:
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bne	.L79
	ldr	r1, [fp, #-384]
	ldr	r0, .L87+36
	bl	printf
	ldr	r3, [fp, #-376]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-356]
	b	.L78
.L79:
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-376]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-352]
	b	.L80
.L82:
	ldr	r2, [fp, #-352]
	ldr	r3, [fp, #-332]
	cmp	r2, r3
	beq	.L81
	ldr	r3, [fp, #-352]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	mov	r0, r3
	bl	enqueue
.L81:
	ldr	r3, [fp, #-352]
	add	r3, r3, #1
	str	r3, [fp, #-352]
.L80:
	ldr	r2, [fp, #-352]
	ldr	r3, [fp, #-340]
	cmp	r2, r3
	bcc	.L82
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L78
	ldr	r2, [fp, #-340]
	ldr	r1, [fp, #-332]
	ldr	r0, .L87+40
	bl	printf
	ldr	r3, [fp, #-380]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-376]
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, [fp, #-376]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-356]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	mov	r2, r0
	ldr	r1, [fp, #-384]
	ldr	r0, .L87+44
	bl	printf
.L78:
	ldr	r3, [fp, #-356]
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC17
	.word	-576
	.word	board
	.word	verbose
	.word	.LC11
	.word	__PRETTY_FUNCTION__.5618
	.word	.LC7
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	best_move, .-best_move
	.section	.rodata
	.align	2
.LC18:
	.ascii	"verbose? \000"
	.align	2
.LC19:
	.ascii	"Enter skill level (1-10): \000"
	.align	2
.LC20:
	.ascii	"%d\000"
	.align	2
.LC21:
	.ascii	"Pause after computer move? : \000"
	.align	2
.LC22:
	.ascii	"Enter: row, column (comma-separated) (both in range"
	.ascii	" 0-%d)\012\000"
	.align	2
.LC23:
	.ascii	"Checking viability...\000"
	.align	2
.LC24:
	.ascii	"%c cannot move\012\000"
	.align	2
.LC25:
	.ascii	"Deadlock: game terminated\000"
	.align	2
.LC26:
	.ascii	"X: %d;  O: %d\012\000"
	.align	2
.LC27:
	.ascii	"%c: \000"
	.align	2
.LC28:
	.ascii	"Suggest (%d,%d) with an effect of %d\012\012\000"
	.align	2
.LC29:
	.ascii	"%d,%d\000"
	.align	2
.LC30:
	.ascii	"Invalid coordinates; re-enter:\000"
	.align	2
.LC31:
	.ascii	"That position already occupied; try again:\000"
	.align	2
.LC32:
	.ascii	"Zero-yield move; try again:\000"
	.align	2
.LC33:
	.ascii	"Computer is moving...\000"
	.align	2
.LC34:
	.ascii	"Computer's move: %c placed at %d, %d\012\000"
	.align	2
.LC35:
	.ascii	"Optimal chain:\000"
	.align	2
.LC36:
	.ascii	"%c: (%d,%d)\012\000"
	.align	2
.LC37:
	.ascii	"\012Effect of move == %d\012\000"
	.align	2
.LC38:
	.ascii	"\012Press RETURN to continue...\000"
	.align	2
.LC39:
	.ascii	"%d objects were in application heap\012\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r0, .L116+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L116+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L116+12
	str	r2, [r3]
.L90:
	ldr	r0, .L116+16
	bl	printf
	sub	r3, fp, #176
	mov	r1, r3
	ldr	r0, .L116+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	beq	.L90
	ldr	r3, [fp, #-176]
	cmp	r3, #10
	bhi	.L90
	mov	r3, #88
	strb	r3, [fp, #-132]
	mov	r3, #79
	strb	r3, [fp, #-116]
	sub	r3, fp, #116
	str	r3, [fp, #-120]
	sub	r3, fp, #132
	str	r3, [fp, #-104]
	sub	r3, fp, #132
	mov	r0, r3
	bl	set_player_data
	sub	r3, fp, #116
	mov	r0, r3
	bl	set_player_data
	ldr	r0, .L116+24
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L116+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #110
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L91
.L92:
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, .L116+28
	add	r3, r3, r2
	mov	r2, #8
	mov	r1, #32
	mov	r0, r3
	bl	memset
	ldr	r1, .L116+28
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L91:
	ldr	r3, [fp, #-156]
	cmp	r3, #7
	bls	.L92
	ldrb	r2, [fp, #-132]	@ zero_extendqisi2
	ldr	r3, .L116+28
	strb	r2, [r3, #40]
	ldr	r3, .L116+28
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldr	r3, .L116+28
	strb	r2, [r3, #30]
	ldrb	r2, [fp, #-116]	@ zero_extendqisi2
	ldr	r3, .L116+28
	strb	r2, [r3, #39]
	ldr	r3, .L116+28
	ldrb	r2, [r3, #39]	@ zero_extendqisi2
	ldr	r3, .L116+28
	strb	r2, [r3, #31]
	mov	r3, #2
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-128]
	sub	r3, fp, #132
	str	r3, [fp, #-152]
	bl	draw_board
	mov	r1, #7
	ldr	r0, .L116+32
	bl	printf
.L110:
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-136]
	ldr	r0, .L116+36
	bl	puts
	sub	r0, fp, #172
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	ldr	r1, [fp, #-152]
	bl	best_move
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L93
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L116+40
	bl	printf
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L94
	ldr	r0, .L116+44
	bl	puts
	b	.L95
.L93:
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #8]
	cmp	r3, #1
	bne	.L96
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-112]
	mov	r1, r3
	ldr	r0, .L116+48
	bl	printf
.L106:
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L116+52
	bl	printf
.L97:
	sub	r3, fp, #20
	mov	r0, r3
	bl	gets
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L97
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r3, #81
	bne	.L98
	mov	r3, #1
	str	r3, [fp, #-164]
	b	.L99
.L98:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r3, #72
	bne	.L100
	ldr	r3, [fp, #-176]
	sub	r0, fp, #172
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #1
	ldr	r1, [fp, #-152]
	bl	best_move
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-172]
	ldr	r1, [r3]
	ldr	r3, [fp, #-172]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-160]
	ldr	r0, .L116+56
	bl	printf
	ldr	r3, [fp, #-172]
	mov	r0, r3
	bl	enqueue
	b	.L101
.L100:
	sub	r3, fp, #180
	sub	r2, fp, #184
	sub	r0, fp, #20
	ldr	r1, .L116+60
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-184]
	cmp	r3, #7
	bhi	.L102
	ldr	r3, [fp, #-180]
	cmp	r3, #7
	bls	.L103
.L102:
	ldr	r0, .L116+64
	bl	puts
	b	.L101
.L103:
	ldr	r2, [fp, #-184]
	ldr	r1, [fp, #-180]
	ldr	r0, .L116+28
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L104
	ldr	r0, .L116+68
	bl	puts
	b	.L106
.L104:
	ldr	r0, [fp, #-184]
	ldr	r1, [fp, #-180]
	sub	r3, fp, #100
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, [fp, #-152]
	bl	compute_effect
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L115
	ldr	r0, .L116+72
	bl	puts
.L101:
	b	.L106
.L115:
	nop
.L99:
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	beq	.L94
	b	.L95
.L96:
	ldr	r0, .L116+76
	bl	puts
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-176]
	sub	r0, fp, #172
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #1
	ldr	r1, [fp, #-152]
	bl	best_move
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-172]
	ldr	r2, [r3]
	ldr	r3, [fp, #-172]
	ldr	r3, [r3, #4]
	ldr	r0, .L116+80
	bl	printf
	ldr	r3, [fp, #-172]
	ldr	r0, [r3]
	ldr	r3, [fp, #-172]
	ldr	r1, [r3, #4]
	sub	r3, fp, #100
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, [fp, #-152]
	bl	compute_effect
	ldr	r0, .L116+84
	bl	puts
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-148]
	b	.L107
.L108:
	ldr	r3, [fp, #-148]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-144]
	ldr	r2, [r3]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	ldr	r0, .L116+88
	bl	printf
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-148]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-148]
.L107:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-172]
	mov	r0, r3
	bl	enqueue
.L94:
	ldr	r1, [fp, #-160]
	ldr	r0, .L116+92
	bl	printf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L109
	ldr	r0, .L116+96
	bl	puts
	ldr	r3, .L116+100
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	getchar
.L109:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-112]
	mov	r1, r3
	ldr	r0, .L116+48
	bl	printf
	bl	draw_board
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L95
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	cmp	r3, #63
	bls	.L110
.L95:
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L111
.L112:
	ldr	r3, .L116+104
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-172]
	ldr	r3, .L116+104
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-172]
	ldr	r2, .L116+104
	str	r3, [r2]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L111:
	ldr	r3, .L116+104
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L112
	ldr	r1, [fp, #-156]
	ldr	r0, .L116+108
	bl	printf
	mov	r3, #1
	ldr	r2, .L116
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC40
	.word	.LC18
	.word	.LC1
	.word	verbose
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	board
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	stdin
	.word	local_heap
	.word	.LC39
	.size	main, .-main
	.data
	.align	2
	.type	vector.5586, %object
	.size	vector.5586, 64
vector.5586:
	.word	-1
	.word	-1
	.word	-1
	.word	0
	.word	-1
	.word	1
	.word	0
	.word	-1
	.word	0
	.word	1
	.word	1
	.word	-1
	.word	1
	.word	0
	.word	1
	.word	1
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5588, %object
	.size	__PRETTY_FUNCTION__.5588, 15
__PRETTY_FUNCTION__.5588:
	.ascii	"compute_effect\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5618, %object
	.size	__PRETTY_FUNCTION__.5618, 10
__PRETTY_FUNCTION__.5618:
	.ascii	"best_move\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
