// File: /workspace/github_c_makefile_star2_O0/richarddurbin[P]hash10x/fq2b.c
// Function: gzReadFastq
BOOL gzReadFastq (gzFile f, char *idBuf, int *idLen, char *sBuf, char *qBuf, int *sLen)
{
  static char *buf = 0 ;
  static int nEntry = 0 ;
  char *s ;

  ++nEntry ;
  *idLen = 0 ;	/* id lines are variable length, so need to read char by char */
  for (s = idBuf ; !gzeof(f) && (*s++ = gzgetc(f)) != '\n' ; ++*idLen) ;
  if (gzeof (f)) return FALSE ;
  if (*idBuf != '@') die ("fastq id line for entry %d does not start with @", nEntry) ;
  if (idBuf[*idLen] != '\n') die ("fastq entry %d id line does not end in \\n", nEntry) ;
  idBuf[*idLen] = 0 ;

  if (*sLen)
    { if (gzread (f, sBuf, *sLen+1) != *sLen+1) die ("bad seq gzread entry %d", nEntry) ; }
  else
    for (s = sBuf ; !gzeof(f) && (*s++ = gzgetc(f)) != '\n' ; ++*sLen) ;
  if (sBuf[*sLen] != '\n') die ("fastq entry %d seq line does not end in \\n", nEntry) ;
  sBuf[*sLen] = 0 ;

  if (gzgetc(f) != '+' || gzgetc(f) != '\n') die ("bad + fastq line entry %d", nEntry) ;

  if (gzread (f, qBuf, *sLen+1) != *sLen+1) die ("bad qual gzread entry %d", nEntry) ;
  if (qBuf[*sLen] != '\n') die ("fastq entry %d qual line does not end in \\n", nEntry) ;
  qBuf[*sLen] = 0 ;
  
  return TRUE ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl 0x6c22(%rip), %eax      # 0x8be8
addl $0x1, %eax
movl %eax, 0x6c19(%rip)      # 0x8be8
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x10d0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x41(%rbp)
jne 0x2061
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2035
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x48(%rbp)
jmp 0x2041
movq -0x10(%rbp), %rdi
callq 0x1070
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0xa, %eax
setne %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x206a
jmp 0x207c
jmp 0x206c
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1fe1
movq -0x10(%rbp), %rdi
callq 0x10d0
cmpl $0x0, %eax
je 0x2093
movb $0x0, -0x1(%rbp)
jmp 0x2337
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
je 0x20b3
movl 0x6b43(%rip), %esi      # 0x8be8
leaq 0x3406(%rip), %rdi      # 0x54b2
movb $0x0, %al
callq 0x4700
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
je 0x20db
movl 0x6b1b(%rip), %esi      # 0x8be8
leaq 0x340f(%rip), %rdi      # 0x54e3
movb $0x0, %al
callq 0x4700
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x212f
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rax
movl (%rax), %edx
addl $0x1, %edx
callq 0x1110
movq -0x38(%rbp), %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
je 0x212a
movl 0x6acc(%rip), %esi      # 0x8be8
leaq 0x33ea(%rip), %rdi      # 0x550d
movb $0x0, %al
callq 0x4700
jmp 0x21d4
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x10d0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x49(%rbp)
jne 0x21b7
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x218b
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x50(%rbp)
jmp 0x2197
movq -0x10(%rbp), %rdi
callq 0x1070
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0xa, %eax
setne %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x21c0
jmp 0x21d2
jmp 0x21c2
movq -0x38(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2137
jmp 0x21d4
movq -0x28(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
je 0x21fc
movl 0x69fa(%rip), %esi      # 0x8be8
leaq 0x3330(%rip), %rdi      # 0x5525
movb $0x0, %al
callq 0x4700
movq -0x28(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x224a
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x54(%rbp)
jmp 0x2256
movq -0x10(%rbp), %rdi
callq 0x1070
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl $0x2b, %eax
jne 0x22b1
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x229d
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x22a9
movq -0x10(%rbp), %rdi
callq 0x1070
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl $0xa, %eax
je 0x22c5
movl 0x6931(%rip), %esi      # 0x8be8
leaq 0x3292(%rip), %rdi      # 0x5550
movb $0x0, %al
callq 0x4700
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rax
movl (%rax), %edx
addl $0x1, %edx
callq 0x1110
movq -0x38(%rbp), %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
je 0x22fc
movl 0x68fa(%rip), %esi      # 0x8be8
leaq 0x3275(%rip), %rdi      # 0x556a
movb $0x0, %al
callq 0x4700
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
je 0x2324
movl 0x68d2(%rip), %esi      # 0x8be8
leaq 0x3266(%rip), %rdi      # 0x5583
movb $0x0, %al
callq 0x4700
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movb $0x0, (%rax,%rcx)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq