// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movq %rdi, %rbx
movq (%rsi), %rdi
movq 0x283ac(%rip), %rcx     # 0x537c0
movq (%rdx), %rax
cmpq %rcx, %rdi
je 0x2b461
movq %rsi, %r15
cmpq %rcx, %rax
je 0x2b4a2
movq 0x28385(%rip), %rcx     # 0x537b0
cmpq %rcx, %rdi
setne %dl
cmpq %rcx, %rax
setne %sil
testb %sil, %dl
jne 0x2b47e
movq %rcx, (%rbx)
movq 0x28371(%rip), %rax     # 0x537b8
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2b4ba
movq 0x27b71(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2b4cc
incl 0x8(%rax)
jmp 0x2b4ba
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x8(%r12), %rcx
movq %rax, 0x8(%r12)
movq %rcx, 0x8(%rbx)
movq %rax, (%r12)
jmp 0x2b4ba
cmpq %rax, %rdi
je 0x2b4a2
testq %rdi, %rdi
je 0x2b4d2
leaq 0x26729(%rip), %rsi     # 0x51bb8
leaq 0x2684a(%rip), %rdx     # 0x51ce0
xorl %ecx, %ecx
callq 0x72b0
movq %rax, %rbp
jmp 0x2b4d4
movq %rdi, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x8(%r15), %rcx
movq %rax, 0x8(%r15)
movq %rcx, 0x8(%rbx)
movq %rax, (%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 0x2b4ba
xorl %ebp, %ebp
testq %rbp, %rbp
je 0x2b4f4
movq 0x8(%r15), %r13
testq %r13, %r13
je 0x2b500
movq 0x27adf(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2b4fb
incl 0x8(%r13)
jmp 0x2b500
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0x2b500
lock
incl 0x8(%r13)
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2b523
leaq 0x266a8(%rip), %rsi     # 0x51bb8
leaq 0x267c9(%rip), %rdx     # 0x51ce0
xorl %ecx, %ecx
callq 0x72b0
movq %rax, %r14
jmp 0x2b526
xorl %r14d, %r14d
testq %r14, %r14
je 0x2b54b
movq 0x8(%r12), %rcx
testq %rcx, %rcx
movq %rcx, 0x8(%rsp)
je 0x2b55d
movq 0x27a87(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2b559
incl 0x8(%rcx)
jmp 0x2b55d
xorl %r14d, %r14d
movq $0x0, 0x8(%rsp)
jmp 0x2b55d
lock
incl 0x8(%rcx)
testq %rbp, %rbp
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x2b634
movq %r13, 0x28(%rsp)
leaq 0x18(%rbp), %r13
leaq 0x18(%r14), %rsi
movq %r13, %rdi
movq %rsi, 0x30(%rsp)
callq 0x2d28d
testb %al, %al
je 0x2b5ca
leaq 0x28(%rbp), %rdi
leaq 0x28(%r14), %rsi
callq 0x2d28d
testb %al, %al
je 0x2b5ca
movb 0x10(%rbp), %al
cmpb 0x10(%r14), %al
leaq 0x28202(%rip), %rax     # 0x537b0
cmoveq %r15, %rax
movq (%rax), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
movq 0x28(%rsp), %r13
jmp 0x2b614
leaq 0x28(%r14), %rsi
movq %r13, %rdi
callq 0x2d28d
testb %al, %al
movq 0x28(%rsp), %r13
je 0x2b634
leaq 0x28(%rbp), %rdi
movq 0x30(%rsp), %rsi
callq 0x2d28d
testb %al, %al
je 0x2b634
movb 0x10(%rbp), %al
cmpb 0x10(%r14), %al
leaq 0x281b1(%rip), %rax     # 0x537b0
cmoveq %r15, %rax
movq (%rax), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
movq 0x8(%rsp), %rdi
je 0x2b6af
movq 0x279a2(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2b6cf
incl 0x8(%rax)
jmp 0x2b6af
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 %r12, %r9
callq 0x2e594
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 0x2b69b
movq 0x27945(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2b68d
incl 0x8(%rdi)
jmp 0x2b691
lock
incl 0x8(%rdi)
testq %rdi, %rdi
je 0x2b69b
callq 0x13308
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2b6aa
callq 0x13308
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2b6b9
callq 0x13308
testq %r13, %r13
je 0x2b4ba
movq %r13, %rdi
callq 0x13308
jmp 0x2b4ba
lock
incl 0x8(%rax)
jmp 0x2b6af
movq %rax, %rbx
cmpq $0x0, 0x8(%rsp)
je 0x2b6ea
movq 0x8(%rsp), %rdi
callq 0x13308
testq %r13, %r13
je 0x2b6f7
movq %r13, %rdi
callq 0x13308
movq %rbx, %rdi
callq 0x7430
nop