LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::clone() const
PatternBlock *PatternBlock::clone(void) const

{
  PatternBlock *res = new PatternBlock(true);

  res->offset = offset;
  res->nonzerosize = nonzerosize;
  res->maskvec = maskvec;
  res->valvec = valvec;
  return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x38, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x42340
movq (%r14), %rax
movq %rax, (%rbx)
leaq 0x8(%r14), %rsi
leaq 0x8(%rbx), %rdi
callq 0x423e0
addq $0x20, %r14
movq %rbx, %rdi
addq $0x20, %rdi
movq %r14, %rsi
callq 0x423e0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movl $0x38, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::commonSubPattern(PatternBlock const*) const
PatternBlock *PatternBlock::commonSubPattern(const PatternBlock *b) const

{				// The resulting pattern has a 1-bit in the mask
				// only if the two pieces have a 1-bit and the
				// values agree
  PatternBlock *res = new PatternBlock(true);
  int4 maxlength = (getLength() > b->getLength()) ? getLength() : b->getLength();

  res->offset = 0;
  int4 offset = 0;
  uintm mask1,val1,mask2,val2;
  uintm resmask,resval;
  while(offset < maxlength) {
    mask1 = getMask(offset*8,sizeof(uintm)*8);
    val1 = getValue(offset*8,sizeof(uintm)*8);
    mask2 = b->getMask(offset*8,sizeof(uintm)*8);
    val2 = b->getValue(offset*8,sizeof(uintm)*8);
    resmask = mask1 & mask2 & ~(val1^val2);
    resval = val1 & val2 & resmask;
    res->maskvec.push_back(resmask);
    res->valvec.push_back(resval);
    offset += sizeof(uintm);
  }
  res->nonzerosize = maxlength;
  res->normalize();
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r13
movl $0x38, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x42340
movl 0x4(%r13), %eax
addl (%r13), %eax
movl 0x4(%r14), %ecx
movq %r14, 0x30(%rsp)
addl (%r14), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movq %rbx, 0x8(%rsp)
movl $0x0, (%rbx)
movl %ecx, (%rsp)
testl %ecx, %ecx
jle 0x6260a
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
addq $0x20, %rax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r13, 0x28(%rsp)
movq %r13, %rdi
movl %ebp, %esi
movl $0x20, %edx
callq 0x41a70
movl %eax, %r12d
movq %r13, %rdi
movl %ebp, %esi
movl $0x20, %edx
callq 0x40750
movl %eax, %r13d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
movl $0x20, %edx
callq 0x41a70
movl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl $0x20, %edx
callq 0x40750
andl %r12d, %r14d
movl %r13d, %ecx
xorl %eax, %ecx
notl %ecx
andl %r14d, %ecx
movl %ecx, 0x14(%rsp)
andl %r13d, %eax
andl %r14d, %eax
movl %eax, 0x4(%rsp)
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x625bc
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x625cb
movq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x40770
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
movq 0x28(%rsp), %r13
je 0x625ea
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x625f9
movq 0x18(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x40770
addl $0x4, %r15d
addl $0x20, %ebp
cmpl (%rsp), %r15d
jl 0x6253c
movq 0x8(%rsp), %rbx
movl (%rsp), %eax
movl %eax, 0x4(%rbx)
movq %rbx, %rdi
callq 0x40d60
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x38, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::isInstructionMatch(ParserWalker&) const
bool PatternBlock::isInstructionMatch(ParserWalker &walker) const

{
  if (nonzerosize<=0) return (nonzerosize==0);
  int4 off = offset;
  for(int4 i=0;i<maskvec.size();++i) {
    uintm data = walker.getInstructionBytes(off,sizeof(uintm));
    if ((maskvec[i] & data)!=valvec[i]) return false;
    off += sizeof(uintm);
  }
  return true;
}

// Assembly:
cmpl $0x0, 0x4(%rdi)
jle 0x626b2
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rax
sete %al
je 0x626b8
movq %rsi, %rbx
movl (%r14), %ebp
xorl %r15d, %r15d
movq (%rbx), %rdi
movq 0x10(%rbx), %rax
movl 0x64(%rax), %ecx
movl %ebp, %esi
movl $0x4, %edx
callq 0x40ea0
movq 0x8(%r14), %rcx
movq 0x20(%r14), %rdx
andl (%rcx,%r15,4), %eax
cmpl (%rdx,%r15,4), %eax
jne 0x626b6
addl $0x4, %ebp
incq %r15
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x2, %rax
cmpq %r15, %rax
setbe %al
ja 0x6266e
jmp 0x626b8
sete %al
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::isContextMatch(ParserWalker&) const
bool PatternBlock::isContextMatch(ParserWalker &walker) const

{
  if (nonzerosize<=0) return (nonzerosize==0);
  int4 off = offset;
  for(int4 i=0;i<maskvec.size();++i) {
    uintm data = walker.getContextBytes(off,sizeof(uintm));
    if ((maskvec[i] & data)!=valvec[i]) return false;
    off += sizeof(uintm);
  }
  return true;
}

// Assembly:
cmpl $0x0, 0x4(%rdi)
jle 0x62727
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rax
sete %al
je 0x6272d
movq %rsi, %rbx
movl (%r14), %ebp
xorl %r15d, %r15d
movq (%rbx), %rdi
movl %ebp, %esi
movl $0x4, %edx
callq 0x413a0
movq 0x8(%r14), %rcx
movq 0x20(%r14), %rdx
andl (%rcx,%r15,4), %eax
cmpl (%rdx,%r15,4), %eax
jne 0x6272b
addl $0x4, %ebp
incq %r15
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x2, %rax
cmpq %r15, %rax
setbe %al
ja 0x626ea
jmp 0x6272d
sete %al
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::saveXml(std::ostream&) const
void PatternBlock::saveXml(ostream &s) const

{
  s << "<pat_block ";
  s << "offset=\"" << dec << offset << "\" ";
  s << "nonzero=\"" << nonzerosize << "\">\n";
  for(int4 i=0;i<maskvec.size();++i) {
    s << "  <mask_word ";
    s << "mask=\"0x" << hex << maskvec[i] << "\" ";
    s << "val=\"0x" << valvec[i] << "\"/>\n";
  }
  s << "</pat_block>\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1e693(%rip), %rsi     # 0x80de3
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x1cff2(%rip), %rsi     # 0x7f756
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movl (%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x1daa8(%rip), %rsi     # 0x80240
movl $0x2, %edx
movq %rax, %rdi
callq 0x40b80
leaq 0x1e643(%rip), %rsi     # 0x80def
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x1e62d(%rip), %rsi     # 0x80df9
movl $0x3, %edx
movq %rax, %rdi
callq 0x40b80
movq 0x10(%r14), %rax
cmpq 0x8(%r14), %rax
je 0x628a4
xorl %r12d, %r12d
leaq 0x1da4f(%rip), %r13     # 0x80240
leaq 0x1da9d(%rip), %rbp     # 0x80295
leaq 0x1e015(%rip), %r15     # 0x80814
movl $0xd, %edx
movq %rbx, %rdi
leaq 0x1e5ef(%rip), %rsi     # 0x80dfd
callq 0x40b80
movl $0x8, %edx
movq %rbx, %rdi
leaq 0x1ef9c(%rip), %rsi     # 0x817be
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq 0x8(%r14), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x3ffb0
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x40b80
movl $0x7, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x40b80
movq 0x20(%r14), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x3ffb0
movl $0x4, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
incq %r12
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x2, %rax
cmpq %r12, %rax
ja 0x627ff
leaq 0x1e560(%rip), %rsi     # 0x80e0b
movl $0xd, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40b80
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: InstructionPattern::doAnd(Pattern const*, int) const
Pattern *InstructionPattern::doAnd(const Pattern *b,int4 sa) const

{
  if (b->numDisjoint()>0)
    return b->doAnd(this,-sa);

  const CombinePattern *b2 = dynamic_cast<const CombinePattern *>(b);
  if (b2 != (const CombinePattern *)0)
    return b->doAnd(this,-sa);

  const ContextPattern *b3 = dynamic_cast<const ContextPattern *>(b);
  if (b3 != (const ContextPattern *)0) {
    InstructionPattern *newpat = (InstructionPattern *)simplifyClone();
    if (sa < 0)
      newpat->shiftInstruction(-sa);
    return new CombinePattern((ContextPattern *)b3->simplifyClone(),newpat);
  }
  const InstructionPattern *b4 = (const InstructionPattern *)b;

  PatternBlock *respattern;
  if (sa < 0) {
    PatternBlock *a = maskvalue->clone();
    a->shift(-sa);
    respattern = a->intersect(b4->maskvalue);
    delete a;
  }
  else {
    PatternBlock *c = b4->maskvalue->clone();
    c->shift(sa);
    respattern = maskvalue->intersect(c);
    delete c;
  }
  return new InstructionPattern(respattern);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
jg 0x62c4b
movq 0x400c3(%rip), %rsi     # 0xa2cf8
movq 0x40124(%rip), %rdx     # 0xa2d60
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x62c68
negl %ebx
movq (%r12), %rax
movq 0x28(%rax), %rax
movq %r12, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *%rax
movq 0x40089(%rip), %rsi     # 0xa2cf8
movq 0x3ff62(%rip), %rdx     # 0xa2bd8
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x62cd7
movq %rax, %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r14
testl %ebx, %ebx
jns 0x62ca5
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
movl $0x18, %edi
callq 0x40800
movq %rax, %r15
movq (%r13), %rax
movq %r13, %rdi
callq *0x10(%rax)
movq 0x40125(%rip), %rcx     # 0xa2de8
addq $0x10, %rcx
movq %rcx, (%r15)
movq %rax, 0x8(%r15)
movq %r14, 0x10(%r15)
jmp 0x62d87
testl %ebx, %ebx
js 0x62d2d
movq 0x8(%r12), %rdi
callq 0x3f950
movq %rax, %r15
addl %ebx, (%rax)
movq %rax, %rdi
callq 0x40d60
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x40f20
movq %rax, %rbx
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x62d16
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x62d5b
movq 0x18(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
jmp 0x62d5b
movq 0x8(%r14), %rdi
callq 0x3f950
movq %rax, %r15
subl %ebx, (%rax)
movq %rax, %rdi
callq 0x40d60
movq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0x40f20
movq %rax, %rbx
movq %r15, %rdi
callq 0x3fb40
movl $0x38, %esi
movq %r15, %rdi
callq 0x40870
movl $0x10, %edi
callq 0x40800
movq %rax, %r15
movq 0x3ff04(%rip), %rax     # 0xa2c80
addq $0x10, %rax
movq %rax, (%r15)
movq %rbx, 0x8(%r15)
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: InstructionPattern::commonSubPattern(Pattern const*, int) const
Pattern *InstructionPattern::commonSubPattern(const Pattern *b,int4 sa) const

{
  if (b->numDisjoint()>0)
    return b->commonSubPattern(this,-sa);

  const CombinePattern *b2 = dynamic_cast<const CombinePattern *>(b);
  if (b2 != (const CombinePattern *)0)
    return b->commonSubPattern(this,-sa);

  const ContextPattern *b3 = dynamic_cast<const ContextPattern *>(b);
  if (b3 != (const ContextPattern *)0) {
    InstructionPattern *res = new InstructionPattern(true);
    return res;
  }
  const InstructionPattern *b4 = (const InstructionPattern *)b;
  
  PatternBlock *respattern;
  if (sa < 0) {
    PatternBlock *a = maskvalue->clone();
    a->shift(-sa);
    respattern = a->commonSubPattern(b4->maskvalue);
    delete a;
  }
  else {
    PatternBlock *c = b4->maskvalue->clone();
    c->shift(sa);
    respattern = maskvalue->commonSubPattern(c);
    delete c;
  }
  return new InstructionPattern(respattern);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r15
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
jg 0x62de6
movq 0x3ff28(%rip), %rsi     # 0xa2cf8
movq 0x3ff89(%rip), %rdx     # 0xa2d60
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x62e05
negl %ebx
movq (%r12), %rax
movq 0x30(%rax), %rax
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
movq 0x3feec(%rip), %rsi     # 0xa2cf8
movq 0x3fdc5(%rip), %rdx     # 0xa2bd8
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x62e41
movl $0x10, %edi
callq 0x40800
movq %rax, %r14
movq %rax, %rdi
movl $0x1, %esi
callq 0x41020
jmp 0x62ef1
testl %ebx, %ebx
js 0x62e97
movq 0x8(%r12), %rdi
callq 0x3f950
movq %rax, %r14
addl %ebx, (%rax)
movq %rax, %rdi
callq 0x40d60
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x3f600
movq %rax, %rbx
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x62e80
movq 0x30(%r14), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x62ec5
movq 0x18(%r14), %rsi
subq %rdi, %rsi
callq 0x40870
jmp 0x62ec5
movq 0x8(%r15), %rdi
callq 0x3f950
movq %rax, %r14
subl %ebx, (%rax)
movq %rax, %rdi
callq 0x40d60
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x3f600
movq %rax, %rbx
movq %r14, %rdi
callq 0x3fb40
movl $0x38, %esi
movq %r14, %rdi
callq 0x40870
movl $0x10, %edi
callq 0x40800
movq %rax, %r14
movq 0x3fd9a(%rip), %rax     # 0xa2c80
addq $0x10, %rax
movq %rax, (%r14)
movq %rbx, 0x8(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: InstructionPattern::doOr(Pattern const*, int) const
Pattern *InstructionPattern::doOr(const Pattern *b,int4 sa) const

{
  if (b->numDisjoint()>0)
    return b->doOr(this,-sa);

  const CombinePattern *b2 = dynamic_cast<const CombinePattern *>(b);
  if (b2 != (const CombinePattern *)0)
    return b->doOr(this,-sa);

  DisjointPattern *res1,*res2;
  res1 = (DisjointPattern *)simplifyClone();
  res2 = (DisjointPattern *)b->simplifyClone();
  if (sa < 0)
    res1->shiftInstruction(-sa);
  else
    res2->shiftInstruction(sa);
  return new OrPattern(res1,res2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
jg 0x62f4f
movq 0x3fdbf(%rip), %rsi     # 0xa2cf8
movq 0x3fe20(%rip), %rdx     # 0xa2d60
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x62f67
negl %ebx
movq (%r14), %rax
movq 0x20(%rax), %rax
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq %rax, %r15
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r14
testl %ebx, %ebx
js 0x62f8b
movq (%r14), %rax
movq %r14, %rdi
jmp 0x62f93
negl %ebx
movq (%r15), %rax
movq %r15, %rdi
movl %ebx, %esi
callq *0x18(%rax)
movl $0x20, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3f7c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x20, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: InstructionPattern::restoreXml(Element const*)
void InstructionPattern::restoreXml(const Element *el)

{
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  maskvalue = new PatternBlock(true);
  maskvalue->restoreXml(*iter);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x78(%rsi), %r15
movl $0x38, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x42340
movq %rbx, 0x8(%r14)
movq (%r15), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3fae0
movq %rax, %r14
movl $0x38, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: ContextPattern::doOr(Pattern const*, int) const
Pattern *ContextPattern::doOr(const Pattern *b,int4 sa) const

{
  const ContextPattern *b2 = dynamic_cast<const ContextPattern *>(b);
  if (b2 == (const ContextPattern *)0)
    return b->doOr(this,-sa);

  return new OrPattern((DisjointPattern *)simplifyClone(),(DisjointPattern *)b2->simplifyClone());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x6309d
movq 0x3fc71(%rip), %rsi     # 0xa2cf8
movq 0x3fb4a(%rip), %rdx     # 0xa2bd8
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x40b50
movq %rax, %r15
jmp 0x630a0
xorl %r15d, %r15d
testq %r15, %r15
je 0x630e3
movl $0x20, %edi
callq 0x40800
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %rax, %rbx
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3f7c0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
negl %ebp
movq (%r14), %rax
movq 0x20(%rax), %rax
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: ContextPattern::doAnd(Pattern const*, int) const
Pattern *ContextPattern::doAnd(const Pattern *b,int4 sa) const

{
  const ContextPattern *b2 = dynamic_cast<const ContextPattern *>(b);
  if (b2 == (const ContextPattern *)0)
    return b->doAnd(this,-sa);

  PatternBlock *resblock = maskvalue->intersect(b2->maskvalue);
  return new ContextPattern(resblock);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x63144
movq 0x3fbc7(%rip), %rsi     # 0xa2cf8
movq 0x3faa0(%rip), %rdx     # 0xa2bd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
jmp 0x63146
xorl %eax, %eax
testq %rax, %rax
je 0x6317d
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
callq 0x40f20
movq %rax, %rbx
movl $0x10, %edi
callq 0x40800
movq 0x3fa24(%rip), %rcx     # 0xa2b90
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
negl %ebx
movq (%r15), %rax
movq 0x28(%rax), %rax
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: ContextPattern::commonSubPattern(Pattern const*, int) const
Pattern *ContextPattern::commonSubPattern(const Pattern *b,int4 sa) const

{
  const ContextPattern *b2 = dynamic_cast<const ContextPattern *>(b);
  if (b2 == (const ContextPattern *)0)
    return b->commonSubPattern(this,-sa);

  PatternBlock *resblock = maskvalue->commonSubPattern(b2->maskvalue);
  return new ContextPattern(resblock);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x631c2
movq 0x3fb49(%rip), %rsi     # 0xa2cf8
movq 0x3fa22(%rip), %rdx     # 0xa2bd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
jmp 0x631c4
xorl %eax, %eax
testq %rax, %rax
je 0x631fb
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
callq 0x3f600
movq %rax, %rbx
movl $0x10, %edi
callq 0x40800
movq 0x3f9a6(%rip), %rcx     # 0xa2b90
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
negl %ebx
movq (%r15), %rax
movq 0x30(%rax), %rax
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::~CombinePattern()
CombinePattern::~CombinePattern(void)

{
  if (context != (ContextPattern *)0)
    delete context;
  if (instr != (InstructionPattern *)0)
    delete instr;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x3fb31(%rip), %rax     # 0xa2de8
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x632cd
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x632dd
movq (%rdi), %rax
popq %rbx
jmpq *0x8(%rax)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::doAnd(Pattern const*, int) const
Pattern *CombinePattern::doAnd(const Pattern *b,int4 sa) const

{
  CombinePattern *tmp;
  
  if (b->numDisjoint() != 0)
    return b->doAnd(this,-sa);

  const CombinePattern *b2 = dynamic_cast<const CombinePattern *>(b);
  if (b2 != (CombinePattern *)0) {
    ContextPattern *c = (ContextPattern *)context->doAnd(b2->context,0);
    InstructionPattern *i = (InstructionPattern *)instr->doAnd(b2->instr,sa);
    tmp = new CombinePattern(c,i);
  }
  else {
    const InstructionPattern *b3 = dynamic_cast<const InstructionPattern *>(b);
    if (b3 != (const InstructionPattern *)0) {
      InstructionPattern *i = (InstructionPattern *)instr->doAnd(b3,sa);
      tmp = new CombinePattern((ContextPattern *)context->simplifyClone(),i);
    }
    else {			// Must be a ContextPattern
      ContextPattern *c = (ContextPattern *)context->doAnd(b,0);
      InstructionPattern *newpat = (InstructionPattern *) instr->simplifyClone();
      if (sa < 0)
	newpat->shiftInstruction(-sa);
      tmp = new CombinePattern(c,newpat);
    }
  }
  return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
je 0x633b1
negl %ebx
movq (%r15), %rax
movq 0x28(%rax), %rax
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
movq 0x3f940(%rip), %rsi     # 0xa2cf8
movq 0x3f9a1(%rip), %rdx     # 0xa2d60
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x6341d
movq %rax, %r12
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
movq (%rdi), %rax
xorl %edx, %edx
callq *0x28(%rax)
movq %rax, %r15
movq 0x10(%r14), %rdi
movq 0x10(%r12), %rsi
movq (%rdi), %rax
movl %ebx, %edx
callq *0x28(%rax)
movq %rax, %r14
movl $0x18, %edi
callq 0x40800
movq %rax, %rbx
movq 0x3f9dc(%rip), %rax     # 0xa2de8
addq $0x10, %rax
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq %r14, 0x10(%rbx)
jmp 0x63479
movq 0x3f8d4(%rip), %rsi     # 0xa2cf8
movq 0x3f90d(%rip), %rdx     # 0xa2d38
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x63488
movq 0x10(%r14), %rdi
movq (%rdi), %rcx
movq %rax, %rsi
movl %ebx, %edx
callq *0x28(%rcx)
movq %rax, %r15
movl $0x18, %edi
callq 0x40800
movq %rax, %rbx
movq 0x8(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x3f97e(%rip), %rcx     # 0xa2de8
addq $0x10, %rcx
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movq %r15, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
xorl %edx, %edx
callq *0x28(%rax)
movq %rax, %r15
movq 0x10(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %r14
testl %ebx, %ebx
jns 0x633f8
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
jmp 0x633f8
movq %rax, %r14
movl $0x18, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::commonSubPattern(Pattern const*, int) const
Pattern *CombinePattern::commonSubPattern(const Pattern *b,int4 sa) const

{
  Pattern *tmp;

  if (b->numDisjoint() != 0)
    return b->commonSubPattern(this,-sa);

  const CombinePattern *b2 = dynamic_cast<const CombinePattern *>(b);
  if (b2 != (CombinePattern *)0) {
    ContextPattern *c = (ContextPattern *)context->commonSubPattern(b2->context,0);
    InstructionPattern *i = (InstructionPattern *)instr->commonSubPattern(b2->instr,sa);
    tmp = new CombinePattern(c,i);
  }
  else {
    const InstructionPattern *b3 = dynamic_cast<const InstructionPattern *>(b);
    if (b3 != (const InstructionPattern *)0)
      tmp = instr->commonSubPattern(b3,sa);
    else			// Must be a ContextPattern
      tmp = context->commonSubPattern(b,0);
  }
  return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
je 0x63515
negl %ebx
movq (%r15), %rax
movq 0x30(%rax), %rax
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
movq 0x3f7dc(%rip), %rsi     # 0xa2cf8
movq 0x3f83d(%rip), %rdx     # 0xa2d60
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x63588
movq %rax, %r12
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
movq (%rdi), %rax
xorl %edx, %edx
callq *0x30(%rax)
movq %rax, %r15
movq 0x10(%r14), %rdi
movq 0x10(%r12), %rsi
movq (%rdi), %rax
movl %ebx, %edx
callq *0x30(%rax)
movq %rax, %rbx
movl $0x18, %edi
callq 0x40800
movq 0x3f87b(%rip), %rcx     # 0xa2de8
addq $0x10, %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x3f769(%rip), %rsi     # 0xa2cf8
movq 0x3f7a2(%rip), %rdx     # 0xa2d38
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x635c2
movq 0x10(%r14), %rdi
movq (%rdi), %rcx
movq 0x30(%rcx), %rcx
movq %rax, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rcx
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
movq %r15, %rsi
xorl %edx, %edx
jmp 0x63508
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::doOr(Pattern const*, int) const
Pattern *CombinePattern::doOr(const Pattern *b,int4 sa) const

{
  if (b->numDisjoint() != 0)
    return b->doOr(this,-sa);

  DisjointPattern *res1 = (DisjointPattern *)simplifyClone();
  DisjointPattern *res2 = (DisjointPattern *)b->simplifyClone();
  if (sa < 0)
    res1->shiftInstruction(-sa);
  else
    res2->shiftInstruction(sa);
  OrPattern *tmp = new OrPattern(res1,res2);
  return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
je 0x6360a
negl %ebx
movq (%r15), %rax
movq 0x20(%rax), %rax
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r14
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq %rax, %r15
testl %ebx, %ebx
js 0x6362e
movq (%r15), %rax
movq %r15, %rdi
jmp 0x63636
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
movl $0x20, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3f7c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x20, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::simplifyClone() const
Pattern *CombinePattern::simplifyClone(void) const

{				// We should only have to think at "our" level
  if (context->alwaysTrue())
    return instr->simplifyClone();
  if (instr->alwaysTrue())
    return context->simplifyClone();
  if (context->alwaysFalse()||instr->alwaysFalse())
    return new InstructionPattern(false);
  return new CombinePattern((ContextPattern *)context->simplifyClone(),
			    (InstructionPattern *)instr->simplifyClone());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq 0x10(%r14), %rdi
movq (%rdi), %rcx
testb %al, %al
jne 0x636a3
callq *0x50(%rcx)
movq 0x8(%r14), %rdi
movq (%rdi), %rcx
testb %al, %al
je 0x636ab
popq %rbx
popq %r14
popq %r15
jmpq *0x10(%rcx)
callq *0x58(%rcx)
testb %al, %al
jne 0x636c0
movq 0x10(%r14), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
testb %al, %al
je 0x636d9
movl $0x10, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x41020
jmp 0x63713
movl $0x18, %edi
callq 0x40800
movq %rax, %rbx
movq 0x8(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %r15
movq 0x10(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x3f6e4(%rip), %rcx     # 0xa2de8
addq $0x10, %rcx
movq %rcx, (%rbx)
movq %r15, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x18, %esi
jmp 0x6372e
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::saveXml(std::ostream&) const
void CombinePattern::saveXml(ostream &s) const

{
  s << "<combine_pat>\n";
  context->saveXml(s);
  instr->saveXml(s);
  s << "</combine_pat>\n";
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1d712(%rip), %rsi     # 0x80e61
movl $0xe, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
leaq 0x1d6f3(%rip), %rsi     # 0x80e70
movl $0xf, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40b80
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: CombinePattern::restoreXml(Element const*)
void CombinePattern::restoreXml(const Element *el)

{
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  context = new ContextPattern();
  context->restoreXml(*iter);
  ++iter;
  instr = new InstructionPattern();
  instr->restoreXml(*iter);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x78(%rsi), %r14
movl $0x10, %edi
callq 0x40800
movq 0x3f3e1(%rip), %rcx     # 0xa2b90
addq $0x10, %rcx
movq %rcx, (%rax)
xorl %r15d, %r15d
movq %r15, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq (%r14), %rsi
movq %rax, %rdi
callq 0x3fcf0
movl $0x10, %edi
callq 0x40800
movq 0x3f4a3(%rip), %rcx     # 0xa2c80
addq $0x10, %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x10(%rbx)
movq 0x8(%r14), %rsi
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x41c30
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::doAnd(Pattern const*, int) const
Pattern *OrPattern::doAnd(const Pattern *b,int4 sa) const

{
  const OrPattern *b2 = dynamic_cast<const OrPattern *>(b);
  vector<DisjointPattern *> newlist;
  vector<DisjointPattern *>::const_iterator iter,iter2;
  DisjointPattern *tmp;
  OrPattern *tmpor;

  if (b2 == (const OrPattern *)0) {
    for(iter=orlist.begin();iter!=orlist.end();++iter) {
      tmp = (DisjointPattern *)(*iter)->doAnd(b,sa);
      newlist.push_back(tmp);
    }
  }
  else {
    for(iter=orlist.begin();iter!=orlist.end();++iter)
      for(iter2=b2->orlist.begin();iter2!=b2->orlist.end();++iter2) {
	tmp = (DisjointPattern *)(*iter)->doAnd(*iter2,sa);
	newlist.push_back(tmp);
      }
  }
  tmpor = new OrPattern(newlist);
  return tmpor;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
testq %rsi, %rsi
je 0x63b52
movq 0x3f1bc(%rip), %rsi     # 0xa2cf8
movq 0x3f24d(%rip), %rdx     # 0xa2d90
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x40b50
movq %rax, %r12
jmp 0x63b55
xorl %r12d, %r12d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rbp
movq 0x10(%rax), %rax
testq %r12, %r12
je 0x63be1
cmpq %rax, %rbp
je 0x63c33
movq %rsp, %r15
leaq 0x20(%rsp), %r13
movq 0x8(%r12), %r14
cmpq 0x10(%r12), %r14
je 0x63bd0
movq (%rbp), %rdi
movq (%r14), %rsi
movq (%rdi), %rax
movl %ebx, %edx
callq *0x28(%rax)
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x63bbf
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x63bca
movq %r15, %rdi
movq %r13, %rdx
callq 0x3f550
addq $0x8, %r14
jmp 0x63b8d
addq $0x8, %rbp
movq 0x18(%rsp), %rax
cmpq 0x10(%rax), %rbp
jne 0x63b88
jmp 0x63c33
cmpq %rax, %rbp
je 0x63c33
movq %rsp, %r12
leaq 0x20(%rsp), %r13
movq (%rbp), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movl %ebx, %edx
callq *0x28(%rax)
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x63c19
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x63c24
movq %r12, %rdi
movq %r13, %rdx
callq 0x3f550
addq $0x8, %rbp
movq 0x18(%rsp), %rax
cmpq 0x10(%rax), %rbp
jne 0x63bee
movl $0x20, %edi
callq 0x40800
movq %rax, %r14
movq %rsp, %rsi
movq %rax, %rdi
callq 0x41f60
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x63c61
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x40870
jmp 0x63c8c
jmp 0x63c89
jmp 0x63c89
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x63ca2
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::commonSubPattern(Pattern const*, int) const
Pattern *OrPattern::commonSubPattern(const Pattern *b,int4 sa) const

{
  vector<DisjointPattern *>::const_iterator iter;
  Pattern *res,*next;

  iter = orlist.begin();
  res = (*iter)->commonSubPattern(b,sa);
  iter++;

  if (sa > 0)
    sa = 0;
  while(iter!=orlist.end()) {
    next = (*iter)->commonSubPattern(res,sa);
    delete res;
    res = next;
    ++iter;
  }
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq (%r12), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq %rax, %r14
addq $0x8, %r12
cmpq 0x10(%rbx), %r12
je 0x63d0b
movl %r15d, %ebp
sarl $0x1f, %ebp
andl %r15d, %ebp
movq (%r12), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %ebp, %edx
callq *0x30(%rax)
movq %rax, %r15
testq %r14, %r14
je 0x63cfc
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
addq $0x8, %r12
movq %r15, %r14
cmpq 0x10(%rbx), %r12
jne 0x63cdc
jmp 0x63d0e
movq %r14, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::simplifyClone() const
Pattern *OrPattern::simplifyClone(void) const

{				// Look for alwaysTrue eliminate alwaysFalse
  vector<DisjointPattern *>::const_iterator iter;

  for(iter=orlist.begin();iter!=orlist.end();++iter) // Look for alwaysTrue
    if ((*iter)->alwaysTrue())
      return new InstructionPattern(true);

  vector<DisjointPattern *> newlist;
  for(iter=orlist.begin();iter!=orlist.end();++iter) // Look for alwaysFalse
    if (!(*iter)->alwaysFalse())
      newlist.push_back((DisjointPattern *)(*iter)->simplifyClone());
  
  if (newlist.empty())
    return new InstructionPattern(false);
  else if (newlist.size() == 1)
    return newlist[0];
  return new OrPattern(newlist);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
cmpq 0x10(%rdi), %r14
je 0x63f13
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
testb %al, %al
jne 0x63f83
addq $0x8, %r14
cmpq 0x10(%rbx), %r14
jne 0x63efc
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x8(%rbx), %r12
cmpq 0x10(%rbx), %r12
je 0x63f67
movq %rsp, %r14
leaq 0x20(%rsp), %r15
movq (%r12), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
testb %al, %al
jne 0x63f5d
movq (%r12), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, 0x20(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x41600
addq $0x8, %r12
cmpq 0x10(%rbx), %r12
jne 0x63f35
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq %rcx, %rax
je 0x63f9f
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x63fb8
movq (%rax), %rbx
jmp 0x63fd0
movl $0x10, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x41020
jmp 0x63fe6
movl $0x10, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x41020
jmp 0x63fd0
movl $0x20, %edi
callq 0x40800
movq %rax, %rbx
movq %rsp, %rsi
movq %rax, %rdi
callq 0x41f60
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x63fe6
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x20, %esi
jmp 0x64007
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x40870
jmp 0x64025
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
jmp 0x64036
jmp 0x64022
jmp 0x64022
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6403b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::saveXml(std::ostream&) const
void OrPattern::saveXml(ostream &s) const

{
  s << "<or_pat>\n";
  for(int4 i=0;i<orlist.size();++i)
    orlist[i]->saveXml(s);
  s << "</or_pat>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1ce2a(%rip), %rsi     # 0x80e80
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x64094
xorl %r15d, %r15d
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
incq %r15
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x64070
leaq 0x1cdef(%rip), %rsi     # 0x80e8a
movl $0xa, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolScope::findSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
SleighSymbol *SymbolScope::findSymbol(const string &nm) const

{
  SleighSymbol dummy(nm);
  SymbolTree::const_iterator iter;

  iter = tree.find( &dummy );
  if (iter != tree.end())
    return *iter;
  return (SleighSymbol *)0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x40550
leaq 0x8(%rbx), %rdi
movq %rsp, %rsi
movq %r14, (%rsi)
callq 0x3ff00
addq $0x10, %rbx
cmpq %rbx, %rax
je 0x6484f
movq 0x20(%rax), %rbx
jmp 0x64851
xorl %ebx, %ebx
movq 0x3e258(%rip), %rax     # 0xa2ab0
addq $0x10, %rax
leaq 0x20(%rsp), %rcx
movq %rax, -0x18(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x6487b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x3e220(%rip), %rax     # 0xa2ab0
addq $0x10, %rax
leaq 0x20(%rsp), %rcx
movq %rax, -0x18(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x648b3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::~SymbolTable()
SymbolTable::~SymbolTable(void)

{
  vector<SymbolScope *>::iterator iter;
  for(iter=table.begin();iter!=table.end();++iter)
    delete *iter;
  vector<SleighSymbol *>::iterator siter;
  for(siter=symbollist.begin();siter!=symbollist.end();++siter)
    delete *siter;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r15
cmpq 0x20(%rdi), %r15
je 0x648f6
movq (%r15), %r14
testq %r14, %r14
je 0x648ec
leaq 0x8(%r14), %rdi
callq 0x40780
movl $0x40, %esi
movq %r14, %rdi
callq 0x40870
addq $0x8, %r15
cmpq 0x20(%rbx), %r15
jne 0x648ce
movq (%rbx), %r14
cmpq 0x8(%rbx), %r14
je 0x64913
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6490d
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r14
jmp 0x648f9
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x64928
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x64941
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40870
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::skipScope(int) const
SymbolScope *SymbolTable::skipScope(int4 i) const

{
  SymbolScope *res = curscope;
  while(i>0) {
    if (res->parent == (SymbolScope *)0) return res;
    res = res->parent;
    --i;
  }
  return res;
}

// Assembly:
movq 0x30(%rdi), %rcx
testl %esi, %esi
jle 0x649e4
incl %esi
movq %rcx, %rax
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x649e3
decl %esi
movq %rcx, %rax
cmpl $0x2, %esi
jge 0x649ce
retq
movq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::addGlobalSymbol(SleighSymbol*)
void SymbolTable::addGlobalSymbol(SleighSymbol *a)

{
  a->id = symbollist.size();
  symbollist.push_back(a);
  SymbolScope *scope = getGlobalScope();
  a->scopeid = scope->getId();
  SleighSymbol *res = scope->addSymbol(a);
  if (res != a)
    throw SleighError("Duplicate symbol name: "+a->getName());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rsi
movq %rsi, %rcx
subq (%rdi), %rcx
shrq $0x3, %rcx
movl %ecx, 0x28(%rax)
cmpq 0x10(%rdi), %rsi
je 0x64a1c
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x64a29
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x40570
movq 0x18(%rbx), %rax
movq (%rax), %rdi
movl 0x38(%rdi), %eax
movq 0x8(%rsp), %rcx
movl %eax, 0x2c(%rcx)
leaq 0x10(%rsp), %rbx
movq %rcx, (%rbx)
addq $0x8, %rdi
movq %rbx, %rsi
callq 0x3fdd0
addq $0x20, %rax
testb $0x1, %dl
cmovneq %rbx, %rax
movq (%rax), %rax
cmpq 0x8(%rsp), %rax
jne 0x64a6d
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
movq 0x8(%rsp), %rdx
addq $0x8, %rdx
leaq 0x1c5de(%rip), %rsi     # 0x81068
leaq 0x10(%rsp), %rdi
callq 0x40500
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x3e3e3(%rip), %rsi     # 0xa2e90
movq 0x3e184(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d60
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64ae2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x64ae2
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x64aef
movq %rbx, %rdi
callq 0x40080
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::addSymbol(SleighSymbol*)
void SymbolTable::addSymbol(SleighSymbol *a)

{
  a->id = symbollist.size();
  symbollist.push_back(a);
  a->scopeid = curscope->getId();
  SleighSymbol *res = curscope->addSymbol(a);
  if (res != a)
    throw SleighError("Duplicate symbol name: "+a->getName());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rsi
movq %rsi, %rcx
subq (%rdi), %rcx
shrq $0x3, %rcx
movl %ecx, 0x28(%rax)
cmpq 0x10(%rdi), %rsi
je 0x64b2c
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x64b39
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x40570
movq 0x30(%rbx), %rdi
movl 0x38(%rdi), %eax
movq 0x8(%rsp), %rcx
movl %eax, 0x2c(%rcx)
leaq 0x10(%rsp), %rbx
movq %rcx, (%rbx)
addq $0x8, %rdi
movq %rbx, %rsi
callq 0x3fdd0
addq $0x20, %rax
testb $0x1, %dl
cmovneq %rbx, %rax
movq (%rax), %rax
cmpq 0x8(%rsp), %rax
jne 0x64b7a
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
movq 0x8(%rsp), %rdx
addq $0x8, %rdx
leaq 0x1c4d1(%rip), %rsi     # 0x81068
leaq 0x10(%rsp), %rdi
callq 0x40500
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x3e2d6(%rip), %rsi     # 0xa2e90
movq 0x3e077(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d60
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64bef
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x64bef
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x64bfc
movq %rbx, %rdi
callq 0x40080
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::findSymbolInternal(SymbolScope*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
SleighSymbol *SymbolTable::findSymbolInternal(SymbolScope *scope,const string &nm) const

{
  SleighSymbol *res;
  
  while(scope != (SymbolScope *)0) {
    res = scope->findSymbol(nm);
    if (res != (SleighSymbol *)0)
      return res;
    scope = scope->getParent();	// Try higher scope
  }
  return (SleighSymbol *)0;
}

// Assembly:
testq %rsi, %rsi
je 0x64c35
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x412e0
testq %rax, %rax
jne 0x64c2d
movq (%r14), %r14
testq %r14, %r14
jne 0x64c13
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SymbolTable::replaceSymbol(SleighSymbol*, SleighSymbol*)
void SymbolTable::replaceSymbol(SleighSymbol *a,SleighSymbol *b)

{				// Replace symbol a with symbol b
				// assuming a and b have the same name
  SleighSymbol *sym;
  int4 i = table.size()-1;
  
  while(i>=0) {			// Find the particular symbol
    sym = table[i]->findSymbol( a->getName() );
    if (sym == a) {
      table[i]->removeSymbol(a);
      b->id = a->id;
      b->scopeid = a->scopeid;
      symbollist[b->id] = b;
      table[i]->addSymbol(b);
      delete a;
      return;
    }
    --i;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x20(%rdi), %rax
subq 0x18(%rdi), %rax
shrq $0x3, %rax
leaq 0x8(%rsi), %r12
movl %eax, %r13d
decq %r13
testl %r13d, %r13d
js 0x64ce3
movl %r13d, %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movq 0x18(%r15), %rax
movq (%rax,%rbp,8), %rdi
movq %r12, %rsi
callq 0x412e0
decq %r13
cmpq %rbx, %rax
jne 0x64c62
movq 0x18(%r15), %rax
movq (%rax,%rbp,8), %r12
movq %rsp, %r13
movq %rbx, (%r13)
addq $0x8, %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x3f970
movq %r12, %rdi
movq %rax, %rsi
callq 0x3fb50
movq 0x28(%rbx), %rax
movq %rax, 0x28(%r14)
movl %eax, %eax
movq (%r15), %rcx
movq %r14, (%rcx,%rax,8)
movq 0x18(%r15), %rax
movq (%rax,%rbp,8), %rdi
movq %r14, (%r13)
addq $0x8, %rdi
movq %rsp, %rsi
callq 0x3fdd0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq