LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::renameRes(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Molecule::renameRes(const std::vector<std::string> &search, const std::string &replace){
  for (unsigned int i=0; i< search.size(); i++){
    this->renameRes(search.at(i), replace);
  }
  for (unsigned int i=0; i< this->getAtmVecSize(); i++){
    Atom *atm=this->getAtom(i);
    if (std::find(search.begin(), search.end(), atm->getResName()) != search.end()){
      atm->setResName(replace);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x24af3
movl $0x1, %ebx
xorl %esi, %esi
shlq $0x5, %rsi
addq %rax, %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x24a0a
movl %ebx, %esi
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %ebx
cmpq %rsi, %rcx
ja 0x24aca
movq %r12, (%rsp)
movq 0x38(%r15), %rax
movq 0x40(%r15), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x24b6c
xorl %ebx, %ebx
sarq $0x3, %rcx
cmpq %rbx, %rcx
jbe 0x24b1e
movq (%rax,%rbx,8), %r12
jmp 0x24b21
xorl %r12d, %r12d
movq (%r14), %r13
movq 0x8(%r14), %rbp
movq %r12, %rdi
callq 0x14916
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x2836d
cmpq 0x8(%r14), %rax
je 0x24b50
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x14de8
incq %rbx
movq 0x38(%r15), %rax
movq 0x40(%r15), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
movl %edx, %edx
cmpq %rdx, %rbx
jb 0x24b0f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::readTopology(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void Molecule::readTopology(const std::string& topin, bool verboseFlag){
  this->toppar.readTopology(topin);
  this->setAtmType(verboseFlag);
  this->setMass(verboseFlag);
  this->setCharge(verboseFlag);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
addq $0xb0, %rdi
callq 0x2d0c8
movq %r14, %rdi
movl %ebx, %esi
callq 0x24bb6
movq %r14, %rdi
movl %ebx, %esi
callq 0x24e54
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x25092
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::getAtomTypes[abi:cxx11]()
std::vector<std::string> Molecule::getAtomTypes(){
  std::vector<std::string> atomTypes;

  for (unsigned int i=0; i< this->getAtmVecSize(); i++){
    atomTypes.push_back(this->getAtom(i)->getAtmType());
  }

  std::sort(atomTypes.begin(), atomTypes.end());
  std::vector<std::string>::iterator it=std::unique(atomTypes.begin(), atomTypes.end());
  atomTypes.resize(std::distance(atomTypes.begin(),it));

  return atomTypes;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x38(%rsi), %rax
movq 0x40(%rsi), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
je 0x254ee
movq %rsi, %r14
xorl %r15d, %r15d
movq (%rax,%r15,8), %rdi
callq 0x14900
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ec
incq %r15
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movl %ecx, %ecx
cmpq %rcx, %r15
jb 0x25483
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x254f1
movq %r15, %rax
subq %r14, %rax
sarq $0x5, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x287d8
movq %r14, %rdi
movq %r15, %rsi
callq 0x288ac
movq (%rbx), %r14
jmp 0x254f1
xorl %r14d, %r14d
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x1ff1a
subq (%rbx), %rax
sarq $0x5, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1fc0e
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2551c
jmp 0x2551c
movq %rax, %r14
movq %rbx, %rdi
callq 0x6412
movq %r14, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::storeSel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Molecule::storeSel(std::string key){
  std::vector<bool> selFlags;
  Chain *chn;
  Residue *res;
  Atom *atm;

  for (unsigned int i=0; i< this->getChnVecSize(); i++){
    chn=this->getChain(i);
    for (unsigned int j=0; j< chn->getResVecSize(); j++){
      res=chn->getResidue(j);
      for (unsigned int k=0; k< res->getAtmVecSize(); k++){
        atm=res->getAtom(k);
        selFlags.push_back(atm->getSel());
      }
    }
  }

  storedSel[key]=selFlags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x40(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movl %eax, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq 0x8(%rdi), %rax
movq %rdi, 0x10(%rsp)
movq 0x10(%rdi), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x257a3
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
leaq 0x18(%rsp), %r13
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x25715
movq (%rax,%r15,8), %rbp
jmp 0x25717
xorl %ebp, %ebp
xorl %ebx, %ebx
movl %ebx, 0xc(%rsp)
movq %rbp, %rdi
callq 0x204e0
cmpl %eax, %ebx
jae 0x2577e
movq %rbp, %rdi
leaq 0xc(%rsp), %rsi
callq 0x20486
movq %rax, %rbx
xorl %r14d, %r14d
movl %r14d, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2f5c2
cmpl %eax, %r14d
jae 0x25776
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2f4ec
movq %rax, %rdi
callq 0x1496e
movzbl (%rax), %esi
movq %r13, %rdi
callq 0x2706e
movl 0x8(%rsp), %r14d
incl %r14d
jmp 0x2573c
movl 0xc(%rsp), %ebx
incl %ebx
jmp 0x25719
incq %r15
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
movl %edx, %edx
cmpq %rdx, %r15
jb 0x25706
movq 0x10(%rsp), %rdi
addq $0x58, %rdi
movq 0x40(%rsp), %rsi
callq 0x270bc
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x27138
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x257da
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x42e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x257ed
jmp 0x257ed
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x25807
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x42e0
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::recallSel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Molecule::recallSel(std::string key){
  Chain *chn;
  Residue *res;
  Atom *atm;
  unsigned int n;
  std::vector<bool>* storedSelVal;

  n=0;
  storedSelVal=&storedSel[key];
  
  for (unsigned int i=0; i< this->getChnVecSize(); i++){
    chn=this->getChain(i);
    for (unsigned int j=0; j< chn->getResVecSize(); j++){
      res=chn->getResidue(j);
      for (unsigned int k=0; k< res->getAtmVecSize(); k++){
        atm=res->getAtom(k);
        atm->setSel(storedSelVal->at(n));
        n++;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
addq $0x58, %rdi
callq 0x270bc
movq %rax, %r14
movq 0x8(%rbx), %rax
movq %rbx, 0x8(%rsp)
movq 0x10(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
je 0x2590f
xorl %edx, %edx
movq %rsp, %r12
xorl %r15d, %r15d
movq %rdx, 0x10(%rsp)
movq (%rax,%rdx,8), %r13
movl $0x0, 0x4(%rsp)
movq %r13, %rdi
callq 0x204e0
testl %eax, %eax
je 0x258e8
movq %r13, %rdi
leaq 0x4(%rsp), %rsi
callq 0x20486
movq %rax, %rbp
movl $0x0, (%rsp)
movq %rax, %rdi
callq 0x2f5c2
testl %eax, %eax
je 0x258d2
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2f4ec
movq %rax, %rbx
movl %r15d, %esi
movq %r14, %rdi
callq 0x271f2
xorl %esi, %esi
testq %rdx, (%rax)
setne %sil
movq %rbx, %rdi
callq 0x14f3e
incl %r15d
movl (%rsp), %ebx
incl %ebx
movl %ebx, (%rsp)
movq %rbp, %rdi
callq 0x2f5c2
cmpl %eax, %ebx
jb 0x25891
movl 0x4(%rsp), %ebx
incl %ebx
movl %ebx, 0x4(%rsp)
movq %r13, %rdi
callq 0x204e0
cmpl %eax, %ebx
jb 0x2586e
movq 0x10(%rsp), %rdx
incq %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movl %ecx, %ecx
cmpq %rcx, %rdx
jb 0x25851
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::zeroCoor()
void Molecule::zeroCoor(){
  Chain *chn;
  Residue *res;
  Atom *atm;
  Coor coor;

  coor=Coor(0.0, 0.0, 0.0);

  for (unsigned int i=0; i< this->getChnVecSize(); i++){
    chn=this->getChain(i);
    for (unsigned int j=0; j< chn->getResVecSize(); j++){
      res=chn->getResidue(j);
      for (unsigned int k=0; k< res->getAtmVecSize(); k++){
        atm=res->getAtom(k);
        atm->setCoor(coor);
      }
    }
  }
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x39fd4
leaq 0x18(%rsp), %r15
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
movq %r15, %rdi
callq 0x39fe4
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a006
movq 0x8(%rbx), %rax
movq %rbx, 0x8(%rsp)
movq 0x10(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
je 0x25a4e
xorl %edx, %edx
leaq 0x18(%rsp), %r14
leaq 0x4(%rsp), %r15
leaq 0x30(%rsp), %r12
movq %rdx, 0x10(%rsp)
movq (%rax,%rdx,8), %r13
movl $0x0, 0x18(%rsp)
movq %r13, %rdi
callq 0x204e0
testl %eax, %eax
je 0x25a27
movq %r13, %rdi
movq %r14, %rsi
callq 0x20486
movq %rax, %rbp
movl $0x0, 0x4(%rsp)
movq %rax, %rdi
callq 0x2f5c2
testl %eax, %eax
je 0x25a11
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2f4ec
movq %rax, %rdi
movq %r12, %rsi
callq 0x14edc
movl 0x4(%rsp), %ebx
incl %ebx
movl %ebx, 0x4(%rsp)
movq %rbp, %rdi
callq 0x2f5c2
cmpl %eax, %ebx
jb 0x259e5
movl 0x18(%rsp), %ebp
incl %ebp
movl %ebp, 0x18(%rsp)
movq %r13, %rdi
callq 0x204e0
cmpl %eax, %ebp
jb 0x259c3
movq 0x10(%rsp), %rdx
incq %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movl %ecx, %ecx
cmpq %rcx, %rdx
jb 0x259a6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::assignAtmInx()
void Molecule::assignAtmInx(){
  unsigned int natom;

  natom=0;

  for (unsigned int i=0; i< this->getAtmVecSize(); i++){
    this->getAtom(i)->setAtmInx(natom);
    natom++;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x0, 0xc(%rsp)
movq 0x38(%rdi), %rax
movq 0x40(%rdi), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
je 0x26b0a
movq %rdi, %rbx
xorl %r15d, %r15d
leaq 0xc(%rsp), %r14
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x14f7a
incl 0xc(%rsp)
incq %r15
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movl %ecx, %ecx
cmpq %rcx, %r15
jb 0x26ae1
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Molecule.cpp
// Function: Molecule::~Molecule()
Molecule::~Molecule (){
  Chain *c;
  Residue *r;
  Atom *a;

  for (unsigned int i=0; i< this->getChnVecSize(); i++){
    c=this->getChain(i);
    for (unsigned int j=0; j< c->getResVecSize(); j++){
      r=c->getResidue(j);
      if (this->getCopyFlag() == false){
        //Only destruct atoms if molecule is NOT a copy
        for (unsigned int k=0; k< r->getAtmVecSize(); k++){
          a=r->getAtom(k);
          delete a;
        }
      }
      delete r;
    }
    delete c;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x3c91a6(%rip), %rax    # 0x3efd30
movq %rax, (%rdi)
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x26cc4
xorl %esi, %esi
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
sarq $0x3, %rcx
cmpq %rsi, %rcx
movq %rsi, 0x10(%rsp)
jbe 0x26bc7
movq (%rax,%rsi,8), %r12
jmp 0x26bca
xorl %r12d, %r12d
xorl %ebp, %ebp
movl %ebp, 0xc(%rsp)
movq %r12, %rdi
callq 0x204e0
cmpl %eax, %ebp
jae 0x26c65
movq %r12, %rdi
movq %r14, %rsi
callq 0x20486
movq %rax, %r13
cmpb $0x0, 0x50(%rbx)
je 0x26c23
testq %r13, %r13
je 0x26c0e
movq (%r13), %rdi
testq %rdi, %rdi
je 0x26c0e
movq 0x10(%r13), %rsi
subq %rdi, %rsi
callq 0x42e0
movl $0x18, %esi
movq %r13, %rdi
callq 0x42e0
movl 0xc(%rsp), %ebp
incl %ebp
jmp 0x26bcc
xorl %ebp, %ebp
movl %ebp, 0x8(%rsp)
movq %r13, %rdi
callq 0x2f5c2
cmpl %eax, %ebp
jae 0x26bf4
movq %r13, %rdi
movq %r15, %rsi
callq 0x2f4ec
movq %rax, %rbp
testq %rax, %rax
je 0x26c50
movq %rbp, %rdi
callq 0x26db2
movl $0x238, %esi            # imm = 0x238
movq %rbp, %rdi
callq 0x42e0
movl 0x8(%rsp), %ebp
incl %ebp
jmp 0x26c25
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x26c7c
movq 0x28(%r12), %rsi
subq %rdi, %rsi
callq 0x42e0
movq (%r12), %rdi
testq %rdi, %rdi
je 0x26c92
movq 0x10(%r12), %rsi
subq %rdi, %rsi
callq 0x42e0
movl $0x30, %esi
movq %r12, %rdi
callq 0x42e0
movq 0x10(%rsp), %rsi
incq %rsi
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
movl %edx, %edx
cmpq %rdx, %rsi
jb 0x26bb3
movq 0x180(%rbx), %rdi
leaq 0x190(%rbx), %rax
cmpq %rax, %rdi
je 0x26ce2
movq (%rax), %rsi
incq %rsi
callq 0x42e0
movq 0x160(%rbx), %rdi
leaq 0x170(%rbx), %rax
cmpq %rax, %rdi
je 0x26d00
movq (%rax), %rsi
incq %rsi
callq 0x42e0
leaq 0xb0(%rbx), %r14
leaq 0x140(%rbx), %rdi
callq 0x6412
leaq 0x110(%rbx), %rdi
callq 0x272fc
leaq 0xe0(%rbx), %rdi
callq 0x273a6
movq %r14, %rdi
callq 0x273a6
movq 0x88(%rbx), %rdi
leaq 0x98(%rbx), %rax
cmpq %rax, %rdi
je 0x26d51
movq (%rax), %rsi
incq %rsi
callq 0x42e0
leaq 0x58(%rbx), %rdi
callq 0x27270
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x26d6f
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x42e0
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x26d84
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x42e0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x26d99
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x42e0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26daa
movq %rax, %rdi
callq 0x6470
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/PDB.cpp
// Function: PDB::formatCHARMMResId(Atom*, Residue*, Residue*)
int PDB::formatCHARMMResId(Atom* atmEntry, Residue* lastRes, Residue* nextRes){
  if (atmEntry->getResName().compare("ACE") == 0 && nextRes != NULL){
    return nextRes->getResId();
  }
  else if ((atmEntry->getResName().compare("AHE") == 0 || atmEntry->getResName().compare("NME") == 0) && lastRes != NULL){
    return lastRes->getResId();
  }
  else{
    return atmEntry->getResId();
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x14916
leaq 0xfcbd(%rip), %rsi      # 0x3c54d
movq %rax, %rdi
callq 0x40e0
testq %r15, %r15
je 0x2c8a6
testl %eax, %eax
jne 0x2c8a6
movq %r15, %rdi
jmp 0x2c8e4
movq %rbx, %rdi
callq 0x14916
leaq 0xfc90(%rip), %rsi      # 0x3c545
movq %rax, %rdi
callq 0x40e0
testl %eax, %eax
je 0x2c8ee
movq %rbx, %rdi
callq 0x14916
leaq 0xfc79(%rip), %rsi      # 0x3c549
movq %rax, %rdi
callq 0x40e0
testq %r14, %r14
je 0x2c8f3
testl %eax, %eax
jne 0x2c8f3
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2f4dc
testq %r14, %r14
jne 0x2c8e1
movq %rbx, %rdi
callq 0x14936
movl (%rax), %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Prmtop.cpp
// Function: Prmtop::getAtmType(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>> const&, bool)
std::string Prmtop::getAtmType(const std::string& resnamein, const std::string& atmnamein, bool verboseFlag){
  if (atmtype.find(std::make_pair(resnamein, atmnamein)) != atmtype.end()){
    return  atmtype[std::make_pair(resnamein, atmnamein)];
  }
  else{
    if (verboseFlag == true){
      std::cerr << "Warning: Could not a find an atom type for atom " << resnamein;
      std::cerr << " " << atmnamein << " and was set to \"DUMB\"" << std::endl;
    }
    return "DUMB";
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, 0x4(%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x60(%rsi), %r12
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x2e77c
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2eff4
movq %rax, %rbp
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2df5d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
addq $0x68, %r13
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2df7c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
cmpq %r13, %rbp
je 0x2dff9
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e77c
movq %r12, %rdi
movq %r13, %rsi
callq 0x2e580
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x647c
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2dfd4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e0ac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x2e0ac
cmpb $0x0, 0x4(%rsp)
je 0x2e08f
movq 0x3c1fe5(%rip), %r12    # 0x3efff0
leaq 0xe764(%rip), %rsi      # 0x3c776
movl $0x30, %edx
movq %r12, %rdi
callq 0x4340
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x4340
leaq 0xe64b(%rip), %rsi      # 0x3c680
movl $0x1, %edx
movq %r12, %rdi
callq 0x4340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x4340
movq %rax, %r14
leaq 0xe74c(%rip), %rsi      # 0x3c7a7
movl $0x16, %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 0xe721(%rip), %rsi      # 0x3c7be
leaq 0xe71e(%rip), %rdx      # 0x3c7c2
movq %rbx, %rdi
callq 0x6512
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e0c0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21590
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Prmtop.cpp
// Function: Prmtop::getMass(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>> const&, bool)
double Prmtop::getMass(const std::string& resnamein, const std::string& atmnamein, bool verboseFlag){
  if (mass.find(std::make_pair(resnamein, atmnamein)) != mass.end()){
    return  mass[std::make_pair(resnamein, atmnamein)];
  }
  else{
    if (verboseFlag == true){
      std::cerr << "Warning: Could not a find mass for atom " << resnamein;
      std::cerr << " " << atmnamein << " and was set to 1.0" << std::endl;
    }
    return 1.0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x2e77c
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f23e
movq %rax, %r12
movl %ebp, (%rsp)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e128
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x8(%r15), %r13
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x2e147
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
cmpq %r13, %r12
je 0x2e1b9
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2e77c
movq %r15, %rdi
movq %r12, %rsi
callq 0x2e61c
movsd (%rax), %xmm0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movsd %xmm0, (%rsp)
je 0x2e194
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
movsd (%rsp), %xmm0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e25e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movsd (%rsp), %xmm0
jmp 0x2e25e
movsd 0xd28f(%rip), %xmm0     # 0x3b450
cmpb $0x0, (%rsp)
je 0x2e25e
movq 0x3c1e1e(%rip), %r15    # 0x3efff0
leaq 0xe5ea(%rip), %rsi      # 0x3c7c3
movl $0x28, %edx
movq %r15, %rdi
callq 0x4340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4340
leaq 0xe484(%rip), %rsi      # 0x3c680
movl $0x1, %edx
movq %r15, %rdi
callq 0x4340
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r15, %rdi
callq 0x4340
movq %rax, %rbx
leaq 0xe5ca(%rip), %rsi      # 0x3c7ec
movl $0x13, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movsd 0xd1f2(%rip), %xmm0     # 0x3b450
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e26f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21590
movq %rbx, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Prmtop.cpp
// Function: Prmtop::getCharge(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>> const&, bool)
double Prmtop::getCharge(const std::string& resnamein, const std::string& atmnamein, bool verboseFlag){
  if (charge.find(std::make_pair(resnamein, atmnamein)) != charge.end()){
    return charge[std::make_pair(resnamein, atmnamein)];
  }
  else{
    if (verboseFlag == true){
      std::cerr << "Warning: Could not find a charge for atom " << resnamein;
      std::cerr << " " << atmnamein << " and was set to 0.0." << std::endl;
    }
    return 0.0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0x30(%rdi), %r15
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x2e77c
movq %r15, %rdi
movq %r13, %rsi
callq 0x2f23e
movq %rax, %r13
movl %ebp, (%rsp)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e2da
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
addq $0x38, %r12
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x2e2f9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
cmpq %r12, %r13
je 0x2e36b
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2e77c
movq %r15, %rdi
movq %r12, %rsi
callq 0x2e61c
movsd (%rax), %xmm0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movsd %xmm0, (%rsp)
je 0x2e346
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42e0
movsd (%rsp), %xmm0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e406
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movsd (%rsp), %xmm0
jmp 0x2e406
xorps %xmm0, %xmm0
cmpb $0x0, (%rsp)
je 0x2e406
movq 0x3c1c71(%rip), %r15    # 0x3efff0
leaq 0xe47a(%rip), %rsi      # 0x3c800
movl $0x2a, %edx
movq %r15, %rdi
callq 0x4340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4340
leaq 0xe2d7(%rip), %rsi      # 0x3c680
movl $0x1, %edx
movq %r15, %rdi
callq 0x4340
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r15, %rdi
callq 0x4340
movq %rax, %rbx
leaq 0xe45c(%rip), %rsi      # 0x3c82b
movl $0x14, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
xorps %xmm0, %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e417
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21590
movq %rbx, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Residue.cpp
// Function: Residue::getAtom(unsigned int const&)
Atom* Residue::getAtom (const unsigned int &element){
  if (element >= atmVec.size()){
    return NULL;
  }
  else{
    return atmVec.at(element);
  }
}

// Assembly:
movl (%rsi), %eax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rax, %rdx
jbe 0x2f506
movq (%rcx,%rax,8), %rax
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r14
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x5f8d(%rip), %rsi      # 0x3c3d0
movl $0xa, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x44e0
leaq 0x20(%rsp), %rdi
movl $0x1, %ecx
movq %r14, %rsi
movq %rax, %rdx
callq 0x4300
movq %rsp, %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x4370
movq (%r12), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x36492
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x6778(%rip), %rsi      # 0x3cc11
movq %r15, %rdi
callq 0x40e0
testl %eax, %eax
je 0x364cd
movq %rsp, %rdi
movq %r15, %rsi
callq 0x4050
testl %eax, %eax
jne 0x364c9
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r14, %rdx
callq 0x2836d
cmpq 0x8(%rbx), %rax
je 0x364f5
xorl %ebx, %ebx
jmp 0x364f7
leaq 0x6223(%rip), %rsi      # 0x3c6f7
movq %rsp, %rdi
callq 0x40e0
testl %eax, %eax
je 0x364a5
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r14, %rdx
callq 0x2836d
cmpq 0x8(%rbx), %rax
jne 0x364a5
movb $0x1, %bl
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3650d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x36523
jmp 0x36523
jmp 0x36523
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3653c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movq %rbx, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::Trajectory()
Trajectory::Trajectory (){
  swab=false;
  mol=NULL;
  show=false;
  scan=false;
  iframe=0;
  hdrSize=0;
  frameSize=0;
  lastFrame=0;
  lastPos=0;
  hdr.clear();
  nframe=0;
  npriv=0;
  nsavc=0;
  nstep=0;
  qvelocity=false;
  dof=0;
  nfixed=0;
  tstep=0.0;
  qcrystal=false;
  q4d=false;
  qcharge=false;
  qcheck=false;
  version=0;
  title.clear();
  natom=0;
  fixinx.clear();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %r14d, %r14d
movq %r14, 0x8(%rdi)
movb %r14b, 0x10(%rdi)
leaq 0x68(%rdi), %rax
movq %rax, 0x58(%rdi)
addq $0xb0, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movq %r14, 0xc0(%rbx)
leaq 0x188(%rbx), %rax
movups %xmm0, 0xd0(%rbx)
movups %xmm0, 0xe0(%rbx)
movups %xmm0, 0xf0(%rbx)
movups %xmm0, 0x130(%rbx)
movups %xmm0, 0x140(%rbx)
movups %xmm0, 0x150(%rbx)
movups %xmm0, 0x160(%rbx)
movq %r14, 0x170(%rbx)
movq %rax, 0x178(%rbx)
movq %r14, 0x180(%rbx)
movb %r14b, 0x188(%rbx)
movb %r14b, 0x20(%rbx)
movq %r14, 0x28(%rbx)
movw $0x0, 0x30(%rbx)
movq %r14, 0x60(%rbx)
movb %r14b, 0x68(%rbx)
movups %xmm0, 0x34(%rbx)
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x78(%rbx)
movl %r14d, 0x88(%rbx)
movups %xmm0, 0x90(%rbx)
movups %xmm0, 0xa0(%rbx)
xorl %esi, %esi
callq 0x127e2
movl %r14d, 0xc8(%rbx)
movq 0xd0(%rbx), %rax
cmpq %rax, 0xd8(%rbx)
je 0x37401
movq %rax, 0xd8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::setDefaultHeader()
void Trajectory::setDefaultHeader(){
  this->setFormat("CHARMM");
  this->setHdr("CORD");
  this->setNFrame(0);
  this->setNPriv(1);
  this->setNSavc(1);
  this->setNStep(1);
  this->setQVelocity(false);
  this->setDOF(0);
  this->setNFixed(0);
  this->setTStep(1.0);
  this->setQCrystal(false);
  this->setQ4D(false);
  this->setQCharge(false);
  this->setQCheck(false);
  this->setVersion(0);
  title.clear();
  this->setNAtom(0);
  fixinx.clear();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x5155(%rip), %rsi      # 0x3c57a
leaq 0x5154(%rip), %rdx      # 0x3c580
movq %rsp, %rdi
callq 0x6512
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4180
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37455
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x5b36(%rip), %rsi      # 0x3cf98
leaq 0x5b33(%rip), %rdx      # 0x3cf9c
callq 0x6512
leaq 0x58(%rbx), %rdi
movq %rsp, %rsi
callq 0x4180
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37490
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movaps 0x5ad9(%rip), %xmm0     # 0x3cf70
movups %xmm0, 0x78(%rbx)
xorl %ebp, %ebp
movl %ebp, 0x88(%rbx)
movq $0x0, 0x90(%rbx)
movl $0x41a3a347, 0x98(%rbx) # imm = 0x41A3A347
leaq 0xb0(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x9c(%rbx)
movl %ebp, 0xac(%rbx)
movq 0xb0(%rbx), %rsi
callq 0x127e2
movl %ebp, 0xc8(%rbx)
movq 0xd0(%rbx), %rax
cmpq %rax, 0xd8(%rbx)
je 0x374f8
movq %rax, 0xd8(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x37505
jmp 0x37520
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37523
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x37523
movq %rax, %rbx
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::findFormat(std::basic_ifstream<char, std::char_traits<char>>&)
bool Trajectory::findFormat(std::ifstream &trjin){
  binbuf *buffer;
  int length;

  buffer=NULL;

  trjin.seekg(0, std::ios::beg);

  buffer=readFortran(trjin, buffer, length);

  hdr.assign(buffer[0].c,4);

  if (length == 84 && hdr.compare("CORD") == 0){
    format="CHARMM";
    swab=false;
  }

  if (buffer != NULL){
    delete buffer;
  }

  trjin.seekg(0, std::ios::beg);

  clearHeader();

  if (format.length() > 0){
    return true;
  }
  else{
    return false;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x43e0
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x399d6
movq %rax, %r15
leaq 0x58(%rbx), %r12
movq 0x60(%rbx), %rdx
movl $0x4, %r8d
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x4470
cmpl $0x54, (%r13)
jne 0x37689
leaq 0x593a(%rip), %rsi      # 0x3cf98
movq %r12, %rdi
callq 0x40e0
testl %eax, %eax
jne 0x37689
movq 0x8(%rbx), %rdx
leaq 0x4f05(%rip), %rcx      # 0x3c57a
movl $0x6, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4470
movb $0x0, 0x20(%rbx)
testq %r15, %r15
je 0x3769b
movl $0x4, %esi
movq %r15, %rdi
callq 0x42e0
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x43e0
movq %rbx, %rdi
callq 0x376c6
cmpq $0x0, 0x8(%rbx)
setne %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::clearHeader()
void Trajectory::clearHeader(){
  hdr.clear();
  nframe=0;
  npriv=0;
  nsavc=0;
  nstep=0;
  qvelocity=0;
  dof=0;
  nfixed=0;
  tstep=0.0;
  qcrystal=0;
  q4d=0;
  qcharge=0;
  qcheck=0;
  version=0;
  title.clear();
  natom=0;
  fixinx.clear();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, 0x60(%rdi)
movq 0x58(%rdi), %rax
movb $0x0, (%rax)
addq $0xb0, %rdi
xorl %ebp, %ebp
movl %ebp, 0x88(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x90(%rbx)
movups %xmm0, 0xa0(%rbx)
movq 0xb0(%rbx), %rsi
callq 0x127e2
movl %ebp, 0xc8(%rbx)
movq 0xd0(%rbx), %rax
cmpq %rax, 0xd8(%rbx)
je 0x37728
movq %rax, 0xd8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::cloneHeader(Trajectory*)
void Trajectory::cloneHeader(Trajectory *ftrjin){
  format=ftrjin->getFormat();
  hdr=ftrjin->getHdr();
  nframe=ftrjin->getNFrame();
  npriv=ftrjin->getNPriv();
  nsavc=ftrjin->getNSavc();
  nstep=ftrjin->getNStep();
  qvelocity=ftrjin->getQVelocity();

  dof=ftrjin->getDOF();
  nfixed=ftrjin->getNFixed();
  tstep=ftrjin->getTStepAKMA();
  qcrystal=ftrjin->getQCrystal();
  q4d=ftrjin->getQ4D();
  qcharge=ftrjin->getQCharge();
  qcheck=ftrjin->getQCheck();

  version=ftrjin->getVersion();

  title=ftrjin->getTitle();
  natom=ftrjin->getNAtom();
  for (unsigned int i=0; i< ftrjin->getFixInxVecSize(); i++){
    fixinx.push_back(ftrjin->getFixInx(i));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x647c
movq %r14, %rdi
movq %r15, %rsi
callq 0x4370
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x38631
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movq %rsp, %r15
movq %r12, (%r15)
movq 0x58(%rbx), %rsi
movq 0x60(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x647c
leaq 0x58(%r14), %rdi
movq %r15, %rsi
callq 0x4370
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x3866b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movups 0x78(%rbx), %xmm0
movups %xmm0, 0x78(%r14)
movl 0x88(%rbx), %eax
movl %eax, 0x88(%r14)
movq 0x90(%rbx), %rax
movq %rax, 0x90(%r14)
movss 0x98(%rbx), %xmm0
movss %xmm0, 0x98(%r14)
movups 0x9c(%rbx), %xmm0
movups %xmm0, 0x9c(%r14)
movl 0xac(%rbx), %eax
movl %eax, 0xac(%r14)
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x38808
movq 0xc0(%r14), %rax
movaps (%r15), %xmm0
movq 0x10(%r15), %rcx
movq %rcx, 0xc0(%r14)
movups 0xb0(%r14), %xmm1
movups %xmm0, 0xb0(%r14)
movq %rsp, %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
callq 0x6412
movq %r15, %rdi
callq 0x6412
movl 0xc8(%rbx), %eax
movl %eax, 0xc8(%r14)
movq 0xd0(%rbx), %rax
movq 0xd8(%rbx), %rdx
subq %rax, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
je 0x387a7
leaq 0xd0(%r14), %r15
xorl %ebp, %ebp
movq %rsp, %r12
movslq %ebp, %rsi
sarq $0x2, %rdx
cmpq %rsi, %rdx
jbe 0x387b4
movl (%rax,%rsi,4), %ecx
movl %ecx, (%rsp)
movq 0xd8(%r14), %rsi
cmpq 0xe0(%r14), %rsi
je 0x3877e
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xd8(%r14)
jmp 0x38790
movq %r15, %rdi
movq %r12, %rdx
callq 0x39dea
movq 0xd0(%rbx), %rax
incl %ebp
movq 0xd8(%rbx), %rdx
subq %rax, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
cmpl %ecx, %ebp
jb 0x3874d
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b6e(%rip), %rdi      # 0x3b329
xorl %eax, %eax
callq 0x4440
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::getTitle[abi:cxx11]()
std::vector<std::string> Trajectory::getTitle(){
  for (unsigned int i=0; i< title.size(); i++){
    if (title[i].find("*") != 0){
      title[i].insert(0,"*");
    }
    title[i].resize(80, ' ');
  }
  return title;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xb0(%rsi), %r14
movq 0xb0(%rsi), %rdi
cmpq %rdi, 0xb8(%rsi)
je 0x388aa
movq %rsi, %r15
movl $0x1, %ebp
xorl %r13d, %r13d
leaq 0x4840(%rip), %r12      # 0x3d07f
shlq $0x5, %r13
addq %r13, %rdi
movl $0x1, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x4520
testq %rax, %rax
je 0x38872
movq (%r14), %rdi
addq %r13, %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
movq %r12, %rcx
callq 0x4320
addq 0xb0(%r15), %r13
movl $0x50, %esi
movq %r13, %rdi
movl $0x20, %edx
callq 0x40f0
movl %ebp, %r13d
movq 0xb0(%r15), %rdi
movq 0xb8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %ebp
cmpq %r13, %rax
ja 0x3883f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x27488
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::setTitle(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&)
void Trajectory::setTitle(const std::vector<std::string> &titlein){
  title=titlein;
  if (title.size() == 1){
    title.resize(2);
  }
  for (unsigned int i=0; i< title.size(); i++){
    if (title[i].find("*") != 0){
      title[i].insert(0,"*");
    }
    title[i].resize(80, ' ');
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0xb0(%rdi), %r14
movq %r14, %rdi
callq 0x27a9e
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
movq %rax, %rcx
subq %rdi, %rcx
cmpq $0x20, %rcx
jne 0x39731
movl $0x2, %esi
movq %r14, %rdi
callq 0x1fc0e
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
cmpq %rdi, %rax
je 0x397b0
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x393a(%rip), %r15      # 0x3d07f
shlq $0x5, %r12
addq %r12, %rdi
movl $0x1, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x4520
testq %rax, %rax
je 0x39778
movq (%r14), %rdi
addq %r12, %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x4320
addq 0xb0(%rbx), %r12
movl $0x50, %esi
movq %r12, %rdi
movl $0x20, %edx
callq 0x40f0
movl %ebp, %r12d
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %ebp
cmpq %r12, %rax
ja 0x39745
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::setTitle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int const&)
void Trajectory::setTitle(const std::string &titlein, const unsigned int &element){
  if (title.size() < element){
    title.resize(element);
  }
  title[element]=titlein;
  if (title.size() == 1){
    title.resize(2);
  }
  for (unsigned int i=0; i< title.size(); i++){
    if (title[i].find("*") != 0){
      title[i].insert(0,"*");
    }
    title[i].resize(80, ' ');
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xb0(%rdi), %r14
movq 0xb0(%rdi), %rax
movq 0xb8(%rdi), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movl (%rdx), %esi
cmpq %rsi, %rcx
jae 0x397fd
movq %rdx, %r12
movq %r14, %rdi
callq 0x1fc0e
movl (%r12), %esi
movq (%r14), %rax
shlq $0x5, %rsi
addq %rax, %rsi
movq %rsi, %rdi
movq %r15, %rsi
callq 0x4180
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
movq %rax, %rcx
subq %rdi, %rcx
cmpq $0x20, %rcx
jne 0x39844
movl $0x2, %esi
movq %r14, %rdi
callq 0x1fc0e
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
cmpq %rdi, %rax
je 0x398c3
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x3827(%rip), %r15      # 0x3d07f
shlq $0x5, %r12
addq %r12, %rdi
movl $0x1, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x4520
testq %rax, %rax
je 0x3988b
movq (%r14), %rdi
addq %r12, %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x4320
addq 0xb0(%rbx), %r12
movl $0x50, %esi
movq %r12, %rdi
movl $0x20, %edx
callq 0x40f0
movl %ebp, %r12d
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %ebp
cmpq %r12, %rax
ja 0x39858
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::addTitle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Trajectory::addTitle(const std::string &titlein){
  title.push_back(titlein);
  for (unsigned int i=0; i< title.size(); i++){
    if (title[i].find("*") != 0){
      title[i].insert(0,"*");
    }
    title[i].resize(80, ' ');
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0xb0(%rdi), %r14
movq %r14, %rdi
callq 0x62ec
movq 0xb0(%rbx), %rdi
cmpq %rdi, 0xb8(%rbx)
je 0x39984
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x3766(%rip), %r15      # 0x3d07f
shlq $0x5, %r12
addq %r12, %rdi
movl $0x1, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x4520
testq %rax, %rax
je 0x3994c
movq (%r14), %rdi
addq %r12, %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x4320
addq 0xb0(%rbx), %r12
movl $0x50, %esi
movq %r12, %rdi
movl $0x20, %edx
callq 0x40f0
movl %ebp, %r12d
movq 0xb0(%rbx), %rdi
movq 0xb8(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %ebp
cmpq %r12, %rax
ja 0x39919
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/Trajectory.cpp
// Function: Trajectory::binbuf* Trajectory::readFortran<Trajectory::binbuf>(std::basic_ifstream<char, std::char_traits<char>>&, Trajectory::binbuf*, int&)
BinBuf* Trajectory::readFortran(std::ifstream &trjin, BinBuf *buffer, int &length){
  int recStart;
  int recEnd;
  BinBuf *binOut;

  binOut=NULL;

  //Read Fortran record lengths and buffer
  trjin.read(reinterpret_cast<char*>(&recStart), sizeof(int));
  binOut = new BinBuf [recStart];
  trjin.read(reinterpret_cast<char*>(binOut), recStart);
  trjin.read(reinterpret_cast<char*>(&recEnd), sizeof(int));

  //Check Fortran record length mismatch
  if (recStart == recEnd){
    length=recStart;
  }
  else{
    std::cerr << "Error: Fortran record length marker mismatch" << std::endl;
    std::exit(0);
  }

  return binOut;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rsi, %r15
leaq 0xc(%rsp), %r14
movl $0x4, %edx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x4390
movslq (%r14), %r13
leaq (,%r13,4), %rax
testq %r13, %r13
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x4030
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x4390
leaq 0x8(%rsp), %r13
movl $0x4, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x4390
movl (%r14), %eax
cmpl (%r13), %eax
jne 0x39a5e
movl %eax, (%rbx)
movq %r12, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x3b658b(%rip), %rdi    # 0x3efff0
leaq 0x3531(%rip), %rsi      # 0x3cf9d
callq 0x42b0
movq %rax, %rdi
callq 0x4150
xorl %edi, %edi
callq 0x4360
// File: /workspace/github_cpp_makefile_star2_O3/klmr[P]multifunction/./multicast.hpp
// Function: util::multifunction<void (int)>::remove(util::multifunction<void (int)>::handle)
void remove(handle handle) {
        auto i = handle_lookup[handle.id];

        if (i == NIL) return;

        // Adjust handle_lookup positions which have shifted.
        for (auto& handle_index : handle_lookup) {
            if (handle_index > i and handle_index != NIL) {
                --handle_index;
            }
        }

        listeners.erase(listeners.begin() + i);
        handle_lookup[handle.id] = NIL;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq 0x18(%rdi), %rax
movq (%rax,%r14,8), %rsi
cmpq $-0x1, %rsi
je 0x203b
movq %rdi, %rbx
movq 0x20(%rdi), %rcx
cmpq %rcx, %rax
je 0x2020
movq (%rax), %rdx
cmpq %rsi, %rdx
setbe %dil
cmpq $-0x1, %rdx
sete %r8b
orb %dil, %r8b
jne 0x201a
decq %rdx
movq %rdx, (%rax)
addq $0x8, %rax
jmp 0x1ff8
shlq $0x5, %rsi
addq (%rbx), %rsi
movq %rbx, %rdi
callq 0x2044
movq 0x18(%rbx), %rax
movq $-0x1, (%rax,%r14,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/suyunu[P]Discrete-Event-Simulation/Main.cc
// Function: main
int main(int argc, char *argv[]){
	srand(time(0));
	
	RandQueuing rndQue(argv[1]);
	MinQueuing minQue(argv[1]);
	
	rndQue.simulate();
	minQue.simulate();
	
	rndQue.print(argv[2]);
	minQue.print(argv[3]);
	
	return (0-0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
xorl %edi, %edi
callq 0x2140
movl %eax, %edi
callq 0x2160
movq 0x8(%rbx), %rsi
leaq -0x90(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x20b0
leaq -0x110(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x2a00
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2535
callq 0x2150
movq 0x8(%rbx), %rsi
leaq -0x70(%rbp), %rdi
leaq -0x9(%rbp), %rdx
callq 0x20b0
leaq -0xd0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3cfc
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2568
callq 0x2150
leaq -0x110(%rbp), %rdi
callq 0x2f1c
leaq -0xd0(%rbp), %rdi
callq 0x4218
movq 0x10(%rbx), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x9(%rbp), %rdx
callq 0x20b0
leaq -0x110(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x32e4
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25b3
callq 0x2150
movq 0x18(%rbx), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x9(%rbp), %rdx
callq 0x20b0
leaq -0xd0(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x4612
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25e6
callq 0x2150
leaq -0xd0(%rbp), %rdi
callq 0x413a
leaq -0x110(%rbp), %rdi
callq 0x2e3e
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x20(%rbp), %rax
jmp 0x261c
jmp 0x2666
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2669
callq 0x2150
jmp 0x2669
jmp 0x2666
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2675
callq 0x2150
jmp 0x2675
movq %rax, %rbx
jmp 0x2675
movq %rax, %rbx
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2681
callq 0x2150
jmp 0x2681
movq %rax, %rbx
jmp 0x2681
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x413a
leaq -0x110(%rbp), %rdi
callq 0x2e3e
movq %rbx, %rdi
callq 0x2250
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/suyunu[P]Discrete-Event-Simulation/RandQueuing.cpp
// Function: RandQueuing::work(Job&, int)
bool RandQueuing::work(Job& myJob, int k){
	myJob.cond = k;
	if(!units[k].isWorking){
		units[k].Jcounter++;
		units[k].isWorking = true;
		myJob.timeToGo += units[k].procTime;
		
		order.push_back(myJob);
		push_heap (order.begin(),order.end(),greater1());
	}
	else{
		units[k].jobQ.push(myJob);
		if(units[k].jobQ.size() > units[k].maxQ){
			units[k].maxQ = units[k].jobQ.size();
		}
	}
	jobs[myJob.no] = myJob;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %edx, 0x18(%rsi)
movq 0x20(%rdi), %rax
movslq %edx, %rcx
imulq $0x70, %rcx, %r14
leaq (%rax,%r14), %rdi
cmpb $0x0, 0x6c(%rax,%r14)
je 0x3253
addq $0x10, %rdi
callq 0x3678
movq 0x20(%rbx), %rax
leaq (%rax,%r14), %rdi
addq $0x10, %rdi
callq 0x36a8
movq 0x20(%rbx), %rax
leaq (%rax,%r14), %rdi
addq $0x10, %rdi
callq 0x36a8
incl 0x64(%rdi)
movb $0x1, 0x6c(%rax,%r14)
movsd 0x8(%rax,%r14), %xmm0
addsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x10(%rsi)
leaq 0x28(%rbx), %rdi
callq 0x354e
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rsi
callq 0x35c9
nop
// File: /workspace/github_cpp_makefile_star2_O3/suyunu[P]Discrete-Event-Simulation/RandQueuing.cpp
// Function: RandQueuing::whereToGoRand(Job&)
int RandQueuing::whereToGoRand(Job& myJob){
	if(units[myJob.cond].edges > 0){
		int rnd = rand() % units[myJob.cond].edges;
		list<int>::iterator it = adj[myJob.cond].begin();
		for(int i = 0 ; i < rnd ; i++, it++);
		return *it;
	}
	else
		return -1;
}

// Assembly:
movq 0x20(%rdi), %rax
movslq 0x18(%rsi), %rcx
imulq $0x70, %rcx, %rcx
cmpl $0x0, 0x68(%rax,%rcx)
jle 0x32de
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2070
movq 0x20(%rbx), %rcx
movslq 0x18(%r14), %rsi
imulq $0x70, %rsi, %rdi
cltd
idivl 0x68(%rcx,%rdi)
leaq (%rsi,%rsi,2), %rax
shlq $0x3, %rax
addq 0x10(%rbx), %rax
xorl %ecx, %ecx
testl %edx, %edx
cmovgl %edx, %ecx
incl %ecx
movq (%rax), %rax
decl %ecx
jne 0x32cf
movl 0x10(%rax), %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq