	.file	"625330.c"
	.intel_syntax noprefix
	.text
	.globl	swap
	.type	swap, @function
swap:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -4[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.globl	swapin
	.type	swapin, @function
swapin:
.LFB1:
	.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	swapin, .-swapin
	.globl	partition
	.type	partition, @function
partition:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 56
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -4[rbp], xmm0
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L5
	add	DWORD PTR -12[rbp], 1
	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 -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swapin
.L5:
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jg	.L7
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swapin
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	partition, .-partition
	.globl	quickSort
	.type	quickSort, @function
quickSort:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jge	.L12
	mov	r8d, DWORD PTR -56[rbp]
	mov	edi, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	partition
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	r8d, -1[rax]
	mov	edi, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	quickSort
	mov	eax, DWORD PTR -4[rbp]
	lea	r8d, 1[rax]
	mov	edi, DWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edi
	mov	rdi, rax
	call	quickSort
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	quickSort, .-quickSort
	.section	.rodata
.LC2:
	.string	"\nsolution vector: "
.LC3:
	.string	"%0.2f, "
.LC4:
	.string	"\n\nTotal Profit is : %f"
	.text
	.globl	knapsack
	.type	knapsack, @function
knapsack:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	QWORD PTR -160[rbp], rcx
	movss	DWORD PTR -136[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -116[rbp], xmm0
	movss	xmm0, DWORD PTR -136[rbp]
	movss	DWORD PTR -104[rbp], xmm0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	pxor	xmm0, xmm0
	movss	DWORD PTR -96[rbp+rax*4], xmm0
	add	DWORD PTR -112[rbp], 1
.L14:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L15
	pxor	xmm0, xmm0
	movss	DWORD PTR -108[rbp], xmm0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L16
.L21:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movaps	xmm1, xmm0
	addss	xmm1, DWORD PTR -108[rbp]
	movss	xmm0, DWORD PTR -104[rbp]
	comiss	xmm0, xmm1
	jb	.L26
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -96[rbp+rax*4], xmm0
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR -108[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -108[rbp], xmm0
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR -116[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -116[rbp], xmm0
	jmp	.L27
.L26:
	movss	xmm0, DWORD PTR -104[rbp]
	subss	xmm0, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	divss	xmm0, xmm1
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movss	DWORD PTR -96[rbp+rax*4], xmm0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movss	xmm1, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -116[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -116[rbp], xmm0
	movss	xmm0, DWORD PTR -104[rbp]
	movss	DWORD PTR -108[rbp], xmm0
	jmp	.L20
.L27:
	add	DWORD PTR -112[rbp], 1
.L16:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L21
.L20:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 91
	call	putchar@PLT
	mov	DWORD PTR -112[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movss	xmm0, DWORD PTR -96[rbp+rax*4]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -112[rbp], 1
.L22:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L23
	mov	edi, 93
	call	putchar@PLT
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -116[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	knapsack, .-knapsack
	.section	.rodata
.LC5:
	.string	"Fractional Knapsack problem"
	.align 8
.LC6:
	.string	"Enter size of elements(max upto 20)"
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"\nEnter the weight and profits of each item : \n "
.LC9:
	.string	"item %d : "
.LC10:
	.string	"%f %f"
	.align 8
.LC11:
	.string	"\nEnter maximum capacity of knapsack:- "
.LC12:
	.string	"%f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -340[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -340[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	mov	edx, DWORD PTR -340[rbp]
	mov	DWORD PTR -176[rbp+rax*4], edx
	lea	rdx, -256[rbp]
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -336[rbp]
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -340[rbp], 1
.L29:
	mov	eax, DWORD PTR -344[rbp]
	cmp	DWORD PTR -340[rbp], eax
	jl	.L30
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -348[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -340[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	movss	xmm0, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	movss	xmm1, DWORD PTR -336[rbp+rax*4]
	divss	xmm0, xmm1
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	movss	DWORD PTR -96[rbp+rax*4], xmm0
	add	DWORD PTR -340[rbp], 1
.L31:
	mov	eax, DWORD PTR -344[rbp]
	cmp	DWORD PTR -340[rbp], eax
	jl	.L32
	mov	eax, DWORD PTR -344[rbp]
	lea	edi, -1[rax]
	lea	rcx, -176[rbp]
	lea	rdx, -256[rbp]
	lea	rsi, -336[rbp]
	lea	rax, -96[rbp]
	mov	r9d, edi
	mov	r8d, 0
	mov	rdi, rax
	call	quickSort
	mov	edi, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -344[rbp]
	lea	rcx, -256[rbp]
	lea	rdx, -336[rbp]
	lea	rsi, -176[rbp]
	movd	xmm0, edi
	mov	edi, eax
	call	knapsack
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC1:
	.long	1065353216
	.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	"625330.c"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-16]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]	@ float
	str	r2, [r3]	@ float
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	swapin
	.syntax unified
	.arm
	.fpu softvfp
	.type	swapin, %function
swapin:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swapin, .-swapin
	.global	__aeabi_fcmplt
	.align	2
	.global	partition
	.syntax unified
	.arm
	.fpu softvfp
	.type	partition, %function
partition:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-12]
	b	.L4
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r1, r3
	bl	swapin
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bgt	.L7
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r0, r2, r3
	ldr	r3, [fp, #8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r0, r2, r3
	ldr	r3, [fp, #8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r1, r3
	bl	swapin
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	partition, .-partition
	.align	2
	.global	quickSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	quickSort, %function
quickSort:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	partition
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	quickSort
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	quickSort
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	quickSort, .-quickSort
	.global	__aeabi_fadd
	.global	__aeabi_fcmpge
	.global	__aeabi_fsub
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012solution vector: \000"
	.global	__aeabi_f2d
	.align	2
.LC1:
	.ascii	"%0.2f, \000"
	.align	2
.LC2:
	.ascii	"\012\012Total Profit is : %f\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	knapsack
	.syntax unified
	.arm
	.fpu softvfp
	.type	knapsack, %function
knapsack:
	@ args = 4, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]	@ float
	ldr	r3, [fp, #4]	@ float
	str	r3, [fp, #-96]	@ float
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L14
.L15:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-84]	@ float
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L14:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-100]	@ float
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L16
.L21:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	ldr	r1, [fp, #-100]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-96]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1065353216
	str	r2, [r3, #-84]	@ float
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-100]	@ float
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-108]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-108]	@ float
	b	.L27
.L26:
	ldr	r1, [fp, #-100]	@ float
	ldr	r0, [fp, #-96]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]	@ float
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r0, [r3, #-84]	@ float
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-108]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-108]	@ float
	ldr	r3, [fp, #-96]	@ float
	str	r3, [fp, #-100]	@ float
	b	.L20
.L27:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L16:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L21
.L20:
	ldr	r0, .L28+4
	bl	puts
	mov	r0, #91
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L22
.L23:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L28+8
	bl	printf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L22:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L23
	mov	r0, #93
	bl	putchar
	ldr	r0, [fp, #-108]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L28+12
	bl	printf
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	knapsack, .-knapsack
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Fractional Knapsack problem\000"
	.align	2
.LC5:
	.ascii	"Enter size of elements(max upto 20)\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012Enter the weight and profits of each item : \012"
	.ascii	" \000"
	.align	2
.LC8:
	.ascii	"item %d : \000"
	.align	2
.LC9:
	.ascii	"%f %f\000"
	.align	2
.LC10:
	.ascii	"\012Enter maximum capacity of knapsack:- \000"
	.align	2
.LC11:
	.ascii	"%f\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #344
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #328
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #248
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #168
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #88
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L37+4
	bl	puts
	ldr	r0, .L37+8
	bl	puts
	sub	r3, fp, #336
	mov	r1, r3
	ldr	r0, .L37+12
	bl	__isoc99_scanf
	ldr	r0, .L37+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-332]
	b	.L31
.L32:
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L37+20
	bl	printf
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-332]
	str	r2, [r3, #-164]
	sub	r2, fp, #328
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	add	r1, r2, r3
	sub	r2, fp, #248
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L37+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L31:
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-332]
	cmp	r2, r3
	blt	.L32
	ldr	r0, .L37+28
	bl	printf
	sub	r3, fp, #340
	mov	r1, r3
	ldr	r0, .L37+32
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-332]
	b	.L33
.L34:
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-244]	@ float
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-324]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-332]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]	@ float
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L33:
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-332]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-336]
	sub	r3, r3, #1
	sub	ip, fp, #168
	sub	r2, fp, #248
	sub	r1, fp, #328
	sub	r0, fp, #88
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, ip
	bl	quickSort
	ldr	r0, [fp, #-336]
	ldr	r3, [fp, #-340]	@ float
	sub	ip, fp, #248
	sub	r2, fp, #328
	sub	r1, fp, #168
	str	r3, [sp]	@ float
	mov	r3, ip
	bl	knapsack
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC12
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
