// File: /workspace/github_cpp_makefile_star2_O1/biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: picosat_pop
int 
picosat_pop (PS * ps)
{
  Lit * lit;
  int res;
  ABORTIF (ps->CLS == ps->clshead, "API usage: too many 'picosat_pop'");
  ABORTIF (ps->added != ps->ahead, "API usage: incomplete clause");

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

  if (ps->state != READY)
    reset_incremental_usage (ps);

  assert (ps->CLS < ps->clshead);
  lit = *--ps->clshead;
  LOG ( fprintf (ps->out, "%sclosing context %d at depth %ld after pop\n",
                 ps->prefix, LIT2INT (lit), (long)(ps->clshead - ps->CLS) + 1));

  if (ps->cilshead == ps->eocils)
    ENLARGE (ps->cils, ps->cilshead, ps->eocils);
  *ps->cilshead++ = LIT2INT (lit);

  if (ps->cilshead - ps->cils > MAXCILS) {
    LOG ( fprintf (ps->out,
                  "%srecycling %ld interals with forced simplification\n",
		  ps->prefix, (long)(ps->cilshead - ps->cils)));
    simplify (ps, 1);
  }

  res = picosat_context (ps);
  if (res)
    LOG ( fprintf (ps->out, "%snew context %d at depth %ld after pop\n",
		   ps->prefix, res, (long)(ps->clshead - ps->CLS)));
  else
    LOG ( fprintf (ps->out, "%souter most context reached after pop\n", ps->prefix));

  if (ps->measurealltimeinlib)
    leave (ps);
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x118(%rdi), %rax
cmpq 0x120(%rdi), %rax
je 0x4857
movq %rdi, %rbx
movq 0x258(%rdi), %rax
cmpq 0x260(%rdi), %rax
jne 0x485c
cmpl $0x0, 0x35c(%rbx)
je 0x471d
movq %rbx, %rdi
callq 0x3de6
jmp 0x4725
movq %rbx, %rdi
callq 0x4264
cmpl $0x1, (%rbx)
je 0x4732
movq %rbx, %rdi
callq 0x4460
movq 0x120(%rbx), %rax
cmpq %rax, 0x118(%rbx)
jae 0x4861
leaq -0x8(%rax), %rcx
movq %rcx, 0x120(%rbx)
movq -0x8(%rax), %r14
movq 0x150(%rbx), %r15
movq 0x158(%rbx), %rdx
cmpq %rdx, %r15
jne 0x47cc
movq 0x148(%rbx), %rsi
cmpq %rdx, %rsi
ja 0x4880
subq %rsi, %r15
subq %rsi, %rdx
movq %rdx, %rax
shrq %rax
movabsq $0x3fffffffc, %r12      # imm = 0x3FFFFFFFC
andq %r12, %rdx
movl %eax, %eax
movl $0x1, %r13d
cmovneq %rax, %r13
leaq (,%r13,4), %rcx
movq %rbx, %rdi
callq 0x4593
movq %rax, 0x148(%rbx)
andq %r12, %r15
addq %rax, %r15
movq %r15, 0x150(%rbx)
leaq (%rax,%r13,4), %rax
movq %rax, 0x158(%rbx)
subl 0x38(%rbx), %r14d
movl %r14d, %eax
shrl %eax
movl %eax, %ecx
negl %ecx
testb $0x1, %r14b
cmovel %eax, %ecx
movq 0x150(%rbx), %rax
leaq 0x4(%rax), %rdx
movq %rdx, 0x150(%rbx)
movl %ecx, (%rax)
subq 0x148(%rbx), %rdx
cmpq $0x29, %rdx
jl 0x480e
movq %rbx, %rdi
movl $0x1, %esi
callq 0x489f
movq 0x120(%rbx), %rax
cmpq 0x118(%rbx), %rax
je 0x4833
movl -0x8(%rax), %eax
subl 0x38(%rbx), %eax
movl %eax, %ecx
shrl %ecx
movl %ecx, %ebp
negl %ebp
testb $0x1, %al
cmovel %ecx, %ebp
jmp 0x4835
xorl %ebp, %ebp
cmpl $0x0, 0x35c(%rbx)
je 0x4846
movq %rbx, %rdi
callq 0x41bd
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1310
callq 0x12f4
leaq 0xdae6(%rip), %rdi      # 0x1234e
leaq 0xda3d(%rip), %rsi      # 0x122ac
leaq 0xdaee(%rip), %rcx      # 0x12364
movl $0x1a39, %edx           # imm = 0x1A39
callq 0x10b0
leaq 0xdaf3(%rip), %rdi      # 0x1237a
leaq 0xda1e(%rip), %rsi      # 0x122ac
leaq 0xdacf(%rip), %rcx      # 0x12364
movl $0x1a3f, %edx           # imm = 0x1A3F
callq 0x10b0