	.file	"469507.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	" %d "
.LC2:
	.string	" %c "
.LC3:
	.string	"\nO jogador atual \303\251 o %c\n"
	.text
	.type	print_estado, @function
print_estado:
.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 -12[rbp], 0
	jmp	.L2
.L5:
	cmp	DWORD PTR -12[rbp], 8
	jle	.L3
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L5
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L8
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L9
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 64[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_estado, .-print_estado
	.type	igual, @function
igual:
.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 -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -44[rbp], r9d
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -4[rbp], al
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -3[rbp], al
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -2[rbp], al
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -4[rbp], 95
	je	.L11
	movzx	eax, BYTE PTR -4[rbp]
	cmp	al, BYTE PTR -3[rbp]
	jne	.L11
	movzx	eax, BYTE PTR -3[rbp]
	cmp	al, BYTE PTR -2[rbp]
	jne	.L11
	movzx	eax, BYTE PTR -2[rbp]
	cmp	al, BYTE PTR -1[rbp]
	jne	.L11
	mov	eax, 1
	jmp	.L13
.L11:
	mov	eax, 0
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	igual, .-igual
	.type	fim_de_jogo, @function
fim_de_jogo:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L20:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -32[rbp]
	lea	r8d, 3[rax]
	mov	eax, DWORD PTR -32[rbp]
	lea	r9d, 2[rax]
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 1[rax]
	mov	r10d, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edi, DWORD PTR -28[rbp]
	push	rdi
	push	r8
	mov	edi, DWORD PTR -28[rbp]
	push	rdi
	mov	r8d, r10d
	mov	rdi, rax
	call	igual
	add	rsp, 24
	test	eax, eax
	je	.L17
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L18
.L17:
	add	DWORD PTR -28[rbp], 1
.L16:
	cmp	DWORD PTR -28[rbp], 7
	jle	.L19
	add	DWORD PTR -32[rbp], 1
.L15:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L20
	mov	DWORD PTR -24[rbp], 0
	jmp	.L21
.L25:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -20[rbp]
	lea	edi, 3[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	r8d, 2[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	r10d, 1[rax]
	mov	r9d, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	push	rdi
	mov	edi, DWORD PTR -24[rbp]
	push	rdi
	push	r8
	mov	r8d, r10d
	mov	rdi, rax
	call	igual
	add	rsp, 24
	test	eax, eax
	je	.L23
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L18
.L23:
	add	DWORD PTR -20[rbp], 1
.L22:
	cmp	DWORD PTR -20[rbp], 4
	jle	.L24
	add	DWORD PTR -24[rbp], 1
.L21:
	cmp	DWORD PTR -24[rbp], 7
	jle	.L25
	mov	DWORD PTR -16[rbp], 0
	jmp	.L26
.L30:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -12[rbp]
	lea	r9d, 3[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	r8d, 3[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, 2[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	r11d, 2[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	r10d, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	push	r9
	push	r8
	push	rdi
	mov	r9d, r11d
	mov	r8d, r10d
	mov	rdi, rax
	call	igual
	add	rsp, 24
	test	eax, eax
	je	.L28
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L18
.L28:
	add	DWORD PTR -12[rbp], 1
.L27:
	cmp	DWORD PTR -12[rbp], 4
	jle	.L29
	add	DWORD PTR -16[rbp], 1
.L26:
	cmp	DWORD PTR -16[rbp], 4
	jle	.L30
	mov	DWORD PTR -8[rbp], 3
	jmp	.L31
.L35:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -4[rbp]
	lea	r9d, 3[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	r8d, -3[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, 2[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	r11d, -2[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	r10d, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	push	r9
	push	r8
	push	rdi
	mov	r9d, r11d
	mov	r8d, r10d
	mov	rdi, rax
	call	igual
	add	rsp, 24
	test	eax, eax
	je	.L33
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L18
.L33:
	add	DWORD PTR -4[rbp], 1
.L32:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L34
	add	DWORD PTR -8[rbp], 1
.L31:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L35
	mov	eax, 0
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fim_de_jogo, .-fim_de_jogo
	.type	inicializar, @function
inicializar:
.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 -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L37
.L40:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L38
.L39:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 95
	add	DWORD PTR -4[rbp], 1
.L38:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L39
	add	DWORD PTR -8[rbp], 1
.L37:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L40
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 64[rax], 79
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	inicializar, .-inicializar
	.section	.rodata
	.align 8
.LC4:
	.string	"Introduza a sua jogada [1..%d]: "
	.text
	.type	pedir_jogada, @function
pedir_jogada:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	esi, 8
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L42:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	je	.L42
	cmp	DWORD PTR -4[rbp], -1
	jne	.L43
	mov	edi, 1
	call	exit@PLT
.L43:
	sub	DWORD PTR -4[rbp], 48
	cmp	DWORD PTR -4[rbp], 0
	jle	.L44
	cmp	DWORD PTR -4[rbp], 8
	jle	.L45
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pedir_jogada
	jmp	.L46
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	movzx	eax, BYTE PTR [rax+rdx*8]
	cmp	al, 95
	je	.L47
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pedir_jogada
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pedir_jogada, .-pedir_jogada
	.type	atualizar_estado, @function
atualizar_estado:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 7
	jmp	.L49
.L52:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L50
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 64[rax]
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	jmp	.L48
.L50:
	sub	DWORD PTR -4[rbp], 1
.L49:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L52
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	atualizar_estado, .-atualizar_estado
	.type	trocar_jogador, @function
trocar_jogador:
.LFB12:
	.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	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 64[rax]
	cmp	al, 79
	jne	.L54
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 64[rax], 88
	jmp	.L56
.L54:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 64[rax], 79
.L56:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	trocar_jogador, .-trocar_jogador
	.globl	atual
	.bss
	.align 32
	.type	atual, @object
	.size	atual, 65
atual:
	.zero	65
	.globl	vencedor
	.type	vencedor, @object
	.size	vencedor, 1
vencedor:
	.zero	1
	.section	.rodata
.LC5:
	.string	"Fim de jogo, venceram as %c\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, atual[rip]
	call	inicializar
	jmp	.L58
.L59:
	lea	rdi, atual[rip]
	call	print_estado
	lea	rdi, atual[rip]
	call	pedir_jogada
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, atual[rip]
	call	atualizar_estado
	lea	rdi, atual[rip]
	call	trocar_jogador
.L58:
	lea	rsi, vencedor[rip]
	lea	rdi, atual[rip]
	call	fim_de_jogo
	test	eax, eax
	je	.L59
	movzx	eax, BYTE PTR vencedor[rip]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"469507.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.ascii	" %d \000"
	.align	2
.LC2:
	.ascii	" %c \000"
	.align	2
.LC3:
	.ascii	"\012O jogador atual \303\251 o %c\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_estado, %function
print_estado:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	ble	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10
	bl	printf
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L5
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L8
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L9
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3, #64]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	print_estado, .-print_estado
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igual, %function
igual:
	@ args = 20, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-7]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-6]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #16]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #20]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L13
	ldrb	r2, [fp, #-8]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	mov	r3, #1
	b	.L15
.L13:
	mov	r3, #0
.L15:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	igual, .-igual
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fim_de_jogo, %function
fim_de_jogo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L17
.L22:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L18
.L21:
	ldr	r3, [fp, #-36]
	add	r0, r3, #1
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r2, r2, #3
	ldr	r1, [fp, #-32]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	ldr	r2, [fp, #-32]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, r0
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	igual
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L18:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	ble	.L21
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L17:
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	ble	.L22
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L27:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L24
.L26:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r2, r2, #2
	ldr	r1, [fp, #-24]
	add	r1, r1, #3
	str	r1, [sp, #16]
	ldr	r1, [fp, #-28]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	ldr	r2, [fp, #-28]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	igual
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	mov	r3, #1
	b	.L20
.L25:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L24:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	ble	.L26
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, [fp, #-28]
	cmp	r3, #7
	ble	.L27
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L28
.L32:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L29
.L31:
	ldr	r3, [fp, #-20]
	add	lr, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r1, [fp, #-16]
	add	r1, r1, #2
	ldr	r0, [fp, #-20]
	add	r0, r0, #3
	ldr	ip, [fp, #-16]
	add	ip, ip, #3
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-40]
	bl	igual
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	mov	r3, #1
	b	.L20
.L30:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L31
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L28:
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	ble	.L32
	mov	r3, #3
	str	r3, [fp, #-12]
	b	.L33
.L37:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L34
.L36:
	ldr	r3, [fp, #-12]
	sub	lr, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	sub	r2, r2, #2
	ldr	r1, [fp, #-8]
	add	r1, r1, #2
	ldr	r0, [fp, #-12]
	sub	r0, r0, #3
	ldr	ip, [fp, #-8]
	add	ip, ip, #3
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	igual
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	mov	r3, #1
	b	.L20
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L36
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L37
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fim_de_jogo, .-fim_de_jogo
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inicializar, %function
inicializar:
	@ 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, #-12]
	b	.L39
.L42:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L40
.L41:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #95
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L41
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L39:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L42
	ldr	r3, [fp, #-16]
	mov	r2, #79
	strb	r2, [r3, #64]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inicializar, .-inicializar
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Introduza a sua jogada [1..%d]: \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pedir_jogada, %function
pedir_jogada:
	@ 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	r1, #8
	ldr	r0, .L50
	bl	printf
	nop
.L44:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L44
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L45
	mov	r0, #1
	bl	exit
.L45:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L46
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L47
.L46:
	ldr	r0, [fp, #-16]
	bl	pedir_jogada
	mov	r3, r0
	b	.L48
.L47:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldrb	r3, [r3, r2, lsl #3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L49
	ldr	r0, [fp, #-16]
	bl	pedir_jogada
	mov	r3, r0
	b	.L48
.L49:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC4
	.size	pedir_jogada, .-pedir_jogada
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atualizar_estado, %function
atualizar_estado:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #7
	str	r3, [fp, #-8]
	b	.L53
.L56:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L54
	ldr	r3, [fp, #-16]
	ldrb	r1, [r3, #64]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L52
.L54:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L56
.L52:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	atualizar_estado, .-atualizar_estado
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trocar_jogador, %function
trocar_jogador:
	@ 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]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #64]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L58
	ldr	r3, [fp, #-8]
	mov	r2, #88
	strb	r2, [r3, #64]
	b	.L60
.L58:
	ldr	r3, [fp, #-8]
	mov	r2, #79
	strb	r2, [r3, #64]
.L60:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	trocar_jogador, .-trocar_jogador
	.comm	atual,65,4
	.comm	vencedor,1,1
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Fim de jogo, venceram as %c\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, .L65
	bl	inicializar
	b	.L62
.L63:
	ldr	r0, .L65
	bl	print_estado
	ldr	r0, .L65
	bl	pedir_jogada
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L65
	bl	atualizar_estado
	ldr	r0, .L65
	bl	trocar_jogador
.L62:
	ldr	r1, .L65+4
	ldr	r0, .L65
	bl	fim_de_jogo
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L65+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L65+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	atual
	.word	vencedor
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
