// File: /workspace/github_c_makefile_star2_O0/thegenemyers[P]DASCRUBBER/QV.c
// Function: Uncompress_Next_QVentry
int Uncompress_Next_QVentry(FILE *input, char **entry, QVcoding *coding, int rlen)
{ int clen, tlen;

  //  Decode each stream and write to output

  if (coding->delChar < 0)
    { if (Decode(coding->delScheme, input, entry[0], rlen))
        EXIT(1);
      clen = rlen;
      tlen = COMPRESSED_LEN(clen);
      if (tlen > 0)
        { if (fread(entry[1],tlen,1,input) != 1)
            { EPRINTF(EPLACE,"Could not read deletions entry (Uncompress_Next_QVentry\n");
              EXIT(1);
            }
        }
      Uncompress_Read(clen,entry[1]);
      Lower_Read(entry[1]);
    }
  else
    { if (Decode_Run(coding->delScheme, coding->dRunScheme, input,
                     entry[0], rlen, coding->delChar))
        EXIT(1);
      clen = Packed_Length(entry[0],rlen,coding->delChar);
      tlen = COMPRESSED_LEN(clen);
      if (tlen > 0)
        { if (fread(entry[1],tlen,1,input) != 1)
            { EPRINTF(EPLACE,"Could not read deletions entry (Uncompress_Next_QVentry\n");
              EXIT(1);
            }
        }
      Uncompress_Read(clen,entry[1]);
      Lower_Read(entry[1]);
      Unpack_Tag(entry[1],clen,entry[0],rlen,coding->delChar);
    }

  if (Decode(coding->insScheme, input, entry[2], rlen))
    EXIT(1);

  if (Decode(coding->mrgScheme, input, entry[3], rlen))
    EXIT(1);

  if (coding->subChar < 0)
    { if (Decode(coding->subScheme, input, entry[4], rlen))
        EXIT(1);
    }
  else
    { if (Decode_Run(coding->subScheme, coding->sRunScheme, input,
                     entry[4], rlen, coding->subChar))
        EXIT(1);
    }

  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jge 0xc5cc
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl -0x1c(%rbp), %ecx
callq 0xc790
cmpl $0x0, %eax
je 0xc54e
movl $0x1, %edi
callq 0x1260
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addl $0x3, %eax
sarl $0x2, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0xc5aa
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x24(%rbp), %rsi
movq -0x8(%rbp), %rcx
movl $0x1, %edx
callq 0x10a0
cmpq $0x1, %rax
je 0xc5a8
movq 0x5a6b(%rip), %rax      # 0x11ff8
movq (%rax), %rdi
leaq 0x2c70(%rip), %rsi      # 0xf207
movb $0x0, %al
callq 0x1180
movl $0x1, %edi
callq 0x1260
jmp 0xc5aa
movl -0x20(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x2f20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3010
jmp 0xc6b4
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movl -0x1c(%rbp), %r8d
movq -0x18(%rbp), %rax
movl 0x30(%rax), %r9d
callq 0xcbc0
cmpl $0x0, %eax
je 0xc606
movl $0x1, %edi
callq 0x1260
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x1c(%rbp), %esi
movq -0x18(%rbp), %rax
movl 0x30(%rax), %edx
callq 0xd3f0
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addl $0x3, %eax
sarl $0x2, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0xc675
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x24(%rbp), %rsi
movq -0x8(%rbp), %rcx
movl $0x1, %edx
callq 0x10a0
cmpq $0x1, %rax
je 0xc673
movq 0x59a0(%rip), %rax      # 0x11ff8
movq (%rax), %rdi
leaq 0x2ba5(%rip), %rsi      # 0xf207
movb $0x0, %al
callq 0x1180
movl $0x1, %edi
callq 0x1260
jmp 0xc675
movl -0x20(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x2f20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3010
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x20(%rbp), %esi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl 0x30(%rax), %r8d
callq 0xd440
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x1c(%rbp), %ecx
callq 0xc790
cmpl $0x0, %eax
je 0xc6df
movl $0x1, %edi
callq 0x1260
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
movl -0x1c(%rbp), %ecx
callq 0xc790
cmpl $0x0, %eax
je 0xc70a
movl $0x1, %edi
callq 0x1260
movq -0x18(%rbp), %rax
cmpl $0x0, 0x34(%rax)
jge 0xc741
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
movl -0x1c(%rbp), %ecx
callq 0xc790
cmpl $0x0, %eax
je 0xc73f
movl $0x1, %edi
callq 0x1260
jmp 0xc77f
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movl -0x1c(%rbp), %r8d
movq -0x18(%rbp), %rax
movl 0x34(%rax), %r9d
callq 0xcbc0
cmpl $0x0, %eax
je 0xc77d
movl $0x1, %edi
callq 0x1260
jmp 0xc77f
xorl %eax, %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)