	.file	"512163.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n\n\n\n\n\n\n"
	.align 8
.LC1:
	.string	"\n-----------------------------------------------------------------------------------------------------"
	.align 8
.LC2:
	.string	" _________  _____     ______      _________      _        ______      _________    ___   ________  "
	.align 8
.LC3:
	.string	"|  _   _  ||_   _|  .' ___  |    |  _   _  |    / \\     .' ___  |    |  _   _  | .'   `.|_   __  | "
	.align 8
.LC4:
	.string	"|_/ | | \\_|  | |   / .'   \\_|    |_/ | | \\_|   / _ \\   / .'   \\_|    |_/ | | \\_|/  .-.  \\ | |_ \\_|  "
	.align 8
.LC5:
	.string	"    | |      | |   | |               | |      / ___ \\  | |               | |    | |   | | |  _| _   "
	.align 8
.LC6:
	.string	"   _| |_    _| |_  \\ `.___.'\\       _| |_   _/ /   \\ \\_\\ `.___.'\\       _| |_   \\  `-'  /_| |__/ | "
	.align 8
.LC7:
	.string	"  |_____|  |_____| `. ____ .'      |_____| |____| |____| `.____.'      |_____|   `.___.'|________| "
.LC8:
	.string	"\n\t\t\t\t\t    with a twist"
	.text
	.globl	display_TICTACTOE
	.type	display_TICTACTOE, @function
display_TICTACTOE:
.LFB0:
	.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	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	display_TICTACTOE, .-display_TICTACTOE
	.section	.rodata
	.align 8
.LC9:
	.string	"\n [1] Play \n [2] How to Play \n [3] Exit\n\n Enter a valid choice: "
.LC10:
	.string	"%d"
.LC11:
	.string	"Invalid Input! Type again! "
.LC12:
	.string	"\n\n========================="
	.text
	.globl	MainMenu
	.type	MainMenu, @function
MainMenu:
.LFB1:
	.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	eax, 0
	call	display_TICTACTOE
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L3
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 2
	jmp	.L7
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 3
	jmp	.L7
.L4:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L9
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	MainMenu, .-MainMenu
	.section	.rodata
	.align 8
.LC13:
	.string	"_____________________________________________________________________________"
.LC14:
	.string	" \n\n\n\n  - 1 - 2 - 3 -"
.LC15:
	.string	"  -------------"
.LC16:
	.string	"1 | %c | %c | %c |\n"
.LC17:
	.string	"  ------------- "
.LC18:
	.string	"2 | %c | %c | %c |\n"
.LC19:
	.string	"3 | %c | %c | %c |\n"
.LC20:
	.string	"  -------------\n\n\n"
	.text
	.globl	PrintTicTacToe
	.type	PrintTicTacToe, @function
