// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb 0x8f1(%rdi), %bpl
movq 0x808(%rdi), %rax
movq %rax, 0x10(%rsp)
cmpb $0x3e, (%rsi)
setne %r12b
je 0x18cc91
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17bc0
cmpq %r15, %rax
jne 0x18cdb6
cmpb $0x3e, (%r15)
jne 0x18cde4
movb %bpl, 0xf(%rsp)
leaq 0x808(%rbx), %r13
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x18c7d7
movq %r15, %rdi
callq 0x172d0
cmpq $0xff, %rax
jne 0x18ccfb
cmpb $0xa, 0xfe(%r15)
sete %al
notb %r12b
orb %al, %r12b
testb $0x1, %r12b
jne 0x18ccfb
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17bc0
testq %rax, %rax
setne %r12b
je 0x18ccaf
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
movl %ebp, %ecx
jmp 0x18ccaa
andq $0x0, 0x10(%r13)
pxor %xmm0, %xmm0
movdqu %xmm0, (%r13)
leaq 0x860(%rbx), %rax
leaq 0x8f8(%rbx), %rcx
cmpb $0x0, 0x8f1(%rbx)
cmovneq %rcx, %rax
incq (%rax)
movb 0xf(%rsp), %bpl
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x17bc0
cmpq %r15, %rax
jne 0x18cd53
cmpb $0x3e, (%r15)
je 0x18cd53
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18c805
jmp 0x18cd2b
movq %rbx, %rdi
callq 0x18c4cd
cmpb $0x0, 0x8f1(%rbx)
jne 0x18cd6c
movq %rbx, %rdi
callq 0x18bfb0
testb %bpl, %bpl
jne 0x18cda7
cmpb $0x1, 0x8f1(%rbx)
jne 0x18cda7
movq 0x10(%rsp), %rax
decq %rax
movdqu 0x8f8(%rbx), %xmm0
movq %rax, %xmm1
movdqa 0x18a6f9(%rip), %xmm2   # 0x317490
punpcklqdq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0]
paddq %xmm0, %xmm2
movdqu %xmm2, 0x8f8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2ab1ab(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15824c(%rip), %rsi    # 0x2e5013
leaq 0x1c6408(%rip), %rdx    # 0x3531d6
leaq 0x1c6416(%rip), %rcx    # 0x3531eb
leaq 0x1c587a(%rip), %r8     # 0x352656
movl $0x483, %r9d            # imm = 0x483
jmp 0x18ce10
movq 0x2ab17d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15821e(%rip), %rsi    # 0x2e5013
leaq 0x1c6417(%rip), %rdx    # 0x353213
leaq 0x1c63e8(%rip), %rcx    # 0x3531eb
leaq 0x1c584c(%rip), %r8     # 0x352656
movl $0x485, %r9d            # imm = 0x485
xorl %eax, %eax
callq 0x17a50
callq 0x17390