	.file	"15761717.c"
	.intel_syntax noprefix
	.text
	.globl	arquivo
	.bss
	.align 8
	.type	arquivo, @object
	.size	arquivo, 8
arquivo:
	.zero	8
	.globl	arquivo_novo
	.align 8
	.type	arquivo_novo, @object
	.size	arquivo_novo, 8
arquivo_novo:
	.zero	8
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 60
buffer:
	.zero	60
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	organiza
	mov	eax, 0
	call	printa
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"pecas.dat"
	.align 8
.LC2:
	.string	"Insira o codigo da peca[1 ate 1500]: "
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"Valor invalido, insira outro entre 1 e 1500: "
.LC5:
	.string	"Nome da peca: "
.LC6:
	.string	"Preco da peca: R$"
.LC7:
	.string	"%f"
.LC8:
	.string	"Quantidade em estoque: "
.LC9:
	.string	"Codigo do fornecedor: "
.LC10:
	.string	"Deseja inserir outro? [S/N]: "
.LC11:
	.string	"%c"
	.text
	.globl	cria_arquivo
	.type	cria_arquivo, @function
cria_arquivo:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR arquivo[rip], rax
.L7:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rsi, buffer[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR buffer[rip]
	test	eax, eax
	jle	.L4
	mov	eax, DWORD PTR buffer[rip]
	cmp	eax, 1500
	jle	.L5
.L4:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, DWORD PTR buffer[rip]
	test	eax, eax
	jle	.L6
	mov	eax, DWORD PTR buffer[rip]
	cmp	eax, 1500
	jg	.L6
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, buffer[rip+4]
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, buffer[rip+48]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, buffer[rip+52]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, buffer[rip+56]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR arquivo[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 60
	lea	rdi, buffer[rip]
	call	fwrite@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	BYTE PTR -9[rbp], al
	mov	edi, 10
	call	putchar@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 83
	je	.L7
	mov	rax, QWORD PTR arquivo[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cria_arquivo, .-cria_arquivo
	.section	.rodata
.LC12:
	.string	"pecas2.dat"
.LC13:
	.string	"rb"
	.text
	.globl	organiza
	.type	organiza, @function
organiza:
.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR arquivo_novo[rip], rax
	lea	rsi, .LC13[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR arquivo[rip], rax
	mov	DWORD PTR -4[rbp], 1
	jmp	.L10
.L15:
	mov	rax, QWORD PTR arquivo[rip]
	mov	rdi, rax
	call	rewind@PLT
.L14:
	mov	rax, QWORD PTR arquivo[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 60
	lea	rdi, buffer[rip]
	call	fread@PLT
	mov	rax, QWORD PTR arquivo[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR buffer[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L14
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR arquivo_novo[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 60
	lea	rdi, buffer[rip]
	call	fwrite@PLT
	jmp	.L12
.L16:
	nop
.L12:
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 1500
	jle	.L15
	mov	rax, QWORD PTR arquivo[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR arquivo_novo[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	organiza, .-organiza
	.section	.rodata
.LC14:
	.string	"Codigo: %d\n"
.LC15:
	.string	"Nome: %s\n"
.LC16:
	.string	"Preco: R$%.2f\n"
.LC17:
	.string	"Quantidade em estoque: %d\n"
.LC18:
	.string	"Codigo do fornecedor: %d\n\n"
	.text
	.globl	printa
	.type	printa, @function
printa:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC13[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR arquivo_novo[rip], rax
.L20:
	mov	rax, QWORD PTR arquivo_novo[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 60
	lea	rdi, buffer[rip]
	call	fread@PLT
	mov	rax, QWORD PTR arquivo_novo[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR buffer[rip]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, buffer[rip+4]
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR buffer[rip+48]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR buffer[rip+52]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR buffer[rip+56]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L22:
	nop
	mov	rax, QWORD PTR arquivo_novo[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printa, .-printa
	.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	"15761717.c"
	.text
	.comm	arquivo,4,4
	.comm	arquivo_novo,4,4
	.comm	buffer,60,4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	organiza
	bl	printa
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"pecas.dat\000"
	.align	2
.LC2:
	.ascii	"Insira o codigo da peca[1 ate 1500]: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Valor invalido, insira outro entre 1 e 1500: \000"
	.align	2
.LC5:
	.ascii	"Nome da peca: \000"
	.align	2
.LC6:
	.ascii	"Preco da peca: R$\000"
	.align	2
.LC7:
	.ascii	"%f\000"
	.align	2
.LC8:
	.ascii	"Quantidade em estoque: \000"
	.align	2
.LC9:
	.ascii	"Codigo do fornecedor: \000"
	.align	2
.LC10:
	.ascii	"Deseja inserir outro? [S/N]: \000"
	.align	2
.LC11:
	.ascii	"%c\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cria_arquivo
	.syntax unified
	.arm
	.fpu softvfp
	.type	cria_arquivo, %function
cria_arquivo:
	@ 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	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L9+12
	str	r3, [r2]
.L7:
	ldr	r0, .L9+16
	bl	printf
.L6:
	ldr	r1, .L9+20
	ldr	r0, .L9+24
	bl	__isoc99_scanf
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L4
	ldr	r3, .L9+20
	ldr	r3, [r3]
	ldr	r2, .L9+28
	cmp	r3, r2
	ble	.L5
.L4:
	ldr	r0, .L9+32
	bl	printf
.L5:
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L6
	ldr	r3, .L9+20
	ldr	r3, [r3]
	ldr	r2, .L9+28
	cmp	r3, r2
	bgt	.L6
	ldr	r0, .L9+36
	bl	printf
	ldr	r3, .L9+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L9+44
	bl	gets
	ldr	r0, .L9+48
	bl	printf
	ldr	r1, .L9+52
	ldr	r0, .L9+56
	bl	__isoc99_scanf
	ldr	r0, .L9+60
	bl	printf
	ldr	r3, .L9+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, .L9+64
	ldr	r0, .L9+24
	bl	__isoc99_scanf
	ldr	r0, .L9+68
	bl	printf
	ldr	r3, .L9+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, .L9+72
	ldr	r0, .L9+24
	bl	__isoc99_scanf
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #60
	ldr	r0, .L9+20
	bl	fwrite
	ldr	r0, .L9+76
	bl	printf
	ldr	r3, .L9+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L9+80
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	mov	r0, #10
	bl	putchar
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #83
	beq	.L7
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	arquivo
	.word	.LC2
	.word	buffer
	.word	.LC3
	.word	1500
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	buffer+4
	.word	.LC6
	.word	buffer+48
	.word	.LC7
	.word	.LC8
	.word	buffer+52
	.word	.LC9
	.word	buffer+56
	.word	.LC10
	.word	.LC11
	.size	cria_arquivo, .-cria_arquivo
	.section	.rodata
	.align	2
.LC13:
	.ascii	"pecas2.dat\000"
	.align	2
.LC14:
	.ascii	"rb\000"
	.text
	.align	2
	.global	organiza
	.syntax unified
	.arm
	.fpu softvfp
	.type	organiza, %function
organiza:
	@ 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	r1, .L19
	ldr	r0, .L19+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r1, .L19+12
	ldr	r0, .L19+16
	bl	fopen
	mov	r3, r0
	ldr	r2, .L19+20
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L12
.L17:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
.L16:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #60
	ldr	r0, .L19+24
	bl	fread
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L19+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L16
	ldr	r3, .L19+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #60
	ldr	r0, .L19+24
	bl	fwrite
	b	.L14
.L18:
	nop
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, .L19+32
	cmp	r3, r2
	ble	.L17
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC13
	.word	arquivo_novo
	.word	.LC14
	.word	.LC1
	.word	arquivo
	.word	buffer
	.word	stdin
	.word	1500
	.size	organiza, .-organiza
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Codigo: %d\012\000"
	.align	2
.LC16:
	.ascii	"Nome: %s\012\000"
	.global	__aeabi_f2d
	.align	2
.LC17:
	.ascii	"Preco: R$%.2f\012\000"
	.align	2
.LC18:
	.ascii	"Quantidade em estoque: %d\012\000"
	.align	2
.LC19:
	.ascii	"Codigo do fornecedor: %d\012\012\000"
	.text
	.align	2
	.global	printa
	.syntax unified
	.arm
	.fpu softvfp
	.type	printa, %function
printa:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L27
	ldr	r0, .L27+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L27+8
	str	r3, [r2]
.L24:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #60
	ldr	r0, .L27+12
	bl	fread
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L27+16
	bl	printf
	ldr	r1, .L27+20
	ldr	r0, .L27+24
	bl	printf
	ldr	r3, .L27+12
	ldr	r3, [r3, #48]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L27+28
	bl	printf
	ldr	r3, .L27+12
	ldr	r3, [r3, #52]
	mov	r1, r3
	ldr	r0, .L27+32
	bl	printf
	ldr	r3, .L27+12
	ldr	r3, [r3, #56]
	mov	r1, r3
	ldr	r0, .L27+36
	bl	printf
	b	.L24
.L26:
	nop
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC14
	.word	.LC13
	.word	arquivo_novo
	.word	buffer
	.word	.LC15
	.word	buffer+4
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	printa, .-printa
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
