// File: Kingsford-Group[P]ghost2/src/readFromGexf.hpp
// Function: getEdges(std::basic_ifstream<char, std::char_traits<char>>*, Graph*, boost::unordered::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, boost::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>*)
void getEdges(ifstream *fin, Graph *target, idtoval *itv)
{
  string cur = nextTag(fin);
  while(cur.substr(0,5) != "edges")
  {
    cur = nextTag(fin);
    if(cur == "<EOF>") {cout << "read edges error\n"; break;}
  }
  while(cur != "/edges")
  {
    cur = nextTag(fin);
    if(cur == "<EOF>") {cout << "read edges error\n"; break;}
    string id1 = extract(cur, "source");
    string id2 = extract(cur, "target");
    if(id1 != "<EOS>" && id2 != "<EOS>")
      (*target).addEdge((*itv)[id1], (*itv)[id2]);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x12580
xorl %eax, %eax
movl %eax, %edx
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x5, %ecx
callq 0x10740
jmp 0x1343c
leaq 0xa92f8(%rip), %rsi     # 0xbc73b
leaq -0x58(%rbp), %rdi
callq 0x23540
movb %al, -0x1b9(%rbp)
jmp 0x13454
leaq -0x58(%rbp), %rdi
callq 0x10460
movb -0x1b9(%rbp), %al
testb $0x1, %al
jne 0x1346c
jmp 0x13516
movq -0x8(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x12580
jmp 0x1347e
leaq -0x38(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
leaq -0x88(%rbp), %rsi
movq %rsi, -0x1d0(%rbp)
callq 0x108a0
movq -0x1d0(%rbp), %rdi
callq 0x10460
movq -0x1c8(%rbp), %rdi
leaq 0xa921d(%rip), %rsi     # 0xbc6d3
callq 0x233d0
movb %al, -0x1ba(%rbp)
jmp 0x134c3
movb -0x1ba(%rbp), %al
testb $0x1, %al
jne 0x134cf
jmp 0x13511
movq 0x11dac2(%rip), %rdi    # 0x130f98
leaq 0xa924b(%rip), %rsi     # 0xbc728
callq 0x106c0
jmp 0x134e4
jmp 0x13516
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x138d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x10460
jmp 0x138d1
jmp 0x13424
jmp 0x13518
leaq 0xa921b(%rip), %rsi     # 0xbc73a
leaq -0x38(%rbp), %rdi
callq 0x23540
movb %al, -0x1d1(%rbp)
jmp 0x13530
movb -0x1d1(%rbp), %al
testb $0x1, %al
jne 0x1353f
jmp 0x138bf
movq -0x8(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0x12580
jmp 0x13551
leaq -0x38(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x1e8(%rbp)
callq 0x108a0
movq -0x1e8(%rbp), %rdi
callq 0x10460
movq -0x1e0(%rbp), %rdi
leaq 0xa914a(%rip), %rsi     # 0xbc6d3
callq 0x233d0
movb %al, -0x1d2(%rbp)
jmp 0x13596
movb -0x1d2(%rbp), %al
testb $0x1, %al
jne 0x135a2
jmp 0x135bc
movq 0x11d9ef(%rip), %rdi    # 0x130f98
leaq 0xa9178(%rip), %rsi     # 0xbc728
callq 0x106c0
jmp 0x135b7
jmp 0x138bf
leaq -0xe8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x10300
jmp 0x135ce
leaq -0x109(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x10ce0
movq -0x1f0(%rbp), %rdx
leaq 0xa9152(%rip), %rsi     # 0xbc741
leaq -0x108(%rbp), %rdi
callq 0x23400
jmp 0x135fd
leaq -0xc8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x12780
jmp 0x13619
leaq -0x108(%rbp), %rdi
callq 0x10460
leaq -0x109(%rbp), %rdi
callq 0x10770
leaq -0xe8(%rbp), %rdi
callq 0x10460
leaq -0x150(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x10300
jmp 0x1364f
leaq -0x171(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x10ce0
movq -0x1f8(%rbp), %rdx
leaq 0xa90d8(%rip), %rsi     # 0xbc748
leaq -0x170(%rbp), %rdi
callq 0x23400
jmp 0x1367e
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x170(%rbp), %rdx
callq 0x12780
jmp 0x1369a
leaq -0x170(%rbp), %rdi
callq 0x10460
leaq -0x171(%rbp), %rdi
callq 0x10770
leaq -0x150(%rbp), %rdi
callq 0x10460
leaq 0xa9016(%rip), %rsi     # 0xbc6db
leaq -0xc8(%rbp), %rdi
callq 0x23540
movb %al, -0x1f9(%rbp)
jmp 0x136d9
movb -0x1f9(%rbp), %al
testb $0x1, %al
jne 0x136e8
jmp 0x13888
leaq 0xa8fec(%rip), %rsi     # 0xbc6db
leaq -0x130(%rbp), %rdi
callq 0x23540
movb %al, -0x1fa(%rbp)
jmp 0x13703
movb -0x1fa(%rbp), %al
testb $0x1, %al
jne 0x13712
jmp 0x13888
movq -0x10(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x18(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x23a30
movq %rax, -0x208(%rbp)
jmp 0x13736
movq -0x208(%rbp), %rsi
leaq -0x198(%rbp), %rdi
callq 0x10300
jmp 0x1374b
movq -0x18(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x23a30
movq %rax, -0x218(%rbp)
jmp 0x13764
movq -0x218(%rbp), %rsi
leaq -0x1b8(%rbp), %rdi
callq 0x10300
jmp 0x13779
movq -0x210(%rbp), %rdi
leaq -0x198(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x23a80
jmp 0x13795
leaq -0x1b8(%rbp), %rdi
callq 0x10460
leaq -0x198(%rbp), %rdi
callq 0x10460
jmp 0x13888
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x137d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x10460
leaq -0x109(%rbp), %rdi
callq 0x10770
leaq -0xe8(%rbp), %rdi
callq 0x10460
jmp 0x138d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x138b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x1382c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x170(%rbp), %rdi
callq 0x10460
leaq -0x171(%rbp), %rdi
callq 0x10770
leaq -0x150(%rbp), %rdi
callq 0x10460
jmp 0x138b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x138a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x1387a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x10460
leaq -0x198(%rbp), %rdi
callq 0x10460
jmp 0x138a5
leaq -0x130(%rbp), %rdi
callq 0x10460
leaq -0xc8(%rbp), %rdi
callq 0x10460
jmp 0x13518
leaq -0x130(%rbp), %rdi
callq 0x10460
leaq -0xc8(%rbp), %rdi
callq 0x10460
jmp 0x138d1
leaq -0x38(%rbp), %rdi
callq 0x10460
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x10460
movq -0x60(%rbp), %rdi
callq 0x10cc0
nopw %cs:(%rax,%rax)