// File: /workspace/github_cpp_makefile_star2_O1/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 0x1618d(%rip), %rsi     # 0x3c4d9
leaq 0x16189(%rip), %rdx     # 0x3c4dc
leaq 0x8(%rsp), %rdi
callq 0x6516
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x29bf8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2638c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1613d(%rip), %rsi     # 0x3c4dd
leaq 0x16139(%rip), %rdx     # 0x3c4e0
callq 0x6516
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x29bf8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x263db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x160f2(%rip), %rsi     # 0x3c4e1
leaq 0x160ee(%rip), %rdx     # 0x3c4e4
callq 0x6516
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x29bf8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2642a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x160f9(%rip), %rsi     # 0x3c537
leaq 0x160f5(%rip), %rdx     # 0x3c53a
callq 0x6516
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x29bf8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26479
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x160ae(%rip), %rsi     # 0x3c53b
leaq 0x160aa(%rip), %rdx     # 0x3c53e
callq 0x6516
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
leaq 0x48(%rsp), %rdi
callq 0x29bf8
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x264c8
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 0x265ea
xorl %esi, %esi
leaq 0x8(%rsp), %r14
leaq 0x34(%rsp), %r12
leaq 0x16363(%rip), %r13     # 0x3c85d
leaq 0x1635f(%rip), %rbp     # 0x3c860
sarq $0x3, %rcx
cmpq %rsi, %rcx
movq %rsi, 0x40(%rsp)
jbe 0x26515
movq (%rax,%rsi,8), %r15
jmp 0x26518
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f7cc
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x29dc2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2654f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x50(%rsp), %rax
cmpq %rax, %rbx
je 0x265c0
xorl %ebx, %ebx
movl %ebx, 0x34(%rsp)
movq %r15, %rdi
callq 0x2f884
cmpl %eax, %ebx
jae 0x265c0
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f7ae
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x6516
movq %rbx, %rdi
movq %r14, %rsi
callq 0x14f5a
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x265b8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movl 0x34(%rsp), %ebx
incl %ebx
jmp 0x2655b
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 0x26501
leaq 0x48(%rsp), %rdi
callq 0x28510
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2661d
jmp 0x2663e
jmp 0x2661d
jmp 0x2663e
jmp 0x2661d
jmp 0x2663e
jmp 0x2661d
jmp 0x2663e
jmp 0x2661d
jmp 0x2663e
jmp 0x2663e
jmp 0x2661d
jmp 0x2663e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26641
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x26641
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x28510
movq %rbx, %rdi
callq 0x4550
nop