// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movl 0x30(%rdx), %r9d
movq (%rdx), %rdi
testl %r9d, %r9d
js 0x8501
movq 0x20(%r12), %rsi
movq (%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x884a
testl %eax, %eax
jne 0x85dc
movq (%r15), %rax
movl 0x30(%r12), %ecx
xorl %edx, %edx
testl %ebx, %ebx
movl $0x0, %esi
cmovgl %ebx, %esi
xorl %r13d, %r13d
cmpq %rdx, %rsi
je 0x8490
movsbl (%rax,%rdx), %edi
xorl %r8d, %r8d
cmpl %edi, %ecx
setne %r8b
addl %r8d, %r13d
incq %rdx
jmp 0x8476
testl %r13d, %r13d
je 0x84b5
leal 0x3(%r13), %esi
shrl $0x2, %esi
movq 0x8(%r15), %rdi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
jne 0x85c0
movq 0x8(%r15), %rsi
movl %r13d, %edi
callq 0x2337
movq 0x8(%r15), %rdi
callq 0x2395
movq (%r15), %rax
movq 0x8(%r15), %rcx
movl 0x30(%r12), %edx
decl %r13d
movl %ebx, %esi
testl %esi, %esi
jle 0x854f
movsbl -0x1(%rax,%rsi), %r8d
movb $0x6e, %dil
cmpl %r8d, %edx
je 0x84f7
movslq %r13d, %rdi
decl %r13d
movb (%rcx,%rdi), %dil
movb %dil, -0x1(%rcx,%rsi)
decq %rsi
jmp 0x84db
movq (%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x85e4
testl %eax, %eax
jne 0x85dc
leal 0x3(%rbx), %eax
sarl $0x2, %eax
testl %eax, %eax
jle 0x853b
movq 0x8(%r15), %rdi
movl %eax, %esi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x10b0
cmpq $0x1, %rax
jne 0x85c0
movq 0x8(%r15), %rsi
movl %ebx, %edi
callq 0x2337
movq 0x8(%r15), %rdi
callq 0x2395
movq 0x8(%r12), %rdi
movq 0x10(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x85e4
testl %eax, %eax
jne 0x85dc
movq 0x10(%r12), %rdi
movq 0x18(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x85e4
testl %eax, %eax
jne 0x85dc
movl 0x34(%r12), %r9d
movq 0x18(%r12), %rdi
testl %r9d, %r9d
js 0x85a2
movq 0x28(%r12), %rsi
movq 0x20(%r15), %rcx
movq %r14, %rdx
movl %ebx, %r8d
callq 0x884a
jmp 0x85b0
movq 0x20(%r15), %rdx
movq %r14, %rsi
movl %ebx, %ecx
callq 0x85e4
testl %eax, %eax
jne 0x85dc
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x5a31(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x1dbe(%rip), %rdi      # 0xa38f
pushq $0x38
popq %rsi
pushq $0x1
popq %rdx
callq 0x1280
pushq $0x1
popq %rdi
callq 0x1270