// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./SiftHelpers.h
// Function: Image::reduceSift(Image&, std::vector<std::vector<float, std::allocator<float>>, std::allocator<std::vector<float, std::allocator<float>>>>&)
static void reduceSift(Image& image,vector<vector<float>>& distributionLists)
	{
		const vector<SiftDescriptor> imageDescriptors = image.getDescriptors();
		//W is set
		float w = 400;
		
		vector<SiftDescriptor> newDescriptors;
		
		for(int i = 0;i<imageDescriptors.size() ;++i)
		{
			vector<float> descriptorValues;
			for(int j = 0;j<distributionLists.size();++j)
			{
				float sum = 0.0;
				for(int k = 0;k<128;++k)
				{
					sum += imageDescriptors[i].descriptor[k] * distributionLists[j][k];
				}
				sum/=w;
				
				descriptorValues.push_back(sum);
			}
			SiftDescriptor newDescriptor(imageDescriptors[i].row,imageDescriptors[i].col,imageDescriptors[i].sigma,imageDescriptors[i].angle,descriptorValues);	
			newDescriptors.push_back(newDescriptor);
		}
		image.setNewDescriptors(newDescriptors);	
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, 0x48(%rsp)
leaq 0x20(%rdi), %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xa436
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x5cbf2
xorl %r15d, %r15d
leaq 0x50(%rsp), %rbx
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x5cb4c
leaq (%r15,%r15,4), %r12
xorl %r13d, %r13d
movl $0x0, 0x50(%rsp)
movq 0x18(%rsp), %rcx
movq 0x10(%rcx,%r12,8), %rcx
leaq (,%r13,2), %rdx
addq %r13, %rdx
movq (%rax,%rdx,8), %rax
xorps %xmm0, %xmm0
xorl %edx, %edx
movss (%rcx,%rdx,4), %xmm1
mulss (%rax,%rdx,4), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
incq %rdx
cmpq $0x80, %rdx
jne 0x5cad4
movss 0x50(%rsp), %xmm0
divss 0x1480a(%rip), %xmm0    # 0x7130c
movss %xmm0, 0x50(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5cb23
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5cb2e
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x5d27c
incq %r13
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %rbp, %rcx
cmpq %r13, %rcx
ja 0x5caae
movq 0x18(%rsp), %rax
leaq (%r15,%r15,4), %rcx
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
movq %rsp, %rsi
callq 0xa598
movaps 0x90(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
leaq 0x60(%rsp), %rdi
movq %r12, %rsi
callq 0xa598
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x5cba0
callq 0x44e0
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x5d242
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x5cbbc
callq 0x44e0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5cbca
callq 0x44e0
movq 0x20(%rsp), %rax
subq 0x18(%rsp), %rax
incq %r15
sarq $0x3, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
cmpq %r15, %rax
ja 0x5ca8a
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xa436
movq 0x48(%rsp), %rdi
addq $0x58, %rdi
leaq 0x78(%rsp), %rsi
callq 0x5d4e8
leaq 0x78(%rsp), %rdi
callq 0xa09a
leaq 0x30(%rsp), %rdi
callq 0xa09a
leaq 0x18(%rsp), %rdi
callq 0xa09a
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xa09a
jmp 0x5cc8c
movq %rax, %rbx
jmp 0x5cc8c
movq %rax, %rbx
movq 0x60(%rsp), %rdi
jmp 0x5cc6d
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x5cc7e
callq 0x44e0
jmp 0x5cc7e
jmp 0x5cc7b
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5cc8c
callq 0x44e0
leaq 0x30(%rsp), %rdi
callq 0xa09a
leaq 0x18(%rsp), %rdi
callq 0xa09a
movq %rbx, %rdi
callq 0x4950