LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: ContextSymbol::saveXml(std::ostream&) const
void ContextSymbol::saveXml(ostream &s) const

{
  s << "<context_sym";
  SleighSymbol::saveXmlHeader(s);
  s << " varnode=\"0x" << hex << vn->getId() << "\"";
  s << " low=\"" << dec << low << "\"";
  s << " high=\"" << high << "\"";
  a_v_b(s,"flow",flow);
  s << ">\n";
  patval->saveXml(s);
  s << "</context_sym>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x17521(%rip), %rsi     # 0x88275
movq %rbx, %rdi
callq 0x4f5b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x50b40
leaq 0x17514(%rip), %rsi     # 0x88282
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x38(%r14), %rcx
movl 0x28(%rcx), %esi
movq %rax, %rdi
callq 0x4e990
leaq 0x1781b(%rip), %r15     # 0x885bc
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x174dc(%rip), %rsi     # 0x8828f
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x40(%r14), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x174a8(%rip), %rsi     # 0x88296
movq %rbx, %rdi
callq 0x4f5b0
movl 0x44(%r14), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x1748a(%rip), %rsi     # 0x8829e
leaq 0x10(%rsp), %r15
leaq 0xf(%rsp), %rdx
movq %r15, %rdi
callq 0x515e0
movzbl 0x48(%r14), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4da10
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x17957(%rip), %rsi     # 0x8879e
movq %rbx, %rdi
callq 0x4f5b0
movq 0x30(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x17440(%rip), %rsi     # 0x882a3
movq %rbx, %rdi
callq 0x4f5b0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4e020
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::checkTableFill()
void VarnodeListSymbol::checkTableFill(void)

{
  intb min = patval->minValue();
  intb max = patval->maxValue();
  tableisfilled = (min>=0)&&(max<varnode_table.size());
  for(uint4 i=0;i<varnode_table.size();++i) {
    if (varnode_table[i] == (VarnodeSymbol *)0)
      tableisfilled = false;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq %rax, %r14
movq 0x30(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
testq %r14, %r14
js 0x71194
movq 0x38(%rbx), %rcx
movq 0x40(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rdx, %rax
setb %al
jmp 0x711a5
movq 0x38(%rbx), %rcx
movq 0x40(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
xorl %eax, %eax
movb %al, 0x50(%rbx)
xorl %eax, %eax
movl %eax, %eax
cmpq %rax, %rdx
jbe 0x711c0
cmpq $0x0, (%rcx,%rax,8)
jne 0x711bc
movb $0x0, 0x50(%rbx)
incl %eax
jmp 0x711aa
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::resolve(ParserWalker&)
Constructor *VarnodeListSymbol::resolve(ParserWalker &walker)

{
  if (!tableisfilled) {
    intb ind = patval->getValue(walker);
    if ((ind<0)||(ind>=varnode_table.size())||(varnode_table[ind]==(VarnodeSymbol *)0)) {
      ostringstream s;
      s << walker.getAddr().getShortcut();
      walker.getAddr().printRaw(s);
      s << ": No corresponding entry in varnode list";
      throw BadDataError(s.str());
    }
  }
  return (Constructor *)0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
cmpb $0x0, 0x50(%rdi)
jne 0x71209
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testq %rax, %rax
js 0x71217
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rdx, %rax
jae 0x71217
cmpq $0x0, (%rcx,%rax,8)
je 0x71217
xorl %eax, %eax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x504a0
movq 0x8(%rbx), %rax
testq %rax, %rax
jne 0x71230
movq (%rbx), %rax
movq 0x50(%rax), %rax
movsbl 0x30(%rax), %esi
movq %r14, %rdi
callq 0x4fc10
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
jne 0x7124c
movq (%rbx), %rdi
addq $0x50, %rdi
leaq 0x28(%rsp), %rsi
callq 0x4f5a0
leaq 0x17071(%rip), %rsi     # 0x882d2
leaq 0x28(%rsp), %rdi
callq 0x4f5b0
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %rbx
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x50fb0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3d8b2(%rip), %rsi     # 0xaeb50
movq 0x3d993(%rip), %rdx     # 0xaec38
movq %rbx, %rdi
callq 0x51630
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x712c4
jmp 0x712d1
movq %rax, %r14
movq %rbx, %rdi
callq 0x4ea60
jmp 0x712d1
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x4d7c0
movq %r14, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::getSize() const
int4 VarnodeListSymbol::getSize(void) const

{
  for(int4 i=0;i<varnode_table.size();++i) {
    VarnodeSymbol *vnsym = varnode_table[i]; // Assume all are same size
    if (vnsym != (VarnodeSymbol *)0)
      return vnsym->getSize();
  }
  throw SleighError("No register attached to: "+getName());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movq 0x38(%rdi), %rax
movq 0x40(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x71363
movq (%rax,%rdx,8), %rdi
incq %rdx
testq %rdi, %rdi
je 0x71344
movq (%rdi), %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmpq *0x48(%rax)
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %rbx
addq $0x8, %r14
leaq 0x16f82(%rip), %rsi     # 0x882fb
movq %rsp, %rdi
movq %r14, %rdx
callq 0x4f1c0
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3daed(%rip), %rsi     # 0xaee88
movq 0x3d896(%rip), %rdx     # 0xaec38
movq %rbx, %rdi
callq 0x51630
movq %rax, %r14
movq %rsp, %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x713bf
jmp 0x713c7
movq %rax, %r14
movq %rbx, %rdi
callq 0x4ea60
movq %r14, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::print(std::ostream&, ParserWalker&) const
void VarnodeListSymbol::print(ostream &s,ParserWalker &walker) const

{
  uint4 ind = (uint4)patval->getValue(walker);
  if (ind >= varnode_table.size())
    throw SleighError("Value out of range for varnode table");
  s << varnode_table[ind]->getName();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rdi
movq (%rdi), %rax
movq %rdx, %rsi
callq *0x10(%rax)
movl %eax, %eax
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rdx, %rax
jae 0x71419
movq (%rcx,%rax,8), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4f1b0
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %rbx
leaq 0x16eea(%rip), %rsi     # 0x88315
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3da35(%rip), %rsi     # 0xaee88
movq 0x3d7de(%rip), %rdx     # 0xaec38
movq %rbx, %rdi
callq 0x51630
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x71479
jmp 0x71481
movq %rax, %r14
movq %rbx, %rdi
callq 0x4ea60
movq %r14, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::saveXml(std::ostream&) const
void VarnodeListSymbol::saveXml(ostream &s) const

{
  s << "<varlist_sym";
  SleighSymbol::saveXmlHeader(s);
  s << ">\n";
  patval->saveXml(s);
  for(int4 i=0;i<varnode_table.size();++i) {
    if (varnode_table[i] == (VarnodeSymbol *)0)
      s << "<null/>\n";
    else
      s << "<var id=\"0x" << hex << varnode_table[i]->getId() << "\"/>\n";
  }
  s << "</varlist_sym>\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x16e98(%rip), %rsi     # 0x8833a
movq %rbx, %rdi
callq 0x4f5b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x50b40
leaq 0x172e2(%rip), %rsi     # 0x8879e
movq %rbx, %rdi
callq 0x4f5b0
movq 0x30(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
xorl %ebp, %ebp
leaq 0x15e96(%rip), %r15     # 0x87370
leaq 0x16e66(%rip), %r12     # 0x88347
leaq 0x1630c(%rip), %r13     # 0x877f4
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
jbe 0x7154e
cmpq $0x0, (%rax,%rbp,8)
je 0x7153e
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x38(%r14), %rcx
movq (%rcx,%rbp,8), %rcx
movl 0x28(%rcx), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
movq %r13, %rsi
jmp 0x71544
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4f5b0
incq %rbp
jmp 0x714e8
leaq 0x16dfe(%rip), %rsi     # 0x88353
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4f5b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::restoreXml(Element const*, SleighBase*)
void VarnodeListSymbol::restoreXml(const Element *el,SleighBase *trans)

{
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  patval = (PatternValue *) PatternExpression::restoreExpression(*iter,trans);
  patval->layClaim();
  ++iter;
  while(iter!=list.end()) {
    const Element *subel = *iter;
    if (subel->getName() == "var") {
      uintm id;
      istringstream s(subel->getAttributeValue("id"));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> id;
      varnode_table.push_back( (VarnodeSymbol *)trans->findSymbol(id) );
    }
    else
      varnode_table.push_back( (VarnodeSymbol *)0 );
    ++iter;
  }
  checkTableFill();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r15
movq %rdi, %rbx
movq 0x78(%rsi), %r13
movq (%r13), %rdi
movq %rdx, 0x10(%rsp)
movq %rdx, %rsi
callq 0x4f580
movq %rax, 0x30(%rbx)
incl 0x8(%rax)
movq %rbx, 0x8(%rsp)
leaq 0x38(%rbx), %r12
addq $0x8, %r13
leaq 0x18(%rsp), %rbx
leaq 0x38(%rsp), %rbp
cmpq 0x80(%r15), %r13
je 0x716ac
movq (%r13), %r14
movq %r14, %rdi
leaq 0x16d6a(%rip), %rsi     # 0x88375
callq 0x520f0
testb %al, %al
je 0x71692
movq %rbx, %rdi
leaq 0x156d2(%rip), %rsi     # 0x86cf0
leaq 0x3(%rsp), %rdx
callq 0x515e0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x50230
movq %rbp, %rdi
movq %rax, %rsi
pushq $0x8
popq %rdx
callq 0x51500
movq %rbx, %rdi
callq 0x4e020
movq 0x38(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
movq %rbp, %rdi
leaq 0x4(%rsp), %rsi
callq 0x51830
movl 0x4(%rsp), %eax
movq 0x10(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x18(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x51710
movq %rbp, %rdi
callq 0x4e070
jmp 0x716a3
andq $0x0, 0x38(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x51710
addq $0x8, %r13
jmp 0x715f0
movq 0x8(%rsp), %rdi
callq 0x51450
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x716cf
movq %rax, %rbx
jmp 0x716eb
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x4e070
jmp 0x716eb
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4e020
movq %rbx, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::OperandSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, Constructor*)
OperandSymbol::OperandSymbol(const string &nm,int4 index,Constructor *ct)
  : SpecificSymbol(nm)
{
  flags = 0;
  hand = index;
  localexp = new OperandValue(index,ct);
  localexp->layClaim();
  defexp = (PatternExpression *)0;
  triple = (TripleSymbol *)0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %rbx
callq 0x51300
movq 0x3d3bc(%rip), %rax     # 0xaeac8
addq $0x10, %rax
movq %rax, (%rbx)
andl $0x0, 0x58(%rbx)
movl %ebp, 0x3c(%rbx)
pushq $0x18
popq %rdi
callq 0x4f5d0
movq 0x3d707(%rip), %rcx     # 0xaee30
addq $0x10, %rcx
movq %rcx, (%rax)
movl %ebp, 0xc(%rax)
movq %r14, 0x10(%rax)
movq %rax, 0x40(%rbx)
movl $0x1, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x50a30
movq %r14, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::defineOperand(PatternExpression*)
void OperandSymbol::defineOperand(PatternExpression *pe)

{
  if ((defexp != (PatternExpression *)0)||(triple!=(TripleSymbol *)0))
    throw SleighError("Redefining operand");
  defexp = pe;
  defexp->layClaim();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq 0x48(%rdi), %rax
orq 0x50(%rdi), %rax
jne 0x71784
movq %rsi, 0x50(%rdi)
incl 0x8(%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %rbx
leaq 0x16be3(%rip), %rsi     # 0x88379
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3d6ca(%rip), %rsi     # 0xaee88
movq 0x3d473(%rip), %rdx     # 0xaec38
movq %rbx, %rdi
callq 0x51630
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x717e4
jmp 0x717ec
movq %rax, %r14
movq %rbx, %rdi
callq 0x4ea60
movq %r14, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::getVarnode() const
VarnodeTpl *OperandSymbol::getVarnode(void) const

{
  VarnodeTpl *res;
  if (defexp != (PatternExpression *)0)
    res = new VarnodeTpl(hand,true); // Definite constant handle
  else {
    SpecificSymbol *specsym = dynamic_cast<SpecificSymbol *>(triple);
    if (specsym != (SpecificSymbol *)0)
      res = specsym->getVarnode();
    else if ((triple != (TripleSymbol *)0)&&
	     ((triple->getType() == valuemap_symbol)||(triple->getType() == name_symbol)))
      res = new VarnodeTpl(hand,true); // Zero-size symbols
    else
      res = new VarnodeTpl(hand,false); // Possible dynamic handle
  }
  return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpq $0x0, 0x50(%rdi)
je 0x71905
pushq $0x68
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movl 0x3c(%r14), %esi
pushq $0x1
popq %rdx
movq %rax, %rdi
callq 0x4d330
jmp 0x7198d
movq 0x48(%r14), %rbx
testq %rbx, %rbx
je 0x71974
movq 0x3d5d3(%rip), %rsi     # 0xaeee8
movq 0x3d444(%rip), %rdx     # 0xaed60
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x7193b
movq (%rax), %rcx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x60(%rcx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
cmpl $0x4, %eax
je 0x71958
movq 0x48(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
cmpl $0x5, %eax
jne 0x71974
pushq $0x68
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movl 0x3c(%r14), %esi
pushq $0x1
popq %rdx
movq %rax, %rdi
callq 0x4d330
jmp 0x7198d
pushq $0x68
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movl 0x3c(%r14), %esi
movq %rax, %rdi
xorl %edx, %edx
callq 0x4d330
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x7199c
jmp 0x7199c
movq %rax, %r14
pushq $0x68
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movq %r14, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::print(std::ostream&, ParserWalker&) const
void OperandSymbol::print(ostream &s,ParserWalker &walker) const

{
  walker.pushOperand(getIndex());
  if (triple != (TripleSymbol *)0) {
    if (triple->getType() == SleighSymbol::subtable_symbol)
      walker.getConstructor()->print(s,walker);
    else
      triple->print(s,walker);
  }
  else {
    intb val = defexp->getValue(walker);
    if (val >= 0)
      s << "0x" << hex << val;
    else
      s << "-0x" << hex << -val;
  }
  walker.popOperand();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x3c(%rdi), %esi
movq %rdx, %rdi
callq 0x4d570
movq 0x48(%r15), %rdi
testq %rdi, %rdi
je 0x71a35
movq (%rdi), %rax
callq *0x10(%rax)
cmpl $0xb, %eax
jne 0x71a70
movq 0x10(%rbx), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4d050
jmp 0x71ab4
movq 0x50(%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x10(%rax)
movq %rax, %r15
testq %rax, %rax
js 0x71a82
leaq 0x16633(%rip), %rsi     # 0x88084
movq %r14, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
jmp 0x71aa9
movq 0x48(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x71ab4
leaq 0x1669e(%rip), %rsi     # 0x88127
movq %r14, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
negq %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f440
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::print(std::ostream&, ParserWalker&) const
void Constructor::print(ostream &s,ParserWalker &walker) const

{
  vector<string>::const_iterator piter;

  for(piter=printpiece.begin();piter!=printpiece.end();++piter) {
    if ((*piter)[0] == '\n') {
      int4 index = (*piter)[1]-'A';
      operands[index]->print(s,walker);
    }
    else
      s << *piter;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %r12
cmpq 0x38(%r15), %r12
je 0x71b1e
movq (%r12), %rax
cmpb $0xa, (%rax)
jne 0x71b0d
movsbq 0x1(%rax), %rax
movq 0x18(%r15), %rcx
movq -0x208(%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x71b18
movq %r14, %rdi
movq %r12, %rsi
callq 0x4f1b0
addq $0x20, %r12
jmp 0x71adf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::saveXml(std::ostream&) const
void OperandSymbol::saveXml(ostream &s) const

{
  s << "<operand_sym";
  SleighSymbol::saveXmlHeader(s);
  if (triple != (TripleSymbol *)0)
    s << " subsym=\"0x" << hex << triple->getId() << "\"";
  s << " off=\"" << dec << reloffset << "\"";
  s << " base=\"" << offsetbase << "\"";
  s << " minlen=\"" << minimumlength << "\"";
  if (isCodeAddress())
    s << " code=\"true\"";
  s << " index=\"" << dec << hand << "\">\n";
  localexp->saveXml(s);
  if (defexp != (PatternExpression *)0)
    defexp->saveXml(s);
  s << "</operand_sym>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1683c(%rip), %rsi     # 0x8838c
movq %rbx, %rdi
callq 0x4f5b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x50b40
cmpq $0x0, 0x48(%r14)
je 0x71bac
leaq 0x16828(%rip), %rsi     # 0x88399
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x48(%r14), %rcx
movl 0x28(%rcx), %esi
movq %rax, %rdi
callq 0x4e990
leaq 0x16a18(%rip), %rsi     # 0x885bc
movq %rax, %rdi
callq 0x4f5b0
leaq 0x167f2(%rip), %rsi     # 0x883a5
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x4e990
leaq 0x169d9(%rip), %r15     # 0x885bc
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x167b7(%rip), %rsi     # 0x883ac
movq %rbx, %rdi
callq 0x4f5b0
movl 0x34(%r14), %esi
movq %rax, %rdi
callq 0x51690
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x16799(%rip), %rsi     # 0x883b4
movq %rbx, %rdi
callq 0x4f5b0
movl 0x38(%r14), %esi
movq %rax, %rdi
callq 0x51690
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
testb $0x1, 0x58(%r14)
je 0x71c50
leaq 0x16776(%rip), %rsi     # 0x883be
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x15c6c(%rip), %rsi     # 0x878c3
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x3c(%r14), %esi
movq %rax, %rdi
callq 0x51690
leaq 0x16152(%rip), %rsi     # 0x87dd9
movq %rax, %rdi
callq 0x4f5b0
movq 0x40(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
movq 0x50(%r14), %rdi
testq %rdi, %rdi
je 0x71cae
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x16716(%rip), %rsi     # 0x883cb
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4f5b0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: StartSymbol::getVarnode() const
VarnodeTpl *StartSymbol::getVarnode(void) const

{ // Returns current instruction offset as a constant
  ConstTpl spc(const_space);
  ConstTpl off(ConstTpl::j_start);
  ConstTpl sz_zero;
  return new VarnodeTpl(spc,off,sz_zero);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0x30(%rdi), %rsi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x4ef60
leaq 0x28(%rsp), %r15
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0x4f4c0
leaq 0x8(%rsp), %r12
andl $0x0, (%r12)
andq $0x0, 0x10(%r12)
pushq $0x68
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x51230
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
pushq $0x68
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movq %r14, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::~Constructor()
Constructor::~Constructor(void)

{
  if (pattern != (TokenPattern *)0)
    delete pattern;
  if (pateq != (PatternEquation *)0)
    PatternEquation::release(pateq);
  if (templ != (ConstructTpl *)0)
    delete templ;
  for(int4 i=0;i<namedtempl.size();++i) {
    ConstructTpl *ntpl = namedtempl[i];
    if (ntpl != (ConstructTpl *)0)
      delete ntpl;
  }
  vector<ContextChange *>::iterator iter;
  for(iter=context.begin();iter!=context.end();++iter)
    delete *iter;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x72831
movq %r14, %rdi
callq 0x4e060
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x4f670
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7283f
callq 0x4eaf0
movq 0x60(%rbx), %r14
testq %r14, %r14
je 0x7285b
movq %r14, %rdi
callq 0x50d60
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x4f670
leaq 0x68(%rbx), %r14
xorl %r13d, %r13d
pushq $0x28
popq %r15
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x7289b
movq (%rax,%r13,8), %r12
testq %r12, %r12
je 0x72896
movq %r12, %rdi
callq 0x50d60
movq %r12, %rdi
movq %r15, %rsi
callq 0x4f670
incq %r13
jmp 0x72866
leaq 0x48(%rbx), %r15
movq 0x48(%rbx), %r12
cmpq 0x50(%rbx), %r12
je 0x728be
movq (%r12), %rdi
testq %rdi, %rdi
je 0x728b8
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r12
jmp 0x728a3
movq %r14, %rdi
callq 0x4fa80
movq %r15, %rdi
callq 0x4d770
leaq 0x30(%rbx), %rdi
callq 0x4ea80
addq $0x18, %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x513f0
movq %rax, %rdi
callq 0x55fd2
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::addOperand(OperandSymbol*)
void Constructor::addOperand(OperandSymbol *sym)

{
  string operstring = "\n ";	// Indicater character for operand
  operstring[1] = ('A'+operands.size()); // Encode index of operand
  operands.push_back(sym);
  printpiece.push_back(operstring); // Placeholder for operand's string
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %rsi, (%r14)
leaq 0x14bf7(%rip), %rsi     # 0x8751c
leaq 0x8(%rsp), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
callq 0x515e0
leaq 0x18(%rbx), %rdi
movl 0x20(%rbx), %eax
subl 0x18(%rbx), %eax
shrl $0x3, %eax
addb $0x41, %al
movq (%r15), %rcx
movb %al, 0x1(%rcx)
movq %r14, %rsi
callq 0x509f0
addq $0x30, %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4e310
leaq 0x8(%rsp), %rdi
callq 0x4e020
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4e020
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::setNamedSection(ConstructTpl*, int)
void Constructor::setNamedSection(ConstructTpl *tpl,int4 id)

{				// Add a named section to the constructor
  while(namedtempl.size() <= id)
    namedtempl.push_back((ConstructTpl *)0);
  namedtempl[id] = tpl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x68(%rdi), %r15
movslq %edx, %r13
leaq 0x8(%rsp), %r12
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0x72b04
andq $0x0, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x4e4f0
jmp 0x72add
movq %rbx, (%rax,%r13,8)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printMnemonic(std::ostream&, ParserWalker&) const
void Constructor::printMnemonic(ostream &s,ParserWalker &walker) const

{
  if (flowthruindex != -1) {
    SubtableSymbol *sym = dynamic_cast<SubtableSymbol *>(operands[flowthruindex]->getDefiningSymbol());
    if (sym != (SubtableSymbol *)0) {
      walker.pushOperand(flowthruindex);
      walker.getConstructor()->printMnemonic(s,walker);
      walker.popOperand();
      return;
    }
  }
  int4 endind = (firstwhitespace==-1) ? printpiece.size() : firstwhitespace;
  for(int4 i=0;i<endind;++i) {
    if (printpiece[i][0] == '\n') {
      int4 index = printpiece[i][1]-'A';
      operands[index]->print(s,walker);
    }
    else
      s << printpiece[i];
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x8c(%rdi), %r12
cmpq $-0x1, %r12
je 0x72bb6
movq 0x18(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x72bb6
movq 0x3c37b(%rip), %rsi     # 0xaeee8
movq 0x3c37c(%rip), %rdx     # 0xaeef0
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x72bb6
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4d570
movq 0x10(%rbx), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4e380
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl 0x88(%r15), %eax
movq 0x38(%r15), %r12
subq 0x30(%r15), %r12
shrq $0x5, %r12
cmpl $-0x1, %eax
cmovnel %eax, %r12d
xorl %r13d, %r13d
testl %r12d, %r12d
cmovlel %r13d, %r12d
shlq $0x5, %r12
cmpq %r13, %r12
je 0x72bac
movq 0x30(%r15), %rsi
movq (%rsi,%r13), %rax
cmpb $0xa, (%rax)
jne 0x72c0f
movsbq 0x1(%rax), %rax
movq 0x18(%r15), %rcx
movq -0x208(%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x72c1a
addq %r13, %rsi
movq %r14, %rdi
callq 0x4f1b0
addq $0x20, %r13
jmp 0x72bde
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printBody(std::ostream&, ParserWalker&) const
void Constructor::printBody(ostream &s,ParserWalker &walker) const

{
  if (flowthruindex != -1) {
    SubtableSymbol *sym = dynamic_cast<SubtableSymbol *>(operands[flowthruindex]->getDefiningSymbol());
    if (sym != (SubtableSymbol *)0) {
      walker.pushOperand(flowthruindex);
      walker.getConstructor()->printBody(s,walker);
      walker.popOperand();
      return;
    }
  }
  if (firstwhitespace == -1) return; // Nothing to print after firstwhitespace
  for(int4 i=firstwhitespace+1;i<printpiece.size();++i) {
    if (printpiece[i][0]=='\n') {
      int4 index = printpiece[i][1]-'A';
      operands[index]->print(s,walker);
    }
    else
      s << printpiece[i];
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x8c(%rdi), %r12
cmpq $-0x1, %r12
je 0x72c98
movq 0x18(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x72c98
movq 0x3c291(%rip), %rsi     # 0xaeee8
movq 0x3c292(%rip), %rdx     # 0xaeef0
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x72c98
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4d570
movq 0x10(%rbx), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4ffd0
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
jmp 0x72d00
movl 0x88(%r15), %eax
cmpl $-0x1, %eax
je 0x72d00
movslq %eax, %r12
leaq 0x1(%r12), %r13
shlq $0x5, %r12
addq $0x20, %r12
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x72d00
movq (%rsi,%r12), %rax
cmpb $0xa, (%rax)
jne 0x72cf0
movsbq 0x1(%rax), %rax
movq 0x18(%r15), %rcx
movq -0x208(%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x72cfb
addq %r12, %rsi
movq %r14, %rdi
callq 0x4f1b0
incq %r13
jmp 0x72cb0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::removeTrailingSpace()
void Constructor::removeTrailingSpace(void)

{
  // Allow for user to force extra space at end of printing
  if ((!printpiece.empty())&&(printpiece.back()==" "))
    printpiece.pop_back();
  //  while((!printpiece.empty())&&(printpiece.back()==" "))
  //    printpiece.pop_back();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
cmpq %rdi, 0x30(%rbx)
je 0x72d39
addq $-0x20, %rdi
leaq 0x147fa(%rip), %rsi     # 0x8751d
callq 0x520f0
testb %al, %al
je 0x72d39
addq $0x30, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x4fd40
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::markSubtableOperands(std::vector<int, std::allocator<int>>&) const
void Constructor::markSubtableOperands(vector<int4> &check) const

{ // Adjust -check- so it has one entry for every operand, a 0 if it is a subtable, a 2 if it is not
  check.resize(operands.size());
  for(int4 i=0;i<operands.size();++i) {
    TripleSymbol *sym = operands[i]->getDefiningSymbol();
    if ((sym != (TripleSymbol *)0)&&(sym->getType() == SleighSymbol::subtable_symbol))
      check[i] = 0;
    else
      check[i] = 2;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rsi
subq 0x18(%rdi), %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x4e9e0
xorl %r15d, %r15d
pushq $0x2
popq %rbp
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x72da2
movq (%rax,%r15,8), %rax
movq 0x48(%rax), %rdi
movl %ebp, %ecx
testq %rdi, %rdi
je 0x72d96
movq (%rdi), %rax
callq *0x10(%rax)
xorl %ecx, %ecx
cmpl $0xb, %eax
setne %cl
addl %ecx, %ecx
movq (%rbx), %rax
movl %ecx, (%rax,%r15,4)
incq %r15
jmp 0x72d63
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::collectLocalExports(std::vector<unsigned long, std::allocator<unsigned long>>&) const
void Constructor::collectLocalExports(vector<uintb> &results) const

{
  if (templ == (ConstructTpl *)0) return;
  HandleTpl *handle = templ->getResult();
  if (handle == (HandleTpl *)0) return;
  if (handle->getSpace().isConstSpace()) return;	// Even if the value is dynamic, the pointed to value won't get used
  if (handle->getPtrSpace().getType() != ConstTpl::real) {
    if (handle->getTempSpace().isUniqueSpace())
      results.push_back(handle->getTempOffset().getReal());
    return;
  }
  if (handle->getSpace().isUniqueSpace()) {
    results.push_back(handle->getPtrOffset().getReal());
    return;
  }
  if (handle->getSpace().getType() == ConstTpl::handle) {
    int4 handleIndex = handle->getSpace().getHandleIndex();
    OperandSymbol *opSym = getOperand(handleIndex);
    opSym->collectLocalValues(results);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x60(%rdi), %rax
testq %rax, %rax
je 0x72e1b
movq 0x20(%rax), %r14
testq %r14, %r14
je 0x72e1b
movq %rsi, %rbx
movq %rdi, %r15
movq %r14, %rdi
callq 0x4da20
testb %al, %al
jne 0x72e1b
cmpl $0x0, 0x40(%r14)
je 0x72dfb
leaq 0xa0(%r14), %rdi
callq 0x4eca0
testb %al, %al
je 0x72e1b
movq 0xd0(%r14), %rax
jmp 0x72e0b
movq %r14, %rdi
callq 0x4eca0
testb %al, %al
je 0x72e25
movq 0x70(%r14), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x4f170
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x1, (%r14)
jne 0x72e1b
movslq 0x8(%r14), %rax
movq 0x18(%r15), %rcx
movq (%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq 0x58(%rax), %rax
movq %rbx, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmpq *%rax
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::isRecursive() const
bool Constructor::isRecursive(void) const

{ // Does this constructor cause recursion with its table
  for(int4 i=0;i<operands.size();++i) {
    TripleSymbol *sym = operands[i]->getDefiningSymbol();
    if (sym == parent) return true;
  }
  return false;
}

// Assembly:
movq 0x20(%rdi), %rax
movq 0x8(%rdi), %rcx
movq 0x18(%rdi), %rdx
subq %rdx, %rax
sarq $0x3, %rax
xorl %edi, %edi
movq %rdi, %rsi
cmpq %rdi, %rax
je 0x72e77
movq (%rdx,%rsi,8), %r8
leaq 0x1(%rsi), %rdi
cmpq %rcx, 0x48(%r8)
jne 0x72e61
cmpq %rsi, %rax
seta %al
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printInfo(std::ostream&) const
void Constructor::printInfo(ostream &s) const

{				// Print identifying information about constructor
				// for use in error messages
  s << "table \"" << parent->getName();
  s << "\" constructor starting at line " << dec << lineno;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x143cb(%rip), %rsi     # 0x885b6
movq %r14, %rdi
callq 0x4f5b0
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
movq %rax, %rdi
callq 0x4f1b0
leaq 0x143b4(%rip), %rsi     # 0x885be
movq %r14, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x90(%rbx), %esi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x51690
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::SubtableSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
SubtableSymbol::SubtableSymbol(const string &nm) : TripleSymbol(nm)

{
  beingbuilt = false;
  pattern = (TokenPattern *)0;
  decisiontree = (DecisionNode *)0;
  errors = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x504f0
movq 0x3aa9c(%rip), %rax     # 0xaece8
addq $0x10, %rax
movq %rax, (%rbx)
andw $0x0, 0x38(%rbx)
andq $0x0, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x50(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::~SubtableSymbol()
SubtableSymbol::~SubtableSymbol(void)

{
  if (pattern != (TokenPattern *)0)
    delete pattern;
  if (decisiontree != (DecisionNode *)0)
    delete decisiontree;
  vector<Constructor *>::iterator iter;
  for(iter=construct.begin();iter!=construct.end();++iter)
    delete *iter;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3aa6c(%rip), %rax     # 0xaece8
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x30(%rdi), %r14
testq %r14, %r14
je 0x7429f
movq %r14, %rdi
callq 0x4e060
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x4f670
movq 0x58(%rbx), %r14
testq %r14, %r14
je 0x742bb
movq %r14, %rdi
callq 0x4d040
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x4f670
leaq 0x40(%rbx), %r14
movq 0x40(%rbx), %r12
cmpq 0x48(%rbx), %r12
je 0x742ed
movq (%r12), %r15
testq %r15, %r15
je 0x742da
movq %r15, %rdi
callq 0x51ed0
movl $0x98, %esi
movq %r15, %rdi
callq 0x4f670
addq $0x8, %r12
jmp 0x742c3
movq %r14, %rdi
callq 0x4dec0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x50a30
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::saveXml(std::ostream&) const
void SubtableSymbol::saveXml(ostream &s) const

{
  if (decisiontree == (DecisionNode *)0) return; // Not fully formed
  s << "<subtable_sym";
  SleighSymbol::saveXmlHeader(s);
  s << " numct=\"" << dec << construct.size() << "\">\n";
  for(int4 i=0;i<construct.size();++i)
    construct[i]->saveXml(s);
  decisiontree->saveXml(s);
  s << "</subtable_sym>\n";
}

// Assembly:
cmpq $0x0, 0x58(%rdi)
je 0x74417
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x14269(%rip), %rsi     # 0x885de
movq %rbx, %rdi
callq 0x4f5b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x50b40
leaq 0x1425d(%rip), %rsi     # 0x885ec
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x48(%r14), %rsi
subq 0x40(%r14), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x4e990
leaq 0x13a12(%rip), %rsi     # 0x87dd9
movq %rax, %rdi
callq 0x4f5b0
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x743f7
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x4fdf0
incq %r15
jmp 0x743d2
movq 0x58(%r14), %rdi
movq %rbx, %rsi
callq 0x4f9d0
leaq 0x141eb(%rip), %rsi     # 0x885f5
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4f5b0
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::saveXml(std::ostream&) const
void DecisionNode::saveXml(ostream &s) const

{
  s << "<decision";
  s << " number=\"" << dec << num << "\"";
  s << " context=\"";
  if (contextdecision)
    s << "true\"";
  else
    s << "false\"";
  s << " start=\"" << startbit << "\"";
  s << " size=\"" << bitsize << "\"";
  s << ">\n";
  for(int4 i=0;i<list.size();++i) {
    s << "<pair id=\"" << dec << list[i].second->getId() << "\">\n";
    list[i].first->saveXml(s);
    s << "</pair>\n";
  }
  for(int4 i=0;i<children.size();++i)
    children[i]->saveXml(s);
  s << "</decision>\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x142cd(%rip), %rsi     # 0x886fd
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x142c8(%rip), %rsi     # 0x88707
movq %rbx, %rdi
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x51690
leaq 0x1414d(%rip), %r15     # 0x885bc
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x14290(%rip), %rsi     # 0x88711
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x13f35(%rip), %rax     # 0x883c5
leaq 0x13314(%rip), %rsi     # 0x877ab
cmpb $0x0, 0x34(%r14)
cmovneq %rax, %rsi
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x1426d(%rip), %rsi     # 0x8871c
movq %rbx, %rdi
callq 0x4f5b0
movl 0x38(%r14), %esi
movq %rax, %rdi
callq 0x51690
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x13d76(%rip), %rsi     # 0x8824b
movq %rbx, %rdi
callq 0x4f5b0
movl 0x3c(%r14), %esi
movq %rax, %rdi
callq 0x51690
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
leaq 0x142a3(%rip), %rsi     # 0x8879e
movq %rbx, %rdi
callq 0x4f5b0
xorl %ebp, %ebp
leaq 0x138cd(%rip), %r12     # 0x87dd9
leaq 0x1421d(%rip), %r13     # 0x88730
xorl %r15d, %r15d
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x4, %rax
cmpq %r15, %rax
jbe 0x7458f
movq %rbx, %rdi
leaq 0x141f5(%rip), %rsi     # 0x88725
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq (%r14), %rcx
movq 0x8(%rcx,%rbp), %rcx
movl 0x84(%rcx), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
movq %r12, %rsi
callq 0x4f5b0
movq (%r14), %rax
movq (%rax,%rbp), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4f5b0
incq %r15
addq $0x10, %rbp
jmp 0x74516
xorl %r15d, %r15d
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x745b7
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x4f9d0
incq %r15
jmp 0x74592
leaq 0x1417b(%rip), %rsi     # 0x88739
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4f5b0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::restoreXml(Element const*, SleighBase*)
void SubtableSymbol::restoreXml(const Element *el,SleighBase *trans)

{
  {
    int4 numct;
    istringstream s(el->getAttributeValue("numct"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> numct;
    construct.reserve(numct);
  }
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  while(iter != list.end()) {
    if ((*iter)->getName() == "constructor") {
      Constructor *ct = new Constructor();
      addConstructor(ct);
      ct->restoreXml(*iter,trans);
    }
    else if ((*iter)->getName() == "decision") {
      decisiontree = new DecisionNode();
      decisiontree->restoreXml(*iter,(DecisionNode *)0,this);
    }
    ++iter;
  }
  pattern = (TokenPattern *)0;
  beingbuilt = false;
  errors = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x13fea(%rip), %rsi     # 0x88619
leaq 0x8(%rsp), %rdi
leaq 0x3(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x50230
leaq 0x28(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x28(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x40(%rsp,%rax)
leaq 0x4(%rsp), %rsi
callq 0x4e750
leaq 0x40(%rbx), %rdi
movslq 0x4(%rsp), %rsi
callq 0x50970
leaq 0x28(%rsp), %rdi
callq 0x4e070
movq 0x78(%r15), %r13
leaq 0x1404e(%rip), %r12     # 0x886f1
cmpq 0x80(%r15), %r13
je 0x74739
movq (%r13), %rdi
movq %r12, %rsi
callq 0x520f0
testb %al, %al
je 0x746f1
movl $0x98, %edi
callq 0x4f5d0
movq %rax, %rbp
movq %rax, %rdi
callq 0x4d6d0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x51140
movq (%r13), %rsi
movq %rbp, %rdi
movq %r14, %rdx
callq 0x50d40
jmp 0x74730
movq (%r13), %rdi
leaq 0x14002(%rip), %rsi     # 0x886fe
callq 0x520f0
testb %al, %al
je 0x74730
pushq $0x48
popq %rdi
callq 0x4f5d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x58(%rbx)
movq (%r13), %rsi
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x50060
addq $0x8, %r13
jmp 0x746a3
andq $0x0, 0x30(%rbx)
andw $0x0, 0x38(%rbx)
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x74788
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4e070
jmp 0x74788
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4e020
jmp 0x74788
movq %rax, %rbx
movl $0x98, %esi
movq %rbp, %rdi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::buildDecisionTree(DecisionProperties&)
void SubtableSymbol::buildDecisionTree(DecisionProperties &props)

{				// Associate pattern disjoints to constructors
  if (pattern == (TokenPattern *)0) return; // Pattern not fully formed
  Pattern *pat;
  decisiontree = new DecisionNode((DecisionNode *)0);
  for(int4 i=0;i<construct.size();++i) {
    pat = construct[i]->getPattern()->getPattern();
    if (pat->numDisjoint() == 0)
      decisiontree->addConstructorPair((const DisjointPattern *)pat,construct[i]);
    else
      for(int4 j=0;j<pat->numDisjoint();++j)
	decisiontree->addConstructorPair(pat->getDisjoint(j),construct[i]);
  }
  decisiontree->split(props);	// Create the decision strategy
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x30(%rdi)
je 0x74b77
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x48
popq %rdi
callq 0x4f5d0
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
callq 0x4fd20
movq %r15, 0x58(%r14)
xorl %r13d, %r13d
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x74b5d
movq (%rax,%r13,8), %rax
movq (%rax), %rax
movq (%rax), %r15
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
testl %eax, %eax
je 0x74b44
xorl %ebp, %ebp
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
cmpl %eax, %ebp
jge 0x74b58
movq 0x58(%r14), %r12
movq (%r15), %rax
movq %r15, %rdi
movl %ebp, %esi
callq *0x48(%rax)
movq 0x40(%r14), %rcx
movq (%rcx,%r13,8), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x4d650
incl %ebp
jmp 0x74b11
movq 0x40(%r14), %rax
movq 0x58(%r14), %rdi
movq (%rax,%r13,8), %rdx
movq %r15, %rsi
callq 0x4d650
incq %r13
jmp 0x74ae4
movq 0x58(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4ecc0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x48
popq %rsi
movq %r15, %rdi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionProperties::identicalPattern(Constructor*, Constructor*)
void DecisionProperties::identicalPattern(Constructor *a,Constructor *b)

{ // Note that -a- and -b- have identical patterns
  if ((!a->isError())&&(!b->isError())) {
    a->setError(true);
    b->setError(true);
    ostringstream s;
    s << "Constructors with identical patterns: \n   ";
    a->printInfo(s);
    s << "\n   ";
    b->printInfo(s);
    s << endl;
    identerrors.push_back(s.str());
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
cmpb $0x0, 0x94(%rsi)
jne 0x74ebf
movq %rdx, %r14
cmpb $0x0, 0x94(%rdx)
jne 0x74ebf
movq %rsi, %r15
movq %rdi, %rbx
movb $0x1, %al
movb %al, 0x94(%rsi)
movb %al, 0x94(%r14)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x504a0
leaq 0x13802(%rip), %rsi     # 0x8865a
movq %r12, %rdi
callq 0x4f5b0
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x51c70
leaq 0x1383f(%rip), %rsi     # 0x886b3
leaq 0x20(%rsp), %rdi
callq 0x4f5b0
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x51c70
leaq 0x20(%rsp), %rdi
callq 0x4e140
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x50fb0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4dc80
movq %rsp, %rdi
callq 0x4e020
leaq 0x20(%rsp), %rdi
callq 0x4d7c0
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4e020
jmp 0x74ee0
jmp 0x74edd
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4d7c0
movq %rbx, %rdi
callq 0x518c0