// File: /workspace/github_cpp_makefile_star2_O3/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 0x260f1(%rip), %eax     # 0x527a8
jge 0x2c88e
movq 0x20(%r14), %rsi
movq %rsi, 0x30(%rsp)
movq 0x28(%r14), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2c6e9
movq 0x258ed(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2c6e5
incl 0x8(%rax)
jmp 0x2c6e9
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 0x2c706
callq 0x133fc
movq 0x30(%r14), %rsi
movq %rsi, 0x20(%rsp)
movq 0x38(%r14), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x2c732
movq 0x258a4(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2c72e
incl 0x8(%rax)
jmp 0x2c732
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 0x2c751
callq 0x133fc
movq (%rsp), %rsi
movq 0x26034(%rip), %rax     # 0x52790
movq 0x10(%rsp), %rdi
cmpq %rax, %rsi
je 0x2c838
cmpq %rax, %rdi
je 0x2c853
movq 0x30(%rsi), %rax
cmpq 0x30(%rdi), %rax
je 0x2c7a8
movq %rax, 0x30(%rdi)
addq $0x38, %rdi
addq $0x38, %rsi
callq 0x1615e
movq (%rsp), %rdi
addq $0x20, %rdi
movq 0x10(%rsp), %rsi
addq $0x20, %rsi
callq 0x2c903
movq (%rsp), %rsi
movq 0x20(%rsi), %rdi
testq %rdi, %rdi
jne 0x2c811
movl $0x38, %edi
callq 0x7270
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x247b8(%rip), %rcx     # 0x50f88
movq %rcx, (%rax)
movq %rax, %rdi
addq $0x10, %rdi
movl $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movq (%rsp), %rdx
movq %rdi, 0x20(%rdx)
movq 0x28(%rdx), %rcx
movq %rax, 0x28(%rdx)
testq %rcx, %rcx
je 0x2c811
movq %rcx, %rdi
callq 0x133fc
movq (%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%r14), %rsi
callq 0x2c2c0
movq (%rsp), %rsi
movq 0x30(%rsi), %rax
movq %rax, 0x40(%r14)
leaq 0x48(%r14), %rdi
addq $0x38, %rsi
callq 0x1615e
movb $0x1, %r15b
jmp 0x2c86b
movq %rdi, (%rbx)
movq 0x18(%rsp), %rax
xorl %r15d, %r15d
movq %r15, 0x18(%rsp)
movq %rax, 0x8(%rbx)
movq %r15, 0x10(%rsp)
jmp 0x2c86b
movq %rsi, (%rbx)
movq 0x8(%rsp), %rax
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %rax, 0x8(%rbx)
movq %r15, (%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2c87a
callq 0x133fc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2c889
callq 0x133fc
testb %r15b, %r15b
je 0x2c8b7
movq 0x40(%r14), %rax
movq %rax, (%rbx)
movq 0x48(%r14), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2c8b7
movq 0x2571f(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2c8b3
incl 0x8(%rax)
jmp 0x2c8b7
lock
incl 0x8(%rax)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2c8c6
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x2c8d8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c8e2
callq 0x133fc
movq 0x8(%rsp), %rdi
jmp 0x2c8f1
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2c8fb
callq 0x133fc
movq %rbx, %rdi
callq 0x7430