// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
leaq 0x3ada7(%rip), %rsi     # 0x499ff
movq %rsp, %r12
movq %r12, %rdi
callq 0x1d425
leaq 0x3aa8b(%rip), %rsi     # 0x496f5
movq %r12, %rdi
callq 0xda60
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xec99
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xeca0
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0xd9b0
movq %rax, %r12
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xece6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xed01
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
cmpq $-0x1, %r12
je 0xed79
movq %r15, 0x40(%rsp)
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0xd580
leaq 0x40c46(%rip), %rsi     # 0x4f96e
movl $0x1, %ecx
movq %r13, %rdi
xorl %edx, %edx
callq 0xd9b0
cmpq $-0x1, %rax
je 0xed9b
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
leaq 0x40c24(%rip), %r13     # 0x4f96e
leaq 0x20(%rsp), %rbp
incq %rax
movl $0x1, %ecx
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0xd9b0
incl %r15d
cmpq $-0x1, %rax
jne 0xed4f
andb $0x1, %r15b
leaq 0x30(%rsp), %rbp
jmp 0xed9e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3a970(%rip), %rsi     # 0x496f7
leaq 0x3a96e(%rip), %rdx     # 0x496fc
movq %rbx, %rdi
callq 0x28dfa
jmp 0xef5d
movb $0x1, %r15b
movq %rsp, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0xd580
leaq 0x10(%rsp), %r13
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xd6a0
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xeddc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x40b8b(%rip), %rsi     # 0x4f96e
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
testb %r15b, %r15b
je 0xeea3
callq 0xd9b0
leaq 0x1(%rax), %rdx
movq %rsp, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0xd580
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xd6a0
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xee34
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x40b33(%rip), %rsi     # 0x4f96e
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0xd9b0
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xd580
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xd6a0
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xee7d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rdx
leaq 0x10(%r14), %rax
cmpq %rax, %rdx
je 0xef28
movq %rdx, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
jmp 0xef2e
callq 0xd9b0
leaq 0x1(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0xd580
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x28d6a
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %rbx, %rdi
callq 0xec37
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xef0b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xef46
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd550
jmp 0xef46
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xef5d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd550
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xef91
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd550
jmp 0xef91
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xefb7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd550
jmp 0xefb7
jmp 0xefb4
jmp 0xefb4
jmp 0xefb4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xefe6
movq 0x30(%rsp), %rsi
jmp 0xefde
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xefe6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
movq %rbx, %rdi
callq 0xd9c0