// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::renameHis()
void Molecule::renameHis(){
  Residue* res;
  Atom* atm;

  std::map<std::string, bool> hisNames;

  hisNames.insert(std::pair<std::string,bool>("HSD",true));
  hisNames.insert(std::pair<std::string,bool>("HSE",true));
  hisNames.insert(std::pair<std::string,bool>("HSP",true));
  hisNames.insert(std::pair<std::string,bool>("HID",true));
  hisNames.insert(std::pair<std::string,bool>("HIE",true));

  for (unsigned int i=0; i< this->getResVecSize(); i++){
    res=this->getResidue(i);
    if (hisNames.find(res->getResName()) != hisNames.end()){
      for (unsigned int j=0; j< res->getAtmVecSize(); j++){
        atm=res->getAtom(j);
        atm->setResName("HIS");
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, 0x38(%rsp)
leaq 0x50(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x153ff(%rip), %rsi     # 0x3b4d9
leaq 0x153fb(%rip), %rdx     # 0x3b4dc
leaq 0x8(%rsp), %rdi
callq 0x6512
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x2997c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2611a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x153af(%rip), %rsi     # 0x3b4dd
leaq 0x153ab(%rip), %rdx     # 0x3b4e0
callq 0x6512
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x2997c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26169
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x15364(%rip), %rsi     # 0x3b4e1
leaq 0x15360(%rip), %rdx     # 0x3b4e4
callq 0x6512
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x2997c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x261b8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1536b(%rip), %rsi     # 0x3b537
leaq 0x15367(%rip), %rdx     # 0x3b53a
callq 0x6512
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x2997c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26207
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x15320(%rip), %rsi     # 0x3b53b
leaq 0x1531c(%rip), %rdx     # 0x3b53e
callq 0x6512
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x2997c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26256
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x26378
xorl %esi, %esi
leaq 0x8(%rsp), %r14
leaq 0x34(%rsp), %r12
leaq 0x155d5(%rip), %r13     # 0x3b85d
leaq 0x155d1(%rip), %rbp     # 0x3b860
sarq $0x3, %rcx
cmpq %rsi, %rcx
movq %rsi, 0x40(%rsp)
jbe 0x262a3
movq (%rax,%rsi,8), %r15
jmp 0x262a6
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f50a
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x29b46
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x262dd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x50(%rsp), %rax
cmpq %rax, %rbx
je 0x2634e
xorl %ebx, %ebx
movl %ebx, 0x34(%rsp)
movq %r15, %rdi
callq 0x2f5c2
cmpl %eax, %ebx
jae 0x2634e
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f4ec
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x6512
movq %rbx, %rdi
movq %r14, %rsi
callq 0x14de8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26346
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movl 0x34(%rsp), %ebx
incl %ebx
jmp 0x262e9
movq 0x40(%rsp), %rsi
incq %rsi
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
movl %edx, %edx
cmpq %rdx, %rsi
jb 0x2628f
leaq 0x48(%rsp), %rdi
callq 0x282c8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x263ab
jmp 0x263cc
jmp 0x263ab
jmp 0x263cc
jmp 0x263ab
jmp 0x263cc
jmp 0x263ab
jmp 0x263cc
jmp 0x263ab
jmp 0x263cc
jmp 0x263cc
jmp 0x263ab
jmp 0x263cc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x263cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x263cf
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x282c8
movq %rbx, %rdi
callq 0x4550
nop