// File: /workspace/github_cpp_makefile_star2_O2/atfrank[P]PCASA/lib/PDB.cpp
// Function: PDB::formatCHARMMResName[abi:cxx11](Atom*)
std::string PDB::formatCHARMMResName (Atom* atmEntry){
  if (atmEntry->getResName().compare("HIE") == 0){
    return "HSE";
  }
  else if (atmEntry->getResName().compare("HID") == 0){
    return "HSD";
  }
  else if (atmEntry->getResName().compare("HIP") == 0){
    return "HSP";
  }
  else if (atmEntry->getResName().compare("AHE") == 0){
    return "CT2";
  }
  else if (atmEntry->getResName().compare("NME") == 0){
    return "CT3";
  }
  else if (atmEntry->getResName().compare("CYX") == 0){
    std::cerr << "Warning: " << atmEntry->getSummary() << " has a disulfide bond" << std::endl;
    return "CYS";
  }
  else if (atmEntry->getResName().compare("FOR") == 0 || atmEntry->getResName().compare("CSO") == 0 || atmEntry->getResName().compare("CME") == 0 ){
    std::cerr << "Warning: " << atmEntry->getSummary() << " has no matching residue name in CHARMM" << std::endl;
    return atmEntry->getResName();
  }
  else{
    return atmEntry->getResName();
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xea0c
leaq 0xbfaf(%rip), %rsi      # 0x2d51b
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x216c0
movq %r14, %rdi
callq 0xea0c
leaq 0xbf8c(%rip), %rsi      # 0x2d517
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x216d1
movq %r14, %rdi
callq 0xea0c
leaq 0xbf75(%rip), %rsi      # 0x2d51f
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x216df
movq %r14, %rdi
callq 0xea0c
leaq 0xcf04(%rip), %rsi      # 0x2e4cd
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x216ed
movq %r14, %rdi
callq 0xea0c
leaq 0xcee9(%rip), %rsi      # 0x2e4d1
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x216fb
movq %r14, %rdi
callq 0xea0c
leaq 0xcea2(%rip), %rsi      # 0x2e4a9
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x21709
movq %r14, %rdi
callq 0xea0c
leaq 0xd85d(%rip), %rsi      # 0x2ee83
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x21668
movq %r14, %rdi
callq 0xea0c
leaq 0xce98(%rip), %rsi      # 0x2e4d9
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
je 0x21668
movq %r14, %rdi
callq 0xea0c
leaq 0xce81(%rip), %rsi      # 0x2e4dd
movq %rax, %rdi
callq 0x4100
testl %eax, %eax
jne 0x216a8
movq 0x3c3981(%rip), %rdi    # 0x3e4ff0
leaq 0xce37(%rip), %rsi      # 0x2e4ad
callq 0x4300
movq %rax, %r15
movq %r14, %rdi
callq 0xea6c
movq %r15, %rdi
movq %rax, %rsi
callq 0x42c0
leaq 0xce49(%rip), %rsi      # 0x2e4e1
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
movq %r14, %rdi
callq 0xea0c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4430
jmp 0x2175d
leaq 0xbdf6(%rip), %rsi      # 0x2d4bd
leaq 0xf(%rsp), %rdx
jmp 0x21755
leaq 0xbde1(%rip), %rsi      # 0x2d4b9
leaq 0xe(%rsp), %rdx
jmp 0x21755
leaq 0xbddb(%rip), %rsi      # 0x2d4c1
leaq 0xd(%rsp), %rdx
jmp 0x21755
leaq 0xcf38(%rip), %rsi      # 0x2e62c
leaq 0xc(%rsp), %rdx
jmp 0x21755
leaq 0xcf2e(%rip), %rsi      # 0x2e630
leaq 0xb(%rsp), %rdx
jmp 0x21755
movq 0x3c38e0(%rip), %rdi    # 0x3e4ff0
leaq 0xcd96(%rip), %rsi      # 0x2e4ad
callq 0x4300
movq %rax, %r15
movq %r14, %rdi
callq 0xea6c
movq %r15, %rdi
movq %rax, %rsi
callq 0x42c0
leaq 0xcd7e(%rip), %rsi      # 0x2e4b7
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
leaq 0xc09d(%rip), %rsi      # 0x2d7ed
leaq 0xa(%rsp), %rdx
movq %rbx, %rdi
callq 0x58d8
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq