LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/sleigh.cc
// Function: Sleigh::getInstructionBytes(Address const&, unsigned char*) const
void Sleigh::getInstructionBytes (const Address& baseaddr, uint1* buf) const

{
    ParserContext* pos = obtainContext (baseaddr, ParserContext::disassembly);
    ParserWalker walker(pos);
    walker.baseState();

    auto len = pos->getLength();

    uintm tmp;
    int4 bytestart = 0;
    do {
        tmp = walker.getInstructionBytes(bytestart,sizeof(uint1));
        memcpy(&buf[bytestart], (uint1*)&tmp, sizeof(uint1));
    } while (bytestart += 1, bytestart != len);

    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl $0x1, %edx
callq 0x3fde0
movq %rax, %r14
movq 0x98(%rax), %r12
movl 0x60(%r12), %r13d
xorl %r15d, %r15d
movl 0x64(%r12), %ecx
movq %r14, %rdi
movl %r15d, %esi
movl $0x1, %edx
callq 0x40eb0
movb %al, (%rbx,%r15)
incq %r15
cmpq %r15, %r13
jne 0x58534
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/sleigh.cc
// Function: Sleigh::printAssembly(AssemblyEmit&, Address const&) const
int4 Sleigh::printAssembly (AssemblyEmit& emit, const Address& baseaddr) const

{
    int4 sz;

    ParserContext* pos = obtainContext (baseaddr, ParserContext::disassembly);
    ParserWalker walker (pos);
    walker.baseState ();

    Constructor* ct = walker.getConstructor ();
    ostringstream mons;
    ct->printMnemonic (mons, walker);
    ostringstream body;
    ct->printBody (body, walker);
    emit.dump (baseaddr, mons.str (), body.str ());
    sz = pos->getLength ();
    return sz;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %rdx, %r14
movq %rsi, %r15
movq %rdx, %rsi
movl $0x1, %edx
callq 0x3fde0
movq %rax, %rbx
leaq 0x338(%rsp), %r13
movq %rax, (%r13)
xorl %eax, %eax
movq %rax, 0x8(%r13)
movq 0x98(%rbx), %rcx
movq %rcx, 0x10(%r13)
movq %rax, 0x18(%r13)
movq (%rcx), %r12
leaq 0x1c0(%rsp), %rbp
movq %rbp, %rdi
callq 0x41120
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x3fbf0
leaq 0x48(%rsp), %rdi
callq 0x41120
leaq 0x48(%rsp), %rsi
leaq 0x338(%rsp), %rdx
movq %r12, %rdi
callq 0x40e50
leaq 0x1c8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x418c0
leaq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x418c0
movq (%r15), %rax
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq *0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5863a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58655
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x40880
movq 0x98(%rbx), %rax
movl 0x60(%rax), %ebx
movq 0x4a71a(%rip), %r14     # 0xa2d80
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x3fc30
leaq 0xb8(%rsp), %rdi
callq 0x3f730
leaq 0x1c0(%rsp), %rdi
movq %r14, %rsi
callq 0x3fc30
leaq 0x230(%rsp), %rdi
callq 0x3f730
movl %ebx, %eax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x586d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40880
jmp 0x586d4
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x586f6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x40880
jmp 0x586f6
jmp 0x586f3
movq %rax, %rbx
movq 0x4a683(%rip), %rsi     # 0xa2d80
leaq 0x48(%rsp), %rdi
callq 0x3fc30
leaq 0xb8(%rsp), %rdi
callq 0x3f730
jmp 0x5871b
jmp 0x58718
movq %rax, %rbx
movq 0x4a65e(%rip), %rsi     # 0xa2d80
leaq 0x1c0(%rsp), %rdi
callq 0x3fc30
leaq 0x230(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f10
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/include/address.hh
// Function: Address::printRaw(std::ostream&) const
inline void Address::printRaw(ostream &s) const {
  if (base == (AddrSpace *)0) {
    s << "invalid_addr";
    return;
  }
  base->printRaw(s,offset);
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x58cda
movq 0x8(%rax), %rdx
movq (%rdi), %rax
movq 0x50(%rax), %rax
jmpq *%rax
leaq 0x26398(%rip), %rax     # 0x7f079
movl $0xc, %edx
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x40b90
nop
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/include/sleigh.hh
// Function: PcodeData::store(VarnodeData*, VarnodeData*)
void store (VarnodeData* outv, VarnodeData* inv)
    {
        if (outv != nullptr) {
            this->outvar = new VarnodeData;
            *this->outvar = *outv;
        }
        invar = new VarnodeData[isize];
        for (auto i = 0; i != isize; ++i)
            this->invar[i] = inv[i];
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x58ea4
movq %rsi, %r15
movl $0x18, %edi
callq 0x40810
movq %rax, 0x8(%r14)
movups (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
movslq 0x18(%r14), %r15
movl $0x18, %ecx
movq %r15, %rax
mulq %rcx
movq $-0x1, %rdi
cmovnoq %rax, %rdi
callq 0x3f060
movq %rax, 0x10(%r14)
testq %r15, %r15
je 0x58ef6
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x10(%r14), %rdx
movq 0x10(%rbx,%rax), %rsi
movq %rsi, 0x10(%rdx,%rax)
movups (%rbx,%rax), %xmm0
movups %xmm0, (%rdx,%rax)
incq %rcx
movl 0x18(%r14), %edx
addq $0x18, %rax
cmpq %rdx, %rcx
jne 0x58ed0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/sleighbase.cc
// Function: SleighBase::getRegister(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
const VarnodeData &SleighBase::getRegister(const string &nm) const

{
  VarnodeSymbol *sym = (VarnodeSymbol *)findSymbol(nm);
  if (sym == (VarnodeSymbol *)0)
    throw SleighError("Unknown register name: "+nm);
  if (sym->getType() != SleighSymbol::varnode_symbol)
    throw SleighError("Symbol is not a register: "+nm);
  return sym->getFixedVarnode();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq 0x1c8(%rdi), %rsi
addq $0x198, %rdi            # imm = 0x198
movq %r14, %rdx
callq 0x3f220
testq %rax, %rax
je 0x59787
movq %rax, %rbx
movq (%rax), %rax
movq %rbx, %rdi
callq *0x10(%rax)
cmpl $0x6, %eax
jne 0x597ce
addq $0x38, %rbx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x26e11(%rip), %rsi     # 0x805ac
movq %rsp, %rdi
movq %r14, %rdx
callq 0x40510
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x496d3(%rip), %rsi     # 0xa2e90
movq 0x49474(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d70
jmp 0x59813
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x26de2(%rip), %rsi     # 0x805c4
movq %rsp, %rdi
movq %r14, %rdx
callq 0x40510
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x4968c(%rip), %rsi     # 0xa2e90
movq 0x4942d(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d70
jmp 0x59817
jmp 0x5983c
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59835
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x5983f
jmp 0x59847
movq %rax, %r14
movq %rbx, %rdi
callq 0x40090
movq %r14, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/sleighbase.cc
// Function: SleighBase::getRegisterName[abi:cxx11](AddrSpace*, unsigned long, int) const
string SleighBase::getRegisterName(AddrSpace *base,uintb off,int4 size) const

{
  VarnodeData sym;
  sym.space = base;
  sym.offset = off;
  sym.size = size;
  map<VarnodeData,string>::const_iterator iter = varnode_xref.upper_bound(sym); // First point greater than offset
  if (iter == varnode_xref.begin()) return "";
  iter--;
  const VarnodeData &point((*iter).first);
  if (point.space != base) return "";
  uintb offbase = point.offset;
  if (point.offset+point.size >= off+size)
    return (*iter).second;
  
  while(iter != varnode_xref.begin()) {
    --iter;
    const VarnodeData &point((*iter).first);
    if ((point.space != base)||(point.offset != offbase)) return "";
    if (point.offset+point.size >= off+size)
      return (*iter).second;
  }
  return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq %rsp, %rcx
movq %rdx, (%rcx)
movq %r15, 0x8(%rcx)
movl %r8d, 0x10(%rcx)
leaq 0x160(%rsi), %rdi
movq 0x170(%rsi), %rsi
leaq 0x168(%r12), %rdx
callq 0x3ff20
movq 0x178(%r12), %r12
cmpq %r12, %rax
je 0x598b1
movq %rax, %rdi
callq 0x3fe70
cmpq %r14, 0x20(%rax)
je 0x598dc
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x27931(%rip), %rdx     # 0x811f0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3f8a0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rax), %r13
movl 0x30(%rax), %ecx
addq %r13, %rcx
movslq %ebp, %rbp
addq %r15, %rbp
cmpq %rbp, %rcx
jae 0x59912
cmpq %r12, %rax
je 0x598b1
movq %rax, %rdi
callq 0x3fe70
cmpq %r14, 0x20(%rax)
jne 0x598b1
cmpq %r13, 0x28(%rax)
jne 0x598b1
movl 0x30(%rax), %ecx
addq %r13, %rcx
jmp 0x598ec
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x38(%rax), %rsi
movq 0x40(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3f8e0
jmp 0x598ca
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: TokenPattern::buildSingle(int, int, unsigned int)
PatternBlock *TokenPattern::buildSingle(int4 startbit,int4 endbit,uintm byteval)

{				// Create a mask/value pattern within a single word
				// The field is given by the bitrange [startbit,endbit]
				// bit 0 is the MOST sig bit of the word
				// use the least sig bits of byteval to fill in
				// the field's value
  uintm mask;
  int4 offset = 0;
  int4 size = endbit-startbit+1;
  while(startbit >= 8) {
    offset += 1;
    startbit -= 8;
    endbit -= 8;
  }    
  mask = (~((uintm)0)) << (sizeof(uintm)*8-size);
  byteval = (byteval << (sizeof(uintm)*8-size))& mask;
  mask >>= startbit;
  byteval >>= startbit;
  return new PatternBlock(offset,mask,byteval);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %edi, %ecx
subl %esi, %ecx
xorl %ebp, %ebp
cmpl $0x8, %edi
jl 0x5b658
xorl %eax, %eax
movl %edi, %edx
subl $0xf, %edx
cmovbl %eax, %edx
addl $0x7, %edx
movl %edx, %ebp
shrl $0x3, %ebp
incl %ebp
andl $-0x8, %edx
negl %edx
addl %edx, %edi
addl $-0x8, %edi
addb $0x1f, %cl
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
shll %cl, %r15d
shll %cl, %ebx
movl %edi, %ecx
shrl %cl, %r15d
shrl %cl, %ebx
movl $0x38, %edi
callq 0x40810
movq %rax, %r14
movq %rax, %rdi
movl %ebp, %esi
movl %r15d, %edx
movl %ebx, %ecx
callq 0x3f100
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5b6ca
xorl %r15d, %r15d
jmp 0x5b7af
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 0x42230
movq %rax, %r15
testq %r13, %r13
je 0x5b78d
movq %r13, %rdi
movq %r15, %rsi
callq 0x40f30
movq %rax, 0x10(%rsp)
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0x5b72f
movq 0x30(%r13), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x5b744
movq 0x18(%r13), %rsi
subq %rdi, %rsi
callq 0x40880
movl $0x38, %esi
movq %r13, %rdi
callq 0x40880
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x5b766
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x5b77b
movq 0x18(%r15), %rsi
subq %rdi, %rsi
callq 0x40880
movl $0x38, %esi
movq %r15, %rdi
callq 0x40880
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 0x5b6e4
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_O3/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 %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x12(%rdi)
movups %xmm0, 0x8(%rdi)
movl $0x10, %edi
callq 0x40810
movq %rax, %r15
movq %rax, %rdi
movl %ebp, %esi
callq 0x41030
movq %r15, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x10, %esi
movq %r15, %rdi
callq 0x40880
movq (%r12), %rdi
testq %rdi, %rdi
je 0x5ba8a
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40880
movq %r14, %rdi
callq 0x41f10
// File: /workspace/github_cpp_makefile_star2_O3/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 %rsi, %r15
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 0x40810
movq %rax, %r12
movq %rax, %rdi
movl $0x1, %esi
callq 0x41030
movq %r12, (%rbx)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x5bae4
movq %r15, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x5baef
movq %rsp, %rdx
movq %r14, %rdi
callq 0x409b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movl $0x10, %esi
movq %r12, %rdi
callq 0x40880
jmp 0x5bb10
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5bb24
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40880
movq %r15, %rdi
callq 0x41f10
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x8(%rsp), %rdx
movq %rsi, (%rdx)
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movq %r14, %rdi
xorl %esi, %esi
callq 0x409b0
movq 0x8(%rsp), %rax
testb $0x1, 0x28(%rax)
movw $0x0, 0x20(%rbx)
je 0x5bb8c
movl 0x20(%rax), %edi
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x41530
jmp 0x5bb99
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x3f2a0
movq %rax, %r15
movl $0x10, %edi
callq 0x40810
movq 0x470d3(%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 0x5bbca
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5bbe1
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40880
movq %r15, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x41530
movq %rax, %r14
movl $0x10, %edi
callq 0x40810
movq 0x46f4e(%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 0x5bc6d
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40880
movq %r14, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x40f20
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 0x5bcd7
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x40880
movq %r14, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5c2e5
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 0x5c2d5
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl 0x24(%rdi), %r14d
movl 0x28(%rdi), %ebp
movb 0x18(%rdi), %al
movb %al, 0xf(%rsp)
subl %r14d, %ebp
incl %ebp
xorl %r13d, %r13d
movl %ebp, %r12d
cmpl $0x4, %ebp
jb 0x5c7f2
movq (%r15), %rdi
movq 0x10(%r15), %rax
movl 0x64(%rax), %ecx
movl %r14d, %esi
movl $0x4, %edx
callq 0x40eb0
shlq $0x20, %r13
movl %eax, %eax
orq %rax, %r13
addl $0x4, %r14d
addl $-0x4, %r12d
cmpl $0x3, %r12d
ja 0x5c7c4
movq %r13, 0x10(%rsp)
testl %r12d, %r12d
je 0x5c825
movq (%r15), %rdi
movq 0x10(%r15), %rax
movl 0x64(%rax), %ecx
movl %r14d, %esi
movl %r12d, %edx
callq 0x40eb0
shll $0x3, %r12d
movl %r12d, %ecx
shlq %cl, %r13
movl %eax, %eax
orq %rax, %r13
movq %r13, 0x10(%rsp)
cmpb $0x0, 0xf(%rsp)
jne 0x5c83e
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
callq 0x41170
movq (%r14), %r13
movb 0x2c(%rbx), %cl
sarq %cl, %r13
movq %r13, 0x10(%rsp)
movl 0x20(%rbx), %esi
subl 0x1c(%rbx), %esi
cmpb $0x1, 0x19(%rbx)
jne 0x5c861
leaq 0x10(%rsp), %rdi
callq 0x40550
jmp 0x5c86b
leaq 0x10(%rsp), %rdi
callq 0x41bd0
movq 0x10(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x23f04(%rip), %rsi     # 0x807b2
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x23efc(%rip), %rsi     # 0x807be
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b90
cmpb $0x1, 0x18(%r14)
jne 0x5c8e4
leaq 0x24b18(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5c8f0
leaq 0x23ee0(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x23ed3(%rip), %rsi     # 0x807d2
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b90
cmpb $0x1, 0x19(%r14)
jne 0x5c921
leaq 0x24adb(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5c92d
leaq 0x23ea3(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x23ea1(%rip), %rsi     # 0x807dd
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b90
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 0x41db0
leaq 0x24c76(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x23e61(%rip), %rsi     # 0x807e9
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x20(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x23e3b(%rip), %rsi     # 0x807f3
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x23e18(%rip), %rsi     # 0x80800
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x28(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x23df3(%rip), %rsi     # 0x8080b
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x2c(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
leaq 0x23ddc(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b90
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5cefb
movq (%r15), %rdi
movl %r14d, %esi
movl $0x4, %edx
callq 0x413b0
shlq $0x20, %r12
movl %eax, %eax
orq %rax, %r12
addl $0x4, %r14d
addl $-0x4, %ebp
cmpl $0x3, %ebp
ja 0x5ced6
testl %ebp, %ebp
je 0x5cf19
movq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x413b0
shll $0x3, %ebp
movl %ebp, %ecx
shlq %cl, %r12
movl %eax, %eax
orq %rax, %r12
movb 0x1c(%rbx), %cl
sarq %cl, %r12
movq %r12, 0x8(%rsp)
movl 0x10(%rbx), %esi
subl 0xc(%rbx), %esi
cmpb $0x1, 0x20(%rbx)
jne 0x5cf3c
leaq 0x8(%rsp), %rdi
callq 0x40550
jmp 0x5cf46
leaq 0x8(%rsp), %rdi
callq 0x41bd0
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x238c5(%rip), %rsi     # 0x80849
movl $0xd, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x2383a(%rip), %rsi     # 0x807d2
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b90
cmpb $0x1, 0x20(%r14)
jne 0x5cfba
leaq 0x24442(%rip), %rsi     # 0x813f5
movl $0x5, %edx
jmp 0x5cfc6
leaq 0x2380a(%rip), %rsi     # 0x807cb
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x23882(%rip), %rsi     # 0x80857
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b90
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 0x41db0
leaq 0x245dd(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x23842(%rip), %rsi     # 0x80863
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x2381c(%rip), %rsi     # 0x8086d
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x14(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x237f9(%rip), %rsi     # 0x8087a
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x2375a(%rip), %rsi     # 0x8080b
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b90
movl 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x41db0
leaq 0x23743(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b90
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x232bc(%rip), %rsi     # 0x808b3
leaq 0x232d7(%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 0x4586f(%rip), %rsi     # 0xa2e90
movq 0x45610(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d70
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5d64a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x5d654
jmp 0x5d65c
movq %rax, %r14
movq %rbx, %rdi
callq 0x40090
movq %r14, %rdi
callq 0x41f10
// File: /workspace/github_cpp_makefile_star2_O3/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 0x10(%rdi), %rsi
movslq 0xc(%rdi), %rdx
movq 0x18(%rsi), %rax
movq (%rax,%rdx,8), %rax
movq 0x50(%rax), %r14
testq %r14, %r14
je 0x5d807
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %rcx
movups %xmm0, 0x40(%rcx)
xorl %eax, %eax
movq %rax, 0x50(%rcx)
movq (%rbx), %r8
leaq 0x70(%rsp), %rdi
movq %r8, (%rdi)
movq %rax, 0x8(%rdi)
movq %rbx, %r8
callq 0x40340
movq (%r14), %rax
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5d82d
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
jmp 0x5d82d
movq %rdi, %r15
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x5d82b
movq (%rdi), %rax
callq *0x38(%rax)
testq %rax, %rax
je 0x5d82b
movq %rax, %r14
movq 0x10(%r15), %rsi
movl 0xc(%r15), %edx
jmp 0x5d7b4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
jmp 0x5d83f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5d859
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x23016(%rip), %rsi     # 0x808d6
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b90
leaq 0x2300f(%rip), %rsi     # 0x808e3
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b90
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 0x41db0
leaq 0x23cde(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x22fcc(%rip), %rsi     # 0x808ec
movl $0xa, %edx
movq %rbx, %rdi
callq 0x40b90
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 0x3ffc0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b90
leaq 0x22f8b(%rip), %rsi     # 0x808f7
movl $0x7, %edx
movq %rbx, %rdi
callq 0x40b90
movq 0x10(%r14), %rax
movl 0x84(%rax), %esi
movq %rbx, %rdi
callq 0x3ffc0
leaq 0x22e82(%rip), %rsi     # 0x80814
movl $0x4, %edx
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b90
// File: /workspace/github_cpp_makefile_star2_O3/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 0x407d0
movq %rax, 0x10(%r14)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x407d0
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_O3/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 0x5e4d5
movl 0x8(%rsi), %edx
cmpl $-0x2, %edx
jne 0x5e4e5
xorl %eax, %eax
retq
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x30(%rcx)
jmp 0x5e4f8
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_O3/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 %rbx
subq $0x10, %rsp
movslq 0x38(%rdi), %rax
movq 0x18(%rsi), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x8(%rsp)
movl 0x58(%rax), %ecx
testb $0x8, %cl
jne 0x5e54a
movq 0x8(%rdx), %rsi
cmpq 0x10(%rdx), %rsi
je 0x5e52e
movq %rax, (%rsi)
addq $0x8, 0x8(%rdx)
jmp 0x5e544
leaq 0x8(%rsp), %rbx
movq %rdx, %rdi
movq %rbx, %rdx
callq 0x41ba0
movq (%rbx), %rax
movl 0x58(%rax), %ecx
orl $0x8, %ecx
movl %ecx, 0x58(%rax)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5e697
cmpb $0x0, 0x31(%rdi)
jne 0x5e697
movq 0x18(%rdi), %rcx
movq 0x20(%rdi), %rdx
subq %rcx, %rdx
je 0x5e695
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 0x5e683
jmp 0x5e697
xorl %eax, %eax
movl %eax, 0x14(%rsi)
movb $0x1, %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5eb1d
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 0x420c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x414b0
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 0x5eaca
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5eb4d
movq %rax, %r14
jmp 0x5eb43
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x3fa70
leaq 0x8(%rsp), %rdi
callq 0x3fa70
movq %rbx, %rdi
callq 0x3fa70
movq %r14, %rdi
callq 0x41f10
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x600a5
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 0x600a5
cmpl $-0x1, 0x10(%rbx)
movb $0x1, %al
je 0x6009c
cmpl $-0x1, 0x14(%rbx)
jne 0x600a7
movl %r15d, 0x10(%rbx)
movl %ebp, 0x14(%rbx)
jmp 0x600a7
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6051f
movl 0x8(%rbx), %ebp
movl 0xc(%rbx), %r15d
movq 0x38(%r14), %rcx
cmpb $0x0, 0x30(%rcx)
jne 0x60452
cmpb $0x0, 0x31(%rcx)
je 0x6047d
movl 0x10(%rbx), %r13d
cmpl $-0x1, %r13d
je 0x6046a
movl %r13d, 0x8(%rbx)
movl 0x14(%rbx), %r12d
movl %r12d, 0xc(%rbx)
jmp 0x604d0
movl 0x14(%rbx), %r12d
cmpl $-0x1, %r12d
je 0x604ab
leal (%r12,%r15), %eax
movl %eax, 0xc(%rbx)
jmp 0x604b8
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
je 0x604c0
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 0x6049a
jmp 0x604c2
movl $0xfffffffe, 0x8(%rbx)  # imm = 0xFFFFFFFE
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x604d0
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 0x6051f
movl %ebp, 0x8(%rbx)
movl %r15d, 0xc(%rbx)
movb $0x1, %al
cmpl $-0x1, 0x10(%rbx)
jne 0x60521
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 0x60521
movl %r13d, 0x10(%rbx)
addl %r12d, %ecx
movl %ecx, 0x14(%rbx)
jmp 0x60521
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x605a7
movl %ebp, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x42859(%rip), %rax     # 0xa2e70
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x6063b
movl 0x8(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
cmpl $0x1, %eax
jg 0x6063b
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x60652
movl 0x8(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
cmpl $0x1, %eax
jle 0x60654
popq %rbx
retq
movq (%rdi), %rax
popq %rbx
jmpq *0x8(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6153f
movl %esi, %r9d
movq 0x8(%rdi), %r10
movq 0x10(%rdi), %r11
subq %r10, %r11
sarq $0x2, %r11
cmpq %r9, %r11
jbe 0x6153f
movl (%r10,%r9,4), %eax
shll %cl, %eax
cmpl %r8d, %esi
je 0x6156e
xorl %esi, %esi
testl %r8d, %r8d
js 0x61568
movl %r8d, %r8d
movq 0x8(%rdi), %r9
movq 0x10(%rdi), %rdi
subq %r9, %rdi
sarq $0x2, %rdi
cmpq %r8, %rdi
jbe 0x61568
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_O3/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 0x615e1
movl %esi, %r9d
movq 0x20(%rdi), %r10
movq 0x28(%rdi), %r11
subq %r10, %r11
sarq $0x2, %r11
cmpq %r9, %r11
jbe 0x615e1
movl (%r10,%r9,4), %eax
shll %cl, %eax
cmpl %r8d, %esi
je 0x61610
xorl %esi, %esi
testl %r8d, %r8d
js 0x6160a
movl %r8d, %r8d
movq 0x20(%rdi), %r9
movq 0x28(%rdi), %rdi
subq %r9, %rdi
sarq $0x2, %rdi
cmpq %r8, %rdi
jbe 0x6160a
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_O3/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 0x61672
cmpl $0x0, 0x4(%rax)
je 0x61672
testq %r15, %r15
je 0x616b4
movq %r15, %rdi
movq %rax, %rsi
callq 0x3fa30
testb %al, %al
je 0x616b4
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 0x616b0
cmpl $0x0, 0x4(%rax)
je 0x616b0
testq %r14, %r14
je 0x616b4
movq %r14, %rdi
movq %rax, %rsi
callq 0x3fa30
testb %al, %al
je 0x616b4
movb $0x1, %al
jmp 0x616b6
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq