// File: /workspace/github_cpp_makefile_star2_O1/eryxcc[P]lois/src/formula.cpp
// Function: lois::TermBinary::subFindv(std::shared_ptr<lois::TermVariable>)
vptr TermBinary::subFindv(tvptr v) {
  if(v->curcheck < checkid) {
    vptr v1 = left.p->subFindv(left.p);
    vptr v2 = right.p->subFindv(right.p);
    if(v1 == nullvptr) return v2;
    if(v2 == nullvptr) return v1;
    if(v1->sublink != v2->sublink) {
      v2->sublink = v1->sublink;
      subJoin(v1->sub, v2->sub);
      }
    if(!v1->sub) v1->sub = std::make_shared<Subdomain> ();
    v1->sub->useRelation(r);
    sublink = v1->sublink;
    }
  return sublink;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rax
movl 0x8(%rax), %eax
cmpl 0x27189(%rip), %eax     # 0x537a8
jge 0x2c7f9
movq 0x20(%r14), %rsi
movq %rsi, 0x30(%rsp)
movq 0x28(%r14), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2c651
movq 0x26985(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2c64d
incl 0x8(%rax)
jmp 0x2c651
lock
incl 0x8(%rax)
movq (%rsi), %rax
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq *0x28(%rax)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2c66e
callq 0x13308
movq 0x30(%r14), %rsi
movq %rsi, 0x20(%rsp)
movq 0x38(%r14), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x2c69a
movq 0x2693c(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2c696
incl 0x8(%rax)
jmp 0x2c69a
lock
incl 0x8(%rax)
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq *0x28(%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c6b9
callq 0x13308
movq (%rsp), %rsi
movq 0x270cc(%rip), %rax     # 0x53790
movq 0x10(%rsp), %rdi
cmpq %rax, %rsi
je 0x2c79b
cmpq %rax, %rdi
je 0x2c7ba
movq 0x30(%rsi), %rax
cmpq 0x30(%rdi), %rax
je 0x2c70c
movq %rax, 0x30(%rdi)
addq $0x38, %rdi
addq $0x38, %rsi
callq 0x16086
movq (%rsp), %rdi
addq $0x20, %rdi
movq 0x10(%rsp), %rsi
addq $0x20, %rsi
callq 0x2c86e
movq (%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x2c76c
movl $0x38, %edi
callq 0x7270
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x2582a(%rip), %rcx     # 0x51f60
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movl $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movq (%rsp), %rdx
movq %rcx, 0x20(%rdx)
movq 0x28(%rdx), %rdi
movq %rax, 0x28(%rdx)
testq %rdi, %rdi
je 0x2c76c
callq 0x13308
movq (%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%r14), %rsi
callq 0x2c224
movq (%rsp), %rsi
movq 0x30(%rsi), %rax
movq %rax, 0x40(%r14)
leaq 0x48(%r14), %rdi
addq $0x38, %rsi
callq 0x16086
movb $0x1, %r15b
jmp 0x2c7d6
movq %rdi, (%rbx)
xorl %r15d, %r15d
movq %r15, 0x8(%rbx)
movq 0x18(%rsp), %rax
movq %r15, 0x18(%rsp)
movq %rax, 0x8(%rbx)
movq %r15, 0x10(%rsp)
jmp 0x2c7d6
movq %rsi, (%rbx)
xorl %r15d, %r15d
movq %r15, 0x8(%rbx)
movq 0x8(%rsp), %rax
movq %r15, 0x8(%rsp)
movq %rax, 0x8(%rbx)
movq %r15, (%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2c7e5
callq 0x13308
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2c7f4
callq 0x13308
testb %r15b, %r15b
je 0x2c822
movq 0x40(%r14), %rax
movq %rax, (%rbx)
movq 0x48(%r14), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2c822
movq 0x267b4(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2c81e
incl 0x8(%rax)
jmp 0x2c822
lock
incl 0x8(%rax)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2c831
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x2c843
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c84d
callq 0x13308
movq 0x8(%rsp), %rdi
jmp 0x2c85c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2c866
callq 0x13308
movq %rbx, %rdi
callq 0x7430