	.file	"127132.c"
	.intel_syntax noprefix
	.text
	.globl	velha
	.data
	.align 8
	.type	velha, @object
	.size	velha, 9
velha:
	.ascii	"   "
	.ascii	"   "
	.ascii	"   "
	.section	.rodata
.LC0:
	.string	"%c "
.LC1:
	.string	""
	.text
	.globl	printArray
	.type	printArray, @function
printArray:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printArray, .-printArray
	.globl	checkWin
	.type	checkWin, @function
checkWin:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	cmp	cl, al
	sete	sil
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 2[rax]
	cmp	cl, al
	sete	al
	and	eax, esi
	movzx	ecx, al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	setne	al
	movzx	eax, al
	and	eax, ecx
	test	eax, eax
	je	.L8
	mov	eax, 1
	jmp	.L6
.L8:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L10
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L13:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rcx+rax]
	cmp	dl, al
	sete	sil
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 6[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rcx+rax]
	cmp	dl, al
	sete	al
	and	eax, esi
	movzx	ecx, al
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	setne	al
	movzx	eax, al
	and	eax, ecx
	test	eax, eax
	je	.L12
	mov	eax, 1
	jmp	.L6
.L12:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L11:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L13
	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
	sete	cl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	edx, BYTE PTR 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	sete	al
	and	eax, ecx
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	setne	al
	movzx	eax, al
	and	eax, edx
	test	eax, eax
	je	.L14
	mov	eax, 1
	jmp	.L6
.L14:
	add	DWORD PTR -4[rbp], 1
	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
	sete	cl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	dl, al
	sete	al
	and	eax, ecx
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 32
	setne	al
	movzx	eax, al
	and	eax, edx
	test	eax, eax
	je	.L15
	mov	eax, 1
	jmp	.L6
.L15:
	add	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -4[rbp], 4
	jne	.L16
	mov	eax, 0
	jmp	.L6
.L16:
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	checkWin, .-checkWin
	.globl	checkDraw
	.type	checkDraw, @function
