// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]Triangulator/src/graph.cpp
// Function: Graph::Graph(std::set<std::pair<int, int>, std::less<std::pair<int, int>>, std::allocator<std::pair<int, int>>> const&)
Graph::Graph(const set<pair<int, int> >& es) {
	for (auto e : es) {
		vMap.push_back(e.F);
		vMap.push_back(e.S);
	}
	sort(vMap.begin(), vMap.end());
	vMap.erase(unique(vMap.begin(), vMap.end()), vMap.end());
	n = vMap.size();
	m = 0;
	g.resize(n);
	DENSE = denseG(n, es.size());
	if (DENSE) initMatrix();
	for (auto e : es) {
		e.F = lower_bound(vMap.begin(), vMap.end(), e.F) - vMap.begin();
		e.S = lower_bound(vMap.begin(), vMap.end(), e.S) - vMap.begin();
		addEdge(e.F, e.S);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x38(%rdi), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rdi)
movq $0x0, 0x48(%rdi)
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movq 0x18(%rsi), %r12
leaq 0x8(%rsi), %r14
cmpq %r14, %r12
je 0x9689
movq %rbp, 0x8(%rsp)
leaq 0x14(%rsp), %r13
leaq 0x10(%rsp), %rbp
movq 0x20(%r12), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
cmpq %rax, %rsi
je 0x95ff
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x9612
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x92c4
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
cmpq %rax, %rsi
je 0x9627
movl 0x14(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x9632
movq %rbx, %rdi
movq %r13, %rdx
callq 0x92c4
movq %r12, %rdi
callq 0x2260
movq %rax, %r12
cmpq %r14, %rax
jne 0x95dc
movq (%rbx), %r12
movq 0x8(%rbx), %r13
cmpq %r13, %r12
je 0x9691
movq %r13, %rax
subq %r12, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r12, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rbp
callq 0xaf7f
movq %r12, %rdi
movq %r13, %rsi
callq 0xb062
movq (%rbx), %r12
movq 0x8(%rbx), %r13
jmp 0x9696
xorl %r12d, %r12d
xorl %r13d, %r13d
jmp 0x96e1
movq 0x8(%rsp), %rbp
cmpq %r13, %r12
je 0x96e1
leaq 0x4(%r12), %rax
cmpq %r13, %rax
je 0x96e1
movl -0x4(%rax), %ecx
leaq 0x4(%rax), %rdx
cmpl (%rax), %ecx
movq %rdx, %rax
jne 0x96a0
leaq -0x8(%rdx), %rax
cmpq %r13, %rdx
je 0x96d1
movl %ecx, %esi
movl (%rdx), %ecx
cmpl %ecx, %esi
je 0x96cb
movl %ecx, 0x4(%rax)
addq $0x4, %rax
addq $0x4, %rdx
jmp 0x96b7
addq $0x4, %rax
cmpq %r13, %rax
je 0x96e1
movq %rax, 0x8(%rbx)
movq %rax, %r13
subq %r12, %r13
shrq $0x2, %r13
movl %r13d, 0x50(%rbx)
movl $0x0, 0x54(%rbx)
movslq %r13d, %rsi
movq %rbp, %rdi
callq 0xa9dc
movslq 0x50(%rbx), %rax
movslq 0x28(%r15), %rcx
movq %rax, %rdx
imulq %rax, %rdx
imulq %rax, %rdx
imulq %rcx, %rcx
shlq $0x2, %rcx
leaq (%rcx,%rcx,4), %rax
cmpq %rax, %rdx
setle 0x30(%rbx)
jg 0x972e
movq %rbx, %rdi
callq 0x93e4
movq 0x18(%r15), %r15
cmpq %r14, %r15
je 0x97e8
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
testq %rcx, %rcx
jle 0x97c0
movq 0x20(%r15), %rdx
movq %rdx, %rdi
shrq $0x20, %rdi
movq %rcx, %r8
movq %rax, %rsi
movq %r8, %r9
shrq %r9
movq %r9, %r10
notq %r10
addq %r8, %r10
leaq (%rsi,%r9,4), %r8
addq $0x4, %r8
cmpl %edx, -0x4(%r8)
cmovlq %r8, %rsi
cmovgeq %r9, %r10
movq %r10, %r8
testq %r10, %r10
jg 0x975f
subq %rax, %rsi
shrq $0x2, %rsi
movq %rax, %rdx
movq %rcx, %r8
shrq %r8
movq %r8, %r9
notq %r9
addq %rcx, %r9
leaq (%rdx,%r8,4), %rcx
addq $0x4, %rcx
cmpl %edi, -0x4(%rcx)
cmovlq %rcx, %rdx
cmovgeq %r8, %r9
movq %r9, %rcx
testq %r9, %r9
jg 0x9794
jmp 0x97c5
xorl %esi, %esi
movq %rax, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
movq %rbx, %rdi
callq 0x9836
movq %r15, %rdi
callq 0x2260
movq %rax, %r15
cmpq %r14, %rax
jne 0x973b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x97fb
jmp 0x9800
movq %rbp, 0x8(%rsp)
movq %rax, %r15
leaq 0x18(%rbx), %r12
movq 0x8(%rsp), %rdi
callq 0x41aa
movq %r12, %rdi
callq 0x436a
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x982d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2210
movq %r15, %rdi
callq 0x2310
nop