	.file	"786117.c"
	.intel_syntax noprefix
	.text
	.globl	Directions
	.section	.rodata
	.align 16
	.type	Directions, @object
	.size	Directions, 16
Directions:
	.long	1
	.long	5
	.long	4
	.long	6
	.globl	ConvertTo25
	.align 32
	.type	ConvertTo25, @object
	.size	ConvertTo25, 36
ConvertTo25:
	.long	6
	.long	7
	.long	8
	.long	11
	.long	12
	.long	13
	.long	16
	.long	17
	.long	18
	.globl	InMiddle
	.align 4
	.type	InMiddle, @object
	.size	InMiddle, 4
InMiddle:
	.long	4
	.globl	Corners
	.align 16
	.type	Corners, @object
	.size	Corners, 16
Corners:
	.long	0
	.long	2
	.long	6
	.long	8
	.globl	ply
	.bss
	.align 4
	.type	ply, @object
	.size	ply, 4
ply:
	.zero	4
	.globl	positions
	.align 4
	.type	positions, @object
	.size	positions, 4
positions:
	.zero	4
	.globl	maxPly
	.align 4
	.type	maxPly, @object
	.size	maxPly, 4
maxPly:
	.zero	4
	.text
	.globl	GetNumForDir
	.type	GetNumForDir, @function
GetNumForDir:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L7
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	add	DWORD PTR -20[rbp], eax
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L5
	jmp	.L4
.L7:
	nop
.L4:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	GetNumForDir, .-GetNumForDir
	.globl	FindThreeInARow
	.type	FindThreeInARow, @function
