// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/src/formula.cpp
// Function: lois::FormulaQ::simplify(std::shared_ptr<lois::FormulaQ>)
rbool FormulaQ::simplify(std::shared_ptr<FormulaQ> def) {
  
  using namespace std;
  // we know the value of something, maybe?
  for(size_t i=0; i<var.size(); i++) {
    vptr v = var[i];
    if(!right->uses(v)) {
      var[i] = var[var.size()-1];
      var.pop_back(); i--;
      }
    else {
      term v1 = right->valueKnown(v, type);
      if(v1.p) {
        right = substitute(right, v, v1);
        var[i] = var[var.size()-1];
        var.pop_back(); i--;
        }
      }
    }
  
  // no variables
  if(!var.size()) return right;    
  // quantified true/false
  auto fix = std::dynamic_pointer_cast<FormulaFixed> (right.p);
  if(fix) return right;
  
  /*
  // quantified binary, one side does not use the vars
  auto bin = std::dynamic_pointer_cast<FormulaBi> (right.p);
  if(bin) {
    bool leftuses = false, rightuses = false;
    for(auto v: var) leftuses |= bin->left->uses(v), rightuses |= bin->right->uses(v);

    if(!leftuses && bin->type == true) return bin->left && makeq(type, bin->right, var);
    if(!rightuses && bin->type == true) return bin->right && makeq(type, bin->left, var);
    if(!leftuses && bin->type == false) return bin->left || makeq(type, bin->right, var);
    if(!rightuses && bin->type == false) return bin->right || makeq(type, bin->left, var);
    } */
  
  // quantified (in)equality
  // as long as we assume that !right->unused(all vars),
  // and that they are variables,
  // we know the value
  auto eq = std::dynamic_pointer_cast<FormulaEq> (right.p);
  if(eq && eq->t1.asVar() && eq->t2.asVar()) return type ? ffalse : ftrue;
  
  // take the independent components out of the quantifier
  auto bin = std::dynamic_pointer_cast<FormulaBi> (right.p);
  if(bin) {
    bool btype = bin->type;
    std::vector<rbool> phi;
    std::vector<int> vused;
    decomposeBin(right, btype, phi);
    bool suc = false;
    for(size_t k=0; k<phi.size(); k++) {
      size_t li = 0;
      for(size_t i=0; i<var.size(); i++)
        if(phi[k]->uses(var[i])) li = i+1;
      if(li < var.size()) suc = true;
      vused.push_back(li);
      }
    
    if(suc) {
      for(int k=1; k<phi.size(); ) {
        if(k && vused[k] < vused[k-1]) 
          std::swap(vused[k], vused[k-1]), std::swap(phi[k], phi[k-1]), k--;
        else
          k++;
        }
      
      int at = phi.size()-1;
      rbool nphi = phi[at];
      int lev = vused[at];
  
/*    std::cout << "SIMPLIFYING: ";
      display(std::cout);
      std::cout << std::endl;
      
      for(int k=0; k<phi.size(); k++)
        std::cout << k << "." << vused[k] << ") " << phi[k] << std::endl; */
      
      while(true) {
        at--;
        int nlev = at >= 0 ? vused[at] : 0;
        if(lev > nlev) {
          varlist v;
          while(lev > nlev) { lev--; v.push_back(var[lev]); }
          nphi = makeq(type, nphi, v);
          }
        if(at < 0) {
/*        std::cout << "SIMPLIFIED: ";
          display(std::cout);
          std::cout << " TO: " << nphi << std::endl; */
          return nphi;
          }
        else if(btype) nphi = phi[at] && nphi;
        else nphi = phi[at] || nphi;
        }
      }
    }
  
  return rbool(def);
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, 0x58(%rsp)
movq %rsi, %r15
movq %rdi, %rbp
movq 0x28(%rsi), %rax
cmpq %rax, 0x30(%rsi)
je 0x2a769
movq %rbp, 0x38(%rsp)
leaq 0x18(%r15), %r12
xorl %ebp, %ebp
movq 0x27b28(%rip), %r14     # 0x51fc8
movq %rbp, %r13
shlq $0x4, %r13
movq (%rax,%r13), %rbx
movq 0x8(%rax,%r13), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x2a4d8
cmpb $0x0, (%r14)
je 0x2a4ec
movq 0x8(%rsp), %rax
incl 0x8(%rax)
movq (%r12), %rdi
movq %rbx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
jmp 0x2a50d
movq (%r12), %rdi
movq %rbx, 0x60(%rsp)
movq $0x0, 0x68(%rsp)
jmp 0x2a510
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
cmpb $0x0, (%r14)
movq (%r12), %rdi
movq %rbx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
je 0x2a61d
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0x60(%rsp), %rsi
callq *0x28(%rax)
movl %eax, %r14d
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2a52d
callq 0x133fc
testb %r14b, %r14b
je 0x2a567
movq (%r12), %rsi
movq %rbx, 0x118(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x120(%rsp)
testq %rax, %rax
movq 0x27a73(%rip), %r14     # 0x51fc8
je 0x2a5bc
cmpb $0x0, (%r14)
je 0x2a5b3
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x2a5bc
movq 0x28(%r15), %rax
movq 0x30(%r15), %rsi
movq -0x10(%rsi), %rcx
leaq (%rax,%r13), %rdi
addq $0x8, %rdi
movq %rcx, -0x8(%rdi)
addq $-0x8, %rsi
callq 0x1615e
movq 0x30(%r15), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x30(%r15)
movq -0x8(%rax), %rdi
testq %rdi, %rdi
movq 0x27a26(%rip), %r14     # 0x51fc8
je 0x2a5a9
callq 0x133fc
movq 0x8(%rsp), %rbx
jmp 0x2a6d5
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
movzbl 0x10(%r15), %ecx
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
leaq 0x118(%rsp), %rdx
callq *0x30(%rax)
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x2a5e6
callq 0x133fc
cmpq $0x0, 0x10(%rsp)
je 0x2a613
movq %rbx, 0x108(%rsp)
movq 0x8(%rsp), %rbx
movq %rbx, 0x110(%rsp)
testq %rbx, %rbx
je 0x2a62a
cmpb $0x0, (%r14)
je 0x2a626
incl 0x8(%rbx)
jmp 0x2a62a
movq 0x8(%rsp), %rbx
jmp 0x2a6c3
lock
incl 0x8(%rax)
jmp 0x2a510
lock
incl 0x8(%rbx)
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
leaq 0x108(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0x16268
movaps 0x40(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x40(%rsp)
movq 0x20(%r15), %rdi
movups %xmm0, 0x18(%r15)
testq %rdi, %rdi
je 0x2a673
callq 0x133fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2a673
callq 0x133fc
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x2a685
callq 0x133fc
movq 0x28(%r15), %rax
movq 0x30(%r15), %rsi
movq -0x10(%rsi), %rcx
leaq (%rax,%r13), %rdi
addq $0x8, %rdi
movq %rcx, -0x8(%rdi)
addq $-0x8, %rsi
callq 0x1615e
movq 0x30(%r15), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x30(%r15)
movq -0x8(%rax), %rdi
testq %rdi, %rdi
je 0x2a6c0
callq 0x133fc
decq %rbp
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2a6d2
callq 0x133fc
incq %rbp
testq %rbx, %rbx
je 0x2a6e2
movq %rbx, %rdi
callq 0x133fc
movq 0x28(%r15), %rax
movq 0x30(%r15), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq %rdx, %rbp
jb 0x2a4a0
cmpq %rax, %rcx
movq 0x38(%rsp), %rbp
je 0x2a769
movq 0x18(%r15), %r14
testq %r14, %r14
je 0x2a796
leaq 0x264c5(%rip), %rsi     # 0x50be0
leaq 0x265b6(%rip), %rdx     # 0x50cd8
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x72b0
testq %rax, %rax
je 0x2a7d6
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x2a830
movq 0x2787f(%rip), %rdx     # 0x51fc8
cmpb $0x0, (%rdx)
je 0x2a873
incl 0x8(%rdi)
movq 0x18(%r15), %rax
movq %rax, (%rbp)
movq %rdi, 0x8(%rbp)
movq %rdi, %rax
jmp 0x2a88c
movq 0x18(%r15), %rax
movq %rax, (%rbp)
movq 0x20(%r15), %rax
movq %rax, 0x8(%rbp)
testq %rax, %rax
je 0x2a89f
movq 0x2783f(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2a7cd
incl 0x8(%rax)
jmp 0x2a89f
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x27826(%rip), %r14     # 0x51fc8
movq 0x58(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdi
testq %rdi, %rdi
je 0x2a822
cmpb $0x0, (%r14)
je 0x2a842
incl 0x8(%rdi)
movq %rax, (%rbp)
movq %rdi, 0x8(%rbp)
jmp 0x2a854
lock
incl 0x8(%rax)
jmp 0x2a89f
leaq 0x26403(%rip), %rsi     # 0x50be0
leaq 0x26524(%rip), %rdx     # 0x50d08
xorl %ebx, %ebx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x72b0
testq %rax, %rax
je 0x2a983
movq %rax, %r12
movq 0x20(%r15), %r13
testq %r13, %r13
je 0x2a8bf
movq 0x277b8(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2a8ba
incl 0x8(%r13)
jmp 0x2a8bf
movq %rax, (%rbp)
movq $0x0, 0x8(%rbp)
jmp 0x2a85c
movq 0x18(%r15), %rax
movq %rax, (%rbp)
movq $0x0, 0x8(%rbp)
jmp 0x2a89f
lock
incl 0x8(%rdi)
cmpb $0x0, (%r14)
movq %rax, (%rbp)
movq %rdi, 0x8(%rbp)
je 0x2a8b4
incl 0x8(%rdi)
callq 0x133fc
testq %r15, %r15
je 0x2a869
movq %r15, %rdi
callq 0x133fc
testq %rbx, %rbx
je 0x2a89f
movq %rbx, %rdi
jmp 0x2a89a
lock
incl 0x8(%rdi)
movq 0x18(%r15), %rcx
movq 0x20(%r15), %rax
movq %rcx, (%rbp)
movq %rax, 0x8(%rbp)
testq %rax, %rax
je 0x2a89a
cmpb $0x0, (%rdx)
je 0x2a896
incl 0x8(%rax)
jmp 0x2a89a
lock
incl 0x8(%rax)
callq 0x133fc
movq %rbp, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%rdi)
jmp 0x2a857
lock
incl 0x8(%r13)
leaq 0x18(%r12), %rsi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2b0ee
cmpq $0x0, (%r14)
je 0x2a902
addq $0x28, %r12
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x2b0ee
cmpq $0x0, (%r14)
setne %bl
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x2a904
callq 0x133fc
jmp 0x2a904
xorl %ebx, %ebx
movq 0x276bd(%rip), %r14     # 0x51fc8
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2a91a
callq 0x133fc
testb %bl, %bl
je 0x2a973
leaq 0x27e9b(%rip), %rax     # 0x527c0
cmpb $0x0, 0x10(%r15)
leaq 0x27e7f(%rip), %rcx     # 0x527b0
cmovneq %rax, %rcx
movq (%rcx), %rax
leaq 0x27e89(%rip), %rcx     # 0x527c8
leaq 0x27e72(%rip), %rdx     # 0x527b8
cmovneq %rcx, %rdx
movq %rax, (%rbp)
movq (%rdx), %rax
movq %rax, 0x8(%rbp)
testq %rax, %rax
movq %r13, %rbx
je 0x2a869
cmpb $0x0, (%r14)
je 0x2acde
incl 0x8(%rax)
jmp 0x2a869
movq 0x18(%r15), %r14
testq %r14, %r14
movq %r13, %rbx
je 0x2a798
leaq 0x26256(%rip), %rsi     # 0x50be0
leaq 0x2635f(%rip), %rdx     # 0x50cf0
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x72b0
testq %rax, %rax
je 0x2a9c4
movq 0x20(%r15), %rcx
movq %rcx, 0x30(%rsp)
testq %rcx, %rcx
je 0x2a9d3
movq 0x27613(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2a9d7
movq 0x30(%rsp), %rcx
incl 0x8(%rcx)
jmp 0x2a9e8
movq 0x275fd(%rip), %r14     # 0x51fc8
xorl %r15d, %r15d
jmp 0x2a7a2
xorl %ecx, %ecx
jmp 0x2a9e8
movq 0x30(%rsp), %rcx
lock
incl 0x8(%rcx)
movq 0x18(%r15), %r14
movq 0x20(%r15), %rcx
movb 0x10(%rax), %al
movb %al, 0x7(%rsp)
xorl %eax, %eax
movq %rax, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %r14, 0xf8(%rsp)
movq %rcx, 0x100(%rsp)
testq %rcx, %rcx
movq 0x275a6(%rip), %r14     # 0x51fc8
je 0x2aa33
cmpb $0x0, (%r14)
je 0x2aa2f
incl 0x8(%rcx)
jmp 0x2aa33
lock
incl 0x8(%rcx)
movzbl 0x7(%rsp), %esi
leaq 0xf8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, 0x8(%rsp)
callq 0x2a306
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x2aa61
callq 0x133fc
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0x2acae
xorl %ecx, %ecx
xorl %r12d, %r12d
movq %r12, 0x128(%rsp)
movq 0x28(%r15), %rax
movq 0x30(%r15), %rdx
subq %rax, %rdx
movq %rcx, 0x70(%rsp)
je 0x2ab33
movl $0x8, %ebx
movq %rcx, %r14
shlq $0x4, %r14
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x10(%rsp), %rcx
movq (%rcx,%r14), %rdi
movq -0x8(%rax,%rbx), %rcx
movq %rcx, 0xe8(%rsp)
movq (%rax,%rbx), %rax
movq %rax, 0xf0(%rsp)
testq %rax, %rax
je 0x2aae1
movq 0x274f5(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2aadd
incl 0x8(%rax)
jmp 0x2aae1
lock
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0xe8(%rsp), %rsi
callq *0x28(%rax)
movl %eax, %r12d
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ab04
callq 0x133fc
incq %r13
movq %r13, %rcx
testb %r12b, %r12b
jne 0x2ab12
movq %rbp, %rcx
movq 0x28(%r15), %rax
movq 0x30(%r15), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
addq $0x10, %rbx
movq %rcx, %rbp
cmpq %rdx, %r13
jb 0x2aaa5
jmp 0x2ab39
sarq $0x4, %rdx
xorl %ecx, %ecx
cmpq %rdx, %rcx
setb %bl
movl %ecx, 0x80(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
movq 0x128(%rsp), %r12
je 0x2ab78
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
movq 0x38(%rsp), %rbp
movq 0x27457(%rip), %r14     # 0x51fc8
movq 0x70(%rsp), %rcx
jmp 0x2ab9b
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x2e354
movq 0x38(%rsp), %rbp
movq 0x27432(%rip), %r14     # 0x51fc8
movq 0x70(%rsp), %rcx
orb %bl, %r12b
incq %rcx
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %rax
subq %rbx, %rax
sarq $0x4, %rax
cmpq %rax, %rcx
jb 0x2aa76
testb $0x1, %r12b
je 0x2acae
cmpq $0x2, %rax
jb 0x2ac72
movl $0x1, %ebp
movl $0x1, %ecx
testl %ebp, %ebp
je 0x2ac50
movq 0x40(%rsp), %rax
movl (%rax,%rcx,4), %edx
movslq %ebp, %r14
movl -0x4(%rax,%r14,4), %esi
cmpl %esi, %edx
jge 0x2ac50
decq %r14
movl %esi, (%rax,%rcx,4)
movl %edx, (%rax,%r14,4)
shlq $0x4, %rcx
movq %r14, %r12
shlq $0x4, %r12
movups (%rbx,%rcx), %xmm2
xorps %xmm1, %xmm1
movups %xmm1, (%rbx,%rcx)
movups (%rbx,%r12), %xmm0
movups %xmm1, (%rbx,%r12)
movq 0x8(%rbx,%rcx), %rdi
movups %xmm0, (%rbx,%rcx)
testq %rdi, %rdi
je 0x2ac38
movaps %xmm2, 0x70(%rsp)
callq 0x133fc
movaps 0x70(%rsp), %xmm2
decl %ebp
addq %r12, %rbx
movq 0x8(%rbx), %rdi
movups %xmm2, (%rbx)
testq %rdi, %rdi
je 0x2ac55
callq 0x133fc
jmp 0x2ac55
incl %ebp
movslq %ebp, %r14
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %rax
subq %rbx, %rax
sarq $0x4, %rax
movq %r14, %rcx
cmpq %r14, %rax
ja 0x2abd9
decl %eax
cltq
movq %rax, %rcx
shlq $0x4, %rcx
movq (%rbx,%rcx), %rdx
movq 0x38(%rsp), %rbp
movq %rdx, (%rbp)
movq 0x8(%rbx,%rcx), %rcx
movq %rcx, 0x8(%rbp)
testq %rcx, %rcx
movq 0x8(%rsp), %rbx
je 0x2aceb
movq 0x27324(%rip), %rdx     # 0x51fc8
cmpb $0x0, (%rdx)
je 0x2ace7
incl 0x8(%rcx)
jmp 0x2aceb
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2acc5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x7280
leaq 0x10(%rsp), %rdi
callq 0x2d2d8
movq 0x8(%rsp), %rbx
movq 0x30(%rsp), %r15
jmp 0x2a7a2
lock
incl 0x8(%rax)
jmp 0x2a869
lock
incl 0x8(%rcx)
movq 0x40(%rsp), %rcx
movl (%rcx,%rax,4), %r14d
movl %eax, %r12d
leaq 0x80(%rsp), %r13
leaq -0x1(%r12), %rax
testl %r12d, %r12d
movq %rax, 0x70(%rsp)
jle 0x2ad1a
movl %eax, %eax
movq 0x40(%rsp), %rcx
movl (%rcx,%rax,4), %eax
jmp 0x2ad1c
xorl %eax, %eax
cmpl %eax, %r14d
jle 0x2adf9
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movslq %r14d, %r14
movslq %eax, %rbx
movq %r14, %rsi
shlq $0x4, %rsi
addq $-0x10, %rsi
cmpq %rbx, %r14
jle 0x2ad6a
decq %r14
leaq -0x10(%rsi), %rbp
addq 0x28(%r15), %rsi
movq %r13, %rdi
callq 0x16382
movq %rbp, %rsi
jmp 0x2ad4d
movb 0x10(%r15), %al
movq 0x38(%rsp), %rbp
movq (%rbp), %rcx
movq %rcx, 0xd8(%rsp)
movq 0x8(%rbp), %rcx
movq %rcx, 0xe0(%rsp)
testq %rcx, %rcx
movq 0x8(%rsp), %rbx
je 0x2adaa
movq 0x2722c(%rip), %rdx     # 0x51fc8
cmpb $0x0, (%rdx)
je 0x2ada6
incl 0x8(%rcx)
jmp 0x2adaa
lock
incl 0x8(%rcx)
movzbl %al, %esi
leaq 0x130(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
movq %r13, %rcx
callq 0x2b152
movq 0x8(%rbp), %rdi
movaps 0x130(%rsp), %xmm0
movups %xmm0, (%rbp)
testq %rdi, %rdi
je 0x2addf
callq 0x133fc
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x2adf1
callq 0x133fc
movq %r13, %rdi
callq 0x16466
testl %r12d, %r12d
jle 0x2af9a
movq 0x70(%rsp), %r12
movl %r12d, %eax
cmpb $0x0, 0x7(%rsp)
je 0x2ae49
movq 0x10(%rsp), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq %rdx, 0xc8(%rsp)
movq 0x8(%rcx,%rax), %rax
movq %rax, 0xd0(%rsp)
testq %rax, %rax
je 0x2ae85
movq 0x27189(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2ae81
incl 0x8(%rax)
jmp 0x2ae85
movq 0x10(%rsp), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq 0x8(%rcx,%rax), %rax
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0x2aeb7
movq 0x27151(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2aeb3
incl 0x8(%rax)
jmp 0x2aeb7
lock
incl 0x8(%rax)
movq (%rbp), %rax
movq %rax, 0xb8(%rsp)
movq 0x8(%rbp), %rax
movq %rax, 0xc0(%rsp)
testq %rax, %rax
je 0x2aee9
movq 0x2711f(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2aee5
incl 0x8(%rax)
jmp 0x2aee9
lock
incl 0x8(%rax)
movq (%rbp), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%rbp), %rax
movq %rax, 0xa0(%rsp)
testq %rax, %rax
je 0x2af3b
movq 0x270ed(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2af37
incl 0x8(%rax)
jmp 0x2af3b
lock
incl 0x8(%rax)
movq %r13, %rdi
leaq 0xc8(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x2b213
movq 0x8(%rbp), %rdi
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rbp)
testq %rdi, %rdi
je 0x2af1b
callq 0x133fc
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2af2d
callq 0x133fc
movq 0xd0(%rsp), %rdi
jmp 0x2af87
lock
incl 0x8(%rax)
movq %r13, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x2b4e8
movq 0x8(%rbp), %rdi
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rbp)
testq %rdi, %rdi
je 0x2af6d
callq 0x133fc
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2af7f
callq 0x133fc
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2acff
callq 0x133fc
jmp 0x2acff
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2afb1
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x7280
leaq 0x10(%rsp), %rdi
callq 0x2d2d8
movq 0x30(%rsp), %r15
jmp 0x2a85c
movq %rax, %r14
movq 0x100(%rsp), %rdi
jmp 0x2b088
movq %rax, %r14
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2afea
callq 0x133fc
movq 0xb0(%rsp), %rdi
jmp 0x2b011
movq %rax, %r14
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b009
callq 0x133fc
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b049
callq 0x133fc
jmp 0x2b049
movq %rax, %r14
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b03c
callq 0x133fc
jmp 0x2b03c
movq %rax, %r14
jmp 0x2b092
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x16466
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
jmp 0x2b088
movq %rax, %r14
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x2b069
callq 0x133fc
movq 0x18(%rsp), %rdi
jmp 0x2b0ca
movq %rax, %r14
movq 0x120(%rsp), %rdi
jmp 0x2b0ca
movq %rax, %r14
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b092
callq 0x133fc
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2b0a9
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x7280
leaq 0x10(%rsp), %rdi
callq 0x2d2d8
cmpq $0x0, 0x30(%rsp)
je 0x2b0d4
movq 0x30(%rsp), %rdi
jmp 0x2b0cf
movq %rax, %r14
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2b0d4
callq 0x133fc
cmpq $0x0, 0x8(%rsp)
je 0x2b0e6
movq 0x8(%rsp), %rdi
callq 0x133fc
movq %r14, %rdi
callq 0x7430