// File: biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: tpush
inline static void
tpush (PS * ps, Lit * lit)
{
  assert (ps->lits < lit && lit <= ps->lits + 2* ps->max_var + 1);
  if (ps->thead == ps->eot)
    {
      unsigned ttail2count = ps->ttail2 - ps->trail;
      unsigned ttailcount = ps->ttail - ps->trail;
#ifndef NADC
      unsigned ttailadocount = ps->ttailado - ps->trail;
#endif
      ENLARGE (ps->trail, ps->thead, ps->eot);
      ps->ttail = ps->trail + ttailcount;
      ps->ttail2 = ps->trail + ttail2count;
#ifndef NADC
      ps->ttailado = ps->trail + ttailadocount;
#endif
    }

  *ps->thead++ = lit;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
cmpq -0x10(%rbp), %rax
jae 0x12dc3
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x38(%rcx), %rcx
movq -0x8(%rbp), %rdx
movl 0x2c(%rdx), %edx
shll %edx
movl %edx, %edx
addq %rdx, %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
ja 0x12dc3
jmp 0x12de2
leaq 0xb882(%rip), %rdi      # 0x1e64c
leaq 0xa4d3(%rip), %rsi      # 0x1d2a4
movl $0x5f5, %edx            # imm = 0x5F5
leaq 0xb8a6(%rip), %rcx      # 0x1e683
callq 0x10b0
movq -0x8(%rbp), %rax
movq 0xd0(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0xd8(%rcx), %rax
jne 0x12f9e
movq -0x8(%rbp), %rax
movq 0xe8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0xc8(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0xe0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0xc8(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0xc8(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x12e6e
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, -0x44(%rbp)
jmp 0x12e78
movl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x12e78
movl -0x44(%rbp), %eax
movl %eax, %eax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0xd0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0xc8(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0xd8(%rcx), %rax
ja 0x12ebb
jmp 0x12eda
leaq 0xb7d9(%rip), %rdi      # 0x1e69b
leaq 0xa3db(%rip), %rsi      # 0x1d2a4
movl $0x5fd, %edx            # imm = 0x5FD
leaq 0xb7ae(%rip), %rcx      # 0x1e683
callq 0x10b0
jmp 0x12edc
movl -0x1c(%rbp), %eax
shlq $0x3, %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
shlq $0x3, %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0x4f30
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xc8(%rax)
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rcx
movl -0x2c(%rbp), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xd0(%rax)
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rcx
movq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xd8(%rax)
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rcx
movl -0x18(%rbp), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xe0(%rax)
movq -0x8(%rbp), %rax
movq 0xc8(%rax), %rcx
movl -0x14(%rbp), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xe8(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rdx
movq 0xd0(%rdx), %rax
movq %rax, %rsi
addq $0x8, %rsi
movq %rsi, 0xd0(%rdx)
movq %rcx, (%rax)
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)