	.file	"478982.c"
	.intel_syntax noprefix
	.text
	.globl	matrix
	.bss
	.align 32
	.type	matrix, @object
	.size	matrix, 42
matrix:
	.zero	42
	.globl	turn
	.type	turn, @object
	.size	turn, 1
turn:
	.zero	1
	.globl	winner
	.data
	.type	winner, @object
	.size	winner, 1
winner:
	.byte	46
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	clear_screen
	mov	eax, 0
	call	rules_instructions
	mov	eax, 0
	call	start_board
	mov	eax, 0
	call	start_game
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"\n Welcome to this C-based 4-in-a-row game by Diogo Correia!"
	.align 8
.LC1:
	.string	"\n In order to win the game, you must have four of your characters aligned, either vertically, horizontally or diagonally."
	.align 8
.LC2:
	.string	"\n Player 1 plays with '%c' and Player 2 with '%c'.\n"
	.align 8
.LC3:
	.string	"\n To start playing, choose the number correspondent to the column you wish to occupy, and press ENTER."
	.align 8
.LC4:
	.string	"\n Press CTRL + C at any time to exit."
.LC5:
	.string	"\n Good luck! \n\n"
	.text
	.globl	rules_instructions
	.type	rules_instructions, @function
rules_instructions:
.LFB7:
	.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
	mov	edx, 66
	mov	esi, 65
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rules_instructions, .-rules_instructions
	.globl	start_board
	.type	start_board, @function
