// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x14a8e
leaq 0xfcd3(%rip), %rsi      # 0x3c53b
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2c9fa
movq %r14, %rdi
callq 0x14a8e
leaq 0xfcb0(%rip), %rsi      # 0x3c537
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2ca14
movq %r14, %rdi
callq 0x14a8e
leaq 0xfc99(%rip), %rsi      # 0x3c53f
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2ca2e
movq %r14, %rdi
callq 0x14a8e
leaq 0x10ca0(%rip), %rsi     # 0x3d565
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2ca48
movq %r14, %rdi
callq 0x14a8e
leaq 0x10c85(%rip), %rsi     # 0x3d569
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2ca62
movq %r14, %rdi
callq 0x14a8e
leaq 0x10c3e(%rip), %rsi     # 0x3d541
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2ca7c
movq %r14, %rdi
callq 0x14a8e
leaq 0x1163d(%rip), %rsi     # 0x3df5f
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2c964
movq %r14, %rdi
callq 0x14a8e
leaq 0x10c34(%rip), %rsi     # 0x3d571
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2c964
movq %r14, %rdi
callq 0x14a8e
leaq 0x10c1d(%rip), %rsi     # 0x3d575
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
jne 0x2c9d4
movq 0x3c4685(%rip), %r15    # 0x3f0ff0
leaq 0x10bd3(%rip), %rsi     # 0x3d545
movl $0x9, %edx
movq %r15, %rdi
callq 0x4340
movq %r14, %rdi
callq 0x14aee
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4340
movq %rax, %r15
leaq 0x10bd9(%rip), %rsi     # 0x3d579
movl $0x27, %edx
movq %rax, %rdi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %r14, %rdi
callq 0x14a8e
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x6486
jmp 0x2cb09
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xfad5(%rip), %rsi      # 0x3c4dd
leaq 0xfad1(%rip), %rdx      # 0x3c4e0
jmp 0x2cb01
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xfab7(%rip), %rsi      # 0x3c4d9
leaq 0xfab3(%rip), %rdx      # 0x3c4dc
jmp 0x2cb01
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xfaa5(%rip), %rsi      # 0x3c4e1
leaq 0xfaa1(%rip), %rdx      # 0x3c4e4
jmp 0x2cb01
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x10cb2(%rip), %rsi     # 0x3d708
leaq 0x10cae(%rip), %rdx     # 0x3d70b
jmp 0x2cb01
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x10c9c(%rip), %rsi     # 0x3d70c
leaq 0x10c98(%rip), %rdx     # 0x3d70f
jmp 0x2cb01
movq 0x3c456d(%rip), %r15    # 0x3f0ff0
leaq 0x10abb(%rip), %rsi     # 0x3d545
movl $0x9, %edx
movq %r15, %rdi
callq 0x4340
movq %r14, %rdi
callq 0x14aee
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4340
movq %rax, %r14
leaq 0x10a97(%rip), %rsi     # 0x3d54f
movl $0x15, %edx
movq %rax, %rdi
callq 0x4340
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xfd13(%rip), %rsi      # 0x3c80d
leaq 0xfd0f(%rip), %rdx      # 0x3c810
movq %rbx, %rdi
callq 0x6516
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq