	.file	"7950798.c"
	.intel_syntax noprefix
	.text
	.globl	playarea
	.data
	.align 8
	.type	playarea, @object
	.size	playarea, 9
playarea:
	.ascii	"aaa"
	.ascii	"aaa"
	.ascii	"aaa"
	.globl	player
	.bss
	.type	player, @object
	.size	player, 1
player:
	.zero	1
	.globl	opp
	.type	opp, @object
	.size	opp, 1
opp:
	.zero	1
	.globl	o
	.type	o, @object
	.size	o, 1
o:
	.zero	1
	.globl	gameEnded
	.type	gameEnded, @object
	.size	gameEnded, 1
gameEnded:
	.zero	1
	.globl	selError
	.type	selError, @object
	.size	selError, 1
selError:
	.zero	1
	.text
	.globl	ChangeToO
	.type	ChangeToO, @function
ChangeToO:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 111
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ChangeToO, .-ChangeToO
	.globl	ChangeToX
	.type	ChangeToX, @function
ChangeToX:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 120
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ChangeToX, .-ChangeToX
	.section	.rodata
.LC0:
	.string	"clear"
	.text
	.globl	ClearConsole
	.type	ClearConsole, @function
ClearConsole:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ClearConsole, .-ClearConsole
	.section	.rodata
.LC1:
	.string	"%c "
	.text
	.globl	PrintTable
	.type	PrintTable, @function
PrintTable:
.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	DWORD PTR -8[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L7
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	PrintTable, .-PrintTable
	.section	.rodata
.LC2:
	.string	"Change which square? (x  y):"
.LC3:
	.string	"%d"
.LC4:
	.string	"ERROR: Invalid values!"
	.text
	.globl	MovePrompt
	.type	MovePrompt, @function
MovePrompt:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jle	.L10
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 3
	jg	.L10
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L10
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	jle	.L11
.L10:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	call	MovePrompt
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L13
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L14
.L13:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	call	MovePrompt
	jmp	.L12
.L14:
	movzx	eax, BYTE PTR o[rip]
	test	al, al
	je	.L15
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ChangeToO
	jmp	.L17
.L15:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ChangeToX
	jmp	.L17
.L12:
.L17:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	MovePrompt, .-MovePrompt
	.section	.rodata
	.align 8
.LC5:
	.string	"The game ended with %c as the winner! Congrats!\n"
	.text
	.globl	WinGame
	.type	WinGame, @function
WinGame:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR gameEnded[rip]
	xor	eax, 1
	test	al, al
	je	.L20
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 32
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR gameEnded[rip], 1
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	WinGame, .-WinGame
	.globl	CheckIfWon
	.type	CheckIfWon, @function
CheckIfWon:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR gameEnded[rip]
	xor	eax, 1
	test	al, al
	je	.L38
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 111
	jne	.L23
	movzx	eax, BYTE PTR playarea[rip+1]
	cmp	al, 111
	jne	.L23
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 111
	jne	.L23
	mov	edi, 111
	call	WinGame
.L23:
	movzx	eax, BYTE PTR playarea[rip+3]
	cmp	al, 111
	jne	.L24
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 111
	jne	.L24
	movzx	eax, BYTE PTR playarea[rip+5]
	cmp	al, 111
	jne	.L24
	mov	edi, 111
	call	WinGame
.L24:
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 111
	jne	.L25
	movzx	eax, BYTE PTR playarea[rip+7]
	cmp	al, 111
	jne	.L25
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 111
	jne	.L25
	mov	edi, 111
	call	WinGame
.L25:
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 120
	jne	.L26
	movzx	eax, BYTE PTR playarea[rip+1]
	cmp	al, 120
	jne	.L26
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 120
	jne	.L26
	mov	edi, 120
	call	WinGame
.L26:
	movzx	eax, BYTE PTR playarea[rip+3]
	cmp	al, 120
	jne	.L27
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 120
	jne	.L27
	movzx	eax, BYTE PTR playarea[rip+5]
	cmp	al, 120
	jne	.L27
	mov	edi, 120
	call	WinGame
.L27:
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 120
	jne	.L28
	movzx	eax, BYTE PTR playarea[rip+7]
	cmp	al, 120
	jne	.L28
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 120
	jne	.L28
	mov	edi, 120
	call	WinGame
.L28:
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 111
	jne	.L29
	movzx	eax, BYTE PTR playarea[rip+3]
	cmp	al, 111
	jne	.L29
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 111
	jne	.L29
	mov	edi, 111
	call	WinGame
.L29:
	movzx	eax, BYTE PTR playarea[rip+1]
	cmp	al, 111
	jne	.L30
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 111
	jne	.L30
	movzx	eax, BYTE PTR playarea[rip+7]
	cmp	al, 111
	jne	.L30
	mov	edi, 111
	call	WinGame
.L30:
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 111
	jne	.L31
	movzx	eax, BYTE PTR playarea[rip+5]
	cmp	al, 111
	jne	.L31
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 111
	jne	.L31
	mov	edi, 111
	call	WinGame
.L31:
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 120
	jne	.L32
	movzx	eax, BYTE PTR playarea[rip+3]
	cmp	al, 120
	jne	.L32
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 120
	jne	.L32
	mov	edi, 120
	call	WinGame
.L32:
	movzx	eax, BYTE PTR playarea[rip+1]
	cmp	al, 120
	jne	.L33
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 120
	jne	.L33
	movzx	eax, BYTE PTR playarea[rip+7]
	cmp	al, 120
	jne	.L33
	mov	edi, 120
	call	WinGame
.L33:
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 120
	jne	.L34
	movzx	eax, BYTE PTR playarea[rip+5]
	cmp	al, 120
	jne	.L34
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 120
	jne	.L34
	mov	edi, 120
	call	WinGame
.L34:
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 111
	jne	.L35
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 111
	jne	.L35
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 111
	jne	.L35
	mov	edi, 111
	call	WinGame
.L35:
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 111
	jne	.L36
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 111
	jne	.L36
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 111
	jne	.L36
	mov	edi, 111
	call	WinGame
.L36:
	movzx	eax, BYTE PTR playarea[rip]
	cmp	al, 120
	jne	.L37
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 120
	jne	.L37
	movzx	eax, BYTE PTR playarea[rip+8]
	cmp	al, 120
	jne	.L37
	mov	edi, 120
	call	WinGame
.L37:
	movzx	eax, BYTE PTR playarea[rip+6]
	cmp	al, 120
	jne	.L38
	movzx	eax, BYTE PTR playarea[rip+4]
	cmp	al, 120
	jne	.L38
	movzx	eax, BYTE PTR playarea[rip+2]
	cmp	al, 120
	jne	.L38
	mov	edi, 120
	call	WinGame
.L38:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	CheckIfWon, .-CheckIfWon
	.globl	ai_GenerateMove
	.type	ai_GenerateMove, @function
ai_GenerateMove:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	call	rand@PLT
	mov	edx, DWORD PTR -8[rbp]
	sub	edx, DWORD PTR -4[rbp]
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ai_GenerateMove, .-ai_GenerateMove
	.globl	ai_MakeMove
	.type	ai_MakeMove, @function
ai_MakeMove:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 3
	mov	edi, 1
	call	ai_GenerateMove
	mov	DWORD PTR -8[rbp], eax
	mov	esi, 3
	mov	edi, 1
	call	ai_GenerateMove
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR opp[rip]
	cmp	al, 120
	jne	.L42
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L43
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L44
.L43:
	mov	eax, 0
	call	ai_MakeMove
	jmp	.L46
.L44:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ChangeToX
	jmp	.L49
.L42:
	movzx	eax, BYTE PTR opp[rip]
	cmp	al, 111
	jne	.L49
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	je	.L47
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, playarea[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L48
.L47:
	mov	eax, 0
	call	ai_MakeMove
	jmp	.L46
.L48:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ChangeToO
	jmp	.L49
.L46:
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	ai_MakeMove, .-ai_MakeMove
	.section	.rodata
	.align 8
.LC6:
	.string	"~~~TIC-TAC-TOE~~~\n~~~BY aemiliu5~~~"
.LC7:
	.string	"Play as X or O?:"
	.align 8
.LC8:
	.string	"\nInvalid value. Please type X or O, then press space."
.LC9:
	.string	"%c"
	.text
	.globl	Start
	.type	Start, @function
Start:
.LFB15:
	.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
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	ClearConsole
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR selError[rip]
	test	al, al
	je	.L51
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L51:
	lea	rsi, player[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR player[rip]
	cmp	al, 120
	je	.L52
	movzx	eax, BYTE PTR player[rip]
	cmp	al, 88
	jne	.L53
.L52:
	mov	BYTE PTR o[rip], 0
	mov	BYTE PTR opp[rip], 111
	mov	eax, 0
	call	ClearConsole
	mov	eax, 0
	call	PrintTable
	jmp	.L54
.L53:
	movzx	eax, BYTE PTR player[rip]
	cmp	al, 111
	je	.L55
	movzx	eax, BYTE PTR player[rip]
	cmp	al, 79
	jne	.L56
.L55:
	mov	BYTE PTR o[rip], 1
	mov	BYTE PTR opp[rip], 120
	mov	eax, 0
	call	ClearConsole
	mov	eax, 0
	call	PrintTable
	jmp	.L54
.L56:
	mov	BYTE PTR selError[rip], 1
	mov	eax, 0
	call	Start
	nop
.L54:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	Start, .-Start
	.globl	Loop
	.type	Loop, @function
Loop:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	Start
	jmp	.L58
.L59:
	mov	eax, 0
	call	MovePrompt
	mov	eax, 0
	call	ClearConsole
	mov	eax, 0
	call	PrintTable
	mov	eax, 0
	call	ai_MakeMove
	mov	eax, 0
	call	ClearConsole
	mov	eax, 0
	call	PrintTable
	mov	eax, 0
	call	CheckIfWon
.L58:
	movzx	eax, BYTE PTR gameEnded[rip]
	xor	eax, 1
	test	al, al
	jne	.L59
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	Loop, .-Loop
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	Loop
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"7950798.c"
	.text
	.global	playarea
	.data
	.align	2
	.type	playarea, %object
	.size	playarea, 9
playarea:
	.ascii	"aaa"
	.ascii	"aaa"
	.ascii	"aaa"
	.comm	player,1,1
	.comm	opp,1,1
	.comm	o,1,1
	.comm	gameEnded,1,1
	.comm	selError,1,1
	.text
	.align	2
	.global	ChangeToO
	.syntax unified
	.arm
	.fpu softvfp
	.type	ChangeToO, %function
ChangeToO:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r0, .L2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #111
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	playarea
	.size	ChangeToO, .-ChangeToO
	.align	2
	.global	ChangeToX
	.syntax unified
	.arm
	.fpu softvfp
	.type	ChangeToX, %function
ChangeToX:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r0, .L5
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #120
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	playarea
	.size	ChangeToX, .-ChangeToX
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.text
	.align	2
	.global	ClearConsole
	.syntax unified
	.arm
	.fpu softvfp
	.type	ClearConsole, %function
ClearConsole:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L8
	bl	system
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	ClearConsole, .-ClearConsole
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%c \000"
	.text
	.align	2
	.global	PrintTable
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintTable, %function
PrintTable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r1, .L15
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L13
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	playarea
	.word	.LC1
	.size	PrintTable, .-PrintTable
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Change which square? (x  y):\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"ERROR: Invalid values!\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MovePrompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	MovePrompt, %function
MovePrompt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L26+4
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L19
.L18:
	ldr	r0, .L26+12
	bl	puts
	bl	MovePrompt
	b	.L20
.L19:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r0, .L26+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L21
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r0, .L26+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L22
.L21:
	ldr	r0, .L26+12
	bl	puts
	bl	MovePrompt
	b	.L20
.L22:
	ldr	r3, .L26+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	ChangeToO
	b	.L25
.L23:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	ChangeToX
	b	.L25
.L20:
.L25:
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	playarea
	.word	o
	.size	MovePrompt, .-MovePrompt
	.section	.rodata
	.align	2
.LC6:
	.ascii	"The game ended with %c as the winner! Congrats!\012"
	.ascii	"\000"
	.text
	.align	2
	.global	WinGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	WinGame, %function
WinGame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L31
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #32
	mov	r1, r3
	ldr	r0, .L31+4
	bl	printf
	ldr	r3, .L31
	mov	r2, #1
	strb	r2, [r3]
.L30:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	gameEnded
	.word	.LC6
	.size	WinGame, .-WinGame
	.align	2
	.global	CheckIfWon
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckIfWon, %function
CheckIfWon:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L51
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L35
	ldr	r3, .L51+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L35
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L35
	mov	r0, #111
	bl	WinGame
.L35:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L36
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L36
	ldr	r3, .L51+4
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L36
	mov	r0, #111
	bl	WinGame
.L36:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L37
	ldr	r3, .L51+4
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L37
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L37
	mov	r0, #111
	bl	WinGame
.L37:
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L38
	ldr	r3, .L51+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L38
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L38
	mov	r0, #120
	bl	WinGame
.L38:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L39
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L39
	ldr	r3, .L51+4
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L39
	mov	r0, #120
	bl	WinGame
.L39:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L40
	ldr	r3, .L51+4
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L40
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L40
	mov	r0, #120
	bl	WinGame
.L40:
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L41
	ldr	r3, .L51+4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L41
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L41
	mov	r0, #111
	bl	WinGame
.L41:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L42
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L42
	ldr	r3, .L51+4
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L42
	mov	r0, #111
	bl	WinGame
.L42:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L43
	ldr	r3, .L51+4
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L43
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L43
	mov	r0, #111
	bl	WinGame
.L43:
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L44
	ldr	r3, .L51+4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L44
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L44
	mov	r0, #120
	bl	WinGame
.L44:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L45
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L45
	ldr	r3, .L51+4
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L45
	mov	r0, #120
	bl	WinGame
.L45:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L46
	ldr	r3, .L51+4
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L46
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L46
	mov	r0, #120
	bl	WinGame
.L46:
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L47
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L47
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L47
	mov	r0, #111
	bl	WinGame
.L47:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L48
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L48
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L48
	mov	r0, #111
	bl	WinGame
.L48:
	ldr	r3, .L51+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L49
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L49
	ldr	r3, .L51+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L49
	mov	r0, #120
	bl	WinGame
.L49:
	ldr	r3, .L51+4
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L50
	ldr	r3, .L51+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L50
	ldr	r3, .L51+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L50
	mov	r0, #120
	bl	WinGame
.L50:
	nop
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	gameEnded
	.word	playarea
	.size	CheckIfWon, .-CheckIfWon
	.global	__aeabi_idivmod
	.align	2
	.global	ai_GenerateMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	ai_GenerateMove, %function
ai_GenerateMove:
	@ 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]
	bl	rand
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ai_GenerateMove, .-ai_GenerateMove
	.align	2
	.global	ai_MakeMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	ai_MakeMove, %function
ai_MakeMove:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #3
	mov	r0, #1
	bl	ai_GenerateMove
	str	r0, [fp, #-12]
	mov	r1, #3
	mov	r0, #1
	bl	ai_GenerateMove
	str	r0, [fp, #-8]
	ldr	r3, .L64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L56
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r0, .L64+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L57
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r0, .L64+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L58
.L57:
	bl	ai_MakeMove
	b	.L60
.L58:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	ChangeToX
	b	.L63
.L56:
	ldr	r3, .L64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L63
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r0, .L64+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	beq	.L61
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r0, .L64+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L62
.L61:
	bl	ai_MakeMove
	b	.L60
.L62:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	ChangeToO
	b	.L63
.L60:
.L63:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	opp
	.word	playarea
	.size	ai_MakeMove, .-ai_MakeMove
	.section	.rodata
	.align	2
.LC7:
	.ascii	"~~~TIC-TAC-TOE~~~\012~~~BY aemiliu5~~~\000"
	.align	2
.LC8:
	.ascii	"Play as X or O?:\000"
	.align	2
.LC9:
	.ascii	"\012Invalid value. Please type X or O, then press s"
	.ascii	"pace.\000"
	.align	2
.LC10:
	.ascii	"%c\000"
	.text
	.align	2
	.global	Start
	.syntax unified
	.arm
	.fpu softvfp
	.type	Start, %function
Start:
	@ 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	ClearConsole
	ldr	r0, .L73
	bl	puts
	ldr	r0, .L73+4
	bl	printf
	ldr	r3, .L73+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L67
	ldr	r0, .L73+12
	bl	puts
.L67:
	ldr	r1, .L73+16
	ldr	r0, .L73+20
	bl	__isoc99_scanf
	ldr	r3, .L73+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L68
	ldr	r3, .L73+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L69
.L68:
	ldr	r3, .L73+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L73+28
	mov	r2, #111
	strb	r2, [r3]
	bl	ClearConsole
	bl	PrintTable
	b	.L70
.L69:
	ldr	r3, .L73+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	beq	.L71
	ldr	r3, .L73+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L72
.L71:
	ldr	r3, .L73+24
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L73+28
	mov	r2, #120
	strb	r2, [r3]
	bl	ClearConsole
	bl	PrintTable
	b	.L70
.L72:
	ldr	r3, .L73+8
	mov	r2, #1
	strb	r2, [r3]
	bl	Start
	nop
.L70:
	nop
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC7
	.word	.LC8
	.word	selError
	.word	.LC9
	.word	player
	.word	.LC10
	.word	o
	.word	opp
	.size	Start, .-Start
	.align	2
	.global	Loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	Loop, %function
Loop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	Start
	b	.L76
.L77:
	bl	MovePrompt
	bl	ClearConsole
	bl	PrintTable
	bl	ai_MakeMove
	bl	ClearConsole
	bl	PrintTable
	bl	CheckIfWon
.L76:
	ldr	r3, .L78
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L77
	nop
	nop
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	gameEnded
	.size	Loop, .-Loop
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	Loop
	ldr	r3, .L82
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	stdscr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
