LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::identical(PatternBlock const*) const
bool PatternBlock::identical(const PatternBlock *op2) const

{				// Do the mask and value match exactly
  int4 tmplength;
  int4 length = 8*op2->getLength();
  tmplength = 8*getLength();
  if (tmplength > length)
    length = tmplength;		// Maximum of two lengths
  uintm mask1,mask2,value1,value2;
  int4 sbit = 0;
  while(sbit < length) {
    tmplength = length-sbit;
    if (tmplength > 8*sizeof(uintm))
      tmplength = 8*sizeof(uintm);
    mask1 = getMask(sbit,tmplength);
    value1 = getValue(sbit,tmplength);
    mask2 = op2->getMask(sbit,tmplength);
    value2 = op2->getValue(sbit,tmplength);
    if (mask1 != mask2) return false;
    if ((mask1&value1) != (mask2&value2)) return false;
    sbit += tmplength;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %eax
addl (%rsi), %eax
shll $0x3, %eax
movl 0x4(%rdi), %ecx
addl (%rdi), %ecx
shll $0x3, %ecx
cmpl %eax, %ecx
cmovlel %eax, %ecx
movl %ecx, 0x4(%rsp)
xorl %ebp, %ebp
movl %ebp, %r15d
movl 0x4(%rsp), %ebp
subl %r15d, %ebp
jle 0x6c237
cmpl $0x20, %ebp
pushq $0x20
popq %rax
cmovael %eax, %ebp
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x511f0
movl %eax, %r12d
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x511f0
cmpl %eax, %r12d
jne 0x6c237
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x4f4b0
movl %eax, %r13d
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x4f4b0
xorl %r13d, %eax
addl %r15d, %ebp
testl %r12d, %eax
je 0x6c1d8
cmpl %r15d, 0x4(%rsp)
setle %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: resolveIntersectBlock(PatternBlock*, PatternBlock*, PatternBlock*)
static bool resolveIntersectBlock(PatternBlock *bl1,PatternBlock *bl2,PatternBlock *thisblock)

{
  PatternBlock *inter;
  bool allocated = false;
  bool res = true;

  if (bl1 == (PatternBlock *)0)
    inter = bl2;
  else if (bl2 == (PatternBlock *)0)
    inter = bl1;
  else {
    allocated = true;
    inter = bl1->intersect(bl2);
  }
  if (inter == (PatternBlock *)0) {
    if (thisblock != (PatternBlock *)0)
      res = false;
  }
  else if (thisblock == (PatternBlock *)0)
    res = false;
  else
    res = thisblock->identical(inter);
  if (allocated)
    delete inter;
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
testq %rdi, %rdi
je 0x6c329
testq %rbx, %rbx
je 0x6c337
movq %rbx, %rsi
callq 0x501a0
testq %r14, %r14
sete %bpl
testq %rax, %rax
je 0x6c361
movq %rax, %rbx
movb $0x1, %r15b
testq %r14, %r14
jne 0x6c342
xorl %ebp, %ebp
jmp 0x6c357
testq %rbx, %rbx
jne 0x6c33a
testq %r14, %r14
sete %r15b
jmp 0x6c371
movq %rdi, %rbx
xorl %r15d, %r15d
testq %r14, %r14
je 0x6c371
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e930
movl %eax, %ebp
testb %r15b, %r15b
movl %eax, %r15d
je 0x6c371
movq %rbx, %rdi
callq 0x4e1e0
jmp 0x6c363
xorl %ebx, %ebx
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movl %ebp, %r15d
movl %r15d, %eax
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/slghpattern.cc
// Function: DisjointPattern::restoreDisjoint(Element const*)
DisjointPattern *DisjointPattern::restoreDisjoint(const Element *el)

{				// DisjointPattern factory
  DisjointPattern *res;
  if (el->getName() == "instruct_pat")
    res = new InstructionPattern();
  else if (el->getName() == "context_pat")
    res = new ContextPattern();
  else
    res = new CombinePattern();
  res->restoreXml(el);
  return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1ba1c(%rip), %rsi     # 0x87daa
callq 0x520f0
testb %al, %al
je 0x6c3ab
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq 0x428d7(%rip), %rax     # 0xaec80
jmp 0x6c3d0
leaq 0x1ba05(%rip), %rsi     # 0x87db7
movq %rbx, %rdi
callq 0x520f0
testb %al, %al
je 0x6c3de
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq 0x427c0(%rip), %rax     # 0xaeb90
addq $0x10, %rax
movq %rax, (%r14)
andq $0x0, 0x8(%r14)
jmp 0x6c3ff
pushq $0x18
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq 0x429e8(%rip), %rax     # 0xaedd8
addq $0x10, %rax
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x70(%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::PatternBlock(int, unsigned int, unsigned int)
PatternBlock::PatternBlock(int4 off,uintm msk,uintm val)

{				// Define mask and value pattern, confined to one uintm
  offset = off;
  maskvec.push_back(msk);
  valvec.push_back(val);
  nonzerosize = sizeof(uintm);	// Assume all non-zero bytes before normalization
  normalize();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r15
leaq 0xc(%rsp), %rax
movl %edx, (%rax)
movl %ecx, 0x8(%rsp)
leaq 0x8(%rdi), %rbx
leaq 0x20(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movl %esi, (%rdi)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4e220
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4e220
movl $0x4, 0x4(%r15)
movq %r15, %rdi
callq 0x4fe50
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x4e300
movq %rbx, %rdi
callq 0x4e300
movq %r15, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::PatternBlock(PatternBlock const*, PatternBlock const*)
PatternBlock::PatternBlock(const PatternBlock *a,const PatternBlock *b)

{				// Construct PatternBlock by ANDing two others together
  PatternBlock *res = a->intersect(b);
  offset = res->offset;
  nonzerosize = res->nonzerosize;
  maskvec = res->maskvec;
  valvec = res->valvec;
  delete res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
leaq 0x8(%rdi), %rbx
leaq 0x20(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x501a0
movq %rax, %r15
movq (%rax), %rax
movq %rax, (%r12)
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x52000
movq %r15, %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x52000
movq %r15, %rdi
callq 0x4e1e0
pushq $0x38
popq %rsi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4f670
movq %rax, %r15
movq %r14, %rdi
callq 0x4e300
movq %rbx, %rdi
callq 0x4e300
movq %r15, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::intersect(PatternBlock const*) const
PatternBlock *PatternBlock::intersect(const PatternBlock *b) const

{ // Construct the intersecting pattern
  if (alwaysFalse() || b->alwaysFalse())
    return new PatternBlock(false);
  PatternBlock *res = new PatternBlock(true);
  int4 maxlength = (getLength() > b->getLength()) ? getLength() : b->getLength();

  res->offset = 0;
  int4 offset = 0;
  uintm mask1,val1,mask2,val2,commonmask;
  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);
    commonmask = mask1 & mask2;	// Bits in mask shared by both patterns
    if ((commonmask & val1) != (commonmask & val2)) {
      res->nonzerosize = -1;	// Impossible pattern
      res->normalize();
      return res;
    }
    resmask = mask1 | mask2;
    resval = (mask1 & val1) | (mask2 & val2);
    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 %rdi, 0x10(%rsp)
cmpl $-0x1, 0x4(%rdi)
je 0x6c815
movq %rsi, %r14
cmpl $-0x1, 0x4(%rsi)
je 0x6c815
pushq $0x38
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x51f00
movq 0x10(%rsp), %rcx
movl 0x4(%rcx), %eax
addl (%rcx), %eax
movl 0x4(%r14), %r15d
movq %r14, 0x30(%rsp)
addl (%r14), %r15d
cmpl %r15d, %eax
cmovgl %eax, %r15d
andl $0x0, (%rbx)
leaq 0x8(%rbx), %rax
movq %rax, 0x28(%rsp)
movq %rbx, 0x18(%rsp)
addq $0x20, %rbx
movq %rbx, 0x20(%rsp)
xorl %ebp, %ebp
xorl %eax, %eax
movl %r15d, (%rsp)
cmpl %r15d, %eax
jge 0x6c830
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
pushq $0x20
popq %r15
movl %r15d, %edx
callq 0x511f0
movl %eax, %r12d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4f4b0
movl %eax, %r13d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x511f0
movl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4f4b0
movl %eax, %ecx
xorl %r13d, %ecx
andl %r12d, %ecx
testl %r14d, %ecx
jne 0x6c82c
andl %r14d, %eax
orl %r12d, %r14d
movl %r14d, 0xc(%rsp)
andl %r12d, %r13d
orl %eax, %r13d
movl %r13d, 0x8(%rsp)
movq 0x28(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x4e220
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4e220
movl 0x4(%rsp), %eax
addl $0x4, %eax
addl $0x20, %ebp
movl (%rsp), %r15d
jmp 0x6c769
pushq $0x38
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x51f00
jmp 0x6c841
pushq $-0x1
popq %r15
movq 0x18(%rsp), %rbx
movl %r15d, 0x4(%rbx)
movq %rbx, %rdi
callq 0x4fe50
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6c855
movq %rbx, %rdi
movq %rax, %rbx
pushq $0x38
popq %rsi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::PatternBlock(std::vector<PatternBlock*, std::allocator<PatternBlock*>>&)
PatternBlock::PatternBlock(vector<PatternBlock *> &list)

{				// AND several blocks together to construct new block
  PatternBlock *res,*next;

  if (list.empty()) {		// If not ANDing anything
    offset = 0;			// make constructed block always true
    nonzerosize = 0;
    return;
  }
  res = list[0];
  for(int4 i=1;i<list.size();++i) {
    next = res->intersect(list[i]);
    delete res;
    res = next;
  }
  offset = res->offset;
  nonzerosize = res->nonzerosize;
  maskvec = res->maskvec;
  valvec = res->valvec;
  delete res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
cmpq %rcx, %rax
je 0x6c93f
movq %rsi, %r13
leaq 0x8(%r12), %rdx
movq %rdx, 0x10(%rsp)
leaq 0x20(%r12), %rdx
movq %rdx, 0x8(%rsp)
movq (%rax), %rbx
pushq $0x1
popq %r14
pushq $0x38
popq %rbp
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
jbe 0x6c8fb
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq 0x501a0
movq %rax, %r15
movq %rbx, %rdi
callq 0x4e1e0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x4f670
incq %r14
movq (%r13), %rax
movq 0x8(%r13), %rcx
movq %r15, %rbx
jmp 0x6c8bd
movq (%rbx), %rax
movq %rax, (%r12)
leaq 0x8(%rbx), %rsi
movq 0x10(%rsp), %rdi
callq 0x52000
leaq 0x20(%rbx), %rsi
movq 0x8(%rsp), %rdi
callq 0x52000
movq %rbx, %rdi
callq 0x4e1e0
pushq $0x38
popq %rsi
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4f670
andq $0x0, (%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6c955
movq %rax, %rbx
movq 0x8(%rsp), %rdi
callq 0x4e300
movq 0x10(%rsp), %rdi
callq 0x4e300
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x38
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x51f00
movq (%r14), %rax
movq %rax, (%rbx)
leaq 0x8(%r14), %rsi
leaq 0x8(%rbx), %rdi
callq 0x52000
addq $0x20, %r14
movq %rbx, %rdi
addq $0x20, %rdi
movq %r14, %rsi
callq 0x52000
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movq %r14, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rdi, %r15
pushq $0x38
popq %rdi
callq 0x4f5d0
movq %rax, %r14
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x51f00
movl 0x4(%r15), %eax
movq %r15, 0x28(%rsp)
addl (%r15), %eax
movl 0x4(%rbx), %ecx
movq %rbx, 0x30(%rsp)
addl (%rbx), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, (%rsp)
andl $0x0, (%r14)
leaq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
movq %r14, 0x10(%rsp)
addq $0x20, %r14
movq %r14, 0x18(%rsp)
xorl %ebp, %ebp
xorl %eax, %eax
pushq $0x20
popq %r15
cmpl (%rsp), %eax
jge 0x6cadf
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
movl %eax, 0x4(%rsp)
callq 0x511f0
movl %eax, %r12d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4f4b0
movl %eax, %r13d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x511f0
movl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4f4b0
andl %r12d, %r14d
movl %r13d, %ecx
xorl %eax, %ecx
notl %ecx
andl %r14d, %ecx
movl %ecx, 0xc(%rsp)
andl %r13d, %eax
andl %r14d, %eax
movl %eax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x4e220
movq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4e220
movl 0x4(%rsp), %eax
addl $0x4, %eax
addl $0x20, %ebp
jmp 0x6ca43
movq 0x10(%rsp), %rbx
movl (%rsp), %eax
movl %eax, 0x4(%rbx)
movq %rbx, %rdi
callq 0x4fe50
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x4(%rdi)
jle 0x6cb79
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %ebp
movq 0x8(%rdi), %rcx
xorl %r13d, %r13d
pushq $0x4
popq %r15
movq 0x10(%r14), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %r13, %rax
setbe %r12b
jbe 0x6cb7d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4ee00
movq 0x8(%r14), %rcx
movq 0x20(%r14), %rdx
andl (%rcx,%r13,4), %eax
cmpl (%rdx,%r13,4), %eax
jne 0x6cb7d
addl $0x4, %ebp
incq %r13
jmp 0x6cb3e
sete %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x4(%rdi)
jle 0x6cbef
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %ebp
movq 0x8(%rdi), %rcx
xorl %r13d, %r13d
pushq $0x4
popq %r15
movq 0x10(%r14), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %r13, %rax
setbe %r12b
jbe 0x6cbf3
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x4fe90
movq 0x8(%r14), %rcx
movq 0x20(%r14), %rdx
andl (%rcx,%r13,4), %eax
cmpl (%rdx,%r13,4), %eax
jne 0x6cbf3
addl $0x4, %ebp
incq %r13
jmp 0x6cbb4
sete %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1b1a5(%rip), %rsi     # 0x87dc3
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x19b29(%rip), %rsi     # 0x86756
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 (%r14), %esi
movq %rax, %rdi
callq 0x51690
leaq 0x1a5c4(%rip), %rsi     # 0x87220
movq %rax, %rdi
callq 0x4f5b0
leaq 0x1b164(%rip), %rsi     # 0x87dcf
movq %rbx, %rdi
callq 0x4f5b0
movl 0x4(%r14), %esi
movq %rax, %rdi
callq 0x51690
leaq 0x1b153(%rip), %rsi     # 0x87dd9
movq %rax, %rdi
callq 0x4f5b0
xorl %r12d, %r12d
leaq 0x1bafb(%rip), %r13     # 0x88793
leaq 0x1a5d6(%rip), %rbp     # 0x87275
leaq 0x1ab4e(%rip), %r15     # 0x877f4
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x2, %rax
cmpq %r12, %rax
jbe 0x6cd33
movq %rbx, %rdi
leaq 0x1b11c(%rip), %rsi     # 0x87ddd
callq 0x4f5b0
movq %rbx, %rdi
movq %r13, %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 0x8(%r14), %rcx
movl (%rcx,%r12,4), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
leaq 0x1a520(%rip), %rsi     # 0x87220
callq 0x4f5b0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x4f5b0
movq 0x20(%r14), %rcx
movl (%rcx,%r12,4), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f5b0
incq %r12
jmp 0x6cca6
leaq 0x1b0b1(%rip), %rsi     # 0x87deb
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/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 %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
jg 0x6cfd0
movq 0x41d3e(%rip), %rsi     # 0xaecf8
movq 0x41d97(%rip), %rdx     # 0xaed58
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6cfee
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 0x41d03(%rip), %rsi     # 0xaecf8
movq 0x41bdc(%rip), %rdx     # 0xaebd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d058
movq %rax, %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r14
testl %ebx, %ebx
jns 0x6d02b
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
pushq $0x18
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq (%r12), %rax
movq %r12, %rdi
callq *0x10(%rax)
movq 0x41d91(%rip), %rcx     # 0xaedd8
addq $0x10, %rcx
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movq %r14, 0x10(%rbx)
jmp 0x6d0d2
testl %ebx, %ebx
js 0x6d07b
movq 0x8(%r15), %rdi
callq 0x4dee0
movq %rax, %r12
movq %rax, %rdi
movl %ebx, %esi
callq 0x50b20
movq 0x8(%r14), %rdi
movq %r12, %rsi
jmp 0x6d09a
movq 0x8(%r14), %rdi
callq 0x4dee0
movq %rax, %r12
negl %ebx
movq %rax, %rdi
movl %ebx, %esi
callq 0x50b20
movq 0x8(%r15), %rsi
movq %r12, %rdi
callq 0x501a0
movq %rax, %r14
movq %r12, %rdi
callq 0x4e1e0
pushq $0x38
popq %rsi
movq %r12, %rdi
callq 0x4f670
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq 0x41bb9(%rip), %rax     # 0xaec80
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
pushq $0x18
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/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, %r14
movq %rdi, %r15
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x40(%rax)
testl %eax, %eax
jg 0x6d132
movq 0x41bdc(%rip), %rsi     # 0xaecf8
movq 0x41c35(%rip), %rdx     # 0xaed58
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d150
negl %ebx
movq (%r14), %rax
movq 0x30(%rax), %rax
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
movq 0x41ba1(%rip), %rsi     # 0xaecf8
movq 0x41a7a(%rip), %rdx     # 0xaebd8
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d185
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %r14
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x50360
jmp 0x6d1ff
testl %ebx, %ebx
js 0x6d1a8
movq 0x8(%r14), %rdi
callq 0x4dee0
movq %rax, %r12
movq %rax, %rdi
movl %ebx, %esi
callq 0x50b20
movq 0x8(%r15), %rdi
movq %r12, %rsi
jmp 0x6d1c7
movq 0x8(%r15), %rdi
callq 0x4dee0
movq %rax, %r12
negl %ebx
movq %rax, %rdi
movl %ebx, %esi
callq 0x50b20
movq 0x8(%r14), %rsi
movq %r12, %rdi
callq 0x4d9c0
movq %rax, %rbx
movq %r12, %rdi
callq 0x4e1e0
pushq $0x38
popq %rsi
movq %r12, %rdi
callq 0x4f670
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq 0x41a8c(%rip), %rax     # 0xaec80
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
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6d25b
movq 0x41ab3(%rip), %rsi     # 0xaecf8
movq 0x41b0c(%rip), %rdx     # 0xaed58
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d273
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 0x6d297
movq (%r14), %rax
movq %r14, %rdi
jmp 0x6d29f
negl %ebx
movq (%r15), %rax
movq %r15, %rdi
movl %ebx, %esi
callq *0x18(%rax)
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4dc90
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movq %r14, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x38
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x51f00
movq %rbx, 0x8(%r14)
movq (%r15), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4e150
movq %rax, %r14
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x4f670
movq %r14, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x6d3d7
movq 0x41978(%rip), %rsi     # 0xaecf8
movq 0x41851(%rip), %rdx     # 0xaebd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d3d7
movq %rax, %r12
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r14
movq (%r12), %rax
movq %r12, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4dc90
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
negl %ebx
movq (%r15), %rax
movq 0x20(%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 %rax, %r14
pushq $0x20
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/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 0x6d46b
movq 0x418d3(%rip), %rsi     # 0xaecf8
movq 0x417ac(%rip), %rdx     # 0xaebd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d46b
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
callq 0x501a0
movq %rax, %rbx
pushq $0x10
popq %rdi
callq 0x4f5d0
movq 0x41736(%rip), %rcx     # 0xaeb90
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_O2/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 0x6d4e3
movq 0x4185b(%rip), %rsi     # 0xaecf8
movq 0x41734(%rip), %rdx     # 0xaebd8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d4e3
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rsi
callq 0x4d9c0
movq %rax, %rbx
pushq $0x10
popq %rdi
callq 0x4f5d0
movq 0x416be(%rip), %rcx     # 0xaeb90
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_O2/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 0x41849(%rip), %rax     # 0xaedd8
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x6d5a5
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6d5b5
movq (%rdi), %rax
popq %rbx
jmpq *0x8(%rax)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6d687
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 0x4166a(%rip), %rsi     # 0xaecf8
movq 0x416c3(%rip), %rdx     # 0xaed58
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d6f1
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
pushq $0x18
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq 0x416f8(%rip), %rax     # 0xaedd8
addq $0x10, %rax
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq %r14, 0x10(%rbx)
jmp 0x6d74b
movq 0x41600(%rip), %rsi     # 0xaecf8
movq 0x41631(%rip), %rdx     # 0xaed30
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d75a
movq 0x10(%r14), %rdi
movq (%rdi), %rcx
movq %rax, %rsi
movl %ebx, %edx
callq *0x28(%rcx)
movq %rax, %r15
pushq $0x18
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq 0x8(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x4169c(%rip), %rcx     # 0xaedd8
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 0x6d6ce
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
jmp 0x6d6ce
movq %rax, %r14
pushq $0x18
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/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 0x6d7e5
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 0x4150c(%rip), %rsi     # 0xaecf8
movq 0x41565(%rip), %rdx     # 0xaed58
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d856
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
pushq $0x18
popq %rdi
callq 0x4f5d0
movq 0x4159d(%rip), %rcx     # 0xaedd8
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 0x4149b(%rip), %rsi     # 0xaecf8
movq 0x414cc(%rip), %rdx     # 0xaed30
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
testq %rax, %rax
je 0x6d890
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 0x6d7d8
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6d8d8
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 0x6d8fc
movq (%r15), %rax
movq %r15, %rdi
jmp 0x6d904
negl %ebx
movq (%r14), %rax
movq %r14, %rdi
movl %ebx, %esi
callq *0x18(%rax)
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4dc90
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
pushq $0x20
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/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, %rbx
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq 0x10(%rbx), %rdi
movq (%rdi), %rcx
testb %al, %al
jne 0x6d96d
callq *0x50(%rcx)
movq 0x8(%rbx), %rdi
movq (%rdi), %rcx
testb %al, %al
je 0x6d975
popq %rbx
popq %r14
popq %r15
jmpq *0x10(%rcx)
callq *0x58(%rcx)
testb %al, %al
jne 0x6d98a
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
testb %al, %al
je 0x6d9a1
pushq $0x10
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
callq 0x50360
jmp 0x6d9d9
pushq $0x18
popq %rdi
callq 0x4f5d0
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %r15
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x4140e(%rip), %rcx     # 0xaedd8
addq $0x10, %rcx
movq %rcx, (%r14)
movq %r15, 0x8(%r14)
movq %rax, 0x10(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
pushq $0x18
jmp 0x6d9ee
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x4f670
movq %rbx, %rdi
callq 0x518c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1a430(%rip), %rsi     # 0x87e41
movq %rbx, %rdi
callq 0x4f5b0
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 0x1a416(%rip), %rsi     # 0x87e50
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4f5b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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), %r15
pushq $0x10
popq %r14
movq %r14, %rdi
callq 0x4f5d0
movq 0x41127(%rip), %rcx     # 0xaeb90
addq $0x10, %rcx
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq (%r15), %rsi
movq %rax, %rdi
callq 0x4e500
movq %r14, %rdi
callq 0x4f5d0
movq 0x411ed(%rip), %rcx     # 0xaec80
addq $0x10, %rcx
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rbx)
movq 0x8(%r15), %rsi
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x514a0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::isMatch(ParserWalker&) const
bool OrPattern::isMatch(ParserWalker &walker) const

{
  for(int4 i=0;i<orlist.size();++i)
    if (orlist[i]->isMatch(walker))
      return true;
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %ecx, %ecx
movq %rcx, %r15
movq 0x8(%r14), %rax
movq 0x10(%r14), %r12
subq %rax, %r12
sarq $0x3, %r12
cmpq %rcx, %r12
jbe 0x6dc38
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x1(%r15), %rcx
testb %al, %al
je 0x6dc0c
cmpq %r15, %r12
seta %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::alwaysTrue() const
bool OrPattern::alwaysTrue(void) const

{				// This isn't quite right because different branches
				// may cover the entire gamut
  vector<DisjointPattern *>::const_iterator iter;

  for(iter=orlist.begin();iter!=orlist.end();++iter)
    if ((*iter)->alwaysTrue()) return true;
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq %rcx, %r14
movq 0x10(%rbx), %r15
cmpq %r15, %rcx
je 0x6dc73
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
leaq 0x8(%r14), %rcx
testb %al, %al
je 0x6dc56
cmpq %r15, %r14
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::alwaysFalse() const
bool OrPattern::alwaysFalse(void) const

{
  vector<DisjointPattern *>::const_iterator iter;

  for(iter=orlist.begin();iter!=orlist.end();++iter)
    if (!(*iter)->alwaysFalse()) return false;
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq %rcx, %r14
movq 0x10(%rbx), %r15
cmpq %r15, %rcx
je 0x6dca9
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
leaq 0x8(%r14), %rcx
testb %al, %al
jne 0x6dc8c
cmpq %r15, %r14
sete %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: OrPattern::alwaysInstructionTrue() const
bool OrPattern::alwaysInstructionTrue(void) const

{
  vector<DisjointPattern *>::const_iterator iter;

  for(iter=orlist.begin();iter!=orlist.end();++iter)
    if (!(*iter)->alwaysInstructionTrue()) return false;
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq %rcx, %r14
movq 0x10(%rbx), %r15
cmpq %r15, %rcx
je 0x6dcdf
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
leaq 0x8(%r14), %rcx
testb %al, %al
jne 0x6dcc2
cmpq %r15, %r14
sete %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x38, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x6dd92
movq 0x40fe6(%rip), %rsi     # 0xaecf8
movq 0x41067(%rip), %rdx     # 0xaed80
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4fa60
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
testq %rax, %rax
je 0x6dda0
movq %rax, %r12
movq 0x8(%r14), %rbp
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r13
movq %r14, 0x30(%rsp)
cmpq 0x10(%r14), %rbp
je 0x6ddd9
movq 0x8(%r12), %r14
cmpq 0x10(%r12), %r14
je 0x6dd87
movq (%rbp), %rdi
movq (%r14), %rsi
movq (%rdi), %rax
movl %ebx, %edx
callq *0x28(%rax)
movq %rax, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x513c0
addq $0x8, %r14
jmp 0x6dd5b
addq $0x8, %rbp
movq 0x30(%rsp), %r14
jmp 0x6dd4c
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movq 0x8(%r14), %rbp
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
cmpq 0x10(%r14), %rbp
je 0x6ddd9
movq (%rbp), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movl %ebx, %edx
callq *0x28(%rax)
movq %rax, 0x8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x513c0
addq $0x8, %rbp
jmp 0x6ddae
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %r14
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x51950
leaq 0x10(%rsp), %rdi
callq 0x4ecd0
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x4f670
jmp 0x6de24
jmp 0x6de21
jmp 0x6de21
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4ecd0
movq %rbx, %rdi
callq 0x518c0
// File: /workspace/github_cpp_makefile_star2_O2/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
movl %r15d, %ebp
sarl $0x1f, %ebp
andl %r15d, %ebp
addq $0x8, %r12
cmpq 0x10(%rbx), %r12
je 0x6de91
movq (%r12), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %ebp, %edx
callq *0x30(%rax)
movq %rax, %r15
testq %r14, %r14
je 0x6de88
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
addq $0x8, %r12
movq %r15, %r14
jmp 0x6de62
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop