LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::buildBigBlock(int, int, int, long)
PatternBlock *TokenPattern::buildBigBlock(int4 size,int4 bitstart,int4 bitend,intb value)

{				// Build pattern block given a bigendian contiguous
				// range of bits and a value for those bits
  int4 tmpstart,startbit,endbit;
  PatternBlock *tmpblock,*block;

  startbit = 8*size - 1 - bitend;
  endbit = 8*size - 1 - bitstart;
  
  block = (PatternBlock *)0;
  while(endbit >= startbit) {
    tmpstart = endbit - (endbit & 7);
    if (tmpstart < startbit)
      tmpstart = startbit;
    tmpblock = buildSingle(tmpstart,endbit,(uintm)value);
    if (block == (PatternBlock *)0)
      block = tmpblock;
    else {
      PatternBlock *newblock = block->intersect(tmpblock);
      delete block;
      delete tmpblock;
      block = newblock;
    }
    value >>= (endbit-tmpstart+1);
    endbit = tmpstart - 1;
  }
  return block;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl %esi, %edx
jge 0x5b948
xorl %r15d, %r15d
jmp 0x5ba2d
movq %rcx, %rbx
leal -0x1(,%rdi,8), %ebp
movl %ebp, %r14d
subl %edx, %r14d
subl %esi, %ebp
xorl %r13d, %r13d
movl %r14d, 0xc(%rsp)
movl %ebp, %r12d
andl $-0x8, %r12d
cmpl %r14d, %r12d
cmovgl %r12d, %r14d
movl %r14d, %edi
movl %ebp, %esi
movl %ebx, %edx
callq 0x42220
movq %rax, %r15
testq %r13, %r13
je 0x5ba0b
movq %r13, %rdi
movq %r15, %rsi
callq 0x40f20
movq %rax, 0x10(%rsp)
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0x5b9ad
movq 0x30(%r13), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x5b9c2
movq 0x18(%r13), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %r13, %rdi
callq 0x40870
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x5b9e4
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x5b9f9
movq 0x18(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %r15, %rdi
callq 0x40870
movq 0x10(%rsp), %r15
subl %r14d, %ebp
incb %bpl
movl %ebp, %ecx
sarq %cl, %rbx
decl %r14d
movq %r15, %r13
movl %r14d, %ebp
movl 0xc(%rsp), %r14d
cmpl %r14d, %r12d
jg 0x5b962
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::TokenPattern(bool)
TokenPattern::TokenPattern(bool tf)

{				// TRUE or FALSE pattern
  leftellipsis = false;
  rightellipsis = false;
  pattern = new InstructionPattern(tf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x12(%rdi)
movups %xmm0, 0x8(%rdi)
movl $0x10, %edi
callq 0x40800
movq %rax, %r15
movzbl %bpl, %esi
movq %rax, %rdi
callq 0x41020
movq %r15, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x10, %esi
movq %r15, %rdi
callq 0x40870
jmp 0x5bcf3
movq %rax, %r14
leaq 0x8(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x5bd0b
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::TokenPattern(Token*)
TokenPattern::TokenPattern(Token *tok)

{
  leftellipsis = false;
  rightellipsis = false;
  pattern = new InstructionPattern(true);
  toklist.push_back(tok);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rsp)
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x12(%rdi)
movups %xmm0, 0x8(%rdi)
movl $0x10, %edi
callq 0x40800
movq %rax, %r12
movq %rax, %rdi
movl $0x1, %esi
callq 0x41020
movq %r12, (%rbx)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x5bd67
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x5bd72
movq %rsp, %rdx
movq %r14, %rdi
callq 0x409a0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movl $0x10, %esi
movq %r12, %rdi
callq 0x40870
jmp 0x5bd93
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5bda7
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r15, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::TokenPattern(Token*, long, int, int)
TokenPattern::TokenPattern(Token *tok,intb value,int4 bitstart,int4 bitend)

{				// A basic instruction pattern

  toklist.push_back(tok);
  leftellipsis = false;
  rightellipsis = false;
  PatternBlock *block;

  if (tok->isBigEndian())
    block = buildBigBlock(tok->getSize(),bitstart,bitend,value);
  else
    block = buildLittleBlock(tok->getSize(),bitstart,bitend,value);
  pattern = new InstructionPattern(block);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebp
movl %ecx, %r12d
movq %rdx, %r15
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x5bdf3
movq %rsi, (%rax)
addq $0x8, 0x10(%rbx)
jmp 0x5be03
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x409a0
movw $0x0, 0x20(%rbx)
movq 0x8(%rsp), %rax
cmpb $0x1, 0x28(%rax)
jne 0x5be26
movl 0x20(%rax), %edi
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x41520
jmp 0x5be33
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x3f2a0
movq %rax, %r15
movl $0x10, %edi
callq 0x40800
movq 0x46e39(%rip), %rcx     # 0xa2c80
addq $0x10, %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5be64
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5be7b
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r15, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::TokenPattern(long, int, int)
TokenPattern::TokenPattern(intb value,int4 startbit,int4 endbit)

{				// A basic context pattern
  leftellipsis = false;
  rightellipsis = false;
  PatternBlock *block;
  int4 size = (endbit/8) + 1;

  block = buildBigBlock(size,size*8-1-endbit,size*8-1-startbit,value);
  pattern = new ContextPattern(block);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
leal 0x7(%rcx), %esi
testl %ecx, %ecx
cmovnsl %ecx, %esi
sarl $0x3, %esi
leal 0x7(,%rsi,8), %r8d
movl %esi, %edi
incl %edi
movl %r8d, %esi
subl %ecx, %esi
subl %edx, %r8d
xorps %xmm0, %xmm0
movups %xmm0, 0x12(%rbx)
movups %xmm0, 0x8(%rbx)
movl %r8d, %edx
movq %rax, %rcx
callq 0x41520
movq %rax, %r14
movl $0x10, %edi
callq 0x40800
movq 0x46cb4(%rip), %rcx     # 0xa2b90
addq $0x10, %rcx
movq %rcx, (%rax)
movq %r14, 0x8(%rax)
movq %rax, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x5bf07
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::TokenPattern(TokenPattern const&)
TokenPattern::TokenPattern(const TokenPattern &tokpat)

{
  pattern = tokpat.pattern->simplifyClone();
  toklist = tokpat.toklist;
  leftellipsis = tokpat.leftellipsis;
  rightellipsis = tokpat.rightellipsis;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movq (%rsi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, (%rbx)
leaq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x40f10
movb 0x20(%r14), %al
movb %al, 0x20(%rbx)
movb 0x21(%r14), %al
movb %al, 0x21(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x5bf71
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::operator=(TokenPattern const&)
const TokenPattern &TokenPattern::operator=(const TokenPattern &tokpat)

{
  delete pattern;

  pattern = tokpat.pattern->simplifyClone();
  toklist = tokpat.toklist;
  leftellipsis = tokpat.leftellipsis;
  rightellipsis = tokpat.rightellipsis;
  return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x5bf92
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, (%rbx)
leaq 0x8(%r14), %rsi
leaq 0x8(%rbx), %rdi
callq 0x40f10
movb 0x20(%r14), %al
movb %al, 0x20(%rbx)
movb 0x21(%r14), %al
movb %al, 0x21(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::doAnd(TokenPattern const&) const
TokenPattern TokenPattern::doAnd(const TokenPattern &tokpat) const

{				// Return -this- AND tokpat
  TokenPattern res((Pattern *)0);
  int4 sa = res.resolveTokens(*this,tokpat);

  res.pattern = pattern->doAnd(tokpat.pattern,sa);
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movw $0x0, 0x20(%rdi)
callq 0x41b20
movq (%r15), %rdi
movq (%r14), %rsi
movq (%rdi), %rcx
movl %eax, %edx
callq *0x28(%rcx)
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x3fa70
movq %r14, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::getMinimumLength() const
int4 TokenPattern::getMinimumLength(void) const

{				// Add up length of concatenated tokens
  int4 length = 0;
  for(int4 i=0;i<toklist.size();++i)
    length += toklist[i]->getSize();
  return length;
}

// Assembly:
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
subq %rcx, %rdx
je 0x5c5ad
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %esi, %esi
xorl %eax, %eax
movq (%rcx,%rsi,8), %rdi
addl 0x20(%rdi), %eax
incq %rsi
cmpq %rsi, %rdx
jne 0x5c59d
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenField::getValue(ParserWalker&) const
intb TokenField::getValue(ParserWalker &walker) const

{				// Construct value given specific instruction stream
  intb res = getInstructionBytes(walker,bytestart,byteend,bigendian);
  
  res >>= shift;
  if (signbit)
    sign_extend(res,bitend-bitstart);
  else
    zero_extend(res,bitend-bitstart);
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movl 0x24(%rdi), %r14d
movl 0x28(%rdi), %ebp
movb 0x18(%rdi), %r13b
movq $0x0, (%rsp)
subl %r14d, %ebp
incl %ebp
movl %ebp, %r12d
cmpl $0x4, %ebp
jb 0x5cae1
movq (%r15), %rdi
movq 0x10(%r15), %rax
movl 0x64(%rax), %ecx
movl %r14d, %esi
movl $0x4, %edx
callq 0x40ea0
movq (%rsp), %rcx
shlq $0x20, %rcx
movl %eax, %eax
orq %rcx, %rax
movq %rax, (%rsp)
addl $0x4, %r14d
addl $-0x4, %r12d
cmpl $0x3, %r12d
ja 0x5caab
testl %r12d, %r12d
je 0x5cb12
movq (%r15), %rdi
movq 0x10(%r15), %rax
movl 0x64(%rax), %ecx
movl %r14d, %esi
movl %r12d, %edx
callq 0x40ea0
shll $0x3, %r12d
movq (%rsp), %rdx
movl %r12d, %ecx
shlq %cl, %rdx
movl %eax, %eax
orq %rdx, %rax
movq %rax, (%rsp)
testb %r13b, %r13b
jne 0x5cb21
movq %rsp, %rdi
movl %ebp, %esi
callq 0x41160
movq (%rsp), %rax
movq %rax, (%rsp)
movb 0x2c(%rbx), %cl
sarq %cl, %rax
movq %rax, (%rsp)
movl 0x20(%rbx), %esi
subl 0x1c(%rbx), %esi
cmpb $0x1, 0x19(%rbx)
jne 0x5cb49
movq %rsp, %rdi
callq 0x40540
jmp 0x5cb51
movq %rsp, %rdi
callq 0x41bc0
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenField::saveXml(std::ostream&) const
void TokenField::saveXml(ostream &s) const

{
  s << "<tokenfield";
  s << " bigendian=\"";
  if (bigendian)
    s << "true\"";
  else
    s << "false\"";
  s << " signbit=\"";
  if (signbit)
    s << "true\"";
  else
    s << "false\"";
  s << " bitstart=\"" << dec << bitstart << "\"";
  s << " bitend=\"" << bitend << "\"";
  s << " bytestart=\"" << bytestart << "\"";
  s << " byteend=\"" << byteend << "\"";
  s << " shift=\"" << shift << "\"/>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x23c20(%rip), %rsi     # 0x807b2
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x23c18(%rip), %rsi     # 0x807be
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
cmpb $0x1, 0x18(%r14)
jne 0x5cbc8
leaq 0x24834(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5cbd4
leaq 0x23bfc(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x23bef(%rip), %rsi     # 0x807d2
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b80
cmpb $0x1, 0x19(%r14)
jne 0x5cc05
leaq 0x247f7(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5cc11
leaq 0x23bbf(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x23bbd(%rip), %rsi     # 0x807dd
movl $0xb, %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 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x24992(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23b7d(%rip), %rsi     # 0x807e9
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x20(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23b57(%rip), %rsi     # 0x807f3
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23b34(%rip), %rsi     # 0x80800
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x28(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23b0f(%rip), %rsi     # 0x8080b
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x2c(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x23af8(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: ContextField::getValue(ParserWalker&) const
intb ContextField::getValue(ParserWalker &walker) const

{
  intb res = getContextBytes(walker,startbyte,endbyte);
  res >>= shift;
  if (signbit)
    sign_extend(res,endbit-startbit);
  else
    zero_extend(res,endbit-startbit);
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl 0x14(%rdi), %r14d
movl 0x18(%rdi), %ebp
subl %r14d, %ebp
incl %ebp
xorl %r12d, %r12d
cmpl $0x4, %ebp
jb 0x5d1df
movq (%r15), %rdi
movl %r14d, %esi
movl $0x4, %edx
callq 0x413a0
shlq $0x20, %r12
movl %eax, %eax
orq %rax, %r12
addl $0x4, %r14d
addl $-0x4, %ebp
cmpl $0x3, %ebp
ja 0x5d1ba
testl %ebp, %ebp
je 0x5d1fd
movq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x413a0
shll $0x3, %ebp
movl %ebp, %ecx
shlq %cl, %r12
movl %eax, %eax
orq %rax, %r12
movq %r12, 0x8(%rsp)
movb 0x1c(%rbx), %cl
sarq %cl, %r12
movq %r12, 0x8(%rsp)
movl 0x10(%rbx), %esi
subl 0xc(%rbx), %esi
cmpb $0x1, 0x20(%rbx)
jne 0x5d225
leaq 0x8(%rsp), %rdi
callq 0x40540
jmp 0x5d22f
leaq 0x8(%rsp), %rdi
callq 0x41bc0
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: ContextField::saveXml(std::ostream&) const
void ContextField::saveXml(ostream &s) const

{
  s << "<contextfield";
  s << " signbit=\"";
  if (signbit)
    s << "true\"";
  else
    s << "false\"";
  s << " startbit=\"" << dec << startbit << "\"";
  s << " endbit=\"" << endbit << "\"";
  s << " startbyte=\"" << startbyte << "\"";
  s << " endbyte=\"" << endbyte << "\"";
  s << " shift=\"" << shift << "\"/>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x235db(%rip), %rsi     # 0x80849
movl $0xd, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x23550(%rip), %rsi     # 0x807d2
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b80
cmpb $0x1, 0x20(%r14)
jne 0x5d2a4
leaq 0x24158(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5d2b0
leaq 0x23520(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x23598(%rip), %rsi     # 0x80857
movl $0xb, %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 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x242f3(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23558(%rip), %rsi     # 0x80863
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23532(%rip), %rsi     # 0x8086d
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x14(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x2350f(%rip), %rsi     # 0x8087a
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x23470(%rip), %rsi     # 0x8080b
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x23459(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: OperandValue::genPattern(long) const
TokenPattern OperandValue::genPattern(intb val) const

{
  // In general an operand cannot be interpreted as any sort
  // of static constraint in an equation, and if it is being
  // defined by the equation, it should be on the left hand side.
  // If the operand has a defining expression already, use
  // of the operand in the equation makes sense, its defining
  // expression would become a subexpression in the full
  // expression. However, since this can be accomplished
  // by explicitly copying the subexpression into the full
  // expression, we don't support operands as placeholders.
  throw SleighError("Operand used in pattern expression");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x22fd2(%rip), %rsi     # 0x808b3
leaq 0x22fed(%rip), %rdx     # 0x808d5
leaq 0x8(%rsp), %rdi
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x45585(%rip), %rsi     # 0xa2e90
movq 0x45326(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d60
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5d93c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x5d93c
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5d949
movq %rbx, %rdi
callq 0x40080
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: OperandValue::getValue(ParserWalker&) const
intb OperandValue::getValue(ParserWalker &walker) const

{				// Get the value of an operand when it is used in
				// an expression. 
  OperandSymbol *sym = ct->getOperand(index);
  PatternExpression *patexp = sym->getDefiningExpression();
  if (patexp == (PatternExpression *)0) {
    TripleSymbol *defsym = sym->getDefiningSymbol();
    if (defsym != (TripleSymbol *)0)
      patexp = defsym->getPatternExpression();
    if (patexp == (PatternExpression *)0)
      return 0;
  }
  ConstructState tempstate;
  ParserWalker newwalker(walker.getParserContext());
  newwalker.setOutOfBandState(ct,index,&tempstate,walker);
  intb res = patexp->getValue(newwalker);
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rax
movslq 0xc(%rdi), %rcx
movq 0x18(%rax), %rax
movq (%rax,%rcx,8), %rax
movq 0x50(%rax), %r14
testq %r14, %r14
jne 0x5dac9
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x5dac1
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, %r14
jmp 0x5dac4
xorl %r14d, %r14d
testq %r14, %r14
je 0x5db24
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %rcx
movups %xmm0, 0x40(%rcx)
xorl %eax, %eax
movq %rax, 0x50(%rcx)
movq (%rbx), %rdx
leaq 0x70(%rsp), %rdi
movq %rdx, (%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%r15), %rsi
movl 0xc(%r15), %edx
movq %rbx, %r8
callq 0x40330
movq (%r14), %rax
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5db26
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
jmp 0x5db26
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
jmp 0x5db38
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5db52
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: OperandValue::saveXml(std::ostream&) const
void OperandValue::saveXml(ostream &s) const

{
  s << "<operand_exp";
  s << " index=\"" << dec << index << "\"";
  s << " table=\"0x" << hex << ct->getParent()->getId() << "\"";
  s << " ct=\"0x" << ct->getId() << "\"/>\n"; // Save id of our constructor
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x22d1e(%rip), %rsi     # 0x808d6
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x22d17(%rip), %rsi     # 0x808e3
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 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x239e6(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x22cd4(%rip), %rsi     # 0x808ec
movl $0xa, %edx
movq %rbx, %rdi
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 0x10(%r14), %rax
movq 0x8(%rax), %rax
movl 0x28(%rax), %esi
movq %rbx, %rdi
callq 0x3ffb0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x22c93(%rip), %rsi     # 0x808f7
movl $0x7, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x10(%r14), %rax
movl 0x84(%rax), %esi
movq %rbx, %rdi
callq 0x3ffb0
leaq 0x22b8a(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: BinaryExpression::restoreXml(Element const*, Translate*)
void BinaryExpression::restoreXml(const Element *el,Translate *trans)

{
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  left = PatternExpression::restoreExpression(*iter,trans);
  ++iter;
  right = PatternExpression::restoreExpression(*iter,trans);
  left->layClaim();
  right->layClaim();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq 0x78(%rsi), %r15
movq (%r15), %rdi
movq %rdx, %rsi
callq 0x407c0
movq %rax, 0x10(%r14)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x407c0
movq %rax, 0x18(%r14)
movq 0x10(%r14), %rcx
incl 0x8(%rcx)
incl 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: OperandEquation::resolveOperandLeft(OperandResolve&) const
bool OperandEquation::resolveOperandLeft(OperandResolve &state) const

{
  OperandSymbol *sym = state.operands[ index ];
  if (sym->isOffsetIrrelevant()) {
    sym->offsetbase = -1;
    sym->reloffset = 0;
    return true;
  }
  if (state.base == -2)		// We have no base
    return false;
  sym->offsetbase = state.base;
  sym->reloffset = state.offset;
  state.cur_rightmost = index;
  state.size = 0;		// Distance from right edge
  return true;
}

// Assembly:
movq (%rsi), %rcx
movslq 0x38(%rdi), %rax
movq (%rcx), %rcx
movq (%rcx,%rax,8), %rcx
testb $0x2, 0x58(%rcx)
jne 0x5e7cd
movl 0x8(%rsi), %edx
cmpl $-0x2, %edx
jne 0x5e7dd
xorl %eax, %eax
retq
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x30(%rcx)
jmp 0x5e7f0
movl %edx, 0x34(%rcx)
movl 0xc(%rsi), %edx
movl %edx, 0x30(%rcx)
movl %eax, 0x10(%rsi)
movl $0x0, 0x14(%rsi)
movb $0x1, %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: OperandEquation::operandOrder(Constructor*, std::vector<OperandSymbol*, std::allocator<OperandSymbol*>>&) const
void OperandEquation::operandOrder(Constructor *ct,vector<OperandSymbol *> &order) const

{
  OperandSymbol *sym = ct->getOperand(index);
  if (!sym->isMarked()) {
    order.push_back(sym);
    sym->setMark();
  }
}

// Assembly:
pushq %rax
movslq 0x38(%rdi), %rax
movq 0x18(%rsi), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, (%rsp)
testb $0x8, 0x58(%rax)
jne 0x5e835
movq 0x8(%rdx), %rsi
cmpq 0x10(%rdx), %rsi
je 0x5e81f
movq %rax, (%rsi)
addq $0x8, 0x8(%rdx)
jmp 0x5e82d
movq %rsp, %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x41b90
movq (%rsp), %rax
orl $0x8, 0x58(%rax)
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: UnconstrainedEquation::resolveOperandLeft(OperandResolve&) const
bool UnconstrainedEquation::resolveOperandLeft(OperandResolve &state) const

{
  state.cur_rightmost = -1;
  if (resultpattern.getLeftEllipsis()||resultpattern.getRightEllipsis()) // don't know length
    state.size = -1;
  else
    state.size = resultpattern.getMinimumLength();
  return true;
}

// Assembly:
movl $0xffffffff, 0x10(%rsi) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpb $0x0, 0x30(%rdi)
jne 0x5e97f
cmpb $0x0, 0x31(%rdi)
jne 0x5e97f
movq 0x18(%rdi), %rcx
movq 0x20(%rdi), %rdx
subq %rcx, %rdx
je 0x5e97d
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
xorl %eax, %eax
movq (%rcx,%rdi,8), %r8
addl 0x20(%r8), %eax
incq %rdi
cmpq %rdi, %rdx
jne 0x5e96b
jmp 0x5e97f
xorl %eax, %eax
movl %eax, 0x14(%rsi)
movb $0x1, %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: buildPattern(PatternValue*, long, std::vector<PatternValue const*, std::allocator<PatternValue const*>>&, std::vector<long, std::allocator<long>>&)
static TokenPattern buildPattern(PatternValue *lhs,intb lhsval,vector<const PatternValue *> &semval,
				 vector<intb> &val)

{
  TokenPattern respattern = lhs->genPattern(lhsval);

  for(int4 i=0;i<semval.size();++i)
    respattern = respattern.doAnd(semval[i]->genPattern(val[i]));
  return respattern;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r14
movq %rcx, %r15
movq %rdi, %rbx
movq (%rsi), %rax
callq *0x48(%rax)
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x5ee08
xorl %ebp, %ebp
leaq 0x8(%rsp), %r12
leaq 0x30(%rsp), %r13
movq (%rax,%rbp,8), %rsi
movq (%r14), %rax
movq (%rax,%rbp,8), %rdx
movq (%rsi), %rax
movq %r12, %rdi
callq *0x48(%rax)
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x420b0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x414a0
movq %r13, %rdi
callq 0x3fa70
movq %r12, %rdi
callq 0x3fa70
incq %rbp
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
ja 0x5edb5
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5ee3b
movq %rax, %r14
jmp 0x5ee31
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x3fa70
leaq 0x8(%rsp), %rdi
callq 0x3fa70
movq %rbx, %rdi
callq 0x3fa70
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: EquationAnd::resolveOperandLeft(OperandResolve&) const
bool EquationAnd::resolveOperandLeft(OperandResolve &state) const

{
  int4 cur_rightmost = -1;	// Initially we don't know our rightmost
  int4 cur_size = -1;		//   or size traversed since rightmost
  bool res = right->resolveOperandLeft(state);
  if (!res) return false;
  if ((state.cur_rightmost != -1)&&(state.size != -1)) {
    cur_rightmost = state.cur_rightmost;
    cur_size = state.size;
  }
  res = left->resolveOperandLeft(state);
  if (!res) return false;
  if ((state.cur_rightmost == -1)||(state.size == -1)) {
    state.cur_rightmost = cur_rightmost;
    state.size = cur_size;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x40(%rdi), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
testb %al, %al
je 0x602cb
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %ebp
cmpl $-0x1, %ebp
movl %eax, %r15d
cmovel %ebp, %r15d
cmpl $-0x1, %eax
cmovel %eax, %r15d
cmovel %eax, %ebp
movq 0x38(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
testb %al, %al
je 0x602cb
cmpl $-0x1, 0x10(%rbx)
movb $0x1, %al
je 0x602c2
cmpl $-0x1, 0x14(%rbx)
jne 0x602cd
movl %r15d, 0x10(%rbx)
movl %ebp, 0x14(%rbx)
jmp 0x602cd
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/slghpatexpress.cc
// Function: EquationCat::resolveOperandLeft(OperandResolve&) const
bool EquationCat::resolveOperandLeft(OperandResolve &state) const

{
  bool res = left->resolveOperandLeft(state);
  if (!res) return false;
  int4 cur_base = state.base;
  int4 cur_offset = state.offset;
  if ((!left->getTokenPattern().getLeftEllipsis())&&(!left->getTokenPattern().getRightEllipsis())) {
    // Keep the same base
    state.offset += left->getTokenPattern().getMinimumLength(); // But add to its size
  }
  else if (state.cur_rightmost != -1) {
    state.base = state.cur_rightmost;
    state.offset = state.size;
  }
  else if (state.size != -1) {
    state.offset += state.size;
  }
  else {
    state.base = -2;		// We have no anchor
  }
  int4 cur_rightmost = state.cur_rightmost;
  int4 cur_size = state.size;
  res = right->resolveOperandLeft(state);
  if (!res) return false;
  state.base = cur_base;	// Restore base and offset
  state.offset = cur_offset;
  if (state.cur_rightmost == -1) {
    if ((state.size != -1)&&(cur_rightmost != -1)&&(cur_size != -1)) {
      state.cur_rightmost = cur_rightmost;
      state.size += cur_size;
    }
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x38(%rdi), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
testb %al, %al
je 0x60684
movl 0x8(%rbx), %ebp
movl 0xc(%rbx), %r15d
movq 0x38(%r14), %rcx
cmpb $0x0, 0x30(%rcx)
jne 0x60674
cmpb $0x0, 0x31(%rcx)
je 0x6069b
movl 0x10(%rbx), %eax
cmpl $-0x1, %eax
je 0x6068b
movl %eax, 0x8(%rbx)
movl 0x14(%rbx), %eax
jmp 0x60696
xorl %eax, %eax
jmp 0x6072d
movl 0x14(%rbx), %eax
cmpl $-0x1, %eax
je 0x606c9
addl %r15d, %eax
movl %eax, 0xc(%rbx)
jmp 0x606da
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
je 0x606d2
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
xorl %edx, %edx
movq (%rax,%rsi,8), %rdi
addl 0x20(%rdi), %edx
incq %rsi
cmpq %rsi, %rcx
jne 0x606b8
jmp 0x606d4
movl $0xfffffffe, 0x8(%rbx)  # imm = 0xFFFFFFFE
jmp 0x606da
xorl %edx, %edx
addl %r15d, %edx
movl %edx, 0xc(%rbx)
movl 0x10(%rbx), %r13d
movl 0x14(%rbx), %r12d
movq 0x40(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
testb %al, %al
je 0x6072d
movl %ebp, 0x8(%rbx)
movl %r15d, 0xc(%rbx)
cmpl $-0x1, 0x10(%rbx)
jne 0x6072d
movl 0x14(%rbx), %ecx
cmpl $-0x1, %ecx
setne %dl
cmpl $-0x1, %r13d
setne %sil
andb %dl, %sil
cmpl $-0x1, %r12d
setne %dl
andb %sil, %dl
cmpb $0x1, %dl
jne 0x6072d
movl %r13d, 0x10(%rbx)
addl %r12d, %ecx
movl %ecx, 0x14(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: EquationLeftEllipsis::resolveOperandLeft(OperandResolve&) const
bool EquationLeftEllipsis::resolveOperandLeft(OperandResolve &state) const

{
  int4 cur_base = state.base;
  state.base = -2;
  bool res = eq->resolveOperandLeft(state);
  if (!res) return false;
  state.base = cur_base;
  
  return true;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl 0x8(%rsi), %ebp
movl $0xfffffffe, 0x8(%rsi)  # imm = 0xFFFFFFFE
movq 0x38(%rdi), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
testb %al, %al
je 0x607b3
movl %ebp, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: BinaryExpression::~BinaryExpression()
BinaryExpression::~BinaryExpression(void)

{				// Delete only non-pattern values
  if (left != (PatternExpression *)0)
    PatternExpression::release(left);
  if (right != (PatternExpression *)0)
    PatternExpression::release(right);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x4264d(%rip), %rax     # 0xa2e70
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x60847
movl 0x8(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
cmpl $0x1, %eax
jg 0x60847
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x6085e
movl 0x8(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
cmpl $0x1, %eax
jle 0x60860
popq %rbx
retq
movq (%rdi), %rax
popq %rbx
jmpq *0x8(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::getMask(int, int) const
uintm PatternBlock::getMask(int4 startbit,int4 size) const

{
  startbit -= 8*offset;
  // Note the division and remainder here is unsigned.  Then it is recast to signed. 
  // If startbit is negative, then wordnum1 is either negative or very big,
  // if (unsigned size is same as sizeof int)
  // In either case, shift should come out between 0 and 8*sizeof(uintm)-1
  int4 wordnum1 = startbit/(8*sizeof(uintm));
  int4 shift = startbit % (8*sizeof(uintm));
  int4 wordnum2 = (startbit+size-1)/(8*sizeof(uintm));
  uintm res;

  if ((wordnum1<0)||(wordnum1>=maskvec.size()))
    res = 0;
  else
    res = maskvec[wordnum1];

  res <<= shift;
  if (wordnum1 != wordnum2) {
    uintm tmp;
    if ((wordnum2<0)||(wordnum2>=maskvec.size()))
      tmp = 0;
    else
      tmp = maskvec[wordnum2];
    res |= (tmp>>(8*sizeof(uintm)-shift));
  }
  res >>= (8*sizeof(uintm) - size);
  
  return res;
}

// Assembly:
movl (%rdi), %eax
shll $0x3, %eax
subl %eax, %esi
movl %esi, %ecx
leal (%rdx,%rsi), %r8d
decl %r8d
sarl $0x5, %esi
andl $0x1f, %ecx
sarl $0x5, %r8d
xorl %eax, %eax
testl %esi, %esi
js 0x61727
movl %esi, %r9d
movq 0x8(%rdi), %r10
movq 0x10(%rdi), %r11
subq %r10, %r11
sarq $0x2, %r11
cmpq %r9, %r11
jbe 0x61727
movl (%r10,%r9,4), %eax
shll %cl, %eax
cmpl %r8d, %esi
je 0x61756
xorl %esi, %esi
testl %r8d, %r8d
js 0x61750
movl %r8d, %r8d
movq 0x8(%rdi), %r9
movq 0x10(%rdi), %rdi
subq %r9, %rdi
sarq $0x2, %rdi
cmpq %r8, %rdi
jbe 0x61750
movl (%r9,%r8,4), %esi
negb %cl
shrl %cl, %esi
orl %esi, %eax
negb %dl
movl %edx, %ecx
shrl %cl, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: PatternBlock::getValue(int, int) const
uintm PatternBlock::getValue(int4 startbit,int4 size) const

{
  startbit -= 8*offset;
  int4 wordnum1 = startbit/(8*sizeof(uintm));
  int4 shift = startbit % (8*sizeof(uintm));
  int4 wordnum2 = (startbit+size-1)/(8*sizeof(uintm));
  uintm res;

  if ((wordnum1<0)||(wordnum1>=valvec.size()))
    res = 0;
  else
    res = valvec[wordnum1];
  res <<= shift;
  if (wordnum1 != wordnum2) {
    uintm tmp;
    if ((wordnum2<0)||(wordnum2>=valvec.size()))
      tmp = 0;
    else
      tmp = valvec[wordnum2];
    res |= (tmp>>(8*sizeof(uintm)-shift));
  }
  res >>= (8*sizeof(uintm) - size);
  
  return res;
}

// Assembly:
movl (%rdi), %eax
shll $0x3, %eax
subl %eax, %esi
movl %esi, %ecx
leal (%rdx,%rsi), %r8d
decl %r8d
sarl $0x5, %esi
andl $0x1f, %ecx
sarl $0x5, %r8d
xorl %eax, %eax
testl %esi, %esi
js 0x617c9
movl %esi, %r9d
movq 0x20(%rdi), %r10
movq 0x28(%rdi), %r11
subq %r10, %r11
sarq $0x2, %r11
cmpq %r9, %r11
jbe 0x617c9
movl (%r10,%r9,4), %eax
shll %cl, %eax
cmpl %r8d, %esi
je 0x617f8
xorl %esi, %esi
testl %r8d, %r8d
js 0x617f2
movl %r8d, %r8d
movq 0x20(%rdi), %r9
movq 0x28(%rdi), %rdi
subq %r9, %rdi
sarq $0x2, %rdi
cmpq %r8, %rdi
jbe 0x617f2
movl (%r9,%r8,4), %esi
negb %cl
shrl %cl, %esi
orl %esi, %eax
negb %dl
movl %edx, %ecx
shrl %cl, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: DisjointPattern::specializes(DisjointPattern const*) const
bool DisjointPattern::specializes(const DisjointPattern *op2) const

{				// Return true, if everywhere this's mask is non-zero
				// op2's mask is non-zero and op2's value match this's
  PatternBlock *a,*b;

  a = getBlock(false);
  b = op2->getBlock(false);
  if ((b != (PatternBlock *)0)&&(!b->alwaysTrue())) {	// a must match existing block
    if (a == (PatternBlock *)0) return false;
    if (!a->specializes(b)) return false;
  }
  a = getBlock(true);
  b = op2->getBlock(true);
  if ((b != (PatternBlock *)0)&&(!b->alwaysTrue())) {	// a must match existing block
    if (a == (PatternBlock *)0) return false;
    if (!a->specializes(b)) return false;
  }
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
xorl %esi, %esi
callq *0x78(%rax)
movq %rax, %r15
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x78(%rax)
testq %rax, %rax
je 0x6185a
cmpl $0x0, 0x4(%rax)
je 0x6185a
testq %r15, %r15
je 0x6189c
movq %r15, %rdi
movq %rax, %rsi
callq 0x3fa30
testb %al, %al
je 0x6189c
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *0x78(%rax)
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x1, %esi
callq *0x78(%rax)
testq %rax, %rax
je 0x61898
cmpl $0x0, 0x4(%rax)
je 0x61898
testq %r14, %r14
je 0x6189c
movq %r14, %rdi
movq %rax, %rsi
callq 0x3fa30
testb %al, %al
je 0x6189c
movb $0x1, %al
jmp 0x6189e
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpattern.cc
// Function: DisjointPattern::identical(DisjointPattern const*) const
bool DisjointPattern::identical(const DisjointPattern *op2) const

{				// Return true if patterns match exactly
  PatternBlock *a,*b;
  
  a = getBlock(false);
  b = op2->getBlock(false);
  if (b != (PatternBlock *)0) {	// a must match existing block
    if (a == (PatternBlock *)0) {
      if (!b->alwaysTrue())
	return false;
    }
    else if (!a->identical(b))
      return false;
  }
  else {
    if ((a != (PatternBlock *)0)&&(!a->alwaysTrue()))
      return false;
  }
  a = getBlock(true);
  b = op2->getBlock(true);
  if (b != (PatternBlock *)0) {	// a must match existing block
    if (a == (PatternBlock *)0) {
      if (!b->alwaysTrue())
	return false;
    }
    else if (!a->identical(b))
      return false;
  }
  else {
    if ((a != (PatternBlock *)0)&&(!a->alwaysTrue()))
      return false;
  }
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
xorl %esi, %esi
callq *0x78(%rax)
movq %rax, %r15
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x78(%rax)
testq %rax, %rax
je 0x619d0
testq %r15, %r15
je 0x619de
movq %r15, %rdi
movq %rax, %rsi
callq 0x3ff80
testb %al, %al
jne 0x619e4
jmp 0x61a2a
testq %r15, %r15
je 0x619e4
cmpl $0x0, 0x4(%r15)
jne 0x61a2a
jmp 0x619e4
cmpl $0x0, 0x4(%rax)
jne 0x61a2a
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *0x78(%rax)
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x1, %esi
callq *0x78(%rax)
testq %rax, %rax
je 0x61a1e
testq %r14, %r14
je 0x61a2e
movq %r14, %rdi
movq %rax, %rsi
callq 0x3ff80
testb %al, %al
je 0x61a2a
jmp 0x61a34
testq %r14, %r14
je 0x61a34
cmpl $0x0, 0x4(%r14)
je 0x61a34
xorl %eax, %eax
jmp 0x61a36
cmpl $0x0, 0x4(%rax)
jne 0x61a2a
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movb $0x1, %r15b
testq %rdi, %rdi
je 0x61bfe
testq %rbx, %rbx
je 0x61bfb
movq %rbx, %rsi
callq 0x40f20
movq %rax, %rbx
xorl %r15d, %r15d
jmp 0x61bfe
movq %rdi, %rbx
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
movq %rbx, %rax
orq %r14, %rax
sete %bpl
testb %cl, %cl
jne 0x61c27
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3ff80
movl %eax, %ebp
testq %rbx, %rbx
sete %al
orb %al, %r15b
jne 0x61c69
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x61c47
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x61c5c
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %rbx, %rdi
callq 0x40870
movl %ebp, %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: 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 0x1f146(%rip), %rsi     # 0x80dca
callq 0x3f590
testl %eax, %eax
je 0x61cc5
leaq 0x1f143(%rip), %rsi     # 0x80dd7
movq %rbx, %rdi
callq 0x3f590
testl %eax, %eax
je 0x61cdb
movl $0x18, %edi
callq 0x40800
movq %rax, %r14
movq 0x41134(%rip), %rax     # 0xa2de8
addq $0x10, %rax
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
jmp 0x61cfe
movl $0x10, %edi
callq 0x40800
movq %rax, %r14
movq 0x40fa7(%rip), %rax     # 0xa2c80
jmp 0x61cef
movl $0x10, %edi
callq 0x40800
movq %rax, %r14
movq 0x40ea1(%rip), %rax     # 0xa2b90
addq $0x10, %rax
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movq (%r14), %rax
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_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %edx, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
leaq 0x8(%rdi), %r14
leaq 0x20(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movl %esi, (%rdi)
movq 0x10(%rdi), %rsi
leaq 0x18(%rdi), %r15
cmpq 0x18(%rdi), %rsi
je 0x61fab
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x61fb8
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x40770
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x61fd2
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x61fdf
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x40770
movl $0x4, 0x4(%rbx)
movq %rbx, %rdi
callq 0x40d60
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r13
movq (%r12), %rdi
testq %rdi, %rdi
je 0x62014
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
movq %r15, %rsi
callq 0x426c8
movq %r13, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x20(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x40f20
movq %rax, %r15
movq (%rax), %rax
movq %rax, (%rbx)
leaq 0x8(%r15), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x423e0
movq %r15, %rbp
addq $0x20, %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x423e0
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x620b3
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
movq (%r13), %rdi
testq %rdi, %rdi
je 0x620c8
movq 0x18(%r15), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40870
movq %rax, %r15
movq (%r12), %rdi
testq %rdi, %rdi
je 0x620fb
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r14, %rdi
movq %rbx, %rsi
callq 0x426e1
movq %r15, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq (%rsi), %rax
cmpq 0x8(%rsi), %rax
je 0x62392
movq %rsi, %r13
leaq 0x8(%rbx), %rcx
movq %rcx, (%rsp)
leaq 0x20(%rbx), %r15
movq (%rax), %rbp
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0x623a8
movl $0x1, %r14d
movq (%rax,%r14,8), %rsi
movq %rbp, %rdi
callq 0x40f20
movq %rax, %r12
movq 0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x62354
movq 0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x62369
movq 0x18(%rbp), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %rbp, %rdi
callq 0x40870
incq %r14
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq %r12, %rbp
cmpq %r14, %rcx
ja 0x62330
jmp 0x623ab
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %r12
movq (%r12), %rax
movq %rax, (%rbx)
leaq 0x8(%r12), %r13
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x423e0
leaq 0x20(%r12), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x423e0
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x623e9
movq 0x30(%r12), %rsi
subq %rdi, %rsi
callq 0x40870
movq (%r13), %rdi
testq %rdi, %rdi
je 0x623ff
movq 0x18(%r12), %rsi
subq %rdi, %rsi
callq 0x40870
movl $0x38, %esi
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40870
jmp 0x6241c
movq %rax, %r12
movq (%r15), %rdi
testq %rdi, %rdi
je 0x62433
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq (%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x6244b
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq %r12, %rdi
callq 0x41f00
nop