// File: Proudc[P]CTSS/src/ContinuousQuery/Frechet.cpp
// Function: dfdBetweenTwoLocalPaths(Graph*, std::vector<Edge, std::allocator<Edge>>&, std::vector<Edge, std::allocator<Edge>>&, int)
double dfdBetweenTwoLocalPaths(Graph* myGraph, std::vector<Edge>& firstPath, std::vector<Edge>& secPath, int initialVertex)
{
	std::vector<Point> firstPointList;
	std::vector<Point> secPointList;
	firstPointList = creatTrajPoint(myGraph, firstPath, initialVertex);
	secPointList   = creatTrajPoint(myGraph, secPath, initialVertex);
	Point p[firstPointList.size()];
	Point q[secPointList.size()];
	for (unsigned int i = 0; i < firstPointList.size(); i++)
	{
		p[i].x = firstPointList[i].x;
		p[i].y = firstPointList[i].y;
	}
	for (unsigned int i = 0; i < secPointList.size(); i++)
	{
		q[i].x = secPointList[i].x;
		q[i].y = secPointList[i].y;
	}
	return dfdDist(firstPointList.size(), secPointList.size(), p, q);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xb8c0
leaq -0x50(%rbp), %rdi
callq 0xb8c0
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x1c(%rbp), %ecx
leaq -0x68(%rbp), %rdi
callq 0xb430
jmp 0xd042
leaq -0x38(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq %rsi, -0xb8(%rbp)
callq 0xb8e0
movq -0xb8(%rbp), %rdi
callq 0xb910
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
leaq -0x90(%rbp), %rdi
callq 0xb430
jmp 0xd07b
leaq -0x50(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
leaq -0x90(%rbp), %rsi
movq %rsi, -0xd8(%rbp)
callq 0xb8e0
movq -0xd8(%rbp), %rdi
callq 0xb910
leaq -0x38(%rbp), %rdi
callq 0xb970
movq -0xd0(%rbp), %rdi
movq %rsp, %rcx
movq %rcx, -0x98(%rbp)
movq %rax, %rdx
shlq $0x4, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0xc8(%rbp)
movq %rcx, %rsp
movq %rax, -0xa0(%rbp)
callq 0xb970
movq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0xc0(%rbp)
movq %rcx, %rsp
movq %rax, -0xa8(%rbp)
movl $0x0, -0xac(%rbp)
movl -0xac(%rbp), %eax
movq %rax, -0xe0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xb970
movq %rax, %rcx
movq -0xe0(%rbp), %rax
cmpq %rcx, %rax
jae 0xd1cf
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0xb990
movq %rax, %rcx
movq -0xc8(%rbp), %rax
movsd (%rcx), %xmm0
movl -0xac(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0xb990
movq %rax, %rcx
movq -0xc8(%rbp), %rax
movsd 0x8(%rcx), %xmm0
movl -0xac(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xd10d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xb910
leaq -0x38(%rbp), %rdi
callq 0xb910
jmp 0xd2da
movl $0x0, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movq %rax, -0xe8(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xb970
movq %rax, %rcx
movq -0xe8(%rbp), %rax
cmpq %rcx, %rax
jae 0xd274
movl -0xb0(%rbp), %eax
movl %eax, %esi
leaq -0x50(%rbp), %rdi
callq 0xb990
movq %rax, %rcx
movq -0xc0(%rbp), %rax
movsd (%rcx), %xmm0
movl -0xb0(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movl -0xb0(%rbp), %eax
movl %eax, %esi
leaq -0x50(%rbp), %rdi
callq 0xb990
movq %rax, %rcx
movq -0xc0(%rbp), %rax
movsd 0x8(%rcx), %xmm0
movl -0xb0(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0xd1d9
leaq -0x38(%rbp), %rdi
callq 0xb970
movl %eax, -0xf4(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xb970
movl -0xf4(%rbp), %edi
movq -0xc8(%rbp), %rdx
movq -0xc0(%rbp), %rcx
movl %eax, %esi
callq 0xc5b0
movsd %xmm0, -0xf0(%rbp)
jmp 0xd2b1
movq -0x98(%rbp), %rax
movq %rax, %rsp
leaq -0x50(%rbp), %rdi
callq 0xb910
leaq -0x38(%rbp), %rdi
callq 0xb910
movsd -0xf0(%rbp), %xmm0
movq %rbp, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x2240
nopw %cs:(%rax,%rax)