checkDraw:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L18
.L23:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L22
	lea	rdi, .LC1[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L18:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L23
	mov	eax, 1
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checkDraw, .-checkDraw
	.globl	checkPos
	.type	checkPos, @function
checkPos:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 9
	ja	.L25
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L27[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L27[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L27:
	.long	.L25-.L27
	.long	.L35-.L27
	.long	.L34-.L27
	.long	.L33-.L27
	.long	.L32-.L27
	.long	.L31-.L27
	.long	.L30-.L27
	.long	.L29-.L27
	.long	.L28-.L27
	.long	.L26-.L27
	.text
.L35:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L36
	mov	eax, 0
	jmp	.L24
.L36:
	mov	eax, 1
	jmp	.L24
.L34:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 32
	jne	.L38
	mov	eax, 0
	jmp	.L24
.L38:
	mov	eax, 1
	jmp	.L24
.L33:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 32
	jne	.L39
	mov	eax, 0
	jmp	.L24
.L39:
	mov	eax, 1
	jmp	.L24
.L32:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L40
	mov	eax, 0
	jmp	.L24
.L40:
	mov	eax, 1
	jmp	.L24
.L31:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 32
	jne	.L41
	mov	eax, 0
	jmp	.L24
.L41:
	mov	eax, 1
	jmp	.L24
.L30:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 32
	jne	.L42
	mov	eax, 0
	jmp	.L24
.L42:
	mov	eax, 1
	jmp	.L24
.L29:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L43
	mov	eax, 0
	jmp	.L24
.L43:
	mov	eax, 1
	jmp	.L24
.L28:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 32
	jne	.L44
	mov	eax, 0
	jmp	.L24
.L44:
	mov	eax, 1
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 32
	jne	.L45
	mov	eax, 0
	jmp	.L24
.L45:
	mov	eax, 1
	jmp	.L24
.L25:
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	checkPos, .-checkPos
	.globl	readPos
	.type	readPos, @function
readPos:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -16[rbp], al
	cmp	DWORD PTR -12[rbp], 9
	ja	.L58
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L49[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L49[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L49:
	.long	.L58-.L49
	.long	.L57-.L49
	.long	.L56-.L49
	.long	.L55-.L49
	.long	.L54-.L49
	.long	.L53-.L49
	.long	.L52-.L49
	.long	.L51-.L49
	.long	.L50-.L49
	.long	.L48-.L49
	.text
.L57:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L56
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -16[rbp]
	mov	BYTE PTR [rax], dl
.L56:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L55
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -16[rbp]
	mov	BYTE PTR 1[rax], dl
.L55:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L54
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -16[rbp]
	mov	BYTE PTR 2[rax], dl
.L54:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR [rdx], al
.L53:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L52
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 1[rdx], al
.L52:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L51
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 2[rdx], al
.L51:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L50
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR [rdx], al
.L50:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 1[rdx], al
.L48:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checkPos
	test	eax, eax
	jne	.L58
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 2[rdx], al
.L58:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	readPos, .-readPos
	.section	.rodata
.LC2:
	.string	"Jogador %c fa\303\247a sua jogada: "
.LC3:
	.string	" %d"
.LC4:
	.string	"Jogada inv\303\241lida!!!"
.LC5:
	.string	"DEU VELHA!!!"
.LC6:
	.string	"JOGADOR '%c' GANHOU!!!\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	and	eax, 1
	test	eax, eax
	jne	.L60
	mov	BYTE PTR -29[rbp], 88
	jmp	.L62
.L60:
	mov	BYTE PTR -29[rbp], 79
	jmp	.L62
.L67:
	cmp	BYTE PTR -29[rbp], 88
	jne	.L63
	mov	BYTE PTR -29[rbp], 79
	jmp	.L64
.L63:
	mov	BYTE PTR -29[rbp], 88
.L64:
	movsx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L65
.L66:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	movsx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L65:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	setle	dl
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 9
	setg	al
	or	eax, edx
	movzx	ebx, al
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, velha[rip]
	call	checkPos
	cmp	eax, 1
	sete	al
	movzx	eax, al
	or	eax, ebx
	test	eax, eax
	jne	.L66
	movsx	edx, BYTE PTR -29[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, velha[rip]
	call	readPos
	lea	rdi, velha[rip]
	call	printArray
.L62:
	lea	rdi, velha[rip]
	call	checkWin
	test	eax, eax
	sete	bl
	lea	rdi, velha[rip]
	call	checkDraw
	test	eax, eax
	sete	al
	and	eax, ebx
	test	al, al
	jne	.L67
	lea	rdi, velha[rip]
	call	checkDraw
	cmp	eax, 1
	jne	.L68
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L71
.L68:
	movsx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L71:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"127132.c"
	.text
	.global	velha
	.data
	.align	2
	.type	velha, %object
	.size	velha, 9
velha:
	.ascii	"   "
	.ascii	"   "
	.ascii	"   "
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c \000"
	.align	2
.LC1:
	.ascii	"\000"
	.text
	.align	2
	.global	printArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	printArray, %function
printArray:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L6
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L4
	ldr	r0, .L6+4
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	printArray, .-printArray
	.align	2
	.global	checkWin
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkWin, %function
checkWin:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L12:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r1, r3
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r0, [r3, #1]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r0, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	and	r3, r3, r1
	cmp	r3, #0
	beq	.L10
	mov	r3, #1
	b	.L8
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r1, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r0, r3, #6
	ldr	r3, [fp, #-12]
	add	r3, r0, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	and	r3, r3, r1
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	b	.L8
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L15
	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
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L16
	mov	r3, #1
	b	.L8
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	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
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r1, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	b	.L8
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L18
	mov	r3, #0
	b	.L8
.L18:
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	checkWin, .-checkWin
	.align	2
	.global	checkDraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkDraw, %function
checkDraw:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L25:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L24:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L22
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L24
	ldr	r0, .L26
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L25
	mov	r3, #1
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC1
	.size	checkDraw, .-checkDraw
	.align	2
	.global	checkPos
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkPos, %function
checkPos:
	@ 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, #-12]
	sub	r3, r3, #1
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L31:
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L30
.L39:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L40
	mov	r3, #0
	b	.L28
.L40:
	mov	r3, #1
	b	.L28
.L38:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L42
	mov	r3, #0
	b	.L28
.L42:
	mov	r3, #1
	b	.L28
.L37:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L43
	mov	r3, #0
	b	.L28
.L43:
	mov	r3, #1
	b	.L28
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L44
	mov	r3, #0
	b	.L28
.L44:
	mov	r3, #1
	b	.L28
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L45
	mov	r3, #0
	b	.L28
.L45:
	mov	r3, #1
	b	.L28
.L34:
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L46
	mov	r3, #0
	b	.L28
.L46:
	mov	r3, #1
	b	.L28
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L47
	mov	r3, #0
	b	.L28
.L47:
	mov	r3, #1
	b	.L28
.L32:
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L48
	mov	r3, #0
	b	.L28
.L48:
	mov	r3, #1
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L49
	mov	r3, #0
	b	.L28
.L49:
	mov	r3, #1
	b	.L28
.L29:
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	checkPos, .-checkPos
	.align	2
	.global	readPos
	.syntax unified
	.arm
	.fpu softvfp
	.type	readPos, %function
readPos:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L62
.L53:
	.word	.L61
	.word	.L60
	.word	.L59
	.word	.L58
	.word	.L57
	.word	.L56
	.word	.L55
	.word	.L54
	.word	.L52
.L61:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
.L60:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #1]
.L59:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #2]
.L58:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
.L57:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #1]
.L56:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #2]
.L55:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
.L54:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #1]
.L52:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	checkPos
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #2]
.L62:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readPos, .-readPos
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Jogador %c fa\303\247a sua jogada: \000"
	.align	2
.LC3:
	.ascii	" %d\000"
	.align	2
.LC4:
	.ascii	"Jogada inv\303\241lida!!!\000"
	.align	2
.LC5:
	.ascii	"DEU VELHA!!!\000"
	.align	2
.LC6:
	.ascii	"JOGADOR '%c' GANHOU!!!\012\000"
	.align	2
.LC7:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L64
	mov	r3, #88
	strb	r3, [fp, #-21]
	b	.L66
.L64:
	mov	r3, #79
	strb	r3, [fp, #-21]
	b	.L66
.L71:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L67
	mov	r3, #79
	strb	r3, [fp, #-21]
	b	.L68
.L67:
	mov	r3, #88
	strb	r3, [fp, #-21]
.L68:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L76+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+8
	bl	__isoc99_scanf
	b	.L69
.L70:
	ldr	r0, .L76+12
	bl	puts
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L76+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+8
	bl	__isoc99_scanf
.L69:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movle	r3, #1
	movgt	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r3, r3, #255
	mov	r4, r3
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L76+16
	bl	checkPos
	mov	r3, r0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	orr	r3, r4, r3
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L76+16
	bl	readPos
	ldr	r0, .L76+16
	bl	printArray
.L66:
	ldr	r0, .L76+16
	bl	checkWin
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r4, r3, #255
	ldr	r0, .L76+16
	bl	checkDraw
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r4
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L76+16
	bl	checkDraw
	mov	r3, r0
	cmp	r3, #1
	bne	.L72
	ldr	r0, .L76+20
	bl	puts
	b	.L75
.L72:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L76+24
	bl	printf
.L75:
	nop
	ldr	r3, .L76
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	velha
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
