// File: /workspace/github_cpp_makefile_star2_O3/Kingsford-Group[P]ghost2/src/readFromGexf.hpp
// Function: readFromGexf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
Graph readFromGexf(string fileName, bool directed)
{
  ptime t = bclock::local_time();
  Graph result;
  result.direct(directed);
  idtoval itv;
  ifstream fin(fileName);
  if(!fin.good()) {cout << "error loading file: " << fileName << "\n"; exit(0);}
  unsigned start = fileName.find_last_of("/");
  unsigned end = fileName.find(".gexf");
  if(start == string::npos) start = -1;
  string name = fileName.substr(start+1,end-start-1);
  result.setName(name);
  string atr = getAttribute(&fin);
  if(atr == "gname")
  {
    getNodes(&fin, &result, &itv);
    getEdges(&fin, &result, &itv);
  }
  else {cout << "ERROR: gexf does not have attribute gname\n"; exit(0);}
  fin.close();
  cout << "extracted: " << result.getName() << ".gexf in " <<
    (bclock::local_time() - t).total_milliseconds() << " milliseconds\n";
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x19adf(%rip), %rdi     # 0x2891c
callq 0x28826
movq %rax, 0x20(%rsp)
xorl %eax, %eax
movb %al, (%rbx)
movl $0x10, %ecx
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movb %al, 0x30(%rbx)
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movl %edx, 0x48(%rbx)
movups %xmm0, 0x50(%rbx)
leaq 0x78(%rbx), %rsi
movq %rsi, 0x68(%rbx)
movq %rax, 0x70(%rbx)
movb %al, 0x78(%rbx)
movb %bpl, 0x60(%rbx)
movb %al, 0x88(%rsp)
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movl %edx, 0xa0(%rsp)
movups %xmm0, 0xa8(%rsp)
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0xc920
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xe0(%rsp,%rax)
jne 0xf10b
leaq 0x39689(%rip), %rsi     # 0x48571
movl $0x1, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0xcab0
movq %rax, %r15
leaq 0x398aa(%rip), %rsi     # 0x487b0
movl $0x5, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0xc9b0
leal 0x1(%r15), %edx
notl %r15d
addl %eax, %r15d
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xc580
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x27846
leaq 0x68(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0xc2d0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xef74
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x68(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xdfd5
leaq 0x39829(%rip), %rsi     # 0x487b6
leaq 0x68(%rsp), %rdi
callq 0xc1b0
testl %eax, %eax
jne 0xf147
leaq 0xc0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0xe2e4
leaq 0xc0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0xe886
leaq 0xc0(%rsp), %rdi
callq 0xc140
movq 0x68fb5(%rip), %rdi     # 0x77f98
leaq 0x397fd(%rip), %rsi     # 0x487e7
movl $0xb, %edx
callq 0xc620
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x68(%rbx), %rsi
movq 0x70(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x27846
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x68f78(%rip), %rdi     # 0x77f98
callq 0xc620
movq %rax, %r14
leaq 0x397c4(%rip), %rsi     # 0x487f3
movl $0x9, %edx
movq %rax, %rdi
callq 0xc620
leaq 0x198d9(%rip), %rdi     # 0x2891c
callq 0x28826
leaq 0xb8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x20(%rsp), %rsi
callq 0x20fc4
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x7, %rdx
addq %rdx, %rsi
movq %r14, %rdi
callq 0xc4c0
leaq 0x39776(%rip), %rsi     # 0x487fd
movl $0xe, %edx
movq %rax, %rdi
callq 0xc620
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xf0aa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf0c5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf0e0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0xc0(%rsp), %rdi
callq 0xc160
leaq 0x88(%rsp), %rdi
callq 0x28ca8
movq %rbx, %rax
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x68e86(%rip), %rdi     # 0x77f98
leaq 0x39682(%rip), %rsi     # 0x4879b
movl $0x14, %edx
callq 0xc620
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x68e67(%rip), %rdi     # 0x77f98
callq 0xc620
leaq 0x39562(%rip), %rsi     # 0x4869f
movq %rax, %rdi
callq 0xc500
jmp 0xf15a
movq 0x68e4a(%rip), %rdi     # 0x77f98
leaq 0x39667(%rip), %rsi     # 0x487bc
callq 0xc500
xorl %edi, %edi
callq 0xc690
jmp 0xf180
jmp 0xf1a7
jmp 0xf17b
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xf1c5
movq 0x38(%rsp), %rsi
jmp 0xf1bd
movq %rax, %r14
jmp 0xf1c5
movq %rax, %r14
jmp 0xf1e0
movq %rax, %r14
jmp 0xf1ed
jmp 0xf18c
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xf1aa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc550
jmp 0xf1aa
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf1c5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf1e0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0xc0(%rsp), %rdi
callq 0xc160
leaq 0x88(%rsp), %rdi
callq 0x28ca8
movq %rbx, %rdi
callq 0x1c286
movq %r14, %rdi
callq 0xc9c0