// File: /workspace/github_c_makefile_star2_O1/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
cmpb $0x3e, (%rsi)
movq %rax, (%rsp)
jne 0x1e8500
xorl %r12d, %r12d
jmp 0x1e851c
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17c30
movq %rax, %r12
cmpq %r15, %rax
jne 0x1e866a
cmpb $0x3e, (%r15)
jne 0x1e8665
cmpq $0x0, 0x990(%rbx)
jne 0x1e853a
cmpq $0x0, 0x998(%rbx)
je 0x1e854a
movq 0x950(%rbx), %rdi
leaq 0x1(%r15), %rsi
callq 0x12097f
leaq 0x808(%rbx), %r13
movq %r15, %rdi
callq 0x172f0
cmpq $0xff, %rax
jne 0x1e85ad
testq %r12, %r12
je 0x1e85ad
cmpb $0xa, 0xfe(%r15)
je 0x1e85ad
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17c30
movq %rax, %r12
testq %rax, %rax
je 0x1e8551
cmpq $0x0, 0x990(%rbx)
jne 0x1e859c
cmpq $0x0, 0x998(%rbx)
je 0x1e8551
movq 0x950(%rbx), %rdi
movq %r15, %rsi
callq 0x12097f
jmp 0x1e8551
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 0x1e8603
cmpb $0x3e, (%r15)
je 0x1e8603
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e811a
jmp 0x1e85db
movq %rbx, %rdi
callq 0x1e7e65
cmpb $0x0, 0x8f1(%rbx)
jne 0x1e861c
movq %rbx, %rdi
callq 0x1e7aeb
testb %bpl, %bpl
jne 0x1e8656
cmpb $0x1, 0x8f1(%rbx)
jne 0x1e8656
movq (%rsp), %rax
decq %rax
movdqu 0x8f8(%rbx), %xmm0
movq %rax, %xmm1
movdqa 0x197dca(%rip), %xmm2   # 0x380410
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 0x75b01
callq 0x75ac8