FindThreeInARow:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Directions[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, [rdx+rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	call	GetNumForDir
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	mov	esi, eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	edi, eax
	call	GetNumForDir
	add	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 3
	je	.L14
	mov	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L9:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L12
	jmp	.L11
.L14:
	nop
.L11:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	FindThreeInARow, .-FindThreeInARow
	.globl	FindThreeInARowAllBoard
	.type	FindThreeInARowAllBoard, @function
FindThreeInARowAllBoard:
.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 -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L17
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	FindThreeInARow
	cmp	eax, 3
	jne	.L17
	mov	DWORD PTR -8[rbp], 1
	jmp	.L18
.L17:
	add	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L19
.L18:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	FindThreeInARowAllBoard, .-FindThreeInARowAllBoard
	.globl	EvalForWin
	.type	EvalForWin, @function
EvalForWin:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	FindThreeInARowAllBoard
	test	eax, eax
	je	.L22
	mov	eax, 1
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -12[rbp]
	xor	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	FindThreeInARowAllBoard
	test	eax, eax
	je	.L24
	mov	eax, -1
	jmp	.L23
.L24:
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	EvalForWin, .-EvalForWin
	.globl	MinMax
	.type	MinMax, @function
MinMax:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], -2
	mov	DWORD PTR -56[rbp], -2
	mov	DWORD PTR -64[rbp], -1
	mov	edx, DWORD PTR ply[rip]
	mov	eax, DWORD PTR maxPly[rip]
	cmp	edx, eax
	jle	.L26
	mov	eax, DWORD PTR ply[rip]
	mov	DWORD PTR maxPly[rip], eax
.L26:
	mov	eax, DWORD PTR positions[rip]
	add	eax, 1
	mov	DWORD PTR positions[rip], eax
	mov	eax, DWORD PTR ply[rip]
	test	eax, eax
	jle	.L27
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	EvalForWin
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	je	.L27
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L37
.L27:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L29
.L31:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L30
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -72[rbp], edx
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, ConvertTo25[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
.L30:
	add	DWORD PTR -60[rbp], 1
.L29:
	cmp	DWORD PTR -60[rbp], 8
	jle	.L31
	mov	DWORD PTR -60[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR ply[rip]
	add	eax, 1
	mov	DWORD PTR ply[rip], eax
	mov	eax, DWORD PTR -92[rbp]
	xor	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	MinMax
	neg	eax
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L33
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
.L33:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 3
	mov	eax, DWORD PTR ply[rip]
	sub	eax, 1
	mov	DWORD PTR ply[rip], eax
	add	DWORD PTR -60[rbp], 1
.L32:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L34
	cmp	DWORD PTR -72[rbp], 0
	jne	.L35
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	FindThreeInARowAllBoard
	mov	DWORD PTR -68[rbp], eax
.L35:
	mov	eax, DWORD PTR ply[rip]
	test	eax, eax
	je	.L36
	mov	eax, DWORD PTR -68[rbp]
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -64[rbp]
.L37:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	MinMax, .-MinMax
	.globl	InitialiseBoard
	.type	InitialiseBoard, @function
InitialiseBoard:
.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 -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 2
	add	DWORD PTR -4[rbp], 1
.L40:
	cmp	DWORD PTR -4[rbp], 24
	jle	.L41
	mov	DWORD PTR -4[rbp], 0
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 3
	add	DWORD PTR -4[rbp], 1
.L42:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L43
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	InitialiseBoard, .-InitialiseBoard
	.section	.rodata
.LC0:
	.string	"\n\nBoard:\n"
.LC1:
	.string	"\n"
.LC2:
	.string	"%4c"
	.text
	.globl	PrintBoard
	.type	PrintBoard, @function
PrintBoard:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -13[rbp], 763123791
	mov	BYTE PTR -9[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L47:
	cmp	DWORD PTR -20[rbp], 0
	je	.L46
	mov	edx, DWORD PTR -20[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L46
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L46:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -13[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L45:
	cmp	DWORD PTR -20[rbp], 8
	jle	.L47
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	PrintBoard, .-PrintBoard
	.globl	HasEmpty
	.type	HasEmpty, @function
HasEmpty:
.LFB13:
	.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 -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L50
.L53:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L51
	mov	eax, 1
	jmp	.L52
.L51:
	add	DWORD PTR -4[rbp], 1
.L50:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L53
	mov	eax, 0
.L52:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	HasEmpty, .-HasEmpty
	.globl	MakeMove
	.type	MakeMove, @function
MakeMove:
.LFB14:
	.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
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	MakeMove, .-MakeMove
	.globl	GetNextBest
	.type	GetNextBest, @function
GetNextBest:
.LFB15:
	.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, 4
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L56
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L57
.L56:
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Corners[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L62
	mov	DWORD PTR -8[rbp], -1
	add	DWORD PTR -4[rbp], 1
.L58:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L61
	jmp	.L60
.L62:
	nop
.L60:
	mov	eax, DWORD PTR -8[rbp]
.L57:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	GetNextBest, .-GetNextBest
	.globl	GetWinningMove
	.type	GetWinningMove, @function
GetWinningMove:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L64
.L69:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L65
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	FindThreeInARow
	cmp	eax, 3
	jne	.L66
	mov	DWORD PTR -8[rbp], 1
.L66:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 3
	cmp	DWORD PTR -8[rbp], 1
	je	.L71
	mov	DWORD PTR -12[rbp], -1
.L65:
	add	DWORD PTR -4[rbp], 1
.L64:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L69
	jmp	.L68
.L71:
	nop
.L68:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	GetWinningMove, .-GetWinningMove
	.section	.rodata
	.align 8
.LC3:
	.string	"Finished Searching positions:%d maxDepth:%d bestMove:%d\n"
	.text
	.globl	GetComputerMove
	.type	GetComputerMove, @function
GetComputerMove:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR ply[rip], 0
	mov	DWORD PTR positions[rip], 0
	mov	DWORD PTR maxPly[rip], 0
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	MinMax
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR maxPly[rip]
	mov	eax, DWORD PTR positions[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	GetComputerMove, .-GetComputerMove
	.section	.rodata
	.align 8
.LC4:
	.string	"Please enter a move from 1 to 9:"
.LC5:
	.string	"Invalid strlen()"
.LC6:
	.string	"%d"
.LC7:
	.string	"Invalid sscanf()"
.LC8:
	.string	"Invalid range"
.LC9:
	.string	"Square not available"
.LC10:
	.string	"Making Move...%d\n"
	.text
	.globl	GetHumanMove
	.type	GetHumanMove, @function
GetHumanMove:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], -1
	jmp	.L75
.L81:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -12[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	je	.L76
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L75
.L76:
	lea	rdx, -20[rbp]
	lea	rax, -12[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L77
	mov	DWORD PTR -20[rbp], -1
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L75
.L77:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L78
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 9
	jle	.L79
.L78:
	mov	DWORD PTR -20[rbp], -1
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L75
.L79:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L80
	mov	DWORD PTR -20[rbp], -1
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L75
.L80:
	mov	DWORD PTR -16[rbp], 1
.L75:
	cmp	DWORD PTR -16[rbp], 0
	je	.L81
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ConvertTo25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	GetHumanMove, .-GetHumanMove
	.section	.rodata
.LC11:
	.string	"Game over!"
.LC12:
	.string	"Computer Wins"
.LC13:
	.string	"Human Wins"
.LC14:
	.string	"It's a draw"
	.text
	.globl	RunGame
	.type	RunGame, @function
RunGame:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -116[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	InitialiseBoard
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	PrintBoard
	jmp	.L85
.L90:
	cmp	DWORD PTR -120[rbp], 0
	jne	.L86
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	GetHumanMove
	mov	DWORD PTR -116[rbp], eax
	mov	edx, DWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	lea	rax, -112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	MakeMove
	mov	DWORD PTR -120[rbp], 1
	jmp	.L87
.L86:
	mov	edx, DWORD PTR -120[rbp]
	lea	rax, -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	GetComputerMove
	mov	DWORD PTR -116[rbp], eax
	mov	edx, DWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	lea	rax, -112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	MakeMove
	mov	DWORD PTR -120[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	PrintBoard
.L87:
	mov	eax, DWORD PTR -120[rbp]
	xor	eax, 1
	mov	edx, eax
	mov	ecx, DWORD PTR -116[rbp]
	lea	rax, -112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	FindThreeInARow
	cmp	eax, 3
	jne	.L88
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -124[rbp], 1
	cmp	DWORD PTR -120[rbp], 0
	jne	.L89
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L88
.L89:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L88:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	HasEmpty
	test	eax, eax
	jne	.L85
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -124[rbp], 1
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L85:
	cmp	DWORD PTR -124[rbp], 0
	je	.L90
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	PrintBoard
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	RunGame, .-RunGame
	.globl	main
	.type	main, @function
main:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	RunGame
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.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	"786117.c"
	.text
	.global	Directions
	.section	.rodata
	.align	2
	.type	Directions, %object
	.size	Directions, 16
Directions:
	.word	1
	.word	5
	.word	4
	.word	6
	.global	ConvertTo25
	.align	2
	.type	ConvertTo25, %object
	.size	ConvertTo25, 36
ConvertTo25:
	.word	6
	.word	7
	.word	8
	.word	11
	.word	12
	.word	13
	.word	16
	.word	17
	.word	18
	.global	InMiddle
	.align	2
	.type	InMiddle, %object
	.size	InMiddle, 4
InMiddle:
	.word	4
	.global	Corners
	.align	2
	.type	Corners, %object
	.size	Corners, 16
Corners:
	.word	0
	.word	2
	.word	6
	.word	8
	.global	ply
	.bss
	.align	2
	.type	ply, %object
	.size	ply, 4
ply:
	.space	4
	.global	positions
	.align	2
	.type	positions, %object
	.size	positions, 4
positions:
	.space	4
	.global	maxPly
	.align	2
	.type	maxPly, %object
	.size	maxPly, 4
maxPly:
	.space	4
	.text
	.align	2
	.global	GetNumForDir
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNumForDir, %function
GetNumForDir:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L5
	b	.L4
.L7:
	nop
.L4:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	GetNumForDir, .-GetNumForDir
	.align	2
	.global	FindThreeInARow
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindThreeInARow, %function
FindThreeInARow:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L12:
	ldr	r2, .L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	bl	GetNumForDir
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	sub	r0, r2, r3
	ldr	r3, [fp, #-8]
	rsb	r1, r3, #0
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	bl	GetNumForDir
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L14
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L12
	b	.L11
.L14:
	nop
.L11:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	Directions
	.size	FindThreeInARow, .-FindThreeInARow
	.align	2
	.global	FindThreeInARowAllBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindThreeInARowAllBoard, %function
FindThreeInARowAllBoard:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L21:
	ldr	r2, .L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L19
	ldr	r2, .L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	FindThreeInARow
	mov	r3, r0
	cmp	r3, #3
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L20
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L21
.L20:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	ConvertTo25
	.size	FindThreeInARowAllBoard, .-FindThreeInARowAllBoard
	.align	2
	.global	EvalForWin
	.syntax unified
	.arm
	.fpu softvfp
	.type	EvalForWin, %function
EvalForWin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	FindThreeInARowAllBoard
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	mov	r3, #1
	b	.L27
.L26:
	ldr	r3, [fp, #-12]
	eor	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	FindThreeInARowAllBoard
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mvn	r3, #0
	b	.L27
.L28:
	mov	r3, #0
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	EvalForWin, .-EvalForWin
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MinMax
	.syntax unified
	.arm
	.fpu softvfp
	.type	MinMax, %function
MinMax:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mvn	r3, #1
	str	r3, [fp, #-64]
	mvn	r3, #1
	str	r3, [fp, #-52]
	mvn	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, .L43+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L30
	ldr	r3, .L43+4
	ldr	r3, [r3]
	ldr	r2, .L43+8
	str	r3, [r2]
.L30:
	ldr	r3, .L43+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L43+12
	str	r3, [r2]
	ldr	r3, .L43+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L31
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	EvalForWin
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-52]
	b	.L41
.L31:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L33
.L35:
	ldr	r2, .L43+16
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L34
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	str	r2, [fp, #-68]
	ldr	r1, .L43+16
	ldr	r2, [fp, #-56]
	ldr	r2, [r1, r2, lsl #2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-40]
.L34:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L33:
	ldr	r3, [fp, #-56]
	cmp	r3, #8
	ble	.L35
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L36
.L38:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	ldr	r3, .L43+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L43+4
	str	r3, [r2]
	ldr	r3, [fp, #-76]
	eor	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	MinMax
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-60]
.L37:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L43+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L43+4
	str	r3, [r2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L36:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L39
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	FindThreeInARowAllBoard
	str	r0, [fp, #-64]
.L39:
	ldr	r3, .L43+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-64]
	b	.L41
.L40:
	ldr	r3, [fp, #-60]
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC0
	.word	ply
	.word	maxPly
	.word	positions
	.word	ConvertTo25
	.size	MinMax, .-MinMax
	.align	2
	.global	InitialiseBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitialiseBoard, %function
InitialiseBoard:
	@ 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, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	cmp	r3, #24
	ble	.L47
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L48
.L49:
	ldr	r2, .L50
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L48:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L49
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L51:
	.align	2
.L50:
	.word	ConvertTo25
	.size	InitialiseBoard, .-InitialiseBoard
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012\012Board:\012\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"%4c\000"
	.align	2
.LC1:
	.ascii	"OX|-\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PrintBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintBoard, %function
PrintBoard:
	@ 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, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r2, .L57+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r0, .L57+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L53
.L55:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L54
	ldr	r1, [fp, #-20]
	ldr	r3, .L57+12
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L54
	ldr	r0, .L57+16
	bl	puts
.L54:
	ldr	r2, .L57+20
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L57+24
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L53:
	ldr	r3, [fp, #-20]
	cmp	r3, #8
	ble	.L55
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	1431655766
	.word	.LC3
	.word	ConvertTo25
	.word	.LC4
	.size	PrintBoard, .-PrintBoard
	.align	2
	.global	HasEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	HasEmpty, %function
HasEmpty:
	@ 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, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L63:
	ldr	r2, .L64
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L61
	mov	r3, #1
	b	.L62
.L61:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L63
	mov	r3, #0
.L62:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	ConvertTo25
	.size	HasEmpty, .-HasEmpty
	.align	2
	.global	MakeMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	MakeMove, %function
MakeMove:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	MakeMove, .-MakeMove
	.align	2
	.global	GetNextBest
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNextBest, %function
GetNextBest:
	@ 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	r2, #4
	ldr	r3, .L75
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L68
	ldr	r3, [fp, #-12]
	b	.L69
.L68:
	mov	r3, #0
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L70
.L73:
	ldr	r2, .L75+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L75
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L74
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L70:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L73
	b	.L72
.L74:
	nop
.L72:
	ldr	r3, [fp, #-12]
.L69:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L76:
	.align	2
.L75:
	.word	ConvertTo25
	.word	Corners
	.size	GetNextBest, .-GetNextBest
	.align	2
	.global	GetWinningMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetWinningMove, %function
GetWinningMove:
	@ 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]
	str	r1, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L78
.L83:
	ldr	r2, .L86
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L79
	ldr	r2, .L86
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	FindThreeInARow
	mov	r3, r0
	cmp	r3, #3
	bne	.L80
	mov	r3, #1
	str	r3, [fp, #-12]
.L80:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L85
	mvn	r3, #0
	str	r3, [fp, #-16]
.L79:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L78:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L83
	b	.L82
.L85:
	nop
.L82:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	ConvertTo25
	.size	GetWinningMove, .-GetWinningMove
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Finished Searching positions:%d maxDepth:%d bestMov"
	.ascii	"e:%d\012\000"
	.text
	.align	2
	.global	GetComputerMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetComputerMove, %function
GetComputerMove:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L90
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L90+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L90+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	MinMax
	str	r0, [fp, #-8]
	ldr	r3, .L90+4
	ldr	r1, [r3]
	ldr	r3, .L90+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, .L90+12
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	ply
	.word	positions
	.word	maxPly
	.word	.LC6
	.size	GetComputerMove, .-GetComputerMove
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Please enter a move from 1 to 9:\000"
	.align	2
.LC8:
	.ascii	"Invalid strlen()\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"Invalid sscanf()\000"
	.align	2
.LC11:
	.ascii	"Invalid range\000"
	.align	2
.LC12:
	.ascii	"Square not available\000"
	.align	2
.LC13:
	.ascii	"Making Move...%d\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetHumanMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetHumanMove, %function
GetHumanMove:
	@ 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, .L102
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L93
.L99:
	ldr	r0, .L102+4
	bl	printf
	ldr	r3, .L102+8
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, #3
	mov	r0, r3
	bl	fgets
	ldr	r3, .L102+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	beq	.L94
	ldr	r0, .L102+12
	bl	puts
	b	.L93
.L94:
	sub	r2, fp, #20
	sub	r3, fp, #12
	ldr	r1, .L102+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L95
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L102+20
	bl	puts
	b	.L93
.L95:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L96
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	ble	.L97
.L96:
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L102+24
	bl	puts
	b	.L93
.L97:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L102+28
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L98
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L102+32
	bl	puts
	b	.L93
.L98:
	mov	r3, #1
	str	r3, [fp, #-16]
.L93:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L102+36
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, .L102+28
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L102
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC14
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	ConvertTo25
	.word	.LC12
	.word	.LC13
	.size	GetHumanMove, .-GetHumanMove
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Game over!\000"
	.align	2
.LC16:
	.ascii	"Computer Wins\000"
	.align	2
.LC17:
	.ascii	"Human Wins\000"
	.align	2
.LC18:
	.ascii	"It's a draw\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RunGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	RunGame, %function
RunGame:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	mov	r0, r3
	bl	InitialiseBoard
	sub	r3, fp, #108
	mov	r0, r3
	bl	PrintBoard
	b	.L105
.L110:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L106
	sub	r3, fp, #108
	mov	r0, r3
	bl	GetHumanMove
	str	r0, [fp, #-112]
	sub	r3, fp, #108
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	MakeMove
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L107
.L106:
	sub	r3, fp, #108
	ldr	r1, [fp, #-116]
	mov	r0, r3
	bl	GetComputerMove
	str	r0, [fp, #-112]
	sub	r3, fp, #108
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	MakeMove
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #108
	mov	r0, r3
	bl	PrintBoard
.L107:
	ldr	r3, [fp, #-116]
	eor	r2, r3, #1
	sub	r3, fp, #108
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	FindThreeInARow
	mov	r3, r0
	cmp	r3, #3
	bne	.L108
	ldr	r0, .L112+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L109
	ldr	r0, .L112+8
	bl	puts
	b	.L108
.L109:
	ldr	r0, .L112+12
	bl	puts
.L108:
	sub	r3, fp, #108
	mov	r0, r3
	bl	HasEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L105
	ldr	r0, .L112+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-120]
	ldr	r0, .L112+16
	bl	puts
.L105:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L110
	sub	r3, fp, #108
	mov	r0, r3
	bl	PrintBoard
	nop
	ldr	r3, .L112
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L111
	bl	__stack_chk_fail
.L111:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC19
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	RunGame, .-RunGame
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	RunGame
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
