// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
movq %rax, 0x10(%rsp)
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 0x9358
leaq 0xc(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq 0x20(%r12), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x9318
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x9323
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x8fde
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x933d
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x9348
movq %rbx, %rdi
movq %r13, %rdx
callq 0x8fde
movq %r12, %rdi
callq 0x2260
movq %rax, %r12
cmpq %r14, %rax
jne 0x92f4
movq (%rbx), %r12
movq 0x8(%rbx), %r13
cmpq %r13, %r12
je 0x9391
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
callq 0xac3d
movq %r12, %rdi
movq %r13, %rsi
callq 0xad20
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0xaf90
movq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x93bc
movq 0x8(%rbx), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x93bc
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x2, %rax
movl %eax, 0x50(%rbx)
movl $0x0, 0x54(%rbx)
movslq %eax, %rsi
movq 0x10(%rsp), %rdi
callq 0xa67e
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 0x940e
movq %rbx, %rdi
callq 0x9100
movq 0x18(%r15), %r15
cmpq %r14, %r15
je 0x94c8
movq 0x20(%r15), %rcx
movq (%rbx), %rax
movq 0x8(%rbx), %rdi
subq %rax, %rdi
sarq $0x2, %rdi
movq %rax, %rsi
testq %rdi, %rdi
jle 0x9465
movq %rdi, %rdx
movq %rax, %rsi
movq %rdx, %r8
shrq %r8
movq %r8, %r9
notq %r9
addq %rdx, %r9
leaq (%rsi,%r8,4), %rdx
addq $0x4, %rdx
cmpl %ecx, -0x4(%rdx)
cmovlq %rdx, %rsi
cmovgeq %r8, %r9
movq %r9, %rdx
testq %r9, %r9
jg 0x943b
movq %rax, %rdx
testq %rdi, %rdi
jle 0x949e
shrq $0x20, %rcx
movq %rax, %rdx
movq %rdi, %r8
shrq %r8
movq %r8, %r9
notq %r9
addq %rdi, %r9
leaq (%rdx,%r8,4), %rdi
addq $0x4, %rdi
cmpl %ecx, -0x4(%rdi)
cmovlq %rdi, %rdx
cmovgeq %r8, %r9
movq %r9, %rdi
testq %r9, %r9
jg 0x9474
subq %rax, %rsi
shrq $0x2, %rsi
subq %rax, %rdx
shrq $0x2, %rdx
movq %rbx, %rdi
callq 0x9512
movq %r15, %rdi
callq 0x2260
movq %rax, %r15
cmpq %r14, %rax
jne 0x941b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x94dd
jmp 0x94dd
jmp 0x94dd
movq %rax, %r15
leaq 0x18(%rbx), %r12
movq 0x10(%rsp), %rdi
callq 0x41fe
movq %r12, %rdi
callq 0x43b8
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x950a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2210
movq %r15, %rdi
callq 0x2310