LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: ConsistencyChecker::optimizeAll()
void ConsistencyChecker::optimizeAll(void)

{
  for(int4 i=0;i<postorder.size();++i) {
    SubtableSymbol *sym = postorder[i];
    int4 numconstruct = sym->getNumConstructors();
    Constructor *ct;
    for(int4 i=0;i<numconstruct;++i) {
      ct = sym->getConstructor(i);
      optimize(ct);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x2923d
movq (%rax,%r15,8), %r12
movq 0x48(%r12), %r13
subq 0x40(%r12), %r13
shrq $0x3, %r13
testl %r13d, %r13d
cmovlel %r14d, %r13d
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x29238
movq 0x40(%r12), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x28fd8
incq %rbp
jmp 0x2921d
incq %r15
jmp 0x291ee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::free()
void MacroBuilder::free(void)

{
  vector<HandleTpl *>::iterator iter;

  for(iter=params.begin();iter!=params.end();++iter)
    delete *iter;

  params.clear();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %r14
cmpq 0x38(%rbx), %r14
je 0x292c4
movq (%r14), %rdi
movl $0xe0, %esi
callq 0xf380
addq $0x8, %r14
jmp 0x292ab
movq 0x30(%rbx), %rax
cmpq %rax, %r14
je 0x292d1
movq %rax, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::reportError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void SleighCompile::reportError(const string &msg,bool includeline)

{
  cerr << "Error in " << filename.back() << ' ';
  if (includeline)
    cerr << "at line " << dec << lineno.back() << ": ";
  cerr << msg << endl;
  errors += 1;
  if (errors >50) {
    cerr << "Too many errors: Aborting" << endl;
    exit(2);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x5eced(%rip), %rdi     # 0x87ff0
leaq 0x2e124(%rip), %rsi     # 0x5742e
callq 0xf350
movq 0x308(%rbx), %rsi
addq $-0x20, %rsi
movq %rax, %rdi
callq 0xf320
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0xf410
testl %ebp, %ebp
je 0x2937a
movq 0x5ecb8(%rip), %rdi     # 0x87ff0
leaq 0x2dc88(%rip), %rsi     # 0x56fc7
callq 0xf350
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x320(%rbx), %rcx
movl -0x4(%rcx), %esi
movq %rax, %rdi
callq 0xf6a0
leaq 0x2dfd3(%rip), %rsi     # 0x57345
movq %rax, %rdi
callq 0xf350
movq 0x5ec6f(%rip), %rdi     # 0x87ff0
movq %r14, %rsi
callq 0xf320
movq %rax, %rdi
callq 0xf1c0
movl 0x358(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x358(%rbx)
cmpl $0x32, %eax
jge 0x293aa
popq %rbx
popq %r14
popq %rbp
retq
movq 0x5ec3f(%rip), %rdi     # 0x87ff0
leaq 0x2e080(%rip), %rsi     # 0x57438
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
pushq $0x2
popq %rdi
callq 0xf460
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::setMacroOp(OpTpl*)
void MacroBuilder::setMacroOp(OpTpl *macroop)

{				// Set up parameters for a particular macro invocation
  VarnodeTpl *vn;
  HandleTpl *hand;
  free();
  for(int4 i=1;i<macroop->numInput();++i) {
    vn = macroop->getIn(i);
    hand = new HandleTpl(vn);
    params.push_back(hand);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x292a0
addq $0x30, %r14
pushq $0x1
popq %rbp
movq %rsp, %r15
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rbp
jge 0x29435
movq (%rax,%rbp,8), %r13
movl $0xe0, %edi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x21ddc
movq %r12, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2eabc
incq %rbp
jmp 0x293ee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0xe0, %esi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::dump(OpTpl*)
void MacroBuilder::dump(OpTpl *op)

{
  OpTpl *clone;
  VarnodeTpl *v_clone,*vn;
  
  clone = new OpTpl(op->getOpcode());
  vn = op->getOut();
  if (vn != (VarnodeTpl *)0) {
    v_clone = new VarnodeTpl(*vn);
    clone->setOutput(v_clone);
  }
  for(int4 i=0;i<op->numInput();++i) {
    vn = op->getIn(i);
    v_clone = new VarnodeTpl(*vn);
    if (v_clone->isRelative()) {
      // Adjust relative index, depending on the labelbase
      uintb val = v_clone->getOffset().getReal() + getLabelBase();
      v_clone->setRelative(val);
    }
    clone->addInput(v_clone);
  }
  if (!transferOp(clone,params))
    delete clone;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, (%rsp)
pushq $0x28
popq %rdi
callq 0xf370
movq %rax, %rbx
movl 0x8(%r15), %eax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
andq $0x0, 0x20(%rbx)
movl %eax, 0x8(%rbx)
andq $0x0, (%rbx)
movq (%r15), %r13
testq %r13, %r13
je 0x297ff
pushq $0x68
popq %rdi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x21b40
movq %r12, (%rbx)
xorl %r14d, %r14d
pushq $0x68
popq %r13
movq 0x10(%r15), %rax
movq 0x18(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jge 0x29863
movq (%rax,%r14,8), %rbp
movq %r13, %rdi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b40
cmpl $0x7, 0x20(%r12)
jne 0x29853
movq (%rsp), %rax
movl 0x8(%rax), %esi
addq 0x30(%r12), %rsi
movq %r12, %rdi
callq 0x2eada
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1deb2
incq %r14
jmp 0x29806
movq (%rsp), %rdi
leaq 0x30(%rdi), %rdx
movq %rbx, %rsi
callq 0x2945c
testb %al, %al
je 0x29886
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x221fa
pushq $0x28
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
jmp 0x298a9
movq %rax, %rbx
pushq $0x68
popq %rsi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::setLabel(OpTpl*)
void MacroBuilder::setLabel(OpTpl *op)

{ // A label within a macro is local to the macro, but when
  // we expand the macro, we have to adjust the index of
  // the label, which is local to the macro, so that it fits
  // in with other labels local to the parent
  OpTpl *clone;
  VarnodeTpl *v_clone;

  clone = new OpTpl(op->getOpcode());
  v_clone = new VarnodeTpl( *op->getIn(0) ); // Clone the label index
  // Make adjustment to macro local value so that it is parent local
  uintb val = v_clone->getOffset().getReal() + getLabelBase();
  v_clone->setOffset(val);
  clone->addInput(v_clone);
  outvec.push_back(clone);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %rbx
pushq $0x28
popq %rdi
callq 0xf370
movq %rax, %r14
movl 0x8(%r12), %eax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
andq $0x0, 0x20(%r14)
movl %eax, 0x8(%r14)
andq $0x0, (%r14)
movq %r14, (%rsp)
pushq $0x68
popq %rdi
callq 0xf370
movq %rax, %r15
movq 0x10(%r12), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x21b40
movl 0x8(%rbx), %esi
addq 0x30(%r15), %rsi
movq %r15, %rdi
callq 0x2eb10
movq %r14, %rdi
movq %r15, %rsi
callq 0x1deb2
movq 0x28(%rbx), %rdi
movq %rsp, %rsi
callq 0x1de74
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
pushq $0x68
popq %rsi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::SleighCompile()
SleighCompile::SleighCompile(void)
  : SleighBase()
{
  pcode.setCompiler(this);
  contextlock = false;		// Context layout is not locked
  userop_count = 0;
  errors = 0;
  warnunnecessarypcode = false;
  warndeadtemps = false;
  lenientconflicterrors = true;
  warnalllocalcollisions = false;
  warnallnops = false;
  root = (SubtableSymbol *)0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x251ac
leaq 0x5c090(%rip), %rax     # 0x85a90
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x1e8(%rbx)
movups %xmm0, 0x1f5(%rbx)
leaq 0x5c1ad(%rip), %rax     # 0x85bc8
movq %rax, 0x1e0(%rbx)
andl $0x0, 0x218(%rbx)
leaq 0x218(%rbx), %rax
andq $0x0, 0x220(%rbx)
movq %rax, 0x228(%rbx)
movq %rax, 0x230(%rbx)
leaq 0x2b8(%rbx), %rax
movups %xmm0, 0x238(%rbx)
movups %xmm0, 0x248(%rbx)
movups %xmm0, 0x258(%rbx)
movups %xmm0, 0x268(%rbx)
movups %xmm0, 0x278(%rbx)
movups %xmm0, 0x288(%rbx)
movups %xmm0, 0x298(%rbx)
movups %xmm0, 0x2a8(%rbx)
movq %rax, 0x2c0(%rbx)
movq %rax, 0x2b8(%rbx)
andq $0x0, 0x2c8(%rbx)
andq $0x0, 0x350(%rbx)
movups %xmm0, 0x340(%rbx)
movups %xmm0, 0x2e8(%rbx)
movups %xmm0, 0x2f8(%rbx)
movups %xmm0, 0x308(%rbx)
movups %xmm0, 0x318(%rbx)
andq $0x0, 0x328(%rbx)
movq %rbx, 0x208(%rbx)
xorl %eax, %eax
movb %al, 0x2e0(%rbx)
movabsq $0x1000000000000, %rcx  # imm = 0x1000000000000
movq %rcx, 0x330(%rbx)
andl $0x0, 0x358(%rbx)
movb %al, 0x338(%rbx)
andq $0x0, 0x190(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::buildDecisionTrees()
void SleighCompile::buildDecisionTrees(void)

{
  DecisionProperties props;
  root->buildDecisionTree(props);

  for(int4 i=0;i<tables.size();++i)
    tables[i]->buildDecisionTree(props);

  const vector<string> &ierrors( props.getIdentErrors() );
  for(int4 i=0;i<ierrors.size();++i) {
    errors += 1;
    cerr << ierrors[i];
  }

  if (!lenientconflicterrors) {
    const vector<string> &cerrors( props.getConflictErrors() );
    for(int4 i=0;i<cerrors.size();++i) {
      errors += 1;
      cerr << cerrors[i];
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq 0x190(%rdi), %rdi
callq 0x463c4
xorl %r15d, %r15d
movq %rsp, %r14
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x2a1f4
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x463c4
incq %r15
jmp 0x2a1c9
xorl %r15d, %r15d
movq 0x5ddf2(%rip), %r14     # 0x87ff0
xorl %r12d, %r12d
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0x2a230
incl 0x358(%rbx)
addq %r15, %rsi
movq %r14, %rdi
callq 0xf320
incq %r12
addq $0x20, %r15
jmp 0x2a201
cmpb $0x0, 0x336(%rbx)
je 0x2a24d
movq %rsp, %rdi
callq 0x2eb90
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r15d, %r15d
movq 0x5dd99(%rip), %r14     # 0x87ff0
xorl %r12d, %r12d
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0x2a239
incl 0x358(%rbx)
addq %r15, %rsi
movq %r14, %rdi
callq 0xf320
incq %r12
addq $0x20, %r15
jmp 0x2a25a
jmp 0x2a290
jmp 0x2a290
jmp 0x2a290
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2eb90
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::buildPatterns()
void SleighCompile::buildPatterns(void)

{
  if (root == 0) {
    reportError("No patterns to match.",false);
    return;
  }
  root->buildPattern(cerr);	// This should recursively hit everything
  if (root->isError()) errors += 1;
  for(int4 i=0;i<tables.size();++i) {
    if (tables[i]->isError())
      errors += 1;
    if (tables[i]->getPattern() == (TokenPattern *)0)
      reportWarning("Unreferenced table: "+tables[i]->getName(),false);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x190(%rdi), %rdi
testq %rdi, %rdi
je 0x2a34a
movq 0x5dd27(%rip), %rsi     # 0x87ff0
callq 0x4588e
movq 0x190(%rbx), %rax
cmpb $0x1, 0x39(%rax)
jne 0x2a2e1
incl 0x358(%rbx)
xorl %r12d, %r12d
leaq 0x2cf5c(%rip), %r14     # 0x57247
leaq 0x8(%rsp), %r15
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
jbe 0x2a379
movq (%rax,%r12,8), %rdx
cmpb $0x1, 0x39(%rdx)
jne 0x2a31a
incl 0x358(%rbx)
cmpq $0x0, 0x30(%rdx)
jne 0x2a345
addq $0x8, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x10cd1
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2a3a2
movq %r15, %rdi
callq 0xf1a0
incq %r12
jmp 0x2a2f0
leaq 0x2cee0(%rip), %rsi     # 0x57231
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x10c3a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x292f0
leaq 0x8(%rsp), %rdi
callq 0xf1a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2a38c
movq %rax, %rbx
jmp 0x2a399
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xf1a0
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::reportWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void SleighCompile::reportWarning(const string &msg,bool includeline)

{
  cerr << "Warning in " << filename.back() << ' ';
  if (includeline)
    cerr << "at line " << dec << lineno.back() << ": ";
  cerr << msg << endl;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x5dc3b(%rip), %rdi     # 0x87ff0
leaq 0x2d096(%rip), %rsi     # 0x57452
callq 0xf350
movq 0x308(%r14), %rsi
addq $-0x20, %rsi
movq %rax, %rdi
callq 0xf320
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0xf410
testl %ebp, %ebp
je 0x2a42c
movq 0x5dc06(%rip), %rdi     # 0x87ff0
leaq 0x2cbd6(%rip), %rsi     # 0x56fc7
callq 0xf350
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x320(%r14), %rcx
movl -0x4(%rcx), %esi
movq %rax, %rdi
callq 0xf6a0
leaq 0x2cf21(%rip), %rsi     # 0x57345
movq %rax, %rdi
callq 0xf350
movq 0x5dbbd(%rip), %rdi     # 0x87ff0
movq %rbx, %rsi
callq 0xf320
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xf1c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkConsistency()
void SleighCompile::checkConsistency(void)

{
  ConsistencyChecker checker(root,warnunnecessarypcode,warndeadtemps);

  if (!checker.test()) {
    errors += 1;
    return;
  }
  if (!checker.testTruncations(isBigEndian())) {
    errors += 1;
    return;
  }
  if ((!warnunnecessarypcode)&&(checker.getNumUnnecessaryPcode() > 0)) {
    cerr << dec << checker.getNumUnnecessaryPcode();
    cerr << " unnecessary extensions/truncations were converted to copies" << endl;
    cerr << "Use -u switch to list each individually" << endl;
  }
  checker.optimizeAll();
  if (checker.getNumReadNoWrite() > 0) {
    errors += 1;
    return;
  }
  if ((!warndeadtemps)&&(checker.getNumWriteNoRead() > 0)) {
    cerr << dec << checker.getNumWriteNoRead();
    cerr << " operations wrote to temporaries that were not read" << endl;
    cerr << "Use -t switch to list each individually" << endl;
  }
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
movq 0x190(%rdi), %rax
movzwl 0x334(%rdi), %ecx
xorps %xmm0, %xmm0
leaq 0x38(%rsp), %rdx
andq $0x0, -0x10(%rdx)
movups %xmm0, -0x20(%rdx)
andl $0x0, (%rdx)
andq $0x0, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
andq $0x0, 0x20(%rdx)
movq %rax, -0x28(%rdx)
andl $0x0, -0x38(%rdx)
andq $0x0, -0x34(%rdx)
movw %cx, -0x2c(%rdx)
movq %rsp, %rdi
callq 0x290a8
testb %al, %al
je 0x2a52e
movzbl 0x120(%rbx), %esi
movq %rsp, %rdi
callq 0x290f2
testb %al, %al
je 0x2a52e
cmpb $0x0, 0x334(%rbx)
jne 0x2a51f
movl (%rsp), %esi
testl %esi, %esi
jle 0x2a51f
movq 0x5db21(%rip), %rdi     # 0x87ff0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x18(%rdi,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rdi,%rax)
callq 0xf6a0
movq 0x5db00(%rip), %rdi     # 0x87ff0
leaq 0x2cd65(%rip), %rsi     # 0x5725c
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
movq 0x5dae5(%rip), %rdi     # 0x87ff0
leaq 0x2cd87(%rip), %rsi     # 0x57299
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
movq %rsp, %rdi
callq 0x291da
cmpl $0x0, 0x4(%rsp)
jle 0x2a542
incl 0x358(%rbx)
movq %rsp, %rdi
callq 0x2eba6
addq $0x60, %rsp
popq %rbx
retq
cmpb $0x0, 0x335(%rbx)
jne 0x2a534
movl 0x8(%rsp), %esi
testl %esi, %esi
jle 0x2a534
movq 0x5da96(%rip), %rdi     # 0x87ff0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x18(%rdi,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rdi,%rax)
callq 0xf6a0
movq 0x5da75(%rip), %rdi     # 0x87ff0
leaq 0x2cd3f(%rip), %rsi     # 0x572c1
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
movq 0x5da5a(%rip), %rdi     # 0x87ff0
leaq 0x2cd58(%rip), %rsi     # 0x572f5
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
jmp 0x2a534
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2eba6
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::findCollision(std::map<unsigned long, int, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, int>>>&, std::vector<unsigned long, std::allocator<unsigned long>> const&, int)
int4 SleighCompile::findCollision(map<uintb,int4> &local2Operand,const vector<uintb> &locals,int operand)

{
  for(int4 i=0;i<locals.size();++i) {
    pair<map<uintb,int4>::iterator,bool> res;
    res = local2Operand.insert(pair<uintb,int4>(locals[i],operand));
    if (!res.second) {
      int4 oldIndex = (*res.first).second;
      if (oldIndex != operand)
	return oldIndex;
    }
  }
  return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
pushq $-0x1
popq %rbp
leaq 0x8(%rsp), %r12
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x2a61d
movq (%rax,%r13,8), %rax
movq %rax, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x30930
testb $0x1, %dl
jne 0x2a618
movl 0x28(%rax), %eax
cmpl %ebx, %eax
jne 0x2a61f
incq %r13
jmp 0x2a5e1
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkLocalCollisions()
void SleighCompile::checkLocalCollisions(void)

{
  int4 collisionCount = 0;
  SubtableSymbol *sym = root; // Start with the instruction table
  int4 i = -1;
  for(;;) {
    int4 numconst = sym->getNumConstructors();
    for(int4 j=0;j<numconst;++j) {
      if (!checkLocalExports(sym->getConstructor(j)))
	collisionCount += 1;
    }
    i+=1;
    if (i>=tables.size()) break;
    sym = tables[i];
  }
  if (collisionCount > 0) {
    cerr << "WARNING: " << dec << collisionCount << " constructors with local collisions between operands" << endl;
    if (!warnalllocalcollisions)
      cerr << "Use -c switch to list each individually" << endl;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x190(%rdi), %rax
pushq $-0x1
popq %r15
xorl %ebp, %ebp
movq (%rax), %r12
movq 0x48(%r12), %r13
subq 0x40(%r12), %r13
shrq $0x3, %r13
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
xorl %r14d, %r14d
cmpq %r14, %r13
je 0x2a851
movq 0x40(%r12), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq 0x2a62e
xorb $0x1, %al
movzbl %al, %eax
addl %eax, %ebp
incq %r14
jmp 0x2a82f
incq %r15
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x2a874
leaq (%rax,%r15,8), %rax
jmp 0x2a80f
testl %ebp, %ebp
jle 0x2a8ca
movq 0x5d771(%rip), %rdi     # 0x87ff0
leaq 0x2cab8(%rip), %rsi     # 0x5733e
callq 0xf350
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0xf6a0
leaq 0x2ca97(%rip), %rsi     # 0x57348
movq %rax, %rdi
callq 0xf350
movq %rax, %rdi
callq 0xf1c0
cmpb $0x0, 0x337(%rbx)
je 0x2a8d9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5d710(%rip), %rdi     # 0x87ff0
leaq 0x2ca96(%rip), %rsi     # 0x5737d
callq 0xf350
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf1c0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkSymbols[abi:cxx11](SymbolScope*)
string SleighCompile::checkSymbols(SymbolScope *scope)

{ // Make sure label symbols are used properly
  ostringstream s;
  SymbolTree::const_iterator iter;
  for(iter=scope->begin();iter!=scope->end();++iter) {
    LabelSymbol *sym = (LabelSymbol *)*iter;
    if (sym->getType() != SleighSymbol::label_symbol) continue;
    if (sym->getRefCount() == 0)
      s << "   Label <" << sym->getName() << "> was placed but not used\n";
    else if (!sym->isPlaced())
      s << "   Label <" << sym->getName() << "> was referenced but never placed\n";
  }
  return s.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, %r14
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xf520
movq 0x20(%r14), %r13
addq $0x10, %r14
leaq 0x2c9bc(%rip), %r12     # 0x573e5
leaq 0x2c9c0(%rip), %rbx     # 0x573f0
cmpq %r14, %r13
je 0x2aaa9
movq 0x20(%r13), %rbp
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x10(%rax)
cmpl $0x11, %eax
jne 0x2aa9c
cmpl $0x0, 0x38(%rbp)
je 0x2aa77
cmpb $0x0, 0x34(%rbp)
jne 0x2aa9c
movq %r15, %rdi
movq %r12, %rsi
callq 0xf350
addq $0x8, %rbp
movq %rax, %rdi
movq %rbp, %rsi
callq 0xf320
leaq 0x2c996(%rip), %rsi     # 0x5740b
jmp 0x2aa94
movq %r15, %rdi
movq %r12, %rsi
callq 0xf350
addq $0x8, %rbp
movq %rax, %rdi
movq %rbp, %rsi
callq 0xf320
movq %rbx, %rsi
movq %rax, %rdi
callq 0xf350
movq %r13, %rdi
callq 0xf400
movq %rax, %r13
jmp 0x2aa30
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xf610
leaq 0x10(%rsp), %rdi
callq 0xf0e0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2aadc
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xf0e0
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::process()
void SleighCompile::process(void)

{				// Do all post processing on the parsed data structures
  checkNops();
  if (getDefaultSpace() == (AddrSpace *)0)
    reportError("No default space specified",false);
  if (errors>0) return;
  checkConsistency();
  if (errors>0) return;
  checkLocalCollisions();
  if (errors>0) return;
  buildPatterns();
  if (errors>0) return;
  buildDecisionTrees();
  if (errors>0) return;
  try {
    buildXrefs();		// Make sure we can build crossrefs properly
  } catch(SleighError &err) {
    cerr << err.explain << endl;
    errors += 1;
    return;
  }
  checkUniqueAllocation();
  symtab.purge();		// Get rid of any symbols we don't plan to save
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x2a902
cmpq $0x0, 0xa0(%rbx)
jne 0x2ab3a
leaq 0x2c94c(%rip), %rsi     # 0x5745e
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x10c3a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x292f0
leaq 0x8(%rsp), %rdi
callq 0xf1a0
cmpl $0x0, 0x358(%rbx)
jg 0x2aba6
movq %rbx, %rdi
callq 0x2a448
cmpl $0x0, 0x358(%rbx)
jg 0x2aba6
movq %rbx, %rdi
callq 0x2a7f4
cmpl $0x0, 0x358(%rbx)
jg 0x2aba6
movq %rbx, %rdi
callq 0x2a2a4
cmpl $0x0, 0x358(%rbx)
jg 0x2aba6
movq %rbx, %rdi
callq 0x2a198
cmpl $0x0, 0x358(%rbx)
jg 0x2aba6
movq %rbx, %rdi
callq 0x25222
movq %rbx, %rdi
callq 0x2ac0e
addq $0x198, %rbx            # imm = 0x198
movq %rbx, %rdi
callq 0x4120c
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x2ac06
movq %r14, %rdi
callq 0xf170
movq 0x5d42b(%rip), %rdi     # 0x87ff0
movq %rax, %rsi
callq 0xf320
movq %rax, %rdi
callq 0xf1c0
incl 0x358(%rbx)
callq 0xf650
jmp 0x2aba6
movq %rax, %r14
callq 0xf650
jmp 0x2ac06
movq %rax, %rdi
callq 0x1178d
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xf1a0
jmp 0x2ac06
movq %rax, %r14
movq %r14, %rdi
callq 0xf6e0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkUniqueAllocation()
void SleighCompile::checkUniqueAllocation(void)

{ // With crossbuilds,  temporaries may need to survive across instructions in a packet, so here we
  // provide space in the offset of the temporary (within the unique space) so that the run-time sleigh
  // engine can alter the value to prevent collisions with other nearby instructions
  if (unique_allocatemask == 0) return;	// We don't have any crossbuild directives

  unique_allocatemask = 0xff;	// Provide 8 bits of free space
  int4 sa = 8;
  int4 secsize = sections.size(); // This is the upper bound for section numbers
  SubtableSymbol *sym = root; // Start with the instruction table
  int4 i = -1;
  for(;;) {
    int4 numconst = sym->getNumConstructors();
    for(int4 j=0;j<numconst;++j) {
      Constructor *ct = sym->getConstructor(j);
      ConstructTpl *tpl = ct->getTempl();
      if (tpl != (ConstructTpl *)0)
	shiftUniqueConstruct(tpl,sa);
      for(int4 k=0;k<secsize;++k) {
	ConstructTpl *namedtpl = ct->getNamedTempl(k);
	if (namedtpl != (ConstructTpl *)0)
	  shiftUniqueConstruct(namedtpl,sa);
      }
    }
    i+=1;
    if (i>=tables.size()) break;
    sym = tables[i];
  }
  uintm ubase = getUniqueBase(); // We have to adjust the unique base
  ubase <<= sa;
  setUniqueBase(ubase);
}

// Assembly:
cmpl $0x0, 0x1d4(%rdi)
je 0x2ad2b
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl $0xff, 0x1d4(%rdi)
movq 0x2a8(%rdi), %r12
subq 0x2a0(%rdi), %r12
shrq $0x3, %r12
movq %rdi, 0x8(%rsp)
leaq 0x190(%rdi), %rax
xorl %ecx, %ecx
testl %r12d, %r12d
cmovlel %ecx, %r12d
pushq $-0x1
popq %rcx
movq %rcx, (%rsp)
pushq $0x8
popq %rbp
movq (%rax), %rax
movq 0x48(%rax), %r13
movq %rax, 0x10(%rsp)
subq 0x40(%rax), %r13
shrq $0x3, %r13
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
xorl %ebx, %ebx
cmpq %r13, %rbx
je 0x2acd4
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rax
movq (%rax,%rbx,8), %r14
movq 0x60(%r14), %rdi
testq %rdi, %rdi
je 0x2aca8
movl %ebp, %esi
callq 0x2d528
xorl %r15d, %r15d
cmpl %r15d, %r12d
je 0x2accf
movq %r14, %rdi
movl %r15d, %esi
callq 0x4443a
testq %rax, %rax
je 0x2acca
movq %rax, %rdi
movl %ebp, %esi
callq 0x2d528
incl %r15d
jmp 0x2acab
incq %rbx
jmp 0x2ac86
movq (%rsp), %rsi
incq %rsi
movq 0x8(%rsp), %rdx
movq 0x288(%rdx), %rax
movq 0x290(%rdx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rsi, %rcx
jbe 0x2ad07
movq %rsi, (%rsp)
leaq (%rax,%rsi,8), %rax
jmp 0x2ac64
movl 0x124(%rdx), %ecx
movl %ecx, %eax
shll $0x8, %eax
cmpl %eax, %ecx
leaq 0x18(%rsp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jae 0x2ad2b
movl %eax, 0x124(%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::calcContextLayout()
void SleighCompile::calcContextLayout(void)

{
  if (contextlock) return;	// Already locked
  contextlock = true;

  int4 context_offset = 0;
  int4 begin,sz;
  stable_sort(contexttable.begin(),contexttable.end());
  begin = 0;
  while(begin < contexttable.size()) { // Define the context variables
    sz = 1;
    while ((begin+sz < contexttable.size())&&(contexttable[begin+sz].sym==contexttable[begin].sym))
      sz += 1;
    context_offset = calcContextVarLayout(begin,sz,context_offset);
    begin += sz;
  } 

  //  context_size = (context_offset+8*sizeof(uintm)-1)/(8*sizeof(uintm));

  // Delete the quals
  for(int4 i=0;i<contexttable.size();++i) {
    FieldQuality *qual = contexttable[i].qual;
    delete qual;
  }

  contexttable.clear();
}

// Assembly:
cmpb $0x0, 0x2e0(%rdi)
jne 0x2ae33
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movb $0x1, 0x2e0(%rdi)
movq 0x240(%rdi), %rdi
movq 0x248(%rbx), %rsi
callq 0x30abb
xorl %r15d, %r15d
pushq $0x1
popq %r14
xorl %eax, %eax
movl %r15d, %esi
movq 0x240(%rbx), %rcx
movq 0x248(%rbx), %rdx
movq %rdx, %rdi
subq %rcx, %rdi
sarq $0x4, %rdi
cmpq %rsi, %rdi
jbe 0x2add1
movq %rsi, %rdx
shlq $0x4, %rdx
leal 0x1(%rsi), %r8d
cmpq %r8, %rdi
cmovaq %rdi, %r8
leaq (%rcx,%rdx), %r9
addq %rdx, %rcx
addq $0x10, %rcx
movq %r14, %rdx
leaq (%rsi,%rdx), %r15
cmpq %r15, %rdi
jbe 0x2adc2
movq (%rcx), %r10
cmpq (%r9), %r10
jne 0x2adc5
incq %rdx
addq $0x10, %rcx
jmp 0x2ada8
movq %r8, %r15
movq %rbx, %rdi
movl %eax, %ecx
callq 0x29e66
jmp 0x2ad68
pushq $0x8
popq %r12
xorl %r13d, %r13d
pushq $0x30
popq %r14
movq %rdx, %rax
subq %rcx, %rax
sarq $0x4, %rax
cmpq %r13, %rax
jbe 0x2ae1e
movq (%rcx,%r12), %r15
testq %r15, %r15
je 0x2adfc
movq %r15, %rdi
callq 0xf1a0
movq %r15, %rdi
movq %r14, %rsi
callq 0xf380
incq %r13
movq 0x240(%rbx), %rcx
movq 0x248(%rbx), %rdx
addq $0x10, %r12
jmp 0x2addc
cmpq %rcx, %rdx
je 0x2ae2a
movq %rcx, 0x248(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::parseFromNewFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void SleighCompile::parseFromNewFile(const string &fname)

{
  string base,path;
  FileManage::splitPath(fname,path,base);
  filename.push_back(base);
  if (relpath.empty() || FileManage::isAbsolutePath(path))
    relpath.push_back(path);
  else {			// Relative paths from successive includes, combine
    string totalpath = relpath.back();
    totalpath += path;
    relpath.push_back(totalpath);
  }
  lineno.push_back(1);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rcx)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %dl, (%rcx)
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %rax, %rdi
callq 0x13f6a
leaq 0x300(%rbx), %rdi
leaq 0x48(%rsp), %rsi
callq 0x146b0
leaq 0x2e8(%rbx), %r14
movq 0x2f0(%rbx), %rsi
cmpq %rsi, 0x2e8(%rbx)
je 0x2af09
cmpq $0x0, 0x10(%rsp)
je 0x2af18
movq 0x8(%rsp), %rax
movb (%rax), %al
leaq 0x5d53b(%rip), %rcx     # 0x88440
cmpb (%rcx), %al
jne 0x2af18
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x146b0
jmp 0x2af4c
addq $-0x20, %rsi
leaq 0x28(%rsp), %rdi
callq 0xf540
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf760
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x146b0
leaq 0x28(%rsp), %rdi
callq 0xf1a0
addq $0x318, %rbx            # imm = 0x318
leaq 0x28(%rsp), %rsi
movl $0x1, (%rsi)
movq %rbx, %rdi
callq 0x302b0
leaq 0x8(%rsp), %rdi
callq 0xf1a0
leaq 0x48(%rsp), %rdi
callq 0xf1a0
addq $0x68, %rsp
popq %rbx
popq %r14
retq
jmp 0x2af95
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xf1a0
jmp 0x2af98
jmp 0x2af95
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xf1a0
leaq 0x48(%rsp), %rdi
callq 0xf1a0
movq %rbx, %rdi
callq 0xf6e0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::getPreprocValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
bool SleighCompile::getPreprocValue(const string &nm,string &res) const

{
  map<string,string>::const_iterator iter = preproc_defines.find(nm);
  if (iter == preproc_defines.end()) return false;
  res = (*iter).second;
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
addq $0x210, %rdi            # imm = 0x210
callq 0x318a6
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2b09e
leaq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0xf210
cmpq %rbx, %r15
setne %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::undefinePreprocValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SleighCompile::undefinePreprocValue(const string &nm)

{
  map<string,string>::iterator iter = preproc_defines.find(nm);
  if (iter==preproc_defines.end()) return false;
  preproc_defines.erase(iter);
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x210(%rdi), %r14
movq %r14, %rdi
callq 0x31cce
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2b0f7
movq %r14, %rdi
movq %r15, %rsi
callq 0x31d0c
cmpq %rbx, %r15
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, unsigned long*)
TokenSymbol *SleighCompile::defineToken(string *name,uintb *sz)

{
  uint4 size = *sz;
  delete sz;
  if ((size&7)!=0) {
    reportError(*name+"token size must be multiple of 8",true);
    size = (size/8)+1;
  }
  else
    size = size/8;
  Token *newtoken = new Token(*name,size,isBigEndian(),tokentable.size());
  tokentable.push_back(newtoken);
  delete name;
  TokenSymbol *res = new TokenSymbol(newtoken);
  addSymbol(res);
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdx), %ebp
pushq $0x8
popq %rsi
movq %rdx, %rdi
callq 0xf380
testb $0x7, %bpl
je 0x2b15b
leaq 0x2c350(%rip), %rdx     # 0x57480
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2ebc0
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x292f0
movq %rsp, %rdi
callq 0xf1a0
shrl $0x3, %ebp
incl %ebp
jmp 0x2b15e
shrl $0x3, %ebp
pushq $0x30
popq %rdi
callq 0xf370
movq %rax, %r15
movzbl 0x120(%rbx), %ecx
movq 0x278(%rbx), %r8
subq 0x270(%rbx), %r8
shrq $0x3, %r8
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x2ec72
leaq 0x270(%rbx), %rdi
movq %rsp, %r12
movq %r15, (%r12)
movq %r12, %rsi
callq 0x2eca0
movq %r14, %rdi
callq 0xf1a0
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0xf380
pushq $0x38
popq %rdi
callq 0xf370
movq %rax, %r14
movq (%r12), %rsi
movq %rax, %rdi
callq 0x2ecbe
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29992
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf1a0
jmp 0x2b210
movq %rax, %rbx
pushq $0x38
popq %rsi
movq %r14, %rdi
jmp 0x2b20b
movq %rax, %rbx
pushq $0x30
popq %rsi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::addContextField(VarnodeSymbol*, FieldQuality*)
bool SleighCompile::addContextField(VarnodeSymbol *sym,FieldQuality *qual)

{
  if (contextlock)
    return false;		// Context layout has already been satisfied

  contexttable.push_back(FieldContext(sym,qual));
  return true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movb 0x2e0(%rdi), %bl
testb %bl, %bl
jne 0x2b2d8
addq $0x240, %rdi            # imm = 0x240
movq %rsp, %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movq %rax, %rsi
callq 0x31e9e
xorb $0x1, %bl
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::newSpace(SpaceQuality*)
void SleighCompile::newSpace(SpaceQuality *qual)

{
  if (qual->size == 0) {
    reportError("Space definition missing size attribute",true);
    delete qual;
    return;
  }

  int4 delay = (qual->type == SpaceQuality::registertype) ? 0 : 1;
  AddrSpace *spc = new AddrSpace(this,this,IPTR_PROCESSOR,qual->name,qual->size,qual->wordsize,numSpaces(),AddrSpace::hasphysical,delay);
  insertSpace(spc);
  if (qual->isdefault) {
    if (getDefaultSpace() != (AddrSpace *)0)
      reportError("Multiple default spaces",true);
    else {
      setDefaultSpace(spc->getIndex());	// Make the flagged space the default
      pcode.setDefaultSpace(spc);
    }
  }
  delete qual;
  addSymbol( new SpaceSymbol(spc) );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x24(%rsi), %ebp
testl %ebp, %ebp
je 0x2b39f
xorl %r12d, %r12d
cmpl $0x1, 0x20(%r14)
setne %r12b
pushq $0x70
popq %rdi
callq 0xf370
movq %rax, %r15
movl 0x28(%r14), %eax
movq 0x10(%rbx), %r10
subq 0x8(%rbx), %r10
shrq $0x3, %r10
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
movq %r14, %r8
movl %ebp, %r9d
pushq %r12
pushq $0x100                  # imm = 0x100
pushq %r10
pushq %rax
callq 0x49d02
addq $0x20, %rsp
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c93a
cmpb $0x1, 0x2c(%r14)
jne 0x2b3f7
cmpq $0x0, 0xa0(%rbx)
je 0x2b3e4
leaq 0x2c155(%rip), %rsi     # 0x574c9
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x10c3a
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x292f0
leaq 0x10(%rsp), %rdi
callq 0xf1a0
jmp 0x2b3f7
leaq 0x2c0fb(%rip), %rsi     # 0x574a1
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x10c3a
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x292f0
leaq 0x10(%rsp), %rdi
callq 0xf1a0
movq %r14, %rdi
callq 0xf1a0
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0xf380
jmp 0x2b42b
movl 0x60(%r15), %esi
movq %rbx, %rdi
callq 0x4cdf0
movq %r15, 0x1e8(%rbx)
movq %r14, %rdi
callq 0xf1a0
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0xf380
pushq $0x38
popq %rdi
callq 0xf370
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x20728
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29992
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b43c
jmp 0x2b44b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xf1a0
jmp 0x2b469
movq %rax, %rbx
jmp 0x2b469
movq %rax, %rbx
pushq $0x38
popq %rsi
movq %r14, %rdi
jmp 0x2b464
movq %rax, %rbx
pushq $0x70
popq %rsi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::newSectionSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
SectionSymbol *SleighCompile::newSectionSymbol(const string &nm)

{
  SectionSymbol *sym = new SectionSymbol(nm,sections.size());
  try {
    symtab.addGlobalSymbol(sym);
  } catch(SleighError &err) {
    reportError(err.explain,true);
  }
  sections.push_back(sym);
  numSections = sections.size();
  return sym;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq 0xf370
movq %rax, %r15
movq 0x2a8(%rbx), %rdx
subq 0x2a0(%rbx), %rdx
shrq $0x3, %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2ece4
movq %r15, 0x8(%rsp)
leaq 0x198(%rbx), %rdi
movq %r15, %rsi
callq 0x4043c
leaq 0x2a0(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x2ed0e
movq 0x2a8(%rbx), %rax
subq 0x2a0(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x1d8(%rbx)
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x2b53b
movq %r14, %rdi
callq 0xf170
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x292f0
callq 0xf650
jmp 0x2b4bd
movq %rax, %r14
callq 0xf650
jmp 0x2b53b
movq %rax, %rdi
callq 0x1178d
movq %rax, %r14
pushq $0x40
popq %rsi
movq %r15, %rdi
callq 0xf380
movq %r14, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineVarnodes(SpaceSymbol*, unsigned long*, unsigned long*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>*)
void SleighCompile::defineVarnodes(SpaceSymbol *spacesym,uintb *off,uintb *size,vector<string> *names)

{
  AddrSpace *spc = spacesym->getSpace();
  uintb myoff = *off;
  for(int4 i=0;i<names->size();++i) {
    if ((*names)[i] != "_")
      addSymbol( new VarnodeSymbol((*names)[i],spc,myoff,*size) );
    myoff += *size;
  }
  delete names;
  delete off;
  delete size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r15
movq %rcx, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x30(%rsi), %rax
movq %rax, 0x20(%rsp)
movq %rdx, 0x10(%rsp)
movq (%rdx), %rbp
xorl %r13d, %r13d
leaq 0x2bf57(%rip), %rbx     # 0x574e1
xorl %r14d, %r14d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x2b5f6
addq %r13, %rdi
movq %rbx, %rsi
callq 0x14714
testb %al, %al
je 0x2b5e5
pushq $0x58
popq %rdi
callq 0xf370
movq %rax, %r12
movq (%r15), %rsi
addq %r13, %rsi
movq 0x8(%rsp), %rax
movl (%rax), %r8d
movq %r12, %rdi
movq 0x20(%rsp), %rdx
movq %rbp, %rcx
callq 0x422cc
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x29992
movq 0x8(%rsp), %rax
addq (%rax), %rbp
incq %r14
addq $0x20, %r13
jmp 0x2b58d
movq %r15, %rdi
callq 0x12d80
pushq $0x18
popq %rsi
movq %r15, %rdi
callq 0xf380
pushq $0x8
popq %r14
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xf380
movq 0x8(%rsp), %rdi
movq %r14, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::addUserOp(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>*)
void SleighCompile::addUserOp(vector<string> *names)

{
  for(int4 i=0;i<names->size();++i) {
    UserOpSymbol *sym = new UserOpSymbol((*names)[i]);
    sym->setIndex(userop_count++);
    addSymbol( sym );
  }
  delete names;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
xorl %r15d, %r15d
movq (%rbx), %r13
movq 0x8(%rbx), %rax
subq %r13, %rax
sarq $0x5, %rax
cmpq %r15, %rax
jbe 0x2b862
pushq $0x38
popq %rdi
callq 0xf370
movq %rax, %r12
addq %rbp, %r13
movq %rax, %rdi
movq %r13, %rsi
callq 0x2ed64
movl 0x330(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x330(%r14)
movl %eax, 0x30(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x29992
incq %r15
addq $0x20, %rbp
jmp 0x2b80c
movq %rbx, %rdi
callq 0x12d80
pushq $0x18
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
movq %rax, %rbx
pushq $0x38
popq %rsi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::attachValues(std::vector<SleighSymbol*, std::allocator<SleighSymbol*>>*, std::vector<long, std::allocator<long>>*)
void SleighCompile::attachValues(vector<SleighSymbol *> *symlist,vector<intb> *numlist)

{
  SleighSymbol *dupsym = dedupSymbolList(symlist);
  if (dupsym != (SleighSymbol *)0)
    reportWarning("\"attach values\" list contains duplicate entries: "+dupsym->getName(),true);
  for(int4 i=0;i<symlist->size();++i) {
    ValueSymbol *sym = (ValueSymbol *)(*symlist)[i];
    if (sym == (ValueSymbol *)0) continue;
    PatternValue *patval = sym->getPatternValue();
    if (patval->maxValue() + 1 != numlist->size()) {
      reportError("Attach value " + sym->getName() + " is wrong size for list", true);
    }
    symtab.replaceSymbol(sym, new ValueMapSymbol(sym->getName(),patval,*numlist));
  }
  delete numlist;
  delete symlist;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rdi, %r12
movq %rsi, (%rsp)
callq 0x2b89a
testq %rax, %rax
je 0x2b961
addq $0x8, %rax
leaq 0x2bbdc(%rip), %rsi     # 0x57515
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x10cd1
pushq $0x1
popq %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x2a3a2
leaq 0x18(%rsp), %rdi
callq 0xf1a0
movq %r12, 0x8(%rsp)
leaq 0x198(%r12), %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
movq (%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
jbe 0x2ba53
movq (%rax,%r12,8), %r13
testq %r13, %r13
je 0x2ba4b
movq (%r13), %rax
movq %r13, %rdi
callq *0x60(%rax)
movq %rax, %rbp
movq (%rax), %rax
movq %rbp, %rdi
callq *0x58(%rax)
incq %rax
movq 0x8(%r14), %rcx
movq %r14, %rbx
subq (%r14), %rcx
sarq $0x3, %rcx
cmpq %rcx, %rax
je 0x2ba1b
leaq 0x8(%r13), %rdx
leaq 0x38(%rsp), %r15
movq %r15, %rdi
leaq 0x2bb6a(%rip), %rsi     # 0x57547
callq 0x10cd1
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
leaq 0x2bb61(%rip), %rdx     # 0x57555
callq 0x2eb71
movq 0x8(%rsp), %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0x292f0
movq %r14, %rdi
callq 0xf1a0
leaq 0x38(%rsp), %rdi
callq 0xf1a0
pushq $0x58
popq %rdi
callq 0xf370
movq %rax, %r15
leaq 0x8(%r13), %rsi
movq %rax, %rdi
movq %rbp, %rdx
movq %rbx, %r14
movq %rbx, %rcx
callq 0x2ed82
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x405ee
incq %r12
jmp 0x2b976
testq %r14, %r14
je 0x2ba60
movq %r14, %rdi
callq 0x2fa5e
pushq $0x18
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xf380
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x2fa2a
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf380
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
jmp 0x2bab6
movq %rax, %rbx
jmp 0x2bab1
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xf1a0
leaq 0x38(%rsp), %rdi
callq 0xf1a0
jmp 0x2bacb
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf6e0
nop