// File: Laakeri[P]Triangulator/src/graph.cpp
// Function: Graph::mapInto(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&) const
vector<vector<int> > Graph::mapInto(const vector<vector<int> >& vs) const {
	vector<vector<int> > ret;
	for (auto t : vs) {
		vector<int> r;
		for (int x : t) {
			int id = lower_bound(vMap.begin(), vMap.end(), x) - vMap.begin();
			if (id >= (int)vMap.size()) continue;
			if (vMap[id] != x) continue;
			r.push_back(id);
		}
		sort(r.begin(), r.end());
		if (r.size() > 0) ret.push_back(r);
	}
	sort(ret.begin(), ret.end());
	ret.erase(unique(ret.begin(), ret.end()), ret.end());
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x128(%rbp)
movq %rdi, %rax
movq %rax, -0x120(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x17630
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x5fb0
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x5fe0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x63a0
testb $0x1, %al
jne 0x17184
jmp 0x173a0
leaq -0x30(%rbp), %rdi
callq 0x6410
movq %rax, %rsi
leaq -0x50(%rbp), %rdi
callq 0x6490
jmp 0x1719b
leaq -0x78(%rbp), %rdi
callq 0xdf40
leaq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0xe060
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
callq 0xe090
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xe0c0
testb $0x1, %al
jne 0x171e8
jmp 0x1731e
leaq -0x88(%rbp), %rdi
callq 0xe100
movq -0x118(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x94(%rbp)
callq 0x6680
movq -0x118(%rbp), %rdi
movq %rax, -0xa8(%rbp)
callq 0x66b0
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0x94(%rbp), %rdx
callq 0x17b60
movq %rax, -0x130(%rbp)
jmp 0x17245
movq -0x118(%rbp), %rdi
movq -0x130(%rbp), %rax
movq %rax, -0xa0(%rbp)
callq 0x6680
movq %rax, -0xb8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x17b20
movq -0x118(%rbp), %rdi
movl %eax, -0x98(%rbp)
movl -0x98(%rbp), %eax
movl %eax, -0x134(%rbp)
callq 0x59a0
movq %rax, %rcx
movl -0x134(%rbp), %eax
cmpl %ecx, %eax
jl 0x172da
jmp 0x1730d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x174bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x6d30
leaq -0x50(%rbp), %rdi
callq 0x6d30
jmp 0x174bb
movq -0x118(%rbp), %rdi
movslq -0x98(%rbp), %rsi
callq 0x17a50
movl (%rax), %eax
cmpl -0x94(%rbp), %eax
je 0x172f9
jmp 0x1730d
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xdff0
jmp 0x1730b
jmp 0x1730d
leaq -0x88(%rbp), %rdi
callq 0xe120
jmp 0x171cc
leaq -0x78(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0xe060
movq -0x140(%rbp), %rdi
movq %rax, -0xc0(%rbp)
callq 0xe090
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x176e0
jmp 0x1735d
leaq -0x78(%rbp), %rdi
callq 0x59a0
cmpq $0x0, %rax
jbe 0x17380
movq -0x128(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x17bb0
jmp 0x1737e
jmp 0x17380
leaq -0x78(%rbp), %rdi
callq 0x6d30
leaq -0x50(%rbp), %rdi
callq 0x6d30
leaq -0x30(%rbp), %rdi
callq 0x6430
jmp 0x1716e
movq -0x128(%rbp), %rdi
callq 0x58e0
movq -0x128(%rbp), %rdi
movq %rax, -0xd0(%rbp)
callq 0x5910
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x17c20
jmp 0x173db
movq -0x128(%rbp), %rdi
callq 0x58e0
movq -0x128(%rbp), %rdi
movq %rax, -0xf0(%rbp)
callq 0x5910
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x17cf0
movq %rax, -0x148(%rbp)
jmp 0x1741d
movq -0x148(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x17d30
movq -0x128(%rbp), %rdi
callq 0x5910
movq %rax, -0x108(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x17d30
movq -0x128(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq -0x100(%rbp), %rdx
callq 0x17c60
movq %rax, -0x150(%rbp)
jmp 0x17487
movq -0x150(%rbp), %rax
movq %rax, -0x110(%rbp)
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x174ab
movq -0x128(%rbp), %rdi
callq 0x5e20
movq -0x120(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x128(%rbp), %rdi
callq 0x5e20
movq -0x58(%rbp), %rdi
callq 0x3480