// File: /workspace/github_c_makefile_star2_O0/gmcvicker[P]check_fastq/split_fastq.c
// Function: check_line_len
static void check_line_len(ReadSeq *read, char *line, gzFile f) {
  size_t len, n;
  char c;

  len = strlen(line);
  if(len == 0) {
    return;
  }
  if(line[len-1] == '\n') {
    return;
  }
  
  /* line did not terminate with a '\n' */
  my_warn("%s:%d: line did not terminate with '\\n':  \n'%s'\n", 
          __FILE__, __LINE__, line, len);

  read->status = FASTQ_ERR;

  /* seek in file until next '\n' is found */
  n = 0;
  while((c = gzgetc(f)) != -1) {
    n++;

    if(n < 10) {
      if(isprint(c)) {
        fprintf(stderr, "  extra character %ld: '%c'\n", n, c);
      }
      else {
        fprintf(stderr, "  unprintable extra character %ld: '\\%d'\n", n, c);
      }
    } else if(n == 10) {
      fprintf(stderr, "  ...\n");      
    }
    
    if(c == '\n') {
      fprintf(stderr, "  read %ld extra characters to reach end of line\n", n);
      return;
    }
  }

  fprintf(stderr, "  read %ld extra characters to reach end of file\n", n);
  return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1110
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x232d
jmp 0x24b9
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x2347
jmp 0x24b9
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %r8
leaq 0x2f20(%rip), %rdi      # 0x5276
leaq 0x2d09(%rip), %rsi      # 0x5066
movl $0x44, %edx
movb $0x0, %al
callq 0x3fd0
movq -0x8(%rbp), %rax
movl $0x1, 0x1420(%rax)
movq $0x0, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x23be
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x30(%rbp)
jmp 0x23ca
movq -0x18(%rbp), %rdi
callq 0x10f0
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movb %al, -0x29(%rbp)
movsbl %al, %eax
cmpl $-0x1, %eax
je 0x249d
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
cmpq $0xa, -0x28(%rbp)
jae 0x2450
callq 0x1290
movq (%rax), %rax
movsbl -0x29(%rbp), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x242e
movq 0x5be5(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
movsbl -0x29(%rbp), %ecx
leaq 0x2e82(%rip), %rsi      # 0x52a7
movb $0x0, %al
callq 0x1170
jmp 0x244e
movq 0x5bc3(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
movsbl -0x29(%rbp), %ecx
leaq 0x2e7d(%rip), %rsi      # 0x52c4
movb $0x0, %al
callq 0x1170
jmp 0x2471
cmpq $0xa, -0x28(%rbp)
jne 0x246f
movq 0x5b9a(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x2e86(%rip), %rsi      # 0x52ee
movb $0x0, %al
callq 0x1170
jmp 0x2471
movsbl -0x29(%rbp), %eax
cmpl $0xa, %eax
jne 0x2498
movq 0x5b77(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
leaq 0x2e66(%rip), %rsi      # 0x52f5
movb $0x0, %al
callq 0x1170
jmp 0x24b9
jmp 0x237f
movq 0x5b54(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
leaq 0x2e75(%rip), %rsi      # 0x5327
movb $0x0, %al
callq 0x1170
addq $0x30, %rsp
popq %rbp
retq
nop