// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]Triangulator/src/MCS.cpp
// Function: MCS::findShortestPath(Graph const&, int, int, std::vector<int, std::allocator<int>> const&)
vector<int> findShortestPath(const Graph& G, int a, int b, const vector<int>& rmV) {
	assert(a != b);
	d[a] = 1;
	vector<int> bfs;
	bfs.push_back(a);
	int i2 = 0;
	bool fo = false;
	while (i2 < (int)bfs.size()) {
		int x = bfs[i2++];
		for (int nx : G.g[x]) {
			if (d[nx]) continue;
			if (rmV[nx]) continue;
			if (x == a && nx == b) continue;
			if (nx == b) {
				from[nx] = x;
				fo = true;
				bfs.push_back(nx);
				break;
			}
			d[nx] = d[x]+1;
			from[nx] = x;
			bfs.push_back(nx);
		}
		if (fo) break;
	}
	vector<int> ret;
	if (fo) {
		while (b != a) {
			ret.push_back(b);
			b = from[b];
		}
		ret.push_back(a);
	}
	for (int x : bfs) {
		d[x] = 0;
		from[x] = 0;
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x50(%rsp)
movq %rsi, 0x40(%rsp)
movl %edx, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
cmpl %ecx, %edx
je 0x14fc0
movslq %edx, %rax
leaq 0x39036a(%rip), %rbp    # 0x3a50d0
movl $0x1, (%rbp,%rax,4)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
movq %rdi, 0x30(%rsp)
je 0x14d9b
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x14daa
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x8fde
xorl %r13d, %r13d
xorl %edi, %edi
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r13
jge 0x14eea
movl (%rax,%r13,4), %r12d
movslq %r12d, %rcx
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movq %rcx, 0x48(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %r15
movq 0x8(%rax,%rcx,8), %rbx
cmpq %rbx, %r15
je 0x14edd
movl (%r15), %eax
movl %eax, 0x2c(%rsp)
movslq %eax, %rcx
movl $0x5, %r14d
cmpl $0x0, (%rbp,%rcx,4)
jne 0x14ec9
movq 0x50(%rsp), %rdx
movq (%rdx), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jne 0x14ec9
cmpl 0xc(%rsp), %r12d
jne 0x14e35
cmpl 0x8(%rsp), %eax
je 0x14ec9
cmpl 0x8(%rsp), %eax
jne 0x14e5d
leaq 0x3c0fce(%rip), %rdx    # 0x3d5e10
movl %r12d, (%rdx,%rcx,4)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x14e93
movl $0x4, %r14d
movb $0x1, %dil
jmp 0x14e86
movq 0x48(%rsp), %rdx
movl (%rbp,%rdx,4), %edx
incl %edx
movl %edx, (%rbp,%rcx,4)
leaq 0x3c0f9d(%rip), %rdx    # 0x3d5e10
movl %r12d, (%rdx,%rcx,4)
movq 0x18(%rsp), %rsi
xorl %r14d, %r14d
cmpq 0x20(%rsp), %rsi
je 0x14ead
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x14ec9
leaq 0x10(%rsp), %rdi
leaq 0x2c(%rsp), %rdx
callq 0x8fde
movl $0x4, %r14d
movb $0x1, %dil
jmp 0x14ec9
xorl %r14d, %r14d
movq %rdi, 0x38(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x2c(%rsp), %rdx
callq 0x8fde
movq 0x38(%rsp), %rdi
cmpl $0x5, %r14d
je 0x14ed4
testl %r14d, %r14d
jne 0x14edd
addq $0x4, %r15
jmp 0x14dee
incq %r13
testb $0x1, %dil
je 0x14daf
xorps %xmm0, %xmm0
movq 0x30(%rsp), %rbx
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testb $0x1, %dil
leaq 0x3c0f08(%rip), %r15    # 0x3d5e10
je 0x14f74
movl 0x8(%rsp), %eax
movl 0xc(%rsp), %ecx
cmpl %ecx, %eax
je 0x14f51
leaq 0x8(%rsp), %r14
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x14f31
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x14f3c
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8fde
movslq 0x8(%rsp), %rax
movl (%r15,%rax,4), %eax
movl %eax, 0x8(%rsp)
movl 0xc(%rsp), %ecx
cmpl %ecx, %eax
jne 0x14f1b
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x14f67
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x14f74
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8fde
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x14f9c
xorl %ecx, %ecx
movq %rdi, %rdx
movslq (%rdx), %rsi
movl %ecx, (%rbp,%rsi,4)
movl %ecx, (%r15,%rsi,4)
addq $0x4, %rdx
cmpq %rax, %rdx
jne 0x14f88
testq %rdi, %rdi
je 0x14fae
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1604b(%rip), %rdi     # 0x2b012
leaq 0x15d01(%rip), %rsi     # 0x2accf
leaq 0x16044(%rip), %rcx     # 0x2b019
movl $0x1b0, %edx            # imm = 0x1B0
callq 0x2140
jmp 0x14fe3
jmp 0x15006
movq %rax, %r14
movq 0x30(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x15009
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0x15009
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x15020
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq %r14, %rdi
callq 0x2310