// File: /workspace/github_c_makefile_star2_O0/thegenemyers[P]DASCRUBBER/QV.c
// Function: Compress_Next_QVentry1
void Compress_Next_QVentry1(int rlen, char *del, char *tag, char *ins, char *mrg, char *sub,
                            FILE *output, QVcoding *coding, int lossy)
{ int clen;

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

  if (lossy)
    { uint8 *insert = (uint8 *) ins;
      uint8 *merge  = (uint8 *) mrg;
      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 *) ins, rlen);
  Encode(coding->mrgScheme, output, (uint8 *) mrg, rlen);
  if (coding->subChar < 0)
    Encode(coding->subScheme, output, (uint8 *) sub, rlen);
  else
    Encode_Run(coding->subScheme, coding->sRunScheme, output,
               (uint8 *) sub, rlen, coding->subChar);
  return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq 0x18(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jge 0xb993
movq 0x18(%rbp), %rax
movq (%rax), %rdi
movq 0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x4(%rbp), %ecx
callq 0xbb00
movl -0x4(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xb9d5
movq 0x18(%rbp), %rax
movq (%rax), %rdi
movq 0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x10(%rbp), %rdx
movq -0x10(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x18(%rbp), %rax
movl 0x30(%rax), %r9d
callq 0xbd50
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x4(%rbp), %edx
movq 0x18(%rbp), %rax
movl 0x30(%rax), %ecx
callq 0xc1e0
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3100
movl -0x34(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x2e10
movq -0x18(%rbp), %rdi
movl -0x34(%rbp), %eax
addl $0x3, %eax
sarl $0x2, %eax
movslq %eax, %rdx
movq 0x10(%rbp), %rcx
movl $0x1, %esi
callq 0x1270
cmpl $0x0, 0x20(%rbp)
je 0xba76
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xba74
movq -0x40(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
sarl %eax
shll %eax
movb %al, %dl
movq -0x40(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
sarl $0x2, %eax
shll $0x2, %eax
movb %al, %dl
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0xba25
jmp 0xba76
movq 0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x4(%rbp), %ecx
callq 0xbb00
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movl -0x4(%rbp), %ecx
callq 0xbb00
movq 0x18(%rbp), %rax
cmpl $0x0, 0x34(%rax)
jge 0xbaca
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x4(%rbp), %ecx
callq 0xbb00
jmp 0xbaf3
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq 0x18(%rbp), %rax
movq 0x28(%rax), %rsi
movq 0x10(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x18(%rbp), %rax
movl 0x34(%rax), %r9d
callq 0xbd50
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)