// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/src/formula.cpp
// Function: lois::FormulaBi::subst(std::vector<std::pair<std::shared_ptr<lois::Variable>, lois::term>, std::allocator<std::pair<std::shared_ptr<lois::Variable>, lois::term>>> const&) const
virtual rbool subst(const varsubstlist& l) const { 
    if(l.size() == 1 && l[0].first == lastusecheck && usestat < 3) {
      if(usestat == 1 && type)
        return substitute(left, l) && right;
      if(usestat == 1 && !type)
        return substitute(left, l) || right;
      if(usestat == 2 && type)
        return left && substitute(right, l);
      if(usestat == 2 && !type)
        return left || substitute(right, l);
      }
    if(type) return substitute(left, l) && substitute(right, l);
    return substitute(left, l) || substitute(right, l);
    // make_shared<FormulaBi> (type, left->alph(v1,v2), right->alph(v1,v2));
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x2ed66
movq (%rax), %rax
cmpq 0x38(%r15), %rax
jne 0x2ed66
movl 0x48(%r15), %eax
cmpl $0x2, %eax
jg 0x2ed66
je 0x2ee18
cmpl $0x1, %eax
jne 0x2ed66
movq 0x18(%r15), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
cmpb $0x1, 0x10(%r15)
jne 0x2ee52
leaq 0xb0(%rsp), %rdi
movq %r14, %rdx
callq *%rax
movq 0x28(%r15), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%r15), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2eeb9
movq 0x23273(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2eeb5
incl 0x8(%rax)
jmp 0x2eeb9
movq 0x18(%r15), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
cmpb $0x1, 0x10(%r15)
jne 0x2edbc
leaq 0x70(%rsp), %rdi
movq %r14, %rdx
callq *%rax
movq 0x28(%r15), %rsi
movq (%rsi), %rax
leaq 0x60(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
leaq 0x70(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b213
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2edb5
callq 0x133fc
movq 0x78(%rsp), %rdi
jmp 0x2edfe
leaq 0x50(%rsp), %rdi
movq %r14, %rdx
callq *%rax
movq 0x28(%r15), %rsi
movq (%rsi), %rax
leaq 0x40(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
leaq 0x50(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b4e8
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2edf9
callq 0x133fc
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee08
callq 0x133fc
movq %rbx, %rax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x18(%r15), %rax
cmpb $0x1, 0x10(%r15)
jne 0x2ee87
movq %rax, 0x10(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x2ef23
movq 0x23187(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2ef1f
incl 0x8(%rax)
jmp 0x2ef23
leaq 0xa0(%rsp), %rdi
movq %r14, %rdx
callq *%rax
movq 0x28(%r15), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%r15), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x2eeee
movq 0x2314b(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2eeea
incl 0x8(%rax)
jmp 0x2eeee
movq %rax, (%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x2ef6d
movq 0x23124(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2ef69
incl 0x8(%rax)
jmp 0x2ef6d
lock
incl 0x8(%rax)
leaq 0xb0(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b213
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2eedd
callq 0x133fc
movq 0xb8(%rsp), %rdi
jmp 0x2edfe
lock
incl 0x8(%rax)
leaq 0xa0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b4e8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef12
callq 0x133fc
movq 0xa8(%rsp), %rdi
jmp 0x2edfe
lock
incl 0x8(%rax)
movq 0x28(%r15), %rsi
movq (%rsi), %rax
leaq 0x90(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b213
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef5f
callq 0x133fc
movq 0x18(%rsp), %rdi
jmp 0x2edfe
lock
incl 0x8(%rax)
movq 0x28(%r15), %rsi
movq (%rsi), %rax
leaq 0x80(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
movq %rsp, %rsi
leaq 0x80(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b4e8
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2efa7
callq 0x133fc
movq 0x8(%rsp), %rdi
jmp 0x2edfe
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2efe2
callq 0x133fc
jmp 0x2efe2
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2efec
callq 0x133fc
jmp 0x2efec
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x2f065
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x2f065
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f005
callq 0x133fc
movq 0xa8(%rsp), %rdi
jmp 0x2f065
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2f021
callq 0x133fc
movq 0xb8(%rsp), %rdi
jmp 0x2f065
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2f056
callq 0x133fc
jmp 0x2f056
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2f060
callq 0x133fc
jmp 0x2f060
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x2f065
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2f06f
callq 0x133fc
movq %rbx, %rdi
callq 0x7430
nop