// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DASCRUBBER/QV.c
// Function: Compress_Next_QVentry
int Compress_Next_QVentry(FILE *input, FILE *output, QVcoding *coding, int lossy)
{ int rlen, clen;

  //  Get all 5 streams, compress each with its scheme, and output

  rlen = Read_Lines(input,5);
  if (rlen < 0)
    { if (rlen == -1)
        EPRINTF(EPLACE,"Line %d: incomplete last entry of .quiv file\n",Nline);
      EXIT (-1);
    }

  if (coding->delChar < 0)
    { Encode(coding->delScheme, output, (uint8 *) Read, rlen);
      clen = rlen;
    }
  else
    { Encode_Run(coding->delScheme, coding->dRunScheme, output,
                 (uint8 *) Read, rlen, coding->delChar);
      clen = Pack_Tag(Read+Rmax,Read,rlen,coding->delChar);
    }
  Number_Read(Read+Rmax);
  Compress_Read(clen,Read+Rmax);
  fwrite(Read+Rmax,1,COMPRESSED_LEN(clen),output);

  if (lossy)
    { uint8 *insert = (uint8 *) (Read+2*Rmax);
      uint8 *merge  = (uint8 *) (Read+3*Rmax);
      int    k;

      for (k = 0; k < rlen; k++)
        { insert[k] = (uint8) ((insert[k] >> 1) << 1);
          merge[k]  = (uint8) (( merge[k] >> 2) << 2);
        }
    }

  Encode(coding->insScheme, output, (uint8 *) (Read+2*Rmax), rlen);
  Encode(coding->mrgScheme, output, (uint8 *) (Read+3*Rmax), rlen);
  if (coding->subChar < 0)
    Encode(coding->subScheme, output, (uint8 *) (Read+4*Rmax), rlen);
  else
    Encode_Run(coding->subScheme, coding->sRunScheme, output,
               (uint8 *) (Read+4*Rmax), rlen, coding->subChar);

  return (rlen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movl $0x5, %esi
callq 0x7cbe
movl %eax, %ebx
testl %eax, %eax
js 0x99fa
movl 0x30(%r15), %r9d
movq (%r15), %rdi
testl %r9d, %r9d
js 0x98c2
movq 0x20(%r15), %rsi
movq 0x90bd(%rip), %rcx      # 0x12930
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9426
movq 0x90ab(%rip), %rax      # 0x12930
movslq 0x692c(%rip), %rdi      # 0x101b8
leaq (%rax,%rdi), %rcx
testl %ebx, %ebx
je 0x98e6
movl 0x30(%r15), %edx
movl %ebx, %esi
xorl %r8d, %r8d
xorl %r12d, %r12d
movsbl (%rax,%r8), %r9d
cmpl %r9d, %edx
je 0x98b8
movb (%rcx,%r8), %r9b
movslq %r12d, %r10
incl %r12d
movb %r9b, (%rcx,%r10)
incq %r8
cmpq %r8, %rsi
jne 0x98a0
jmp 0x98e9
movq 0x9067(%rip), %rdx      # 0x12930
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9238
movq 0x9056(%rip), %rax      # 0x12930
movslq 0x68d7(%rip), %rdi      # 0x101b8
movl %ebx, %r12d
jmp 0x98f0
xorl %r12d, %r12d
movslq %r12d, %rdx
movb $0x0, (%rcx,%rdx)
addq %rax, %rdi
callq 0x33ec
movslq 0x68b9(%rip), %rsi      # 0x101b8
addq 0x902a(%rip), %rsi      # 0x12930
movl %r12d, %edi
callq 0x32af
movslq 0x68a3(%rip), %rdi      # 0x101b8
addq 0x9014(%rip), %rdi      # 0x12930
addl $0x3, %r12d
sarl $0x2, %r12d
movslq %r12d, %rdx
movl $0x1, %esi
movq %r14, %rcx
callq 0x1280
movl 0x687e(%rip), %esi      # 0x101b8
leal (%rsi,%rsi), %eax
movq 0x8fec(%rip), %rdx      # 0x12930
cltq
testl %ebp, %ebp
je 0x9972
testl %ebx, %ebx
je 0x9972
leaq (%rdx,%rax), %rcx
leal (%rsi,%rsi,2), %esi
movslq %esi, %rsi
addq %rdx, %rsi
movl %ebx, %edi
xorl %r8d, %r8d
andb $-0x2, (%rcx,%r8)
andb $-0x4, (%rsi,%r8)
incq %r8
cmpq %r8, %rdi
jne 0x9960
movq 0x8(%r15), %rdi
addq %rax, %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9238
movq 0x10(%r15), %rdi
movslq 0x682a(%rip), %rax      # 0x101b8
leaq (%rax,%rax,2), %rdx
addq 0x8f97(%rip), %rdx      # 0x12930
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9238
movl 0x34(%r15), %r9d
movq 0x18(%r15), %rdi
testl %r9d, %r9d
js 0x99d3
movq 0x28(%r15), %rsi
movslq 0x67fd(%rip), %rcx      # 0x101b8
shlq $0x2, %rcx
addq 0x8f6a(%rip), %rcx      # 0x12930
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9426
jmp 0x99ef
movslq 0x67de(%rip), %rdx      # 0x101b8
shlq $0x2, %rdx
addq 0x8f4b(%rip), %rdx      # 0x12930
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9238
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x1, %ebx
jne 0x9a04
callq 0x2157
movl $0x1, %edi
callq 0x1270