// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movl 0x30(%rdx), %r9d
movq (%rdx), %rdi
testl %r9d, %r9d
js 0x9af9
movq 0x20(%r12), %rsi
movq (%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9eb7
testl %eax, %eax
jne 0x9bbf
movl %ebx, %ebp
testl %ebx, %ebx
jle 0x9aa1
movq (%r15), %rax
movl 0x30(%r12), %ecx
xorl %edx, %edx
xorl %r13d, %r13d
movsbl (%rax,%rdx), %esi
xorl %edi, %edi
cmpl %esi, %ecx
setne %dil
addl %edi, %r13d
incq %rdx
cmpq %rdx, %rbp
jne 0x9a62
testl %r13d, %r13d
je 0x9aa1
leal 0x3(%r13), %esi
shrl $0x2, %esi
movq 0x8(%r15), %rdi
movl $0x1, %edx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
je 0x9aa4
callq 0x2175
xorl %r13d, %r13d
movq 0x8(%r15), %rsi
movl %r13d, %edi
callq 0x330c
movq 0x8(%r15), %rdi
callq 0x3380
testl %ebx, %ebx
jle 0x9b49
movq (%r15), %rax
movq 0x8(%r15), %rcx
movl 0x30(%r12), %edx
decl %r13d
incq %rbp
movsbl -0x2(%rax,%rbp), %edi
movb $0x6e, %sil
cmpl %edi, %edx
je 0x9ae9
movslq %r13d, %rsi
decl %r13d
movb (%rcx,%rsi), %sil
movb %sil, -0x2(%rcx,%rbp)
decq %rbp
cmpq $0x1, %rbp
ja 0x9ad3
jmp 0x9b49
movq (%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9bce
testl %eax, %eax
jne 0x9bbf
leal 0x3(%rbx), %eax
sarl $0x2, %eax
testl %eax, %eax
jle 0x9b35
movq 0x8(%r15), %rdi
movl %eax, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
jne 0x9bc9
movq 0x8(%r15), %rsi
movl %ebx, %edi
callq 0x330c
movq 0x8(%r15), %rdi
callq 0x3380
movq 0x8(%r12), %rdi
movq 0x10(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9bce
testl %eax, %eax
jne 0x9bbf
movq 0x10(%r12), %rdi
movq 0x18(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9bce
testl %eax, %eax
jne 0x9bbf
movl 0x34(%r12), %r9d
movq 0x18(%r12), %rdi
testl %r9d, %r9d
js 0x9b9c
movq 0x28(%r12), %rsi
movq 0x20(%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9eb7
jmp 0x9baa
movq 0x20(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9bce
testl %eax, %eax
jne 0x9bbf
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x1270
callq 0x219a