// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/reads2twobit.c
// Function: gt_reads2twobit_process_sequence_line
static inline void gt_reads2twobit_process_sequence_line(
    GtReads2TwobitEncodeState *state, const char *line)
{
  GtUword j = 0;
  GtTwobitencoding nextcode;
  char c;
  while (true)
  {
    c = line[j++];
    if (!state->invalid_mode && (nextcode = state->char2code[(unsigned char)c])
        != GT_READS2TWOBIT_CODE_UNDEF)
    {
      if (!state->use_rle)
      {
        GT_READS2TWOBIT_WRITECODE(state->current, nextcode, state->seqlen);
      }
      else
      {
        if (nextcode != state->prevcode)
        {
          if (state->seqlen > 0)
          {
            gt_assert(state->current.globalpos > 0);
            gt_hplstore_set(state->hplengths, state->current.globalpos - 1UL,
                state->hplength);
            state->hsum += state->hplength;
            state->nofh++;
            state->hplength = 0;
          }
          GT_READS2TWOBIT_WRITECODE(state->current, nextcode, state->seqlen);
          state->prevcode = nextcode;
        }
        else
        {
          state->hplength += 1;
        }
      }
      state->exp_qlen++;
    }
    else
    {
      if (c == '\0')
        break;
      if (!isspace(c))
      {
        if (!state->invalid_mode)
          gt_reads2twobit_switch_to_invalid_mode(state);
        state->invalid_total_length++;
        state->seqlen++;
        state->exp_qlen++;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rbx), %r12d
movb 0x8f1(%r14), %bpl
testb %bpl, %bpl
jne 0x1de933
movq (%r14,%r12,8), %r15
cmpq $-0x1, %r15
je 0x1de933
cmpb $0x0, 0x960(%r14)
je 0x1de973
cmpq 0x968(%r14), %r15
jne 0x1de9e4
incb 0x978(%r14)
jmp 0x1deacc
testq %r12, %r12
je 0x1deadb
callq 0x17870
movq (%rax), %rax
movsbq %r12b, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x1dead3
testb %bpl, %bpl
jne 0x1de960
movq %r14, %rdi
callq 0x1deb63
incq 0x900(%r14)
incq 0x808(%r14)
jmp 0x1deacc
incq 0x808(%r14)
incq 0x858(%r14)
movq 0x828(%r14), %rax
shlq $0x2, %rax
orq %r15, %rax
movq %rax, 0x828(%r14)
movl 0x830(%r14), %ecx
incl %ecx
movw %cx, 0x830(%r14)
cmpw $0x20, %cx
jne 0x1de9d7
movq 0x820(%r14), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x820(%r14)
movq %rax, (%rcx)
movw $0x0, 0x830(%r14)
movq $0x0, 0x828(%r14)
incq 0x838(%r14,%r15,8)
jmp 0x1deacc
cmpq $0x0, 0x808(%r14)
je 0x1dea54
movq 0x858(%r14), %rsi
testq %rsi, %rsi
je 0x1deae4
movq 0x970(%r14), %rdi
decq %rsi
movzbl 0x978(%r14), %edx
callq 0x31f624
movzbl 0x978(%r14), %eax
movdqu 0x980(%r14), %xmm0
movd %eax, %xmm1
shufpd $0x2, 0x179fed(%rip), %xmm1 # xmm1 = xmm1[0],mem[1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x980(%r14)
movb $0x0, 0x978(%r14)
movq 0x808(%r14), %rax
incq %rax
jmp 0x1dea59
movl $0x1, %eax
movq %rax, 0x808(%r14)
incq 0x858(%r14)
movq 0x828(%r14), %rax
shlq $0x2, %rax
orq %r15, %rax
movq %rax, 0x828(%r14)
movl 0x830(%r14), %ecx
incl %ecx
movw %cx, 0x830(%r14)
cmpw $0x20, %cx
jne 0x1deabd
movq 0x820(%r14), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x820(%r14)
movq %rax, (%rcx)
movw $0x0, 0x830(%r14)
movq $0x0, 0x828(%r14)
incq 0x838(%r14,%r15,8)
movq %r15, 0x968(%r14)
incq 0x818(%r14)
incq %rbx
jmp 0x1de8f6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x73dc9