PrintTicTacToe:
.LFB2:
	.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
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movsx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 2[rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	movsx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 1[rax]
	movsx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	PrintTicTacToe, .-PrintTicTacToe
	.section	.rodata
	.align 8
.LC21:
	.string	"\n\n\n\nIt is your FOURTH turn, Player %c\n\n"
.LC22:
	.string	"Enter Position: "
.LC23:
	.string	"\n\n\n\n\n\n"
	.align 8
.LC24:
	.string	"\n The Address you've entered is incorrect"
	.align 8
.LC25:
	.string	"\nCannot be placed since position is already occupied"
	.align 8
.LC26:
	.string	"Enter Position to be removed: "
.LC27:
	.string	"Enter Position to be placed: "
	.align 8
.LC28:
	.string	"\nThe Address you've entered is incorrect"
	.align 8
.LC29:
	.string	"\nCannot be replaced since position is empty"
	.align 8
.LC30:
	.string	"\nPosition is owned by opposing player"
	.align 8
.LC31:
	.string	"Position to be placed with value is ALSO not empty!\n"
.LC32:
	.string	"Position is not empty!"
	.text
	.globl	GameInput
	.type	GameInput, @function
GameInput:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	eax, esi
	mov	DWORD PTR -64[rbp], edx
	mov	BYTE PTR -60[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	cmp	DWORD PTR -64[rbp], 7
	je	.L13
	cmp	DWORD PTR -64[rbp], 8
	jne	.L30
.L13:
	movsx	eax, BYTE PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	cmp	DWORD PTR -64[rbp], 6
	jg	.L15
.L20:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -24[rbp], eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -24[rbp], edx
	cmp	DWORD PTR -28[rbp], 3
	jg	.L16
	cmp	DWORD PTR -28[rbp], 0
	jle	.L16
	cmp	DWORD PTR -24[rbp], 0
	jle	.L16
	cmp	DWORD PTR -24[rbp], 3
	jle	.L17
.L16:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 95
	je	.L19
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L18
.L19:
	mov	DWORD PTR -12[rbp], 1
.L18:
	cmp	DWORD PTR -12[rbp], 0
	je	.L20
	jmp	.L21
.L15:
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -16[rbp], eax
	mov	ecx, DWORD PTR -16[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -16[rbp], edx
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -24[rbp], eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -24[rbp], edx
	cmp	DWORD PTR -28[rbp], 3
	jg	.L22
	cmp	DWORD PTR -28[rbp], 0
	jle	.L22
	cmp	DWORD PTR -24[rbp], 0
	jle	.L22
	cmp	DWORD PTR -24[rbp], 3
	jg	.L22
	cmp	DWORD PTR -16[rbp], 0
	jle	.L22
	cmp	DWORD PTR -16[rbp], 3
	jg	.L22
	cmp	DWORD PTR -20[rbp], 3
	jg	.L22
	cmp	DWORD PTR -20[rbp], 0
	jg	.L23
.L22:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 95
	jne	.L25
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC29[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	BYTE PTR -60[rbp], al
	je	.L26
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 95
	je	.L27
	lea	rdi, .LC31[rip]
	call	puts@PLT
.L27:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 95
	je	.L28
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L24
.L28:
	mov	DWORD PTR -12[rbp], 1
.L24:
	cmp	DWORD PTR -12[rbp], 0
	je	.L15
.L21:
	cmp	DWORD PTR -64[rbp], 6
	jle	.L29
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR [rdx+rax], 95
.L29:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -60[rbp]
	mov	BYTE PTR [rcx+rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	GameInput, .-GameInput
	.globl	CheckWinCond
	.type	CheckWinCond, @function
CheckWinCond:
.LFB4:
	.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	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L33
	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, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L34
.L33:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 2[rax]
	cmp	dl, al
	jne	.L35
	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, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L34
.L35:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L36
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	dl, al
	jne	.L36
	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, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	je	.L34
.L36:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L37
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L37
	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, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 88
	jne	.L37
.L34:
	mov	DWORD PTR -4[rbp], 1
.L37:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	CheckWinCond, .-CheckWinCond
	.section	.rodata
.LC33:
	.string	"\n\n\n\n\n\n\n\n\n"
	.align 8
.LC34:
	.string	"\n\n\nPlayer %d, enter the Row and Column of where you want to place your %c\n\n"
.LC35:
	.string	"\nExample : 11 or 23 or 31\n"
	.align 8
.LC36:
	.string	"\n\n\n\n\n\n\n\t-----------------------\n\t-----------------------\n\t-------ENDGAME---------\n\t-----------------------\n\t-----------------------\n\n\n"
	.align 8
.LC37:
	.string	"\n\n CONGRATULATIONS PLAYER %d, YOU WON!"
	.text
	.globl	GameBody
	.type	GameBody, @function
GameBody:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L40
.L43:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 17
	mov	BYTE PTR [rax], 95
	add	DWORD PTR -28[rbp], 1
.L41:
	cmp	DWORD PTR -28[rbp], 2
	jle	.L42
	add	DWORD PTR -32[rbp], 1
.L40:
	cmp	DWORD PTR -32[rbp], 2
	jle	.L43
	mov	DWORD PTR -24[rbp], 0
	jmp	.L44
.L48:
	add	DWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L45
	mov	BYTE PTR -41[rbp], 88
	mov	DWORD PTR -36[rbp], 1
	jmp	.L46
.L45:
	mov	BYTE PTR -41[rbp], 79
	mov	DWORD PTR -36[rbp], 2
.L46:
	movsx	edx, BYTE PTR -41[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -40[rbp], 1
	jne	.L47
	lea	rax, -17[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC35[rip]
	call	puts@PLT
.L47:
	movsx	ecx, BYTE PTR -41[rbp]
	mov	edx, DWORD PTR -40[rbp]
	lea	rax, -17[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	GameInput
	lea	rax, -17[rbp]
	mov	rdi, rax
	call	CheckWinCond
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	jne	.L44
	lea	rax, -17[rbp]
	mov	rdi, rax
	call	PrintTicTacToe
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	cmp	DWORD PTR -24[rbp], 0
	je	.L48
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	GameBody, .-GameBody
	.section	.rodata
	.align 8
.LC38:
	.string	"\n\n\n\n\n-----------------------------------------------------------------------------------------------------"
	.align 8
.LC39:
	.string	"-----------------------------------------------------------------------------------------------------"
	.align 8
.LC40:
	.string	" _  _  _____      __  _____ ___    ___ _      _ __   __"
	.align 8
.LC41:
	.string	"| || |/ _ \\ \\    / / |_   _/ _ \\  | _ \\ |    /_\\\\ \\ / /"
	.align 8
.LC42:
	.string	"| __ | (_) \\ \\/\\/ /    | || (_) | |  _/ |__ / _ \\\\ v / "
	.align 8
.LC43:
	.string	"|_||_|\\___/ \\_/\\_/     |_| \\___/  |_| |____/_/ \\_\\|_|  "
.LC44:
	.string	"\n"
.LC45:
	.string	"\n THE RULES"
	.align 8
.LC46:
	.string	"\n 1. This game is played on a grid of 3x3 squares."
	.align 8
.LC47:
	.string	"\n 2. Player 1 is X and Player 2 is O."
	.align 8
.LC48:
	.string	"\n 3. Each player is given a maximum of 3 moves to mark 3 squares in a row. "
.LC49:
	.string	"\n\n THE TWIST"
	.align 8
.LC50:
	.string	"\n 1. When the players consumed their 3 moves, they will be given a chance to change the position of one of their past\n    moves and move it to a free space."
	.align 8
.LC51:
	.string	"\n 2. To win the game, a player must mark 3 squares in a row in a specific place, not just anywhere. "
	.align 8
.LC52:
	.string	"\n 3. With these, this Tic Tac Toe game will never end in a tie."
	.align 8
.LC53:
	.string	"\n\n\n\n\n\n Press [1] to EXIT:     "
	.align 8
.LC54:
	.string	"\n Please enter a valid choice: "
	.text
	.globl	how_to_play
	.type	how_to_play, @function
how_to_play:
.LFB6:
	.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, .LC38[rip]
	call	puts@PLT
	lea	rdi, .LC39[rip]
	call	puts@PLT
	lea	rdi, .LC39[rip]
	call	puts@PLT
	lea	rdi, .LC40[rip]
	call	puts@PLT
	lea	rdi, .LC41[rip]
	call	puts@PLT
	lea	rdi, .LC42[rip]
	call	puts@PLT
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC44[rip]
	call	puts@PLT
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
.L52:
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	je	.L51
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
.L51:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L52
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	how_to_play, .-how_to_play
	.section	.rodata
.LC55:
	.string	"\n\n\n\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20[rbp]
	mov	QWORD PTR -16[rbp], rax
.L59:
	lea	rdi, .LC55[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	MainMenu
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	je	.L55
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 2
	jne	.L56
.L55:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jne	.L57
	mov	eax, 0
	call	GameBody
	jmp	.L56
.L57:
	mov	eax, 0
	call	how_to_play
.L56:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	je	.L58
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 3
	jne	.L59
.L58:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"512163.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012\012\012\012\012\012\000"
	.align	2
.LC1:
	.ascii	"\012-----------------------------------------------"
	.ascii	"---------------------------------------------------"
	.ascii	"---\000"
	.align	2
.LC2:
	.ascii	" _________  _____     ______      _________      _ "
	.ascii	"       ______      _________    ___   ________  \000"
	.align	2
.LC3:
	.ascii	"|  _   _  ||_   _|  .' ___  |    |  _   _  |    / \\"
	.ascii	"     .' ___  |    |  _   _  | .'   `.|_   __  | \000"
	.align	2
.LC4:
	.ascii	"|_/ | | \\_|  | |   / .'   \\_|    |_/ | | \\_|   /"
	.ascii	" _ \\   / .'   \\_|    |_/ | | \\_|/  .-.  \\ | |_ "
	.ascii	"\\_|  \000"
	.align	2
.LC5:
	.ascii	"    | |      | |   | |               | |      / ___"
	.ascii	" \\  | |               | |    | |   | | |  _| _   \000"
	.align	2
.LC6:
	.ascii	"   _| |_    _| |_  \\ `.___.'\\       _| |_   _/ / "
	.ascii	"  \\ \\_\\ `.___.'\\       _| |_   \\  `-'  /_| |__"
	.ascii	"/ | \000"
	.align	2
.LC7:
	.ascii	"  |_____|  |_____| `. ____ .'      |_____| |____| |"
	.ascii	"____| `.____.'      |_____|   `.___.'|________| \000"
	.align	2
.LC8:
	.ascii	"\012\011\011\011\011\011    with a twist\000"
	.text
	.align	2
	.global	display_TICTACTOE
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_TICTACTOE, %function
display_TICTACTOE:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	ldr	r0, .L2+28
	bl	puts
	ldr	r0, .L2+32
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	display_TICTACTOE, .-display_TICTACTOE
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012 [1] Play \012 [2] How to Play \012 [3] Exit\012"
	.ascii	"\012 Enter a valid choice: \000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"Invalid Input! Type again! \000"
	.align	2
.LC12:
	.ascii	"\012\012=========================\000"
	.text
	.align	2
	.global	MainMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	MainMenu, %function
MainMenu:
	@ 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]
	bl	display_TICTACTOE
	ldr	r0, .L13
	bl	printf
.L11:
	ldr	r1, [fp, #-8]
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L5
	cmp	r3, #3
	bgt	.L6
	cmp	r3, #1
	beq	.L7
	cmp	r3, #2
	beq	.L8
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	mov	r2, #2
	str	r2, [r3]
	b	.L9
.L5:
	ldr	r3, [fp, #-8]
	mov	r2, #3
	str	r2, [r3]
	b	.L9
.L6:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	printf
	ldr	r0, .L13
	bl	printf
	nop
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L11
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC10
	.word	stdin
	.word	.LC11
	.word	.LC12
	.size	MainMenu, .-MainMenu
	.section	.rodata
	.align	2
.LC13:
	.ascii	"___________________________________________________"
	.ascii	"__________________________\000"
	.align	2
.LC14:
	.ascii	" \012\012\012\012  - 1 - 2 - 3 -\000"
	.align	2
.LC15:
	.ascii	"  -------------\000"
	.align	2
.LC16:
	.ascii	"1 | %c | %c | %c |\012\000"
	.align	2
.LC17:
	.ascii	"  ------------- \000"
	.align	2
.LC18:
	.ascii	"2 | %c | %c | %c |\012\000"
	.align	2
.LC19:
	.ascii	"3 | %c | %c | %c |\012\000"
	.align	2
.LC20:
	.ascii	"  -------------\012\012\012\000"
	.text
	.align	2
	.global	PrintTicTacToe
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintTicTacToe, %function
PrintTicTacToe:
	@ 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]
	ldr	r0, .L16
	bl	puts
	ldr	r0, .L16+4
	bl	puts
	ldr	r0, .L16+8
	bl	puts
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldr	r0, .L16+12
	bl	printf
	ldr	r0, .L16+16
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldr	r0, .L16+20
	bl	printf
	ldr	r0, .L16+8
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldr	r0, .L16+24
	bl	printf
	ldr	r0, .L16+28
	bl	puts
	ldr	r0, .L16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	PrintTicTacToe, .-PrintTicTacToe
	.section	.rodata
	.align	2
.LC21:
	.ascii	"\012\012\012\012It is your FOURTH turn, Player %c\012"
	.ascii	"\012\000"
	.align	2
.LC22:
	.ascii	"Enter Position: \000"
	.align	2
.LC23:
	.ascii	"\012\012\012\012\012\012\000"
	.align	2
.LC24:
	.ascii	"\012 The Address you've entered is incorrect\000"
	.align	2
.LC25:
	.ascii	"\012Cannot be placed since position is already occu"
	.ascii	"pied\000"
	.align	2
.LC26:
	.ascii	"Enter Position to be removed: \000"
	.align	2
.LC27:
	.ascii	"Enter Position to be placed: \000"
	.align	2
.LC28:
	.ascii	"\012The Address you've entered is incorrect\000"
	.align	2
.LC29:
	.ascii	"\012Cannot be replaced since position is empty\000"
	.align	2
.LC30:
	.ascii	"\012Position is owned by opposing player\000"
	.align	2
.LC31:
	.ascii	"Position to be placed with value is ALSO not empty!"
	.ascii	"\012\000"
	.align	2
.LC32:
	.ascii	"Position is not empty!\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GameInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	GameInput, %function
GameInput:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	mov	r3, r1
	str	r2, [fp, #-48]
	strb	r3, [fp, #-41]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	cmp	r3, #7
	beq	.L19
	ldr	r3, [fp, #-48]
	cmp	r3, #8
	bne	.L36
.L19:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L38+4
	bl	printf
.L36:
	ldr	r3, [fp, #-48]
	cmp	r3, #6
	bgt	.L21
.L26:
	ldr	r0, .L38+8
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r0, .L38+16
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r2, .L38+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	ldr	r3, .L38+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bgt	.L22
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L22
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L22
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L23
.L22:
	ldr	r0, .L38+24
	bl	puts
	ldr	r3, .L38+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L24
.L23:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L25
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	ldr	r0, .L38+32
	bl	puts
	b	.L24
.L25:
	mov	r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	b	.L27
.L21:
	ldr	r0, .L38+36
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r0, .L38+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	ldr	r2, .L38+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r3, .L38+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r0, .L38+16
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r2, .L38+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	ldr	r3, .L38+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bgt	.L28
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bgt	.L28
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bgt	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L29
.L28:
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	ldr	r0, .L38+44
	bl	puts
	ldr	r3, .L38+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L30
.L29:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L31
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	ldr	r0, .L38+48
	bl	puts
	b	.L30
.L31:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-41]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L32
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	ldr	r0, .L38+52
	bl	puts
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L33
	ldr	r0, .L38+56
	bl	puts
.L33:
	ldr	r3, .L38+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L30
.L32:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L34
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	ldr	r0, .L38+60
	bl	puts
	ldr	r3, .L38+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L30
.L34:
	mov	r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L21
.L27:
	ldr	r3, [fp, #-48]
	cmp	r3, #6
	ble	.L35
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r1, #95
	strb	r1, [r2, r3]
.L35:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r1, [fp, #-41]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-40]
	bl	PrintTicTacToe
	nop
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC33
	.word	.LC21
	.word	.LC22
	.word	.LC10
	.word	.LC23
	.word	1717986919
	.word	.LC24
	.word	stdin
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.size	GameInput, .-GameInput
	.align	2
	.global	CheckWinCond
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckWinCond, %function
CheckWinCond:
	@ 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]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L41
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L41
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L42
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L42
.L41:
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L42
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L42
.L43:
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L42
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L42
.L44:
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L45
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L45
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L42
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L45
.L42:
	mov	r3, #1
	str	r3, [fp, #-8]
.L45:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	CheckWinCond, .-CheckWinCond
	.section	.rodata
	.align	2
.LC34:
	.ascii	"\012\012\012\012\012\012\012\012\012\000"
	.align	2
.LC35:
	.ascii	"\012\012\012Player %d, enter the Row and Column of "
	.ascii	"where you want to place your %c\012\012\000"
	.align	2
.LC36:
	.ascii	"\012Example : 11 or 23 or 31\012\000"
	.align	2
.LC37:
	.ascii	"\012\012\012\012\012\012\012\011-------------------"
	.ascii	"----\012\011-----------------------\012\011-------E"
	.ascii	"NDGAME---------\012\011-----------------------\012\011"
	.ascii	"-----------------------\012\012\012\000"
	.align	2
.LC38:
	.ascii	"\012\012 CONGRATULATIONS PLAYER %d, YOU WON!\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GameBody
	.syntax unified
	.arm
	.fpu softvfp
	.type	GameBody, %function
GameBody:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L58+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L48
.L51:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L49
.L50:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	sub	r3, r3, #16
	mov	r2, #95
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L49:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L50
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L48:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	ble	.L51
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L52
.L56:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L53
	mov	r3, #88
	strb	r3, [fp, #-41]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L54
.L53:
	mov	r3, #79
	strb	r3, [fp, #-41]
	mov	r3, #2
	str	r3, [fp, #-36]
.L54:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L58+8
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L55
	sub	r3, fp, #20
	mov	r0, r3
	bl	PrintTicTacToe
	ldr	r0, .L58+12
	bl	puts
.L55:
	ldrb	r1, [fp, #-41]	@ zero_extendqisi2
	sub	r3, fp, #20
	ldr	r2, [fp, #-40]
	mov	r0, r3
	bl	GameInput
	sub	r3, fp, #20
	mov	r0, r3
	bl	CheckWinCond
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L52
	sub	r3, fp, #20
	mov	r0, r3
	bl	PrintTicTacToe
	ldr	r0, .L58+16
	bl	puts
	ldr	r1, [fp, #-36]
	ldr	r0, .L58+20
	bl	printf
.L52:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L56
	nop
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC39
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	GameBody, .-GameBody
	.section	.rodata
	.align	2
.LC40:
	.ascii	"\012\012\012\012\012-------------------------------"
	.ascii	"---------------------------------------------------"
	.ascii	"-------------------\000"
	.align	2
.LC41:
	.ascii	"---------------------------------------------------"
	.ascii	"--------------------------------------------------\000"
	.align	2
.LC42:
	.ascii	" _  _  _____      __  _____ ___    ___ _      _ __ "
	.ascii	"  __\000"
	.align	2
.LC43:
	.ascii	"| || |/ _ \\ \\    / / |_   _/ _ \\  | _ \\ |    /_"
	.ascii	"\\\\ \\ / /\000"
	.align	2
.LC44:
	.ascii	"| __ | (_) \\ \\/\\/ /    | || (_) | |  _/ |__ / _ "
	.ascii	"\\\\ v / \000"
	.align	2
.LC45:
	.ascii	"|_||_|\\___/ \\_/\\_/     |_| \\___/  |_| |____/_/ "
	.ascii	"\\_\\|_|  \000"
	.align	2
.LC46:
	.ascii	"\012\000"
	.align	2
.LC47:
	.ascii	"\012 THE RULES\000"
	.align	2
.LC48:
	.ascii	"\012 1. This game is played on a grid of 3x3 square"
	.ascii	"s.\000"
	.align	2
.LC49:
	.ascii	"\012 2. Player 1 is X and Player 2 is O.\000"
	.align	2
.LC50:
	.ascii	"\012 3. Each player is given a maximum of 3 moves t"
	.ascii	"o mark 3 squares in a row. \000"
	.align	2
.LC51:
	.ascii	"\012\012 THE TWIST\000"
	.align	2
.LC52:
	.ascii	"\012 1. When the players consumed their 3 moves, th"
	.ascii	"ey will be given a chance to change the position of"
	.ascii	" one of their past\012    moves and move it to a fr"
	.ascii	"ee space.\000"
	.align	2
.LC53:
	.ascii	"\012 2. To win the game, a player must mark 3 squar"
	.ascii	"es in a row in a specific place, not just anywhere."
	.ascii	" \000"
	.align	2
.LC54:
	.ascii	"\012 3. With these, this Tic Tac Toe game will neve"
	.ascii	"r end in a tie.\000"
	.align	2
.LC55:
	.ascii	"\012\012\012\012\012\012 Press [1] to EXIT:     \000"
	.align	2
.LC56:
	.ascii	"\012 Please enter a valid choice: \000"
	.align	2
.LC57:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	how_to_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	how_to_play, %function
how_to_play:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L64+4
	bl	puts
	ldr	r0, .L64+8
	bl	puts
	ldr	r0, .L64+8
	bl	puts
	ldr	r0, .L64+12
	bl	puts
	ldr	r0, .L64+16
	bl	puts
	ldr	r0, .L64+20
	bl	puts
	ldr	r0, .L64+24
	bl	printf
	ldr	r0, .L64+28
	bl	puts
	ldr	r0, .L64+32
	bl	printf
	ldr	r0, .L64+36
	bl	printf
	ldr	r0, .L64+40
	bl	printf
	ldr	r0, .L64+44
	bl	printf
	ldr	r0, .L64+48
	bl	printf
	ldr	r0, .L64+52
	bl	printf
	ldr	r0, .L64+56
	bl	printf
	ldr	r0, .L64+60
	bl	printf
	ldr	r0, .L64+64
	bl	printf
.L62:
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L64+68
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L61
	ldr	r0, .L64+72
	bl	printf
	ldr	r3, .L64+76
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L61:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L62
	ldr	r0, .L64+80
	bl	puts
	nop
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC57
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC10
	.word	.LC56
	.word	stdin
	.word	.LC0
	.size	how_to_play, .-how_to_play
	.section	.rodata
	.align	2
.LC58:
	.ascii	"\012\012\012\012\012\000"
	.align	2
.LC59:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	str	r3, [fp, #-12]
.L71:
	ldr	r0, .L74+4
	bl	puts
	ldr	r0, [fp, #-12]
	bl	MainMenu
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L67
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L68
.L67:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L69
	bl	GameBody
	b	.L68
.L69:
	bl	how_to_play
.L68:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L70
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L71
.L70:
	mov	r3, #0
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC59
	.word	.LC58
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
