// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/reads2twobit.c
// Function: gt_reads2twobit_process_fastq_mate_pair
static inline int gt_reads2twobit_process_fastq_mate_pair(
    GtReads2TwobitEncodeState *state, char *line2, FILE *file2, bool *file2new)
{
  int had_err = 0;
  char *fgetsretval = NULL;
  bool was_invalid = state->invalid_mode;
  GtUword prev_seqlen = state->seqlen;
  GtUword qbuf2_next = 0;
  bool qmode = false;
  gt_assert((state->descs == NULL && state->descsfp == NULL) ||
             gt_str_length(state->dbuf) > 0);
  if (*file2new)
  {
    fgetsretval = fgets(line2, (int)GT_READS2TWOBIT_READBUFFER_SIZE, file2);
    gt_assert(fgetsretval == line2);
    *file2new = false;
  }
  /* at this point one line2 is always the (beginnning of the) @ description */
  gt_assert(line2[0] == '@');
  gt_reads2twobit_process_desc_line(state, line2, true, false);
  GT_READS2TWOBIT_HANDLE_LONG_DESCRIPTIONS(line2, file2, fgetsretval, true,
      state, true);
  gt_assert((state->descs == NULL && state->descsfp == NULL) ||
             gt_str_length(state->dbuf2) > 0);
  state->seqlen_mate = state->seqlen;
  state->seqlen = 0;
  state->exp_qlen = 0;
  if (!state->invalid_mode)
    state->current.nofseqs++;
  else
    state->invalid_sequences++;
  while (!had_err)
  {
    fgetsretval = fgets(line2, (int)GT_READS2TWOBIT_READBUFFER_SIZE, file2);
    if (fgetsretval == NULL)
      break;
    if (!qmode)
    {
      if (line2[0] == '@')
        break;
      else if (line2[0] == '+')
      {
        GT_READS2TWOBIT_HANDLE_LONG_DESCRIPTIONS(line2, file2, fgetsretval,
            false, state, true);
        if (state->exp_qlen + 1UL > (GtUword)(state->qbuf2_size))
        {
          state->qbuf2_size = (size_t)state->exp_qlen + 1;
          state->qbuf2 = gt_realloc(state->qbuf2, state->qbuf2_size);
        }
        qmode = true;
      }
      else
      {
        gt_reads2twobit_process_sequence_line(state, line2);
      }
    }
    else
    {
      had_err = gt_reads2twobit_process_qualities_line(state, line2,
          state->qbuf2, &qbuf2_next);
      if (had_err == -1)
        had_err = -2;
      if (!had_err && qbuf2_next == state->exp_qlen)
      {
        if (state->maxlow != GT_UNDEF_UWORD)
          gt_reads2twobit_apply_quality_filter(state, state->qbuf2, qbuf2_next);
        qbuf2_next = 0;
        qmode = false;
      }
    }
  }
  if (!had_err)
    gt_reads2twobit_finalize_descriptions(state);
  if (!had_err && !state->invalid_mode)
    gt_reads2twobit_process_sequence_end(state);
  if (!had_err && !was_invalid && state->invalid_mode)
  {
    state->invalid_sequences++;
    state->invalid_total_length += (prev_seqlen - 1UL);
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x50(%rsp), %rax
movb 0x8f1(%rax), %al
andb $0x1, %al
movb %al, 0x27(%rsp)
movq 0x50(%rsp), %rax
movq 0x808(%rax), %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0xf(%rsp)
movq 0x50(%rsp), %rax
cmpq $0x0, 0x990(%rax)
jne 0x2a80f7
movq 0x50(%rsp), %rax
cmpq $0x0, 0x998(%rax)
je 0x2a8146
movq 0x50(%rsp), %rax
movq 0x948(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
ja 0x2a8146
movq 0x393e8b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26def4(%rip), %rsi    # 0x516013
leaq 0x2ddad1(%rip), %rdx    # 0x585bf7
leaq 0x2ddb51(%rip), %rcx    # 0x585c7e
leaq 0x2dce7c(%rip), %r8     # 0x584fb0
movl $0x391, %r9d            # imm = 0x391
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a8148
movq 0x38(%rsp), %rax
testb $0x1, (%rax)
je 0x2a81b9
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x19b60
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x48(%rsp), %rax
je 0x2a81af
movq 0x393e22(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26de8b(%rip), %rsi    # 0x516013
leaq 0x2dda1b(%rip), %rdx    # 0x585baa
leaq 0x2ddae8(%rip), %rcx    # 0x585c7e
leaq 0x2dce13(%rip), %r8     # 0x584fb0
movl $0x395, %r9d            # imm = 0x395
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a81b1
movq 0x38(%rsp), %rax
movb $0x0, (%rax)
jmp 0x2a81bb
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
je 0x2a8200
movq 0x393dd1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26de3a(%rip), %rsi    # 0x516013
leaq 0x2ddac6(%rip), %rdx    # 0x585ca6
leaq 0x2dda97(%rip), %rcx    # 0x585c7e
leaq 0x2dcdc2(%rip), %r8     # 0x584fb0
movl $0x399, %r9d            # imm = 0x399
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a8202
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x2a5c70
movq 0x48(%rsp), %rdi
callq 0x192b0
movq %rax, %rcx
xorl %eax, %eax
cmpq $0xff, %rcx
movb %al, 0xe(%rsp)
jne 0x2a8258
movq 0x48(%rsp), %rax
movsbl 0xfe(%rax), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, 0xe(%rsp)
je 0x2a8258
cmpq $0x0, 0x28(%rsp)
setne %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x2a8262
jmp 0x2a829e
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x19b60
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x2a8299
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0x2a5c70
jmp 0x2a8218
jmp 0x2a82a0
movq 0x50(%rsp), %rax
cmpq $0x0, 0x990(%rax)
jne 0x2a82be
movq 0x50(%rsp), %rax
cmpq $0x0, 0x998(%rax)
je 0x2a830d
movq 0x50(%rsp), %rax
movq 0x950(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
ja 0x2a830d
movq 0x393cc4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26dd2d(%rip), %rsi    # 0x516013
leaq 0x2dd9c9(%rip), %rdx    # 0x585cb6
leaq 0x2dd98a(%rip), %rcx    # 0x585c7e
leaq 0x2dccb5(%rip), %r8     # 0x584fb0
movl $0x39e, %r9d            # imm = 0x39E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a830f
movq 0x50(%rsp), %rax
movq 0x808(%rax), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x810(%rax)
movq 0x50(%rsp), %rax
movq $0x0, 0x808(%rax)
movq 0x50(%rsp), %rax
movq $0x0, 0x818(%rax)
movq 0x50(%rsp), %rax
testb $0x1, 0x8f1(%rax)
jne 0x2a836e
movq 0x50(%rsp), %rax
movq 0x860(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x860(%rax)
jmp 0x2a8385
movq 0x50(%rsp), %rax
movq 0x8f8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8f8(%rax)
jmp 0x2a8387
cmpl $0x0, 0x34(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2a839a
jmp 0x2a8570
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x19b60
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x2a83c0
jmp 0x2a8570
testb $0x1, 0xf(%rsp)
jne 0x2a84e4
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
jne 0x2a83dd
jmp 0x2a8570
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x2a84ce
jmp 0x2a83f0
movq 0x48(%rsp), %rdi
callq 0x192b0
movq %rax, %rcx
xorl %eax, %eax
cmpq $0xff, %rcx
movb %al, 0xd(%rsp)
jne 0x2a8430
movq 0x48(%rsp), %rax
movsbl 0xfe(%rax), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, 0xd(%rsp)
je 0x2a8430
cmpq $0x0, 0x28(%rsp)
setne %al
movb %al, 0xd(%rsp)
movb 0xd(%rsp), %al
testb $0x1, %al
jne 0x2a843a
jmp 0x2a8455
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x19b60
movq %rax, 0x28(%rsp)
jmp 0x2a83f0
movq 0x50(%rsp), %rax
movq 0x818(%rax), %rax
addq $0x1, %rax
movq 0x50(%rsp), %rcx
cmpq 0x940(%rcx), %rax
jbe 0x2a84c7
movq 0x50(%rsp), %rax
movq 0x818(%rax), %rcx
addq $0x1, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x940(%rax)
movq 0x50(%rsp), %rax
movq 0x928(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x940(%rax), %rsi
leaq 0x2dcb02(%rip), %rdx    # 0x584fb0
movl $0x3b6, %ecx            # imm = 0x3B6
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x928(%rax)
movb $0x1, 0xf(%rsp)
jmp 0x2a84dd
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x2a5db0
jmp 0x2a84df
jmp 0x2a856b
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x928(%rax), %rdx
leaq 0x10(%rsp), %rcx
callq 0x2a68c0
movl %eax, 0x34(%rsp)
cmpl $-0x1, 0x34(%rsp)
jne 0x2a8517
movl $0xfffffffe, 0x34(%rsp) # imm = 0xFFFFFFFE
cmpl $0x0, 0x34(%rsp)
jne 0x2a8569
movq 0x10(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq 0x818(%rcx), %rax
jne 0x2a8569
movq 0x50(%rsp), %rax
cmpq $-0x1, 0x958(%rax)
je 0x2a855b
movq 0x50(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x928(%rax), %rsi
movq 0x10(%rsp), %rdx
callq 0x2a6980
movq $0x0, 0x10(%rsp)
movb $0x0, 0xf(%rsp)
jmp 0x2a856b
jmp 0x2a8387
cmpl $0x0, 0x34(%rsp)
jne 0x2a8581
movq 0x50(%rsp), %rdi
callq 0x2a5b50
cmpl $0x0, 0x34(%rsp)
jne 0x2a85a0
movq 0x50(%rsp), %rax
testb $0x1, 0x8f1(%rax)
jne 0x2a85a0
movq 0x50(%rsp), %rdi
callq 0x2a57b0
cmpl $0x0, 0x34(%rsp)
jne 0x2a85ef
testb $0x1, 0x27(%rsp)
jne 0x2a85ef
movq 0x50(%rsp), %rax
testb $0x1, 0x8f1(%rax)
je 0x2a85ef
movq 0x50(%rsp), %rax
movq 0x8f8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8f8(%rax)
movq 0x18(%rsp), %rcx
subq $0x1, %rcx
movq 0x50(%rsp), %rax
addq 0x900(%rax), %rcx
movq %rcx, 0x900(%rax)
movl 0x34(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)