	.file	"52779.c"
	.intel_syntax noprefix
	.text
	.globl	selection
	.type	selection, @function
selection:
.LFB0:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -68[rbp], r8d
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, xmm1
	jbe	.L4
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
.L4:
	add	DWORD PTR -16[rbp], 1
.L3:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L6
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	ucomiss	xmm0, xmm1
	jp	.L11
	comiss	xmm0, xmm1
	je	.L7
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -8[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -64[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
.L7:
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L9
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	selection, .-selection
	.section	.rodata
.LC0:
	.string	"rt"
.LC1:
	.string	"In.txt"
	.align 8
.LC2:
	.string	"Problemas na CRIACAO do arquivo"
.LC3:
	.string	"%d"
.LC4:
	.string	"w"
.LC5:
	.string	"Out.txt"
	.align 8
.LC6:
	.string	"Peso item %d:    %d\nPre\303\247o item %d:    %d\nCusto/Beneficio item %d:    %.2f\n\n"
	.align 8
.LC7:
	.string	"Peso total colocado na mochila: %d\nValor total arrecadado: %d\n"
.LC10:
	.string	"Tempo gasto: %g ms.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 248
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	call	clock@PLT
	mov	QWORD PTR -80[rbp], rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L13
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L14
.L13:
	lea	rax, -188[rbp]
	mov	rcx, QWORD PTR -168[rbp]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -184[rbp]
	mov	rcx, QWORD PTR -168[rbp]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -184[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -160[rbp], rax
	movsx	rax, edx
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, edx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L15:
	cmp	rsp, rcx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L17
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	mov	edx, DWORD PTR -184[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -184[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -128[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -240[rbp], rdx
	mov	QWORD PTR -232[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -256[rbp], rdx
	mov	QWORD PTR -248[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -184[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -112[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -272[rbp], rdx
	mov	QWORD PTR -264[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -288[rbp], rdx
	mov	QWORD PTR -280[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -172[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -172[rbp], 1
.L27:
	mov	eax, DWORD PTR -184[rbp]
	cmp	DWORD PTR -172[rbp], eax
	jl	.L28
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -172[rbp], 0
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -172[rbp], 1
.L29:
	mov	eax, DWORD PTR -184[rbp]
	cmp	DWORD PTR -172[rbp], eax
	jl	.L30
	mov	edi, DWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	rsi, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	selection
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -184[rbp]
	sub	eax, 1
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -176[rbp], 0
	jmp	.L31
.L35:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	cmp	DWORD PTR -176[rbp], eax
	jge	.L32
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rsi, xmm2
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	r9d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	r8d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -96[rbp]
	sub	rsp, 8
	push	rdi
	movq	xmm0, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	rsp, 16
	jmp	.L38
.L32:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	sub	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	sub	DWORD PTR -180[rbp], eax
	jmp	.L34
.L38:
	sub	DWORD PTR -172[rbp], 1
.L31:
	cmp	DWORD PTR -172[rbp], 0
	jns	.L35
.L34:
	mov	ecx, DWORD PTR -180[rbp]
	mov	edx, DWORD PTR -176[rbp]
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	clock@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	sub	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC9[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	mov	rax, QWORD PTR -88[rbp]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L14:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.long	0
	.long	1083129856
	.align 8
.LC9:
	.long	0
	.long	1093567616
	.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	"52779.c"
	.text
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpeq
	.align	2
	.global	selection
	.syntax unified
	.arm
	.fpu softvfp
	.type	selection, %function
selection:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L9:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L3
.L6:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	selection, .-selection
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rt\000"
	.align	2
.LC1:
	.ascii	"In.txt\000"
	.align	2
.LC2:
	.ascii	"Problemas na CRIACAO do arquivo\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"Out.txt\000"
	.global	__aeabi_f2d
	.align	2
.LC6:
	.ascii	"Peso item %d:    %d\012Pre\303\247o item %d:    %d\012"
	.ascii	"Custo/Beneficio item %d:    %.2f\012\012\000"
	.align	2
.LC7:
	.ascii	"Peso total colocado na mochila: %d\012Valor total a"
	.ascii	"rrecadado: %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
.LC8:
	.ascii	"Tempo gasto: %g ms.\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #112
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r9, r3
	bl	clock
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	fopen
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L27+12
	bl	puts
	mvn	r3, #0
	b	.L14
.L13:
	sub	r3, fp, #112
	mov	r2, r3
	ldr	r1, .L27+16
	ldr	r0, [fp, #-104]
	bl	__isoc99_fscanf
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L27+16
	ldr	r0, [fp, #-104]
	bl	__isoc99_fscanf
	ldr	ip, [fp, #-108]
	sub	r3, ip, #1
	str	r3, [fp, #-88]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-84]
	ldr	ip, [fp, #-108]
	sub	r3, ip, #1
	str	r3, [fp, #-80]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-76]
	ldr	ip, [fp, #-108]
	sub	r3, ip, #1
	str	r3, [fp, #-72]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-68]
	ldr	ip, [fp, #-108]
	sub	r3, ip, #1
	str	r3, [fp, #-64]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L15
.L16:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L27+16
	ldr	r0, [fp, #-104]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L27+16
	ldr	r0, [fp, #-104]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-92]
	add	r1, r3, #1
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L15:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-104]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L17
.L18:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L17:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-84]
	ldr	r0, [fp, #-60]
	bl	selection
	ldr	r1, .L27+20
	ldr	r0, .L27+24
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L19
.L23:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bge	.L20
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-92]
	ldr	r7, [r3, r2, lsl #2]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	ldr	r8, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-92]
	ldr	r4, [r3, r2, lsl #2]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-92]
	ldr	r5, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-92]
	ldr	r6, [r3, r2, lsl #2]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r6, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r8
	mov	r2, r7
	ldr	r1, .L27+28
	ldr	r0, [fp, #-56]
	bl	fprintf
	b	.L26
.L20:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-96]
	sub	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-100]
	sub	r3, r2, r3
	str	r3, [fp, #-100]
	b	.L22
.L26:
	ldr	r3, [fp, #-92]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
.L19:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L23
.L22:
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-96]
	ldr	r1, .L27+32
	ldr	r0, [fp, #-56]
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	fclose
	bl	clock
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L27+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L27+44
	bl	printf
	mov	r3, #0
.L14:
	mov	sp, r9
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1083129856
	.word	1093567616
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
