// File: /workspace/github_cpp_makefile_star2_O1/biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: picosat_add
int
picosat_add (PS * ps, int int_lit)
{
  int res = ps->oadded;
  Lit *lit;

  if (ps->measurealltimeinlib)
    enter (ps);
  else
    check_ready (ps);

  ABORTIF (ps->rup && ps->rupstarted && ps->oadded >= (unsigned)ps->rupclauses,
           "API usage: adding too many clauses after RUP header written");
#ifndef NADC
  ABORTIF (ps->addingtoado, 
           "API usage: 'picosat_add' and 'picosat_add_ado_lit' mixed");
#endif
  if (ps->state != READY)
    reset_incremental_usage (ps);

  if (ps->saveorig)
    {
      if (ps->sohead == ps->eoso)
	ENLARGE (ps->soclauses, ps->sohead, ps->eoso);

      *ps->sohead++ = int_lit;
    }

  if (int_lit)
    {
      lit = import_lit (ps, int_lit, 1);
      add_lit (ps, lit);
    }
  else
    simplify_and_add_original_clause (ps);

  if (ps->measurealltimeinlib)
    leave (ps);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl 0x438(%rdi), %r12d
cmpl $0x0, 0x35c(%rdi)
je 0x6d88
movq %rbx, %rdi
callq 0x3de6
jmp 0x6d90
movq %rbx, %rdi
callq 0x4264
cmpq $0x0, 0x230(%rbx)
movq %rbx, %rsi
je 0x6db8
cmpl $0x0, 0x238(%rsi)
je 0x6db8
movl 0x438(%rsi), %eax
cmpl 0x240(%rsi), %eax
jae 0x748e
cmpl $0x1, (%rsi)
movq %rsi, (%rsp)
je 0x6dce
movq (%rsp), %rdi
callq 0x4460
movq (%rsp), %rsi
cmpl $0x0, 0x228(%rsi)
je 0x6e6b
movq 0x218(%rsi), %rbx
movq 0x220(%rsi), %rdx
cmpq %rdx, %rbx
jne 0x6e57
movq 0x210(%rsi), %rsi
cmpq %rdx, %rsi
ja 0x7493
subq %rsi, %rbx
subq %rsi, %rdx
movq %rdx, %rax
shrq %rax
movabsq $0x3fffffffc, %r14      # imm = 0x3FFFFFFFC
andq %r14, %rdx
movl %eax, %eax
movl $0x1, %r15d
cmovneq %rax, %r15
leaq (,%r15,4), %rcx
movq (%rsp), %rdi
callq 0x4593
movq (%rsp), %rsi
movq %rax, 0x210(%rsi)
andq %r14, %rbx
addq %rax, %rbx
movq %rbx, 0x218(%rsi)
leaq (%rax,%r15,4), %rax
movq %rax, 0x220(%rsi)
movq 0x218(%rsi), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x218(%rsi)
movl %ebp, (%rax)
testl %ebp, %ebp
je 0x6e94
movq (%rsp), %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0x74d1
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7574
movq (%rsp), %rdi
jmp 0x743d
movl %r12d, 0xc(%rsp)
movq 0x478(%rsi), %rax
cmpq 0x470(%rsi), %rax
jne 0x7485
movq 0x258(%rsi), %r15
movq 0x260(%rsi), %rcx
subq %r15, %rcx
shrq $0x3, %rcx
leal -0x1(%rcx), %eax
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
cmpl $0xc, %ecx
jge 0x704f
movq 0x18(%rsp), %r9
cmpl $0x2, %r9d
movq 0x10(%rsp), %r8
jl 0x6f13
movl %r8d, %eax
incq %rax
movq -0x10(%r15,%rax,8), %rcx
movq -0x8(%r15,%rax,8), %rdx
movl %ecx, %esi
subl %edx, %esi
testl %esi, %esi
jle 0x6f0a
movq %rcx, -0x8(%r15,%rax,8)
movq %rdx, -0x10(%r15,%rax,8)
decq %rax
cmpq $0x1, %rax
jg 0x6eee
cmpl $0x3, %r9d
jl 0x6f5d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
leaq 0x10(%r15), %rax
movl $0x2, %ecx
movq -0x8(%r15,%rcx,8), %rsi
movq (%r15,%rcx,8), %rdx
cmpl %esi, %edx
js 0x6f3c
leaq (%r15,%rcx,8), %rdi
jmp 0x6f4e
movq %rax, %rdi
movq %rsi, (%rdi)
movq -0x10(%rdi), %rsi
addq $-0x8, %rdi
cmpl %esi, %edx
js 0x6f3f
movq %rdx, (%rdi)
incq %rcx
addq $0x8, %rax
cmpq %r9, %rcx
jne 0x6f29
movq (%rsp), %rdi
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jne 0x7485
xorl %eax, %eax
testl %r8d, %r8d
cmovlel %eax, %r8d
shlq $0x3, %r8
movl 0xc(%rsp), %r12d
cmpq %rax, %r8
je 0x6fa9
movl (%r15,%rax), %ecx
subl 0x8(%r15,%rax), %ecx
addq $0x8, %rax
testl %ecx, %ecx
jle 0x6f87
leaq 0xd2a7(%rip), %rdi      # 0x1424b
jmp 0x746d
movq 0x258(%rdi), %rax
cmpq 0x260(%rdi), %rax
jae 0x730c
xorl %edx, %edx
movq %rax, %rcx
movq (%rax), %rsi
cmpq %rsi, %rdx
je 0x7002
movq 0x38(%rdi), %r8
movq %rsi, %r9
subq %r8, %r9
cmpb $0x1, (%rsi)
jne 0x7009
movq 0x40(%rdi), %rdi
movl %r9d, %r10d
shrl %r10d
shlq $0x4, %r10
cmpl $0x0, 0x4(%rdi,%r10)
movl $0x1, %edi
je 0x7028
xorq $0x1, %r9
addq %r9, %r8
cmpq %r8, %rdx
jne 0x7015
jmp 0x7028
movl $0x3f, %edi
jmp 0x7028
xorq $0x1, %r9
addq %r9, %r8
cmpq %r8, %rdx
je 0x7023
movq %rsi, (%rcx)
addq $0x8, %rcx
xorl %edi, %edi
movq %rsi, %rdx
jmp 0x7028
movl $0x1, %edi
cmpl $0x3f, %edi
je 0x7035
testl %edi, %edi
jne 0x7389
addq $0x8, %rax
movq (%rsp), %rdi
cmpq 0x260(%rdi), %rax
jb 0x6fc2
jmp 0x730f
xorl %r13d, %r13d
movq 0x10(%rsp), %r12
leal (%r12,%r13), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %r12d, %rax
movq -0x8(%r15,%rax,8), %rdx
movslq %ecx, %rcx
movq (%r15,%rcx,8), %rsi
movq %rsi, -0x8(%r15,%rax,8)
movq %rdx, (%r15,%rcx,8)
movslq %r13d, %rcx
movq (%r15,%rcx,8), %rdx
movq -0x8(%r15,%rax,8), %rsi
movl %edx, %edi
subl %esi, %edi
testl %edi, %edi
jle 0x7099
movq %rdx, -0x8(%r15,%rax,8)
movq %rsi, (%r15,%rcx,8)
movq (%r15,%rcx,8), %rdx
movq (%r15,%rax,8), %rsi
movl %edx, %edi
subl %esi, %edi
testl %edi, %edi
jle 0x70b1
movq %rdx, (%r15,%rax,8)
movq %rsi, (%r15,%rcx,8)
movq -0x8(%r15,%rax,8), %rcx
movq (%r15,%rax,8), %rdx
movl %ecx, %esi
subl %edx, %esi
testl %esi, %esi
jle 0x70cb
movq %rcx, (%r15,%rax,8)
movq %rdx, -0x8(%r15,%rax,8)
leal -0x1(%rax), %r8d
movq -0x8(%r15,%rax,8), %rdi
decq %rax
leal 0x2(%r13), %ecx
movslq %ecx, %r9
movl %r13d, %ecx
movslq %ecx, %r11
leaq (%r15,%r11,8), %rdx
xorl %esi, %esi
movq 0x8(%rdx,%rsi,8), %r10
incq %rsi
cmpl %edi, %r10d
js 0x70ea
movslq %r8d, %r8
addq %rsi, %r11
movq %r8, %r14
movq -0x8(%r15,%r8,8), %rbx
decq %r8
cmpq %r14, %r9
je 0x7119
movl %edi, %ebp
subl %ebx, %ebp
andl $0x80000000, %ebp       # imm = 0x80000000
jne 0x70fd
cmpq %r8, %r11
jge 0x712d
movl %ecx, %ecx
addq %rsi, %rcx
movq %r10, (%r15,%r8,8)
movq %rbx, (%rdx,%rsi,8)
jmp 0x70e1
leal (%rcx,%rsi), %edi
decl %edi
movq (%r15,%rax,8), %r8
movq %r10, (%r15,%rax,8)
leal (%rcx,%rsi), %eax
subl %r13d, %eax
movl %r12d, %r9d
subl %ecx, %r9d
subl %esi, %r9d
cmpl %r9d, %eax
leal 0x1(%rcx,%rsi), %eax
movl %edi, %ebp
cmovll %r12d, %ebp
movl %r13d, %ebx
cmovll %eax, %ebx
cmovll %edi, %r12d
movq %r8, (%rdx,%rsi,8)
cmovgel %eax, %r13d
movl %r12d, %ecx
subl %r13d, %ecx
movl %ebp, %eax
subl %ebx, %eax
cmpl $0xb, %ecx
jl 0x72c2
cmpl $0xa, %eax
movq (%rsp), %rsi
jle 0x745d
movq 0x478(%rsi), %r14
movq 0x480(%rsi), %rdx
cmpq %rdx, %r14
jne 0x7217
movq 0x470(%rsi), %rsi
cmpq %rdx, %rsi
ja 0x7466
subq %rsi, %r14
subq %rsi, %rdx
movq %rdx, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %rdx
movl %eax, %ecx
movl $0x1, %eax
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
leaq (,%rcx,4), %rcx
movq (%rsp), %rdi
callq 0x4593
movq (%rsp), %rsi
movq %rax, 0x470(%rsi)
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r14
addq %rax, %r14
movq %r14, 0x478(%rsi)
movq 0x20(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, 0x480(%rsi)
movq 0x478(%rsi), %rax
leaq 0x4(%rax), %r14
movq %r14, 0x478(%rsi)
movl %ebx, (%rax)
movq 0x480(%rsi), %rdx
cmpq %rdx, %r14
jne 0x72a9
movq 0x470(%rsi), %rsi
cmpq %rdx, %rsi
ja 0x7466
subq %rsi, %r14
subq %rsi, %rdx
movq %rdx, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %rdx
movl %eax, %ebx
movl $0x1, %eax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rcx
movq (%rsp), %rdi
callq 0x4593
movq (%rsp), %rsi
movq %rax, 0x470(%rsi)
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r14
addq %rax, %r14
movq %r14, 0x478(%rsi)
leaq (%rax,%rbx,4), %rax
movq %rax, 0x480(%rsi)
movq 0x478(%rsi), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x478(%rsi)
movl %ebp, (%rax)
jmp 0x7057
movl %ebp, %r12d
movl %ebx, %r13d
cmpl $0xa, %eax
jg 0x7057
movq (%rsp), %rdx
movq 0x478(%rdx), %rax
cmpq 0x470(%rdx), %rax
jbe 0x6ed8
leaq -0x4(%rax), %rcx
movq %rcx, 0x478(%rdx)
movl -0x4(%rax), %r12d
leaq -0x8(%rax), %rcx
movq %rcx, 0x478(%rdx)
movl -0x8(%rax), %r13d
jmp 0x7057
movq %rax, %rcx
movq %rcx, 0x260(%rdi)
movq 0x120(%rdi), %rax
cmpq %rax, 0x118(%rdi)
je 0x7341
movq 0x38(%rdi), %rcx
movq -0x8(%rax), %rsi
subq %rcx, %rsi
xorq $0x1, %rsi
addq %rcx, %rsi
movq (%rsp), %rdi
callq 0x7574
movq (%rsp), %rdi
xorl %esi, %esi
callq 0xeaf0
movq (%rsp), %rdi
leaq 0x70(%rdi), %rcx
cmpq %rcx, %rax
jne 0x743d
cmpl $0x0, 0xc0(%rdi)
je 0x743d
leaq 0xc3a7(%rip), %rdi      # 0x13718
leaq 0xaf34(%rip), %rsi      # 0x122ac
leaq 0xce87(%rip), %rcx      # 0x14206
movl $0xa3e, %edx            # imm = 0xA3E
callq 0x10b0
movq (%rsp), %rdi
movq 0x258(%rdi), %rax
movq %rax, 0x260(%rdi)
movq 0x1e8(%rdi), %rbx
movq 0x1f0(%rdi), %rdx
cmpq %rdx, %rbx
jne 0x7418
movq 0x1e0(%rdi), %rsi
cmpq %rdx, %rsi
ja 0x74b2
subq %rsi, %rbx
subq %rsi, %rdx
movq %rdx, %rax
shrq $0x2, %rax
movabsq $0x7fffffff8, %r14      # imm = 0x7FFFFFFF8
andq %r14, %rdx
movl %eax, %eax
movl $0x1, %r15d
cmovneq %rax, %r15
leaq (,%r15,8), %rcx
movq (%rsp), %rdi
callq 0x4593
movq (%rsp), %rdi
movq %rax, 0x1e0(%rdi)
andq %r14, %rbx
addq %rax, %rbx
movq %rbx, 0x1e8(%rdi)
leaq (%rax,%r15,8), %rax
movq %rax, 0x1f0(%rdi)
movq 0x1e8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x1e8(%rdi)
movq $0x0, (%rax)
incl 0x448(%rdi)
incl 0x438(%rdi)
cmpl $0x0, 0x35c(%rdi)
je 0x744b
callq 0x41bd
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc02e(%rip), %rdi      # 0x13492
jmp 0x746d
leaq 0xc044(%rip), %rdi      # 0x134b1
leaq 0xae38(%rip), %rsi      # 0x122ac
leaq 0xcdb7(%rip), %rcx      # 0x14232
movl $0xa05, %edx            # imm = 0xA05
callq 0x10b0
leaq 0xbfed(%rip), %rdi      # 0x13479
jmp 0x746d
callq 0x1348
leaq 0xaf93(%rip), %rdi      # 0x1242d
leaq 0xae0b(%rip), %rsi      # 0x122ac
leaq 0xafa3(%rip), %rcx      # 0x1244b
movl $0x1ab5, %edx           # imm = 0x1AB5
callq 0x10b0
leaq 0xc3f6(%rip), %rdi      # 0x138af
leaq 0xadec(%rip), %rsi      # 0x122ac
leaq 0xcd3f(%rip), %rcx      # 0x14206
movl $0xa2d, %edx            # imm = 0xA2D
callq 0x10b0