	.file	"9362.c"
	.intel_syntax noprefix
	.text
	.globl	contaOcorrencias
	.type	contaOcorrencias, @function
contaOcorrencias:
.LFB6:
	.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 -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L3
	add	DWORD PTR -4[rbp], 1
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L4
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	contaOcorrencias, .-contaOcorrencias
	.globl	testaN
	.type	testaN, @function
testaN:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	contaOcorrencias
	cmp	DWORD PTR -16[rbp], eax
	jle	.L7
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	contaOcorrencias
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	testaN, .-testaN
	.globl	insereNumero
	.type	insereNumero, @function
insereNumero:
.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, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	testaN
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	jg	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insereNumero, .-insereNumero
	.globl	removeValor
	.type	removeValor, @function
removeValor:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	jmp	.L13
.L14:
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L17
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	removeValor, .-removeValor
	.globl	removeElemento
	.type	removeElemento, @function
removeElemento:
.LFB10:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L20
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	removeElemento, .-removeElemento
	.globl	alteraOcorrencias
	.type	alteraOcorrencias, @function
alteraOcorrencias:
.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, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L23
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	testaN
	test	eax, eax
	jle	.L24
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L23
.L24:
	add	DWORD PTR -4[rbp], 1
.L23:
	add	DWORD PTR -8[rbp], 1
.L22:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L25
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	alteraOcorrencias, .-alteraOcorrencias
	.globl	retornaPosicao
	.type	retornaPosicao, @function
retornaPosicao:
.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L30
.L29:
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L31
	mov	eax, 0
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	retornaPosicao, .-retornaPosicao
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	exibeElementos
	.type	exibeElementos, @function
exibeElementos:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L33:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	exibeElementos, .-exibeElementos
	.section	.rodata
	.align 8
.LC1:
	.string	" ____________________________________ "
	.align 8
.LC2:
	.string	"|                                    |"
	.align 8
.LC3:
	.string	"|     Opcoes:                        |"
	.align 8
.LC4:
	.string	"|  1) Inserir numero                 |"
	.align 8
.LC5:
	.string	"|  2) Remover ocorrencias de X       |"
	.align 8
.LC6:
	.string	"|  3) Remover elemento de posicao X  |"
	.align 8
.LC7:
	.string	"|  4) Alterar ocorrencias de A por B |"
	.align 8
.LC8:
	.string	"|  5) Busca primeira posicao de X    |"
	.align 8
.LC9:
	.string	"|  6) Exibir elementos do vetor      |"
	.align 8
.LC10:
	.string	"|____________________________________|"
