// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ed90
movq (%rax), %rax
cmpq 0x38(%r15), %rax
jne 0x2ed90
movl 0x48(%r15), %eax
cmpl $0x2, %eax
jg 0x2ed90
cmpl $0x1, %eax
jne 0x2ed41
cmpb $0x1, 0x10(%r15)
jne 0x2ed31
movq 0x18(%r15), %rsi
movq (%rsi), %rax
leaq 0xb0(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
movq 0x28(%r15), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%r15), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2ee8e
movq 0x242a8(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2ee8a
incl 0x8(%rax)
jmp 0x2ee8e
cmpl $0x1, %eax
jne 0x2ed41
cmpb $0x0, 0x10(%r15)
je 0x2ee42
cmpl $0x2, %eax
jne 0x2ed90
cmpb $0x1, 0x10(%r15)
jne 0x2ed80
movq 0x18(%r15), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x2eef5
movq 0x24259(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2eef1
incl 0x8(%rax)
jmp 0x2eef5
cmpl $0x2, %eax
jne 0x2ed90
cmpb $0x0, 0x10(%r15)
je 0x2eebf
movq 0x18(%r15), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
cmpb $0x1, 0x10(%r15)
jne 0x2ede6
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 0x2b0ed
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2eddf
callq 0x13308
movq 0x78(%rsp), %rdi
jmp 0x2ee28
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 0x2b3f6
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee23
callq 0x13308
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee32
callq 0x13308
movq %rbx, %rax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x18(%r15), %rsi
movq (%rsi), %rax
leaq 0xa0(%rsp), %rdi
movq %r14, %rdx
callq *0x10(%rax)
movq 0x28(%r15), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%r15), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x2ef3f
movq 0x2414f(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2ef3b
incl 0x8(%rax)
jmp 0x2ef3f
lock
incl 0x8(%rax)
leaq 0xb0(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b0ed
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2eeb2
callq 0x13308
movq 0xb8(%rsp), %rdi
jmp 0x2ee28
movq 0x18(%r15), %rax
movq %rax, (%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x2ef74
movq 0x240e8(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2ef70
incl 0x8(%rax)
jmp 0x2ef74
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 0x2b0ed
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef31
callq 0x13308
movq 0x18(%rsp), %rdi
jmp 0x2ee28
lock
incl 0x8(%rax)
leaq 0xa0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x2b3f6
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef63
callq 0x13308
movq 0xa8(%rsp), %rdi
jmp 0x2ee28
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 0x2b3f6
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2efae
callq 0x13308
movq 0x8(%rsp), %rdi
jmp 0x2ee28
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2efd2
callq 0x13308
jmp 0x2efd2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x2f06f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2efee
callq 0x13308
movq 0xa8(%rsp), %rdi
jmp 0x2f06f
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2f012
callq 0x13308
jmp 0x2f012
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x2f06f
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2f02b
callq 0x13308
movq 0xb8(%rsp), %rdi
jmp 0x2f06f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2f060
callq 0x13308
jmp 0x2f060
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2f06a
callq 0x13308
jmp 0x2f06a
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x2f06f
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2f079
callq 0x13308
movq %rbx, %rdi
callq 0x7430
nop