// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/src/formula.cpp
// Function: lois::operator||(lois::rbool, lois::rbool)
rbool operator || (rbool a, rbool b) {
  if(a.isFalse()) return b;
  if(b.isFalse()) return a;
  if(a.isTrue() || b.isTrue()) return ftrue;
  if(a.p == b.p) return a;

  auto ae = std::dynamic_pointer_cast<FormulaEq>(a.p);
  auto be = std::dynamic_pointer_cast<FormulaEq>(b.p);
  if(ae) if(be) {
    if(eqterm(ae->t1, be->t1) && eqterm(ae->t2, be->t2)) {
      return ae->type == be->type ? a : ftrue;
      }
    if(eqterm(ae->t1, be->t2) && eqterm(ae->t2, be->t1)) {
      return ae->type == be->type ? a : ftrue;
      }
    }

  return rbool(std::make_shared<FormulaBi> (false, a, b));
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r13
movq %rdi, %rbx
movq (%rsi), %rdi
movq 0x272ba(%rip), %rcx     # 0x527c0
movq (%rdx), %rax
cmpq %rcx, %rdi
je 0x2b55f
movq %rsi, %r15
cmpq %rcx, %rax
je 0x2b5bf
movq 0x2728f(%rip), %rcx     # 0x527b0
cmpq %rcx, %rdi
setne %dl
cmpq %rcx, %rax
setne %sil
testb %sil, %dl
jne 0x2b576
movq %rcx, (%rbx)
movq 0x2727b(%rip), %rax     # 0x527b8
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2b5d3
movq 0x26a77(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2b5e5
incl 0x8(%rax)
jmp 0x2b5d3
movq %rax, (%rbx)
movq 0x8(%r13), %rax
xorl %ecx, %ecx
movq %rcx, 0x8(%r13)
movq %rax, 0x8(%rbx)
movq %rcx, (%r13)
jmp 0x2b5d3
cmpq %rax, %rdi
je 0x2b5bf
testq %rdi, %rdi
je 0x2b5eb
leaq 0x25659(%rip), %rsi     # 0x50be0
leaq 0x2577a(%rip), %rdx     # 0x50d08
xorl %r12d, %r12d
xorl %ecx, %ecx
callq 0x72b0
movl $0x0, %r14d
testq %rax, %rax
je 0x2b601
movq 0x8(%r15), %r12
testq %r12, %r12
je 0x2b5f3
movq 0x26a15(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2b5f8
incl 0x8(%r12)
jmp 0x2b5fe
movq %rdi, (%rbx)
movq 0x8(%r15), %rax
xorl %ecx, %ecx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%rbx)
movq %rcx, (%r15)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%rax)
jmp 0x2b5d3
xorl %r12d, %r12d
xorl %r14d, %r14d
jmp 0x2b601
xorl %r12d, %r12d
jmp 0x2b5fe
lock
incl 0x8(%r12)
movq %rax, %r14
movq %r12, 0x8(%rsp)
movq (%r13), %rdi
testq %rdi, %rdi
je 0x2b64f
leaq 0x255ca(%rip), %rsi     # 0x50be0
leaq 0x256eb(%rip), %rdx     # 0x50d08
xorl %r12d, %r12d
xorl %ecx, %ecx
callq 0x72b0
testq %rax, %rax
je 0x2b6f7
movq %rax, %rbp
movq 0x8(%r13), %r12
testq %r12, %r12
je 0x2b65d
movq 0x26985(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2b657
incl 0x8(%r12)
jmp 0x2b65d
xorl %r12d, %r12d
jmp 0x2b6f7
lock
incl 0x8(%r12)
testq %r14, %r14
je 0x2b6f7
leaq 0x18(%r14), %rdi
leaq 0x18(%rbp), %rsi
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
callq 0x2d325
testb %al, %al
je 0x2b692
leaq 0x28(%r14), %rdi
leaq 0x28(%rbp), %rsi
callq 0x2d325
testb %al, %al
jne 0x2b6b9
movq %rbp, %rsi
addq $0x28, %rsi
movq 0x30(%rsp), %rdi
callq 0x2d325
testb %al, %al
je 0x2b6f7
leaq 0x28(%r14), %rdi
movq 0x28(%rsp), %rsi
callq 0x2d325
testb %al, %al
je 0x2b6f7
movb 0x10(%r14), %al
cmpb 0x10(%rbp), %al
leaq 0x270e9(%rip), %rax     # 0x527b0
cmoveq %r15, %rax
movq (%rax), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2b768
movq 0x268df(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2b78d
incl 0x8(%rax)
jmp 0x2b768
leaq 0x6(%rsp), %rcx
movb $0x0, (%rcx)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x7(%rsp), %rdx
movq %r15, %r8
movq %r13, %r9
callq 0x2e596
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rax, (%rbx)
movq %rdi, 0x8(%rbx)
testq %rdi, %rdi
je 0x2b768
movq 0x26882(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2b750
incl 0x8(%rdi)
jmp 0x2b754
lock
incl 0x8(%rdi)
callq 0x133fc
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2b768
callq 0x133fc
testq %r12, %r12
je 0x2b775
movq %r12, %rdi
callq 0x133fc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2b5d3
callq 0x133fc
jmp 0x2b5d3
lock
incl 0x8(%rax)
jmp 0x2b768
movq %rax, %rbx
testq %r12, %r12
je 0x2b7a3
movq %r12, %rdi
callq 0x133fc
cmpq $0x0, 0x8(%rsp)
je 0x2b7b5
movq 0x8(%rsp), %rdi
callq 0x133fc
movq %rbx, %rdi
callq 0x7430
nop