	.file	"163786.c"
	.intel_syntax noprefix
	.text
	.globl	check_win_state
	.type	check_win_state, @function
check_win_state:
.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 -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L5
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 6[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L7
	mov	eax, 1
	jmp	.L4
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L8
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L9
	mov	eax, 1
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L10
	mov	eax, 1
	jmp	.L4
.L10:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_win_state, .-check_win_state
	.globl	find_eval_func
	.type	find_eval_func, @function
find_eval_func:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	movsx	edx, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L12
	mov	eax, 8
	jmp	.L13
.L12:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L15
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L15
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	jne	.L16
.L15:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	je	.L16
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L16
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	je	.L16
	add	DWORD PTR -4[rbp], 1
.L16:
	add	DWORD PTR -8[rbp], 1
.L14:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L17
	mov	DWORD PTR -8[rbp], 0
	jmp	.L18
.L21:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 6[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	jne	.L20
.L19:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 6[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	je	.L20
	add	DWORD PTR -4[rbp], 1
.L20:
	add	DWORD PTR -8[rbp], 1
.L18:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L21
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	je	.L22
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L22
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L23
.L22:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	je	.L23
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L23
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	je	.L23
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	jne	.L25
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	je	.L25
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	je	.L27
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L27
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	jne	.L28
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L28
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L28
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	je	.L28
	sub	DWORD PTR -4[rbp], 1
.L28:
	add	DWORD PTR -8[rbp], 1
.L26:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L29
	mov	DWORD PTR -8[rbp], 0
	jmp	.L30
.L33:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	je	.L31
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	je	.L31
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 6[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 79
	jne	.L32
.L31:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 6[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 88
	je	.L32
	sub	DWORD PTR -4[rbp], 1
.L32:
	add	DWORD PTR -8[rbp], 1
.L30:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L33
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	je	.L34
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L34
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	jne	.L35
.L34:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L35
	sub	DWORD PTR -4[rbp], 1
.L35:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	je	.L36
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 79
	je	.L36
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 79
	jne	.L37
.L36:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L37
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L37
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 88
	je	.L37
	sub	DWORD PTR -4[rbp], 1
.L37:
	cmp	BYTE PTR -28[rbp], 88
	jne	.L38
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L13
.L38:
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_eval_func, .-find_eval_func
	.section	.rodata
.LC0:
	.string	" %c"
	.text
	.globl	print_game_state
	.type	print_game_state, @function
print_game_state:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L40
.L43:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L41:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L42
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L40:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L43
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_game_state, .-print_game_state
	.globl	isEqual
	.type	isEqual, @function
isEqual:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L45
.L50:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	je	.L47
	mov	eax, 0
	jmp	.L48
.L47:
	add	DWORD PTR -4[rbp], 1
.L46:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L49
	add	DWORD PTR -8[rbp], 1
.L45:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L50
	mov	eax, 1
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEqual, .-isEqual
	.section	.rodata
	.align 8
.LC1:
	.string	"Enter the look-ahead value (2 or 4):"
.LC2:
	.string	"%d"
.LC3:
	.string	"Invalid Input!"
.LC4:
	.string	"\nX:Player 1\nO:Player 2"
	.align 8
.LC5:
	.string	"Enter the player whose turn is (Choose either X or O): "
.LC6:
	.string	"Entered value: %c\n"
	.align 8
.LC7:
	.string	"Invalid Input. Please enter either X or O."
	.align 8
.LC8:
	.string	"\nInput board position (For blank spaces use character '-'):"
.LC9:
	.string	"Matrix[%d][%d]: "
.LC10:
	.string	"\nPlease enter X, O or -"
.LC11:
	.string	"Value at Position[%d][%d]: "
.LC12:
	.string	"\nStatus of the game:"
	.align 8
.LC13:
	.string	"\nIn the given state, X is already a winner"
	.align 8
.LC14:
	.string	"\nIn the given state, O is already a winner"
	.align 8
.LC15:
	.string	"\nNext best move for the player %c:\n"
.LC16:
	.string	"\nX is the winner"
.LC17:
	.string	"\nO is the winner"
.LC18:
	.string	"\nMatch Drawn"
	.align 8
.LC19:
	.string	"Please enter the move (in index 1,2,3) of player %c:\n"
	.align 8
.LC20:
	.string	"\nHorizontal game state value index: "
.LC21:
	.string	" %d"
	.align 8
.LC22:
	.string	"Vertical game state value index: "
	.align 8
.LC23:
	.string	"Entered horizontal index and vertical index: %d, %d\n"
	.align 8
.LC24:
	.string	"\nA previous value can't be changed and the input should be valid index"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -71[rbp], 0
	mov	WORD PTR -41[rbp], 11565
	mov	BYTE PTR -39[rbp], 45
	mov	WORD PTR -38[rbp], 11565
	mov	BYTE PTR -36[rbp], 45
	mov	WORD PTR -35[rbp], 11565
	mov	BYTE PTR -33[rbp], 45
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 4
	mov	BYTE PTR -69[rbp], 112
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L52
.L54:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L52:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 2
	je	.L53
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 4
	jne	.L54
.L53:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -71[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -71[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 88
	je	.L55
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 79
	je	.L55
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L87
.L55:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L57
.L63:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L58
.L62:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -70[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L59
.L61:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -70[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L59:
	movzx	eax, BYTE PTR -70[rbp]
	cmp	al, 88
	je	.L60
	movzx	eax, BYTE PTR -70[rbp]
	cmp	al, 79
	je	.L60
	movzx	eax, BYTE PTR -70[rbp]
	cmp	al, 45
	jne	.L61
.L60:
	movzx	edx, BYTE PTR -70[rbp]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 41
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -52[rbp], 1
.L58:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L62
	add	DWORD PTR -56[rbp], 1
.L57:
	cmp	DWORD PTR -56[rbp], 2
	jle	.L63
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rax, -41[rbp]
	mov	rdi, rax
	call	print_game_state
	lea	rax, -41[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L64
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L64:
	lea	rax, -41[rbp]
	mov	esi, 79
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L66
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L66
.L85:
	mov	r8d, DWORD PTR -60[rbp]
	movzx	eax, BYTE PTR -71[rbp]
	movsx	edi, al
	movsx	ecx, BYTE PTR -69[rbp]
	movzx	eax, BYTE PTR -71[rbp]
	movsx	edx, al
	mov	esi, DWORD PTR -48[rbp]
	lea	rax, -41[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	find_next_move
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	lea	rdx, -32[rbp]
	lea	rax, -41[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	isEqual
	test	eax, eax
	je	.L67
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 88
	jne	.L68
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L69
.L68:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L69:
	mov	eax, 0
	jmp	.L87
.L67:
	movzx	eax, BYTE PTR -71[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	print_game_state
	lea	rax, -32[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L70
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L87
.L70:
	lea	rax, -32[rbp]
	mov	esi, 79
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L71
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L87
.L71:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	isMovesLeft
	test	eax, eax
	jne	.L72
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L87
.L72:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L73
.L76:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L74
.L75:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 32
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 41
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -52[rbp], 1
.L74:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L75
	add	DWORD PTR -56[rbp], 1
.L73:
	cmp	DWORD PTR -56[rbp], 2
	jle	.L76
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 88
	jne	.L77
	mov	BYTE PTR -71[rbp], 79
	jmp	.L82
.L77:
	mov	BYTE PTR -71[rbp], 88
.L82:
	movzx	eax, BYTE PTR -71[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 41
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L89
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L82
.L89:
	nop
	mov	eax, DWORD PTR -68[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, 1
	movzx	edx, BYTE PTR -71[rbp]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 41
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 88
	jne	.L83
	mov	BYTE PTR -71[rbp], 79
	jmp	.L66
.L83:
	mov	BYTE PTR -71[rbp], 88
.L66:
	lea	rax, -41[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	jne	.L84
	lea	rax, -41[rbp]
	mov	esi, 79
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	jne	.L84
	lea	rax, -41[rbp]
	mov	rdi, rax
	call	isMovesLeft
	test	eax, eax
	jne	.L85
.L84:
	lea	rax, -41[rbp]
	mov	rdi, rax
	call	isMovesLeft
	test	eax, eax
	jne	.L86
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L87
.L86:
	mov	eax, 0
.L87:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L88
	call	__stack_chk_fail@PLT
.L88:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.globl	isMovesLeft
	.type	isMovesLeft, @function
isMovesLeft:
.LFB11:
	.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 -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L91
.L96:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L92
.L95:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	jne	.L93
	mov	eax, 1
	jmp	.L94
.L93:
	add	DWORD PTR -4[rbp], 1
.L92:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L95
	add	DWORD PTR -8[rbp], 1
.L91:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L96
	mov	eax, 0
.L94:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	isMovesLeft, .-isMovesLeft
	.globl	find_next_move
	.type	find_next_move, @function
find_next_move:
.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	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	eax, ecx
	mov	ecx, r8d
	mov	DWORD PTR -124[rbp], r9d
	mov	BYTE PTR -112[rbp], dl
	mov	BYTE PTR -116[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -120[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], -8
	mov	DWORD PTR -72[rbp], 8
	mov	DWORD PTR -68[rbp], 0
	mov	BYTE PTR -94[rbp], 32
	mov	BYTE PTR -93[rbp], 32
	mov	DWORD PTR -84[rbp], 0
	jmp	.L98
.L101:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L99
.L100:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L99:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L100
	add	DWORD PTR -84[rbp], 1
.L98:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L101
	mov	DWORD PTR -84[rbp], 0
	jmp	.L102
.L105:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L103
.L104:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 48
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L103:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L104
	add	DWORD PTR -84[rbp], 1
.L102:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L105
	movsx	edx, BYTE PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L106
	cmp	BYTE PTR -116[rbp], 110
	jne	.L106
	mov	DWORD PTR -52[rbp], 8
	mov	DWORD PTR -84[rbp], 0
	jmp	.L107
.L110:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L108
.L109:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L108:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L109
	add	DWORD PTR -84[rbp], 1
.L107:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L110
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L164
.L106:
	cmp	BYTE PTR -120[rbp], 88
	jne	.L112
	mov	BYTE PTR -93[rbp], 79
	jmp	.L113
.L112:
	mov	BYTE PTR -93[rbp], 88
.L113:
	movsx	edx, BYTE PTR -93[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_win_state
	test	eax, eax
	je	.L114
	cmp	BYTE PTR -116[rbp], 112
	jne	.L114
	mov	DWORD PTR -52[rbp], -8
	mov	DWORD PTR -84[rbp], 0
	jmp	.L115
.L118:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L116
.L117:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L116:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L117
	add	DWORD PTR -84[rbp], 1
.L115:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L118
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L164
.L114:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	isMovesLeft
	test	eax, eax
	jne	.L119
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L120
.L123:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L121
.L122:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L121:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L122
	add	DWORD PTR -84[rbp], 1
.L120:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L123
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L164
.L119:
	cmp	DWORD PTR -108[rbp], 1
	je	.L124
	cmp	DWORD PTR -124[rbp], 1
	jne	.L125
.L124:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L126
.L140:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L127
.L139:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	jne	.L128
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	edx, BYTE PTR -112[rbp]
	mov	BYTE PTR [rcx+rax], dl
	movsx	edx, BYTE PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	find_eval_func
	mov	DWORD PTR -68[rbp], eax
	cmp	BYTE PTR -116[rbp], 112
	jne	.L129
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jge	.L130
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L131
.L134:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L132
.L133:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L132:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L133
	add	DWORD PTR -84[rbp], 1
.L131:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L134
	jmp	.L130
.L129:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L130
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L135
.L138:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L136
.L137:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 64
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L136:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L137
	add	DWORD PTR -84[rbp], 1
.L135:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L138
.L130:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 45
.L128:
	add	DWORD PTR -88[rbp], 1
.L127:
	cmp	DWORD PTR -88[rbp], 2
	jle	.L139
	add	DWORD PTR -92[rbp], 1
.L126:
	cmp	DWORD PTR -92[rbp], 2
	jle	.L140
	cmp	BYTE PTR -116[rbp], 112
	jne	.L141
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -52[rbp], eax
	jmp	.L142
.L141:
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -52[rbp], eax
.L142:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L164
.L125:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L143
.L161:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L144
.L160:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	jne	.L145
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	edx, BYTE PTR -112[rbp]
	mov	BYTE PTR [rcx+rax], dl
	cmp	BYTE PTR -116[rbp], 112
	jne	.L146
	mov	BYTE PTR -94[rbp], 110
	jmp	.L147
.L146:
	mov	BYTE PTR -94[rbp], 112
.L147:
	cmp	BYTE PTR -112[rbp], 88
	jne	.L148
	mov	eax, DWORD PTR -124[rbp]
	lea	edi, -1[rax]
	movsx	ecx, BYTE PTR -120[rbp]
	movsx	edx, BYTE PTR -94[rbp]
	mov	eax, DWORD PTR -108[rbp]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 79
	mov	rdi, rax
	call	find_next_move
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	jmp	.L149
.L148:
	mov	eax, DWORD PTR -124[rbp]
	lea	edi, -1[rax]
	movsx	ecx, BYTE PTR -120[rbp]
	movsx	edx, BYTE PTR -94[rbp]
	mov	eax, DWORD PTR -108[rbp]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 88
	mov	rdi, rax
	call	find_next_move
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
.L149:
	cmp	BYTE PTR -116[rbp], 112
	jne	.L150
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -76[rbp], eax
	jge	.L151
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L152
.L155:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L153
.L154:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 48
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L153:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L154
	add	DWORD PTR -84[rbp], 1
.L152:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L155
	jmp	.L151
.L150:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jle	.L151
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L156
.L159:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L157
.L158:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 48
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -80[rbp], 1
.L157:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L158
	add	DWORD PTR -84[rbp], 1
.L156:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L159
.L151:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 45
.L145:
	add	DWORD PTR -88[rbp], 1
.L144:
	cmp	DWORD PTR -88[rbp], 2
	jle	.L160
	add	DWORD PTR -92[rbp], 1
.L143:
	cmp	DWORD PTR -92[rbp], 2
	jle	.L161
	cmp	BYTE PTR -116[rbp], 112
	jne	.L162
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L163
.L162:
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -36[rbp], eax
.L163:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
.L164:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L165
	call	__stack_chk_fail@PLT
.L165:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	find_next_move, .-find_next_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	"163786.c"
	.text
	.align	2
	.global	check_win_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_win_state, %function
check_win_state:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-16]
	add	r2, r3, #6
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	mov	r3, #1
	b	.L4
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L8
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	mov	r3, #1
	b	.L4
.L9:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	mov	r3, #1
	b	.L4
.L10:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_win_state, .-check_win_state
	.align	2
	.global	find_eval_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_eval_func, %function
find_eval_func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #8
	b	.L13
.L12:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L17:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L16
.L15:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L16
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L21:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L19
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L19
	ldr	r3, [fp, #-16]
	add	r2, r3, #6
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L20
.L19:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L20
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L20
	ldr	r3, [fp, #-16]
	add	r2, r3, #6
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L20
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L21
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L22
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L22
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L23
.L22:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L23
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L25
.L24:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L25
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L25
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L26
.L29:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L28
.L27:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L28
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L28
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L28
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L29
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L30
.L33:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L31
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L31
	ldr	r3, [fp, #-16]
	add	r2, r3, #6
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L32
.L31:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L32
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L32
	ldr	r3, [fp, #-16]
	add	r2, r3, #6
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L32
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L33
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L34
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L34
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L35
.L34:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L35
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L35
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L35
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L36
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L36
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L37
.L36:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L37
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L37
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L37
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L38
	ldr	r3, [fp, #-8]
	b	.L13
.L38:
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_eval_func, .-find_eval_func
	.section	.rodata
	.align	2
.LC1:
	.ascii	" %c\000"
	.text
	.align	2
	.global	print_game_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_game_state, %function
print_game_state:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L40
.L43:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L44
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L42
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L43
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC1
	.size	print_game_state, .-print_game_state
	.align	2
	.global	isEqual
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEqual, %function
isEqual:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L47
.L52:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L48
.L51:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L49
	mov	r3, #0
	b	.L50
.L49:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L48:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L51
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L52
	mov	r3, #1
.L50:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEqual, .-isEqual
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Enter the look-ahead value (2 or 4):\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Invalid Input!\000"
	.align	2
.LC5:
	.ascii	"\012X:Player 1\012O:Player 2\000"
	.align	2
.LC6:
	.ascii	"Enter the player whose turn is (Choose either X or "
	.ascii	"O): \000"
	.align	2
.LC7:
	.ascii	"Entered value: %c\012\000"
	.align	2
.LC8:
	.ascii	"Invalid Input. Please enter either X or O.\000"
	.align	2
.LC9:
	.ascii	"\012Input board position (For blank spaces use char"
	.ascii	"acter '-'):\000"
	.align	2
.LC10:
	.ascii	"Matrix[%d][%d]: \000"
	.align	2
.LC11:
	.ascii	"\012Please enter X, O or -\000"
	.align	2
.LC12:
	.ascii	"Value at Position[%d][%d]: \000"
	.align	2
.LC13:
	.ascii	"\012Status of the game:\000"
	.align	2
.LC14:
	.ascii	"\012In the given state, X is already a winner\000"
	.align	2
.LC15:
	.ascii	"\012In the given state, O is already a winner\000"
	.align	2
.LC16:
	.ascii	"\012Next best move for the player %c:\012\000"
	.align	2
.LC17:
	.ascii	"\012X is the winner\000"
	.align	2
.LC18:
	.ascii	"\012O is the winner\000"
	.align	2
.LC19:
	.ascii	"\012Match Drawn\000"
	.align	2
.LC20:
	.ascii	"Please enter the move (in index 1,2,3) of player %c"
	.ascii	":\012\000"
	.align	2
.LC21:
	.ascii	"\012Horizontal game state value index: \000"
	.align	2
.LC22:
	.ascii	" %d\000"
	.align	2
.LC23:
	.ascii	"Vertical game state value index: \000"
	.align	2
.LC24:
	.ascii	"Entered horizontal index and vertical index: %d, %d"
	.ascii	"\012\000"
	.align	2
.LC25:
	.ascii	"\012A previous value can't be changed and the input"
	.ascii	" should be valid index\000"
	.align	2
.LC0:
	.ascii	"---"
	.ascii	"---"
	.ascii	"---"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-63]
	ldr	r2, .L92+4
	sub	r3, fp, #36
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #4
	str	r3, [fp, #-40]
	mov	r3, #112
	strb	r3, [fp, #-61]
	ldr	r0, .L92+8
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L92+12
	bl	__isoc99_scanf
	b	.L54
.L56:
	ldr	r0, .L92+16
	bl	puts
	ldr	r0, .L92+8
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L92+12
	bl	__isoc99_scanf
.L54:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	beq	.L55
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	bne	.L56
.L55:
	ldr	r0, .L92+20
	bl	puts
	ldr	r0, .L92+24
	bl	printf
	sub	r3, fp, #63
	mov	r1, r3
	ldr	r0, .L92+28
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L92+32
	bl	printf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L57
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L57
	ldr	r0, .L92+36
	bl	puts
	mov	r3, #0
	b	.L89
.L57:
	ldr	r0, .L92+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L59
.L65:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L60
.L64:
	ldr	r3, [fp, #-48]
	add	r1, r3, #1
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L92+44
	bl	printf
	sub	r3, fp, #62
	mov	r1, r3
	ldr	r0, .L92+28
	bl	__isoc99_scanf
	b	.L61
.L63:
	ldr	r0, .L92+48
	bl	puts
	ldr	r3, [fp, #-48]
	add	r1, r3, #1
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L92+52
	bl	printf
	sub	r3, fp, #62
	mov	r1, r3
	ldr	r0, .L92+28
	bl	__isoc99_scanf
.L61:
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L62
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L62
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L63
.L62:
	ldrb	r1, [fp, #-62]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	sub	r3, r3, #32
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L60:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L64
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L59:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L65
	ldr	r0, .L92+56
	bl	puts
	sub	r3, fp, #36
	mov	r0, r3
	bl	print_game_state
	sub	r3, fp, #36
	mov	r1, #88
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r0, .L92+60
	bl	puts
.L66:
	sub	r3, fp, #36
	mov	r1, #79
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r0, .L92+64
	bl	puts
	b	.L68
.L87:
	ldrb	ip, [fp, #-63]	@ zero_extendqisi2
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	ldr	r2, [fp, #-52]
	sub	r0, fp, #84
	sub	r1, fp, #36
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, [fp, #-40]
	bl	find_next_move
	sub	ip, fp, #24
	sub	r3, fp, #84
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r2, fp, #24
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	isEqual
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L70
	ldr	r0, .L92+64
	bl	puts
	b	.L71
.L70:
	ldr	r0, .L92+60
	bl	puts
.L71:
	mov	r3, #0
	b	.L89
.L69:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L92+68
	bl	printf
	sub	r3, fp, #24
	mov	r0, r3
	bl	print_game_state
	sub	r3, fp, #24
	mov	r1, #88
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r0, .L92+72
	bl	puts
	mov	r3, #0
	b	.L89
.L72:
	sub	r3, fp, #24
	mov	r1, #79
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r0, .L92+76
	bl	puts
	mov	r3, #0
	b	.L89
.L73:
	sub	r3, fp, #24
	mov	r0, r3
	bl	isMovesLeft
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r0, .L92+80
	bl	puts
	mov	r3, #0
	b	.L89
.L74:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L75
.L78:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L76
.L77:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	sub	r3, r3, #20
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	sub	r3, r3, #32
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L76:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L77
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L75:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L78
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L79
	mov	r3, #79
	strb	r3, [fp, #-63]
	b	.L84
.L79:
	mov	r3, #88
	strb	r3, [fp, #-63]
.L84:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L92+84
	bl	printf
	ldr	r0, .L92+88
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L92+92
	bl	__isoc99_scanf
	ldr	r0, .L92+96
	bl	printf
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L92+92
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L92+100
	bl	printf
	ldr	r3, [fp, #-60]
	sub	r2, r3, #1
	ldr	r3, [fp, #-56]
	sub	r1, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L91
	ldr	r0, .L92+104
	bl	puts
	b	.L84
.L91:
	nop
	ldr	r3, [fp, #-60]
	sub	r2, r3, #1
	ldr	r3, [fp, #-56]
	sub	r1, r3, #1
	ldrb	r0, [fp, #-63]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #32
	mov	r2, r0
	strb	r2, [r3]
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L85
	mov	r3, #79
	strb	r3, [fp, #-63]
	b	.L68
.L85:
	mov	r3, #88
	strb	r3, [fp, #-63]
.L68:
	sub	r3, fp, #36
	mov	r1, #88
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	sub	r3, fp, #36
	mov	r1, #79
	mov	r0, r3
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	sub	r3, fp, #36
	mov	r0, r3
	bl	isMovesLeft
	mov	r3, r0
	cmp	r3, #0
	bne	.L87
.L86:
	sub	r3, fp, #36
	mov	r0, r3
	bl	isMovesLeft
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	ldr	r0, .L92+80
	bl	puts
	mov	r3, #0
	b	.L89
.L88:
	mov	r3, #0
.L89:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC26
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.align	2
	.global	isMovesLeft
	.syntax unified
	.arm
	.fpu softvfp
	.type	isMovesLeft, %function
isMovesLeft:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L95
.L100:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L96
.L99:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L97
	mov	r3, #1
	b	.L98
.L97:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L96:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L99
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L95:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L100
	mov	r3, #0
.L98:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isMovesLeft, .-isMovesLeft
	.section	.rodata
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	find_next_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_next_move, %function
find_next_move:
	@ args = 12, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	strb	r3, [fp, #-89]
	ldr	r3, .L170
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mvn	r3, #7
	str	r3, [fp, #-52]
	mov	r3, #8
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #32
	strb	r3, [fp, #-70]
	mov	r3, #32
	strb	r3, [fp, #-69]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L102
.L105:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L103
.L104:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L103:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L104
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L102:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L105
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L106
.L109:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L107
.L108:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #20
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L107:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L108
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L106:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L109
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L110
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L110
	mov	r3, #8
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L111
.L114:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L112
.L113:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L112:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L113
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L111:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L114
	ldr	r3, [fp, #-80]
	mov	ip, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L101
.L110:
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L116
	mov	r3, #79
	strb	r3, [fp, #-69]
	b	.L117
.L116:
	mov	r3, #88
	strb	r3, [fp, #-69]
.L117:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	check_win_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L118
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L118
	mvn	r3, #7
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L119
.L122:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L120
.L121:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L120:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L121
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L119:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L122
	ldr	r3, [fp, #-80]
	mov	ip, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L101
.L118:
	ldr	r0, [fp, #-84]
	bl	isMovesLeft
	mov	r3, r0
	cmp	r3, #0
	bne	.L123
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L124
.L127:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L125
.L126:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L125:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L126
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L124:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L127
	ldr	r3, [fp, #-80]
	mov	ip, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L101
.L123:
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	beq	.L128
	ldr	r3, [fp, #12]
	cmp	r3, #1
	bne	.L129
.L128:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L130
.L144:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L131
.L143:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L132
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r2, [fp, #-89]
	strb	r2, [r3]
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	find_eval_func
	str	r0, [fp, #-44]
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L133
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L134
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L135
.L138:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L136
.L137:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L136:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L137
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L135:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L138
	b	.L134
.L133:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L134
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L139
.L142:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L140
.L141:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L140:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L141
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L139:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L142
.L134:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
.L132:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L131:
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	ble	.L143
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L130:
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	ble	.L144
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L145
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-28]
	b	.L146
.L145:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
.L146:
	ldr	r3, [fp, #-80]
	mov	ip, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L101
.L129:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L147
.L165:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L148
.L164:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L149
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r2, [fp, #-89]
	strb	r2, [r3]
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L150
	mov	r3, #110
	strb	r3, [fp, #-70]
	b	.L151
.L150:
	mov	r3, #112
	strb	r3, [fp, #-70]
.L151:
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L152
	ldr	r3, [fp, #-88]
	sub	r2, r3, #1
	ldr	r3, [fp, #12]
	sub	r3, r3, #1
	sub	r0, fp, #108
	str	r3, [sp, #8]
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	str	r3, [sp, #4]
	ldrb	r3, [fp, #-70]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #79
	ldr	r1, [fp, #-84]
	bl	find_next_move
	sub	ip, fp, #40
	sub	r3, fp, #108
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L153
.L152:
	ldr	r3, [fp, #-88]
	sub	r2, r3, #1
	ldr	r3, [fp, #12]
	sub	r3, r3, #1
	sub	r0, fp, #108
	str	r3, [sp, #8]
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	str	r3, [sp, #4]
	ldrb	r3, [fp, #-70]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #88
	ldr	r1, [fp, #-84]
	bl	find_next_move
	sub	ip, fp, #40
	sub	r3, fp, #108
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L153:
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L154
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L155
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L156
.L159:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L157
.L158:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #20
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L157:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L158
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L156:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L159
	b	.L155
.L154:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L155
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L160
.L163:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L161
.L162:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #20
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L161:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L162
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L160:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L163
.L155:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
.L149:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L148:
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	ble	.L164
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L147:
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	ble	.L165
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L166
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-12]
	b	.L167
.L166:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
.L167:
	ldr	r3, [fp, #-80]
	mov	ip, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L101:
	ldr	r3, .L170
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L169
	bl	__stack_chk_fail
.L169:
	ldr	r0, [fp, #-80]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L171:
	.align	2
.L170:
	.word	.LC27
	.size	find_next_move, .-find_next_move
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