.LC11:
	.string	" \\_ Escolha: "
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC2[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
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	menu, .-menu
	.section	.rodata
.LC12:
	.string	"cls"
.LC13:
	.string	" %d"
	.align 8
.LC14:
	.string	"Digite um numero inteiro positivo para inserir ao vetor.\n> "
	.align 8
.LC15:
	.string	"%d inserido no vetor na posicao %d"
	.align 8
.LC16:
	.string	"Numero de ocorrencias de %d eh igual ou superior a %d, operacao negada."
.LC17:
	.string	"pause"
	.align 8
.LC18:
	.string	"Digite um numero inteiro positivo para remover todas as ocorrencias dele no vetor.\n> "
	.align 8
.LC19:
	.string	"Removidas todas as ocorrencias do numero %d no vetor"
	.align 8
.LC20:
	.string	"Digite um numero maior ou igual a 0 para indicar o indice de onde o elemento deve ser removido.\n> "
.LC21:
	.string	"Elemento removido do vetor\n"
	.align 8
.LC22:
	.string	"Nao ha este indice, %d elementos disponiveis no vetor\n\n"
	.align 8
.LC23:
	.string	"Digite um numero A no qual devera ser trocado.\n> "
	.align 8
.LC24:
	.string	"Digite um numero B que substituira todas as ocorrencias de A.\n> "
	.align 8
.LC25:
	.string	"Todas as ocorrencias de A foram alteradas por B"
	.align 8
.LC26:
	.string	"Todas exceto %d ocorrencias de A foram alteradas por B"
	.align 8
.LC27:
	.string	"\nMotivo: Limite da quantidade de B alcancado."
	.align 8
.LC28:
	.string	"Digite o numero no qual gostaria de procurar a posicao da primeira ocorrencia dele.\n> "
.LC29:
	.string	"numero: %d\nposicao: %d \n\n"
	.align 8
.LC30:
	.string	"Nao foi encontrado esse numero"
.LC31:
	.string	"Exibindo elementos..."
.LC32:
	.string	"\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
.L59:
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	eax, 0
	call	menu
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 6
	ja	.L37
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L39[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L39[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L39:
	.long	.L37-.L39
	.long	.L45-.L39
	.long	.L48-.L39
	.long	.L49-.L39
	.long	.L52-.L39
	.long	.L56-.L39
	.long	.L38-.L39
	.text
.L62:
	nop
.L45:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L62
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	edx, DWORD PTR -60[rbp]
	lea	rcx, -68[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insereNumero
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L46
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L47
.L46:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L47:
	lea	rdi, .LC17[rip]
	call	system@PLT
	jmp	.L37
.L63:
	nop
.L48:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L63
	mov	edx, DWORD PTR -60[rbp]
	lea	rcx, -68[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	removeValor
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	system@PLT
	jmp	.L37
.L64:
	nop
.L49:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	js	.L64
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	jge	.L50
	mov	edx, DWORD PTR -60[rbp]
	lea	rcx, -68[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	removeElemento
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L51
.L50:
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	lea	rdi, .LC17[rip]
	call	system@PLT
	jmp	.L37
.L65:
	nop
.L52:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L65
.L53:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L53
	mov	ecx, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -60[rbp]
	lea	rsi, -68[rbp]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	alteraOcorrencias
	mov	DWORD PTR -52[rbp], eax
	lea	rdi, .LC12[rip]
	call	system@PLT
	cmp	DWORD PTR -52[rbp], 0
	jne	.L54
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L55
.L54:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
.L55:
	lea	rdi, .LC17[rip]
	call	system@PLT
	jmp	.L37
.L66:
	nop
.L56:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L66
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	retornaPosicao
	test	eax, eax
	jle	.L57
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	retornaPosicao
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L57:
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
.L58:
	lea	rdi, .LC17[rip]
	call	system@PLT
	jmp	.L37
.L38:
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -68[rbp]
	lea	rax, -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	exibeElementos
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	system@PLT
	nop
.L37:
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jne	.L59
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"9362.c"
	.text
	.align	2
	.global	contaOcorrencias
	.syntax unified
	.arm
	.fpu softvfp
	.type	contaOcorrencias, %function
contaOcorrencias:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	contaOcorrencias, .-contaOcorrencias
	.align	2
	.global	testaN
	.syntax unified
	.arm
	.fpu softvfp
	.type	testaN, %function
testaN:
	@ 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]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	contaOcorrencias
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L7
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	contaOcorrencias
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, r2
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	testaN, .-testaN
	.align	2
	.global	insereNumero
	.syntax unified
	.arm
	.fpu softvfp
	.type	insereNumero, %function
insereNumero:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	testaN
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #9
	bgt	.L10
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insereNumero, .-insereNumero
	.align	2
	.global	removeValor
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeValor, %function
removeValor:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L17:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	b	.L13
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	removeValor, .-removeValor
	.align	2
	.global	removeElemento
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeElemento, %function
removeElemento:
	@ args = 0, 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]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L20
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	removeElemento, .-removeElemento
	.align	2
	.global	alteraOcorrencias
	.syntax unified
	.arm
	.fpu softvfp
	.type	alteraOcorrencias, %function
alteraOcorrencias:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L25:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	testaN
	mov	r3, r0
	cmp	r3, #0
	ble	.L24
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alteraOcorrencias, .-alteraOcorrencias
	.align	2
	.global	retornaPosicao
	.syntax unified
	.arm
	.fpu softvfp
	.type	retornaPosicao, %function
retornaPosicao:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L31:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-8]
	b	.L30
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L31
	mov	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	retornaPosicao, .-retornaPosicao
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	exibeElementos
	.syntax unified
	.arm
	.fpu softvfp
	.type	exibeElementos, %function
exibeElementos:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC0
	.size	exibeElementos, .-exibeElementos
	.section	.rodata
	.align	2
.LC1:
	.ascii	" ____________________________________ \000"
	.align	2
.LC2:
	.ascii	"|                                    |\000"
	.align	2
.LC3:
	.ascii	"|     Opcoes:                        |\000"
	.align	2
.LC4:
	.ascii	"|  1) Inserir numero                 |\000"
	.align	2
.LC5:
	.ascii	"|  2) Remover ocorrencias de X       |\000"
	.align	2
.LC6:
	.ascii	"|  3) Remover elemento de posicao X  |\000"
	.align	2
.LC7:
	.ascii	"|  4) Alterar ocorrencias de A por B |\000"
	.align	2
.LC8:
	.ascii	"|  5) Busca primeira posicao de X    |\000"
	.align	2
.LC9:
	.ascii	"|  6) Exibir elementos do vetor      |\000"
	.align	2
.LC10:
	.ascii	"|____________________________________|\000"
	.align	2
.LC11:
	.ascii	" \\_ Escolha: \000"
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L38
	bl	puts
	ldr	r0, .L38+4
	bl	puts
	ldr	r0, .L38+8
	bl	puts
	ldr	r0, .L38+4
	bl	puts
	ldr	r0, .L38+12
	bl	puts
	ldr	r0, .L38+16
	bl	puts
	ldr	r0, .L38+20
	bl	puts
	ldr	r0, .L38+24
	bl	puts
	ldr	r0, .L38+28
	bl	puts
	ldr	r0, .L38+32
	bl	puts
	ldr	r0, .L38+36
	bl	puts
	ldr	r0, .L38+40
	bl	printf
	nop
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC12:
	.ascii	"cls\000"
	.align	2
.LC13:
	.ascii	" %d\000"
	.align	2
.LC14:
	.ascii	"Digite um numero inteiro positivo para inserir ao v"
	.ascii	"etor.\012> \000"
	.align	2
.LC15:
	.ascii	"%d inserido no vetor na posicao %d\000"
	.align	2
.LC16:
	.ascii	"Numero de ocorrencias de %d eh igual ou superior a "
	.ascii	"%d, operacao negada.\000"
	.align	2
.LC17:
	.ascii	"pause\000"
	.align	2
.LC18:
	.ascii	"Digite um numero inteiro positivo para remover toda"
	.ascii	"s as ocorrencias dele no vetor.\012> \000"
	.align	2
.LC19:
	.ascii	"Removidas todas as ocorrencias do numero %d no veto"
	.ascii	"r\000"
	.align	2
.LC20:
	.ascii	"Digite um numero maior ou igual a 0 para indicar o "
	.ascii	"indice de onde o elemento deve ser removido.\012> \000"
	.align	2
.LC21:
	.ascii	"Elemento removido do vetor\012\000"
	.align	2
.LC22:
	.ascii	"Nao ha este indice, %d elementos disponiveis no vet"
	.ascii	"or\012\012\000"
	.align	2
.LC23:
	.ascii	"Digite um numero A no qual devera ser trocado.\012>"
	.ascii	" \000"
	.align	2
.LC24:
	.ascii	"Digite um numero B que substituira todas as ocorren"
	.ascii	"cias de A.\012> \000"
	.align	2
.LC25:
	.ascii	"Todas as ocorrencias de A foram alteradas por B\000"
	.align	2
.LC26:
	.ascii	"Todas exceto %d ocorrencias de A foram alteradas po"
	.ascii	"r B\000"
	.align	2
.LC27:
	.ascii	"\012Motivo: Limite da quantidade de B alcancado.\000"
	.align	2
.LC28:
	.ascii	"Digite o numero no qual gostaria de procurar a posi"
	.ascii	"cao da primeira ocorrencia dele.\012> \000"
	.align	2
.LC29:
	.ascii	"numero: %d\012posicao: %d \012\012\000"
	.align	2
.LC30:
	.ascii	"Nao foi encontrado esse numero\000"
	.align	2
.LC31:
	.ascii	"Exibindo elementos...\000"
	.align	2
.LC32:
	.ascii	"\012\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
.L63:
	ldr	r0, .L71+4
	bl	system
	bl	menu
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L41
.L43:
	.word	.L49
	.word	.L52
	.word	.L53
	.word	.L56
	.word	.L60
	.word	.L42
.L66:
	nop
.L49:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+12
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L66
	ldr	r0, .L71+4
	bl	system
	ldr	r2, [fp, #-68]
	sub	r1, fp, #76
	sub	r3, fp, #56
	mov	r0, r3
	bl	insereNumero
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L50
	ldr	r1, [fp, #-68]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L71+16
	bl	printf
	b	.L51
.L50:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-68]
	mov	r1, r3
	ldr	r0, .L71+20
	bl	printf
.L51:
	ldr	r0, .L71+24
	bl	system
	b	.L41
.L67:
	nop
.L52:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+28
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L67
	ldr	r2, [fp, #-68]
	sub	r1, fp, #76
	sub	r3, fp, #56
	mov	r0, r3
	bl	removeValor
	ldr	r0, .L71+4
	bl	system
	ldr	r3, [fp, #-68]
	mov	r1, r3
	ldr	r0, .L71+32
	bl	printf
	ldr	r0, .L71+24
	bl	system
	b	.L41
.L68:
	nop
.L53:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+36
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	blt	.L68
	ldr	r0, .L71+4
	bl	system
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bge	.L54
	ldr	r2, [fp, #-68]
	sub	r1, fp, #76
	sub	r3, fp, #56
	mov	r0, r3
	bl	removeElemento
	ldr	r0, .L71+40
	bl	puts
	b	.L55
.L54:
	ldr	r3, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L71+44
	bl	printf
.L55:
	ldr	r0, .L71+24
	bl	system
	b	.L41
.L69:
	nop
.L56:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+48
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L69
.L57:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+52
	bl	printf
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L57
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-64]
	sub	r1, fp, #76
	sub	r0, fp, #56
	bl	alteraOcorrencias
	str	r0, [fp, #-60]
	ldr	r0, .L71+4
	bl	system
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L71+56
	bl	puts
	b	.L59
.L58:
	ldr	r1, [fp, #-60]
	ldr	r0, .L71+60
	bl	printf
	ldr	r0, .L71+64
	bl	puts
.L59:
	ldr	r0, .L71+24
	bl	system
	b	.L41
.L70:
	nop
.L60:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+68
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L71+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L70
	ldr	r0, .L71+4
	bl	system
	ldr	r1, [fp, #-76]
	ldr	r2, [fp, #-68]
	sub	r3, fp, #56
	mov	r0, r3
	bl	retornaPosicao
	mov	r3, r0
	cmp	r3, #0
	ble	.L61
	ldr	r4, [fp, #-68]
	ldr	r1, [fp, #-76]
	ldr	r2, [fp, #-68]
	sub	r3, fp, #56
	mov	r0, r3
	bl	retornaPosicao
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L71+72
	bl	printf
	b	.L62
.L61:
	ldr	r0, .L71+76
	bl	printf
.L62:
	ldr	r0, .L71+24
	bl	system
	b	.L41
.L42:
	ldr	r0, .L71+4
	bl	system
	ldr	r0, .L71+80
	bl	puts
	ldr	r2, [fp, #-76]
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	exibeElementos
	ldr	r0, .L71+84
	bl	puts
	ldr	r0, .L71+24
	bl	system
	nop
.L41:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L63
	mov	r3, #0
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC33
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
