// File: /workspace/github_cpp_makefile_star2_O1/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 0x19ffe(%rip), %rdi     # 0x29e54
callq 0x29d5e
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 0xd920
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xe0(%rsp,%rax)
jne 0x10124
leaq 0x39640(%rip), %rsi     # 0x49541
movl $0x1, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0xdab0
movq %rax, %r15
leaq 0x39861(%rip), %rsi     # 0x49780
movl $0x5, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0xd9b0
leal 0x1(%r15), %edx
notl %r15d
addl %eax, %r15d
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xd580
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x28d6a
leaq 0x68(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0xd2d0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xff8d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x68(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xefee
leaq 0x397e0(%rip), %rsi     # 0x49786
leaq 0x68(%rsp), %rdi
callq 0xd1b0
testl %eax, %eax
jne 0x10160
leaq 0xc0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0xf2fd
leaq 0xc0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0xf89f
leaq 0xc0(%rsp), %rdi
callq 0xd140
movq 0x68f9c(%rip), %rdi     # 0x78f98
leaq 0x397b4(%rip), %rsi     # 0x497b7
movl $0xb, %edx
callq 0xd620
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x68(%rbx), %rsi
movq 0x70(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x28d6a
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x68f5f(%rip), %rdi     # 0x78f98
callq 0xd620
movq %rax, %r14
leaq 0x3977b(%rip), %rsi     # 0x497c3
movl $0x9, %edx
movq %rax, %rdi
callq 0xd620
leaq 0x19df8(%rip), %rdi     # 0x29e54
callq 0x29d5e
leaq 0xb8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x20(%rsp), %rsi
callq 0x223a0
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x7, %rdx
addq %rdx, %rsi
movq %r14, %rdi
callq 0xd4c0
leaq 0x3972d(%rip), %rsi     # 0x497cd
movl $0xe, %edx
movq %rax, %rdi
callq 0xd620
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x100c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x100de
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x100f9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0xc0(%rsp), %rdi
callq 0xd160
leaq 0x88(%rsp), %rdi
callq 0x2a1e0
movq %rbx, %rax
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x68e6d(%rip), %rdi     # 0x78f98
leaq 0x39639(%rip), %rsi     # 0x4976b
movl $0x14, %edx
callq 0xd620
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x68e4e(%rip), %rdi     # 0x78f98
callq 0xd620
leaq 0x39519(%rip), %rsi     # 0x4966f
movq %rax, %rdi
callq 0xd500
jmp 0x10173
movq 0x68e31(%rip), %rdi     # 0x78f98
leaq 0x3961e(%rip), %rsi     # 0x4978c
callq 0xd500
xorl %edi, %edi
callq 0xd690
jmp 0x10199
jmp 0x101c0
jmp 0x10194
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x101de
movq 0x38(%rsp), %rsi
jmp 0x101d6
movq %rax, %r14
jmp 0x101de
movq %rax, %r14
jmp 0x101f9
movq %rax, %r14
jmp 0x10206
jmp 0x101a5
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x101c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
jmp 0x101c3
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x101de
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x101f9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0xc0(%rsp), %rdi
callq 0xd160
leaq 0x88(%rsp), %rdi
callq 0x2a1e0
movq %rbx, %rdi
callq 0x1d582
movq %r14, %rdi
callq 0xd9c0