	.file	"190768924.c"
	.intel_syntax noprefix
	.text
	.globl	lista
	.bss
	.align 32
	.type	lista, @object
	.size	lista, 60000
lista:
	.zero	60000
	.globl	tamanho
	.align 4
	.type	tamanho, @object
	.size	tamanho, 4
tamanho:
	.zero	4
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"retorno.txt"
.LC2:
	.string	"achou"
.LC3:
	.string	"nao achou"
.LC4:
	.string	"SEMCADASTRO"
	.text
	.globl	procuraproduto
	.type	procuraproduto, @function
procuraproduto:
.LFB6:
	.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, 1160
	.cfi_offset 3, -24
	mov	DWORD PTR -1156[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1140[rbp], 0
	mov	DWORD PTR -1136[rbp], 0
	mov	DWORD PTR -1140[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -1132[rbp], eax
	mov	eax, DWORD PTR -1132[rbp]
	cmp	eax, DWORD PTR -1156[rbp]
	jne	.L3
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rbx, QWORD PTR 8[rdx+rax]
	mov	QWORD PTR -1120[rbp], rcx
	mov	QWORD PTR -1112[rbp], rbx
	mov	rcx, QWORD PTR 16[rdx+rax]
	mov	rbx, QWORD PTR 24[rdx+rax]
	mov	QWORD PTR -1104[rbp], rcx
	mov	QWORD PTR -1096[rbp], rbx
	mov	rcx, QWORD PTR 32[rdx+rax]
	mov	rbx, QWORD PTR 40[rdx+rax]
	mov	QWORD PTR -1088[rbp], rcx
	mov	QWORD PTR -1080[rbp], rbx
	mov	rcx, QWORD PTR 48[rdx+rax]
	mov	QWORD PTR -1072[rbp], rcx
	mov	eax, DWORD PTR 56[rdx+rax]
	mov	DWORD PTR -1064[rbp], eax
	mov	DWORD PTR -1136[rbp], 1
	jmp	.L4
.L3:
	add	DWORD PTR -1140[rbp], 1
.L2:
	mov	eax, DWORD PTR tamanho[rip]
	sub	eax, 1
	cmp	DWORD PTR -1140[rbp], eax
	jl	.L5
.L4:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1128[rbp], rax
	cmp	DWORD PTR -1136[rbp], 1
	jne	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1120[rbp]
	add	rax, 4
	mov	rdi, rax
	call	puts@PLT
	mov	BYTE PTR -1024[rbp], 0
	mov	eax, DWORD PTR -1120[rbp]
	lea	rcx, -1046[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	itoa@PLT
	movss	xmm0, DWORD PTR -1064[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	lea	rdx, -1036[rbp]
	mov	rsi, rdx
	mov	edi, 3
	movq	xmm0, rax
	call	gcvt@PLT
	lea	rdx, -1046[rbp]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1024[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rax, -1120[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1024[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rdx, -1036[rbp]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1024[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1024[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 10
	jmp	.L7
.L6:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1024[rbp]
	mov	edx, 50
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncpy@PLT
.L7:
	lea	rdx, -1024[rbp]
	mov	rax, QWORD PTR -1128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	procuraproduto, .-procuraproduto
	.section	.rodata
.LC5:
	.string	"r"
.LC6:
	.string	"produtos.txt"
	.align 8
.LC7:
	.string	"Nao foi possivel abrir o arquivo de entrada!"
.LC8:
	.string	";"
	.text
	.globl	learquivo
	.type	learquivo, @function
learquivo:
.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, 1104
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1104[rbp], 0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -1088[rbp], rax
	cmp	QWORD PTR -1088[rbp], 0
	jne	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L9
.L20:
	mov	eax, DWORD PTR tamanho[rip]
	add	eax, 1
	mov	DWORD PTR tamanho[rip], eax
	lea	rax, -1008[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1096[rbp], rax
	mov	DWORD PTR -1100[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -1100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1100[rbp], edx
	cdqe
	mov	rdx, QWORD PTR -1096[rbp]
	mov	QWORD PTR -1072[rbp+rax*8], rdx
	lea	rsi, .LC8[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1096[rbp], rax
.L13:
	cmp	QWORD PTR -1096[rbp], 0
	jne	.L14
	mov	QWORD PTR -1080[rbp], 24
	mov	DWORD PTR -1100[rbp], 0
	jmp	.L15
.L19:
	cmp	DWORD PTR -1100[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rax, QWORD PTR -1072[rbp+rax*8]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -1104[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, lista[rip]
	mov	DWORD PTR [rcx+rax], edx
	jmp	.L17
.L16:
	cmp	DWORD PTR -1100[rbp], 1
	jne	.L18
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rcx, QWORD PTR -1072[rbp+rax*8]
	mov	eax, DWORD PTR -1104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, lista[rip]
	add	rax, rdx
	add	rax, 4
	mov	edx, 50
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rax, QWORD PTR -1072[rbp+rax*8]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	mov	eax, DWORD PTR -1104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip+56]
	movss	DWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -1104[rbp], 1
.L17:
	add	DWORD PTR -1100[rbp], 1
.L15:
	cmp	DWORD PTR -1100[rbp], 2
	jle	.L19
.L12:
	mov	rdx, QWORD PTR -1088[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	learquivo, .-learquivo
	.globl	escrevearquivo
	.type	escrevearquivo, @function
escrevearquivo:
.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, 1056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -1040[rbp], rax
	mov	DWORD PTR -1044[rbp], 0
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L23
.L24:
	mov	BYTE PTR -1008[rbp], 0
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	rcx, -1030[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	itoa@PLT
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip+56]
	movss	xmm0, DWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	lea	rdx, -1020[rbp]
	mov	rsi, rdx
	mov	edi, 3
	movq	xmm0, rax
	call	gcvt@PLT
	lea	rdx, -1030[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1008[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, lista[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1008[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rdx, -1020[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1008[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1008[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 10
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -1044[rbp], 1
.L23:
	mov	eax, DWORD PTR tamanho[rip]
	cmp	DWORD PTR -1044[rbp], eax
	jl	.L24
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	escrevearquivo, .-escrevearquivo
	.globl	ordenaprodutos
	.type	ordenaprodutos, @function
ordenaprodutos:
.LFB9:
	.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, 104
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L28
.L32:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L29
.L31:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, lista[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, lista[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jns	.L30
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rbx, QWORD PTR 8[rdx+rax]
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -88[rbp], rbx
	mov	rcx, QWORD PTR 16[rdx+rax]
	mov	rbx, QWORD PTR 24[rdx+rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 32[rdx+rax]
	mov	rbx, QWORD PTR 40[rdx+rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rcx, QWORD PTR 48[rdx+rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	eax, DWORD PTR 56[rdx+rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, lista[rip]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	mov	rsi, rax
	lea	rax, lista[rip]
	mov	r8, QWORD PTR [rsi+rax]
	mov	r9, QWORD PTR 8[rsi+rax]
	mov	QWORD PTR [rcx+rdx], r8
	mov	QWORD PTR 8[rcx+rdx], r9
	mov	r8, QWORD PTR 16[rsi+rax]
	mov	r9, QWORD PTR 24[rsi+rax]
	mov	QWORD PTR 16[rcx+rdx], r8
	mov	QWORD PTR 24[rcx+rdx], r9
	mov	r8, QWORD PTR 32[rsi+rax]
	mov	r9, QWORD PTR 40[rsi+rax]
	mov	QWORD PTR 32[rcx+rdx], r8
	mov	QWORD PTR 40[rcx+rdx], r9
	mov	rdi, QWORD PTR 48[rsi+rax]
	mov	QWORD PTR 48[rcx+rdx], rdi
	mov	eax, DWORD PTR 56[rsi+rax]
	mov	DWORD PTR 56[rcx+rdx], eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, lista[rip]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR [rdx+rax], rcx
	mov	QWORD PTR 8[rdx+rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 16[rdx+rax], rcx
	mov	QWORD PTR 24[rdx+rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rdx+rax], rcx
	mov	QWORD PTR 40[rdx+rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	QWORD PTR 48[rdx+rax], rcx
	mov	ecx, DWORD PTR -40[rbp]
	mov	DWORD PTR 56[rdx+rax], ecx
.L30:
	add	DWORD PTR -104[rbp], 1
.L29:
	mov	eax, DWORD PTR tamanho[rip]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L31
	add	DWORD PTR -108[rbp], 1
.L28:
	mov	eax, DWORD PTR tamanho[rip]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L32
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ordenaprodutos, .-ordenaprodutos
	.section	.rodata
.LC9:
	.string	"%s"
.LC10:
	.string	"ordena"
.LC11:
	.string	"pesquisa"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, 0
	call	learquivo
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -20[rbp], 1
	jle	.L35
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	mov	eax, 0
	call	ordenaprodutos
	mov	eax, 0
	call	escrevearquivo
.L36:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	cmp	DWORD PTR -20[rbp], 3
	jne	.L35
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	procuraproduto
.L35:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"190768924.c"
	.text
	.comm	lista,60000,4
	.global	tamanho
	.bss
	.align	2
	.type	tamanho, %object
	.size	tamanho, 4
tamanho:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"retorno.txt\000"
	.align	2
.LC2:
	.ascii	"achou\000"
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	";\000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"nao achou\000"
	.align	2
.LC6:
	.ascii	"SEMCADASTRO\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	procuraproduto
	.syntax unified
	.arm
	.fpu softvfp
	.type	procuraproduto, %function
procuraproduto:
	@ args = 0, pretend = 0, frame = 1112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	sub	sp, sp, #8
	str	r0, [fp, #-1112]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1108]
	mov	r3, #0
	str	r3, [fp, #-1104]
	mov	r3, #0
	str	r3, [fp, #-1108]
	b	.L2
.L5:
	ldr	r1, .L9+4
	ldr	r2, [fp, #-1108]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-1100]
	ldr	r2, [fp, #-1100]
	ldr	r3, [fp, #-1112]
	cmp	r2, r3
	bne	.L3
	ldr	r1, .L9+4
	ldr	r2, [fp, #-1108]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	ip, fp, #1088
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r3, #1
	str	r3, [fp, #-1104]
	b	.L4
.L3:
	ldr	r3, [fp, #-1108]
	add	r3, r3, #1
	str	r3, [fp, #-1108]
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1108]
	cmp	r2, r3
	blt	.L5
.L4:
	ldr	r1, .L9+12
	ldr	r0, .L9+16
	bl	fopen
	str	r0, [fp, #-1096]
	ldr	r3, [fp, #-1104]
	cmp	r3, #1
	bne	.L6
	ldr	r0, .L9+20
	bl	printf
	sub	r3, fp, #1088
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-1008]
	ldr	r0, [fp, #-1092]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, r3
	bl	itoa
	ldr	r3, [fp, #-1036]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	sub	r3, fp, #1020
	mov	r2, #3
	bl	gcvt
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #1008
	mov	r1, r3
	mov	r0, r2
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L9+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1088
	sub	r3, r3, #4
	add	r2, r3, #4
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L9+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #1020
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L9+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L9+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L7
.L6:
	ldr	r0, .L9+32
	bl	printf
	sub	r3, fp, #1008
	mov	r2, #50
	ldr	r1, .L9+36
	mov	r0, r3
	bl	strncpy
.L7:
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r0, [fp, #-1096]
	bl	fclose
	nop
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC7
	.word	lista
	.word	tamanho
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	procuraproduto, .-procuraproduto
	.section	.rodata
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"produtos.txt\000"
	.align	2
.LC10:
	.ascii	"Nao foi possivel abrir o arquivo de entrada!\000"
	.global	__aeabi_d2f
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	learquivo
	.syntax unified
	.arm
	.fpu softvfp
	.type	learquivo, %function
learquivo:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1088]
	ldr	r1, .L24+4
	ldr	r0, .L24+8
	bl	fopen
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L24+12
	bl	puts
	mov	r3, #0
	b	.L11
.L22:
	ldr	r3, .L24+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24+16
	str	r3, [r2]
	sub	r3, fp, #1008
	ldr	r1, .L24+20
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1084]
	mov	r3, #0
	str	r3, [fp, #-1080]
	b	.L15
.L16:
	ldr	r3, [fp, #-1080]
	add	r2, r3, #1
	str	r2, [fp, #-1080]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1084]
	str	r2, [r3, #-1064]
	ldr	r1, .L24+20
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1084]
.L15:
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	bne	.L16
	mov	r3, #12
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1080]
	b	.L17
.L21:
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1064]
	mov	r0, r3
	bl	atoi
	mov	r1, r0
	ldr	r0, .L24+24
	ldr	r2, [fp, #-1088]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
	b	.L19
.L18:
	ldr	r3, [fp, #-1080]
	cmp	r3, #1
	bne	.L20
	ldr	r2, [fp, #-1088]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L24+24
	add	r3, r3, r2
	add	r0, r3, #4
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1064]
	mov	r2, #50
	mov	r1, r3
	bl	strncpy
	b	.L19
.L20:
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1064]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r1, r0
	ldr	r0, .L24+24
	ldr	r2, [fp, #-1088]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #56
	str	r1, [r3]	@ float
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
.L19:
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	str	r3, [fp, #-1080]
.L17:
	ldr	r3, [fp, #-1080]
	cmp	r3, #2
	ble	.L21
.L14:
	sub	r3, fp, #1008
	ldr	r2, [fp, #-1076]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r0, [fp, #-1076]
	bl	fclose
.L11:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC11
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	tamanho
	.word	.LC3
	.word	lista
	.size	learquivo, .-learquivo
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	escrevearquivo
	.syntax unified
	.arm
	.fpu softvfp
	.type	escrevearquivo, %function
escrevearquivo:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L31+4
	ldr	r0, .L31+8
	bl	fopen
	str	r0, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1040]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L27
.L28:
	mov	r3, #0
	strb	r3, [fp, #-1008]
	ldr	r1, .L31+12
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, r3
	bl	itoa
	ldr	r1, .L31+12
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #56
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	sub	r3, fp, #1020
	mov	r2, #3
	bl	gcvt
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #1008
	mov	r1, r3
	mov	r0, r2
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L31+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L31+12
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L31+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #1020
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L31+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L31+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-1036]
	bl	fprintf
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L27:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	blt	.L28
	ldr	r0, [fp, #-1036]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC12
	.word	.LC0
	.word	.LC9
	.word	lista
	.word	.LC3
	.word	.LC4
	.word	tamanho
	.size	escrevearquivo, .-escrevearquivo
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ordenaprodutos
	.syntax unified
	.arm
	.fpu softvfp
	.type	ordenaprodutos, %function
ordenaprodutos:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L34
.L38:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L35
.L37:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L40+4
	add	r3, r3, r2
	add	r0, r3, #4
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L40+4
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	bl	strcmp
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L36
	ldr	r1, .L40+4
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r1, .L40+4
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r1, r3
	ldr	r1, .L40+4
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	ip, r0
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r1, .L40+4
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #68
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
.L36:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L35:
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L34:
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L38
	nop
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC13
	.word	lista
	.word	tamanho
	.size	ordenaprodutos, .-ordenaprodutos
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%s\000"
	.align	2
.LC15:
	.ascii	"ordena\000"
	.align	2
.LC16:
	.ascii	"pesquisa\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	learquivo
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L43
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L46+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	bl	ordenaprodutos
	bl	escrevearquivo
.L44:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L46+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L43
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	procuraproduto
.L43:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
