// File: atfrank[P]PCASA/lib/Select.cpp
// Function: Select::atom(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>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
bool Select::atom(const std::string &str, std::string typein, const std::vector<std::string> &AtomVec){
  size_t pos;
  std::string atmType;

  pos=str.find_first_not_of("0123456789");
  atmType=str.substr(pos,1);

  if (typein.compare("heavy") == 0 && atmType.compare("H") != 0 && std::find(AtomVec.begin(),AtomVec.end(), str) == AtomVec.end()){
    return true;
  }
  else if (atmType.compare(typein) == 0 && std::find(AtomVec.begin(),AtomVec.end(), str) == AtomVec.end()){
    return true;
  }
  else{
    return false;
  }
}

// Assembly:
subq $0xf8, %rsp
movq %rdx, 0x28(%rsp)
movq %rdi, 0xe8(%rsp)
movq %rsi, 0xe0(%rsp)
movq %rdx, 0xd8(%rsp)
movq %rcx, 0xd0(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x5600
movq 0xe0(%rsp), %rdi
leaq 0x109a8(%rip), %rsi     # 0x7c380
xorl %eax, %eax
movl %eax, %edx
callq 0x5200
movq %rax, 0xc8(%rsp)
movq 0xe0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
leaq 0x88(%rsp), %rdi
movl $0x1, %ecx
callq 0x5440
jmp 0x6ba0d
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x5510
leaq 0x88(%rsp), %rdi
callq 0x5250
movq 0x28(%rsp), %rdi
leaq 0x110ee(%rip), %rsi     # 0x7cb29
callq 0x5140
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x27(%rsp)
jne 0x6bae3
leaq 0xa8(%rsp), %rdi
leaq 0x10baf(%rip), %rsi     # 0x7c60f
callq 0x5140
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x27(%rsp)
je 0x6bae3
movq 0xd0(%rsp), %rdi
callq 0x470d0
movq %rax, 0x68(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x47100
movq %rax, 0x60(%rsp)
movq 0xe0(%rsp), %rdx
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x47070
movq %rax, 0x18(%rsp)
jmp 0x6bab4
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x47100
movq %rax, 0x58(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x6c560
movb %al, 0x27(%rsp)
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x6baed
jmp 0x6bb25
movb $0x1, 0xf7(%rsp)
movl $0x1, 0x54(%rsp)
jmp 0x6bbe9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x5250
jmp 0x6bc07
movq 0x28(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x5050
movl %eax, 0x14(%rsp)
jmp 0x6bb3d
movl 0x14(%rsp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x13(%rsp)
jne 0x6bbbd
movq 0xd0(%rsp), %rdi
callq 0x470d0
movq %rax, 0x40(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x47100
movq %rax, 0x38(%rsp)
movq 0xe0(%rsp), %rdx
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x47070
movq %rax, 0x8(%rsp)
jmp 0x6bb8e
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x47100
movq %rax, 0x30(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x6c560
movb %al, 0x13(%rsp)
movb 0x13(%rsp), %al
testb $0x1, %al
jne 0x6bbc7
jmp 0x6bbd9
movb $0x1, 0xf7(%rsp)
movl $0x1, 0x54(%rsp)
jmp 0x6bbe9
movb $0x0, 0xf7(%rsp)
movl $0x1, 0x54(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x5250
movb 0xf7(%rsp), %al
andb $0x1, %al
addq $0xf8, %rsp
retq
movq 0x80(%rsp), %rdi
callq 0x5720
nopw %cs:(%rax,%rax)
nop