// File: /workspace/github_c_makefile_star2_O1/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 0x962c
movq 0x20(%r12), %rsi
movq (%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9a63
testl %eax, %eax
jne 0x976e
movl %ebx, %ebp
testl %ebx, %ebx
jle 0x967e
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 0x9613
jmp 0x9681
movq (%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9782
testl %eax, %eax
jne 0x976e
leal 0x3(%rbx), %eax
sarl $0x2, %eax
testl %eax, %eax
jle 0x9668
movq 0x8(%r15), %rdi
movl %eax, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
jne 0x977d
movq 0x8(%r15), %rsi
movl %ebx, %edi
callq 0x3400
movq 0x8(%r15), %rdi
callq 0x3476
jmp 0x96f8
xorl %r13d, %r13d
leal 0x3(%r13), %eax
sarl $0x2, %eax
testl %eax, %eax
jle 0x96a9
movq 0x8(%r15), %rdi
movl %eax, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
jne 0x9778
movq 0x8(%r15), %rsi
movl %r13d, %edi
callq 0x3400
movq 0x8(%r15), %rdi
callq 0x3476
testl %ebx, %ebx
jle 0x96f8
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 0x96ea
movslq %r13d, %rsi
decl %r13d
movb (%rcx,%rsi), %sil
movb %sil, -0x2(%rcx,%rbp)
decq %rbp
cmpq $0x1, %rbp
jg 0x96d4
movq 0x8(%r12), %rdi
movq 0x10(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9782
testl %eax, %eax
jne 0x976e
movq 0x10(%r12), %rdi
movq 0x18(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9782
testl %eax, %eax
jne 0x976e
movl 0x34(%r12), %r9d
movq 0x18(%r12), %rdi
testl %r9d, %r9d
js 0x974b
movq 0x28(%r12), %rsi
movq 0x20(%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x9a63
jmp 0x9759
movq 0x20(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x9782
testl %eax, %eax
jne 0x976e
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 0x21ed
callq 0x2212