start_board:
.LFB8:
	.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 -8[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 46
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L7
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L8
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	start_board, .-start_board
	.section	.rodata
.LC6:
	.string	" \033[31m%c\033[0m "
.LC7:
	.string	" \033[34m%c\033[0m "
.LC8:
	.string	" \033[33m%c\033[0m "
.LC9:
	.string	"---"
.LC10:
	.string	" %d "
.LC11:
	.string	"\n"
	.text
	.globl	print_board
	.type	print_board, @function
print_board:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 5
	jmp	.L10
.L17:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L16:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 65
	je	.L12
	cmp	eax, 66
	je	.L13
	jmp	.L22
.L12:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L22:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	add	DWORD PTR -8[rbp], 1
.L11:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L16
	mov	edi, 10
	call	putchar@PLT
	sub	DWORD PTR -12[rbp], 1
.L10:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L17
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L19:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L18:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L19
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L21
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_board, .-print_board
	.section	.rodata
.LC12:
	.string	"@cls||clear"
	.text
	.globl	clear_screen
	.type	clear_screen, @function
clear_screen:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC12[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	clear_screen, .-clear_screen
	.globl	start_game
	.type	start_game, @function
start_game:
.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	BYTE PTR -1[rbp], 46
.L26:
	mov	eax, 0
	call	print_board
	mov	eax, 0
	call	execute_play
	mov	eax, 0
	call	clear_screen
	mov	eax, 0
	call	verify_winner
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 46
	jne	.L25
	mov	eax, 0
	call	is_tie
	xor	eax, 1
	test	al, al
	jne	.L26
.L25:
	mov	eax, 0
	call	print_board
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	game_end
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	start_game, .-start_game
	.section	.rodata
.LC13:
	.string	"\nPlayer %d (%c) turn: "
.LC14:
	.string	"%d"
	.align 8
.LC15:
	.string	"\nInvalid play! There is no such column!"
	.align 8
.LC16:
	.string	"\nInvalid play! That column is already full!"
	.text
	.globl	execute_play
	.type	execute_play, @function
execute_play:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR turn[rip]
	test	al, al
	je	.L28
	mov	edx, 66
	jmp	.L29
.L28:
	mov	edx, 65
.L29:
	movzx	eax, BYTE PTR turn[rip]
	test	al, al
	je	.L30
	mov	eax, 2
	jmp	.L31
.L30:
	mov	eax, 1
.L31:
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 7
	jle	.L32
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, 0
	call	execute_play
	jmp	.L27
.L32:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L34
.L38:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L35
	add	DWORD PTR -12[rbp], 1
	jmp	.L34
.L35:
	movzx	eax, BYTE PTR turn[rip]
	test	al, al
	je	.L36
	mov	ecx, 66
	jmp	.L37
.L36:
	mov	ecx, 65
.L37:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, BYTE PTR turn[rip]
	movzx	eax, al
	test	eax, eax
	setne	al
	xor	eax, 1
	movzx	eax, al
	and	eax, 1
	mov	BYTE PTR turn[rip], al
	jmp	.L27
.L34:
	cmp	DWORD PTR -12[rbp], 5
	jle	.L38
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	call	execute_play
.L27:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	execute_play, .-execute_play
	.globl	verify_winner
	.type	verify_winner, @function
verify_winner:
.LFB13:
	.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 -8[rbp], 0
	jmp	.L42
.L51:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L43
.L50:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L52
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L46
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 2
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L46
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 3
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L46
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L47
.L46:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L48
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 2[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L48
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 3[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L48
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L49
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 2[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 2
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L49
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 3[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 3
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L49
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L45
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -2[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 2
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L45
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -3[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 3
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L45
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L47
.L52:
	nop
.L45:
	add	DWORD PTR -4[rbp], 1
.L43:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L50
	add	DWORD PTR -8[rbp], 1
.L42:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L51
	mov	eax, 46
.L47:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	verify_winner, .-verify_winner
	.globl	is_tie
	.type	is_tie, @function
is_tie:
.LFB14:
	.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 -8[rbp], 0
	jmp	.L54
.L59:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L56
	mov	eax, 0
	jmp	.L57
.L56:
	add	DWORD PTR -4[rbp], 1
.L55:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L58
	add	DWORD PTR -8[rbp], 1
.L54:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L59
	mov	eax, 1
.L57:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	is_tie, .-is_tie
	.section	.rodata
.LC17:
	.string	"\nPlayer 1 won!"
.LC18:
	.string	"\nPlayer 2 won!"
.LC19:
	.string	"\nIt's a tie!"
.LC20:
	.string	"Press ENTER to exit."
.LC21:
	.string	"%c"
	.text
	.globl	game_end
	.type	game_end, @function
game_end:
.LFB15:
	.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	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsx	eax, BYTE PTR -20[rbp]
	cmp	eax, 65
	je	.L61
	cmp	eax, 66
	je	.L62
	jmp	.L66
.L61:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L64
.L62:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L64
.L66:
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L64:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	game_end, .-game_end
	.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	"478982.c"
	.text
	.comm	matrix,42,4
	.global	turn
	.bss
	.type	turn, %object
	.size	turn, 1
turn:
	.space	1
	.global	winner
	.data
	.type	winner, %object
	.size	winner, 1
winner:
	.byte	46
	.text
	.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	clear_screen
	bl	rules_instructions
	bl	start_board
	bl	start_game
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Welcome to this C-based 4-in-a-row game by Dio"
	.ascii	"go Correia!\000"
	.align	2
.LC1:
	.ascii	"\012 In order to win the game, you must have four o"
	.ascii	"f your characters aligned, either vertically, horiz"
	.ascii	"ontally or diagonally.\000"
	.align	2
.LC2:
	.ascii	"\012 Player 1 plays with '%c' and Player 2 with '%c"
	.ascii	"'.\012\000"
	.align	2
.LC3:
	.ascii	"\012 To start playing, choose the number correspond"
	.ascii	"ent to the column you wish to occupy, and press ENT"
	.ascii	"ER.\000"
	.align	2
.LC4:
	.ascii	"\012 Press CTRL + C at any time to exit.\000"
	.align	2
.LC5:
	.ascii	"\012 Good luck! \012\012\000"
	.text
	.align	2
	.global	rules_instructions
	.syntax unified
	.arm
	.fpu softvfp
	.type	rules_instructions, %function
rules_instructions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L4
	bl	puts
	ldr	r0, .L4+4
	bl	puts
	mov	r2, #66
	mov	r1, #65
	ldr	r0, .L4+8
	bl	printf
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+16
	bl	puts
	ldr	r0, .L4+20
	bl	puts
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	rules_instructions, .-rules_instructions
	.align	2
	.global	start_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_board, %function
start_board:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r1, .L11
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L9
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	matrix
	.size	start_board, .-start_board
	.section	.rodata
	.align	2
.LC6:
	.ascii	" \033[31m%c\033[0m \000"
	.align	2
.LC7:
	.ascii	" \033[34m%c\033[0m \000"
	.align	2
.LC8:
	.ascii	" \033[33m%c\033[0m \000"
	.align	2
.LC9:
	.ascii	"---\000"
	.align	2
.LC10:
	.ascii	" %d \000"
	.align	2
.LC11:
	.ascii	"\012\000"
	.text
	.align	2
	.global	print_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_board, %function
print_board:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #5
	str	r3, [fp, #-16]
	b	.L14
.L21:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L20:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L16
	cmp	r3, #66
	beq	.L17
	b	.L26
.L16:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L27+4
	bl	printf
	b	.L19
.L17:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L27+8
	bl	printf
	b	.L19
.L26:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L27+12
	bl	printf
.L19:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L20
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L21
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r0, .L27+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L23
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L25:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L27+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L25
	ldr	r0, .L27+24
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	matrix
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	print_board, .-print_board
	.section	.rodata
	.align	2
.LC12:
	.ascii	"@cls||clear\000"
	.text
	.align	2
	.global	clear_screen
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_screen, %function
clear_screen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L30
	bl	system
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC12
	.size	clear_screen, .-clear_screen
	.align	2
	.global	start_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_game, %function
start_game:
	@ 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, #46
	strb	r3, [fp, #-5]
.L34:
	bl	print_board
	bl	execute_play
	bl	clear_screen
	bl	verify_winner
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L33
	bl	is_tie
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L34
.L33:
	bl	print_board
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	game_end
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	start_game, .-start_game
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012Player %d (%c) turn: \000"
	.align	2
.LC14:
	.ascii	"%d\000"
	.align	2
.LC15:
	.ascii	"\012Invalid play! There is no such column!\000"
	.align	2
.LC16:
	.ascii	"\012Invalid play! That column is already full!\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_play, %function
execute_play:
	@ 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, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L49+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	mov	r1, #2
	b	.L37
.L36:
	mov	r1, #1
.L37:
	ldr	r3, .L49+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	mov	r3, #66
	b	.L39
.L38:
	mov	r3, #65
.L39:
	mov	r2, r3
	ldr	r0, .L49+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L49+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L40
	ldr	r0, .L49+16
	bl	puts
	bl	execute_play
	b	.L35
.L40:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L42
.L46:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r1, .L49+20
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L43
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L42
.L43:
	ldr	r3, .L49+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	mov	r0, #66
	b	.L45
.L44:
	mov	r0, #65
.L45:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r1, .L49+20
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, .L49+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L49+4
	strb	r2, [r3]
	b	.L35
.L42:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L46
	ldr	r0, .L49+24
	bl	puts
	bl	execute_play
.L35:
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC17
	.word	turn
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	matrix
	.word	.LC16
	.size	execute_play, .-execute_play
	.align	2
	.global	verify_winner
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_winner, %function
verify_winner:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L52
.L61:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L53
.L60:
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L62
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	ip, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L56
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	add	r0, r3, #2
	ldr	ip, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L56
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	add	r0, r3, #3
	ldr	ip, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L56
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L57
.L56:
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r0, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r0, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L58
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	ldr	r0, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r0, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L58
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #3
	ldr	r0, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r0, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L58
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L57
.L58:
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L59
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r0, r3, #2
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L59
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r2, r3, #3
	ldr	r3, [fp, #-8]
	add	r0, r3, #3
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L59
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L57
.L59:
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L55
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r0, r3, #2
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L55
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r2, r3, #3
	ldr	r3, [fp, #-8]
	add	r0, r3, #3
	ldr	ip, .L63
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, ip, r3
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L55
	ldr	r1, .L63
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L57
.L62:
	nop
.L55:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L60
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L61
	mov	r3, #46
.L57:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L64:
	.align	2
.L63:
	.word	matrix
	.size	verify_winner, .-verify_winner
	.align	2
	.global	is_tie
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_tie, %function
is_tie:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L66
.L71:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L67
.L70:
	ldr	r1, .L72
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L68
	mov	r3, #0
	b	.L69
.L68:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L67:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L70
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L66:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L71
	mov	r3, #1
.L69:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L73:
	.align	2
.L72:
	.word	matrix
	.size	is_tie, .-is_tie
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Player 1 won!\000"
	.align	2
.LC19:
	.ascii	"\012Player 2 won!\000"
	.align	2
.LC20:
	.ascii	"\012It's a tie!\000"
	.align	2
.LC21:
	.ascii	"Press ENTER to exit.\000"
	.align	2
.LC22:
	.ascii	"%c\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	game_end
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_end, %function
game_end:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L75
	cmp	r3, #66
	beq	.L76
	b	.L80
.L75:
	ldr	r0, .L81+4
	bl	puts
	b	.L78
.L76:
	ldr	r0, .L81+8
	bl	puts
	b	.L78
.L80:
	ldr	r0, .L81+12
	bl	puts
.L78:
	ldr	r0, .L81+16
	bl	puts
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L81+20
	bl	__isoc99_scanf
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L81+20
	bl	__isoc99_scanf
	nop
	ldr	r3, .L81
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC23
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	game_end, .-game_end
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
