// File: /workspace/github_cpp_makefile_star2_O2/Kingsford-Group[P]ghost2/src/readFromGexf.hpp
// Function: extract(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string extract(string s, string attribute)
{
  std::size_t loc = s.find(" "+attribute+"=");
  if(loc != std::string::npos)
  {
    string prev=s.substr(0,loc);
    int count=0; // make sure this isn't in quotes
    for(size_t nxt=prev.find("\"");nxt!=std::string::npos;
        nxt=prev.find("\"",nxt+1)) ++count;
    s = s.substr(loc);
    if(count%2==1) 
      return extract(s.substr(s.find("\"")+1),attribute);
    s = s.substr(s.find("\"")+1);
    s = s.substr(0,s.find("\""));
    return s;
  }
  return "<EOS>"; // otherwise impossible return value
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbp
leaq 0x31371(%rip), %rsi     # 0x40a13
movq %rsp, %r12
movq %r12, %rdi
callq 0x18769
leaq 0x31055(%rip), %rdx     # 0x40709
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1874a
xorl %ebx, %ebx
leaq 0x28(%rsp), %r13
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xeb00
movq %rax, %r12
movq %r13, %rdi
callq 0xe290
movq %rsp, %rdi
callq 0xe290
cmpq $-0x1, %r12
je 0xf7e3
movq %r15, 0x20(%rsp)
movq %rbp, %r15
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0xe5b0
leaq 0x3b1f5(%rip), %rbp     # 0x4a90b
xorl %eax, %eax
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xeaf0
cmpq $-0x1, %rax
je 0xf733
incl %ebx
incq %rax
jmp 0xf718
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r12, %rdx
callq 0xe5b0
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xe6b0
movq %r12, %rdi
callq 0xe290
testb $0x1, %bl
movq %r15, %rbp
leaq 0x3b1a4(%rip), %rsi     # 0x4a90b
movq %r14, %rdi
jne 0xf7f9
xorl %edx, %edx
callq 0xeaf0
leaq 0x1(%rax), %rdx
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
callq 0xe5b0
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xe6b0
movq %r15, %rdi
callq 0xe290
leaq 0x3b165(%rip), %rsi     # 0x4a90b
movq %r14, %rdi
xorl %edx, %edx
callq 0xeaf0
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xe5b0
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xe6b0
movq %r15, %rdi
callq 0xe290
movq %rbp, %rdi
movq %r14, %rsi
callq 0xe730
jmp 0xf849
leaq 0x30f21(%rip), %rsi     # 0x4070b
leaq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x1866e
jmp 0xf853
xorl %edx, %edx
callq 0xeaf0
leaq 0x1(%rax), %rdx
leaq 0x68(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
callq 0xe5b0
leaq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xe7a0
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %rbp, %rdi
callq 0xf681
leaq 0x48(%rsp), %rdi
callq 0xe290
leaq 0x68(%rsp), %rdi
callq 0xe290
leaq 0x28(%rsp), %rdi
callq 0xe290
movq %rbp, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xe290
jmp 0xf87a
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xe290
jmp 0xf88f
jmp 0xf88c
jmp 0xf88c
jmp 0xf88c
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0xf89c
movq %rax, %rbx
movq %rsp, %rdi
callq 0xe290
movq %rbx, %rdi
callq 0xe9f0