// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/reads2twobit.c
// Function: gt_reads2twobit_process_fasta_mate_pair
static inline void gt_reads2twobit_process_fasta_mate_pair(
    GtReads2TwobitEncodeState *state, char *line2, FILE *file2)
{
  char *fgetsretval = NULL;
  bool was_invalid = state->invalid_mode;
  GtUword prev_seqlen = state->seqlen;
  if (line2[0] != '>')
  {
    fgetsretval = fgets(line2, (int)GT_READS2TWOBIT_READBUFFER_SIZE,
        file2);
    gt_assert(fgetsretval == line2);
  }
  gt_assert(line2[0] == '>');
  gt_reads2twobit_process_desc_line(state, line2, true, false);
  GT_READS2TWOBIT_HANDLE_LONG_DESCRIPTIONS(line2, file2, fgetsretval, true,
      state, true);
  state->seqlen = 0;
  state->exp_qlen = 0;
  state->seqlen_mate = state->seqlen;
  if (!state->invalid_mode)
    state->current.nofseqs++;
  else
    state->invalid_sequences++;
  while (true)
  {
    fgetsretval = fgets(line2, (int)GT_READS2TWOBIT_READBUFFER_SIZE, file2);
    if (fgetsretval != line2 || line2[0] == '>')
      break;
    gt_reads2twobit_process_sequence_line(state, line2);
  }
  gt_reads2twobit_finalize_descriptions(state);
  if (!state->invalid_mode)
    gt_reads2twobit_process_sequence_end(state);
  if (!was_invalid && state->invalid_mode)
  {
    state->invalid_sequences++;
    state->invalid_total_length += (prev_seqlen - 1UL);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb 0x8f1(%rdi), %bpl
movq 0x808(%rdi), %rax
movq %rax, (%rsp)
cmpb $0x3e, (%rsi)
jne 0x1decd7
xorl %r12d, %r12d
jmp 0x1decfd
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17c30
cmpq %r15, %rax
jne 0x1dee3c
cmpb $0x3e, (%r15)
movq %r15, %r12
jne 0x1dee41
cmpq $0x0, 0x990(%rbx)
jne 0x1ded11
cmpq $0x0, 0x998(%rbx)
je 0x1ded21
movq 0x950(%rbx), %rdi
leaq 0x1(%r15), %rsi
callq 0x11acf3
leaq 0x808(%rbx), %r13
movq %r15, %rdi
callq 0x172f0
cmpq $0xff, %rax
jne 0x1ded84
testq %r12, %r12
je 0x1ded84
cmpb $0xa, 0xfe(%r15)
je 0x1ded84
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17c30
movq %rax, %r12
testq %rax, %rax
je 0x1ded28
cmpq $0x0, 0x990(%rbx)
jne 0x1ded73
cmpq $0x0, 0x998(%rbx)
je 0x1ded28
movq 0x950(%rbx), %rdi
movq %r15, %rsi
callq 0x11acf3
jmp 0x1ded28
pxor %xmm0, %xmm0
movdqu %xmm0, (%r13)
movq $0x0, 0x10(%r13)
leaq 0x860(%rbx), %rax
leaq 0x8f8(%rbx), %rcx
cmpb $0x0, 0x8f1(%rbx)
cmovneq %rcx, %rax
incq (%rax)
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17c30
cmpq %r15, %rax
jne 0x1dedda
cmpb $0x3e, (%r15)
je 0x1dedda
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1de8e8
jmp 0x1dedb2
movq %rbx, %rdi
callq 0x1de639
cmpb $0x0, 0x8f1(%rbx)
jne 0x1dedf3
movq %rbx, %rdi
callq 0x1de2bf
testb %bpl, %bpl
jne 0x1dee2d
cmpb $0x1, 0x8f1(%rbx)
jne 0x1dee2d
movq (%rsp), %rax
decq %rax
movdqu 0x8f8(%rbx), %xmm0
movq %rax, %xmm1
movdqa 0x198363(%rip), %xmm2   # 0x377180
punpcklqdq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0]
paddq %xmm0, %xmm2
movdqu %xmm2, 0x8f8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x73e3b
callq 0x73e74