// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %r15
movzbl (%rbx), %r13d
movb 0x8f1(%r14), %bpl
testb %bpl, %bpl
jne 0x18c857
movq (%r14,%r13,8), %r12
cmpq $-0x1, %r12
je 0x18c857
cmpb $0x0, 0x960(%r14)
je 0x18c897
cmpq 0x968(%r14), %r12
jne 0x18c904
incb 0x978(%r14)
jmp 0x18c9e4
testq %r13, %r13
je 0x18c9f3
callq 0x17820
movq (%rax), %rax
movsbq %r13b, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x18c9eb
testb %bpl, %bpl
jne 0x18c884
movq %r14, %rdi
callq 0x18ca9a
incq 0x900(%r14)
incq 0x808(%r14)
jmp 0x18c9e4
incq 0x808(%r14)
incq 0x858(%r14)
movq 0x828(%r14), %rax
shlq $0x2, %rax
orq %r12, %rax
movq %rax, 0x828(%r14)
movl 0x830(%r14), %ecx
incl %ecx
movw %cx, 0x830(%r14)
cmpw $0x20, %cx
jne 0x18c8f7
movq 0x820(%r14), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x820(%r14)
movq %rax, (%rcx)
andw $0x0, 0x830(%r14)
andq $0x0, 0x828(%r14)
incq 0x838(%r14,%r12,8)
jmp 0x18c9e4
cmpq $0x0, 0x808(%r14)
movq %r15, %rax
je 0x18c975
movq 0x858(%r14), %rsi
testq %rsi, %rsi
je 0x18ca02
movq 0x970(%r14), %rdi
decq %rsi
movzbl 0x978(%r14), %edx
callq 0x2c0328
movzbl 0x978(%r14), %eax
movdqu 0x980(%r14), %xmm0
movd %eax, %xmm1
shufpd $0x2, 0x1c5cca(%rip), %xmm1 # xmm1 = xmm1[0],mem[1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x980(%r14)
movb $0x0, 0x978(%r14)
movq 0x808(%r14), %rax
incq %rax
movq %rax, 0x808(%r14)
incq 0x858(%r14)
movq 0x828(%r14), %rax
shlq $0x2, %rax
orq %r12, %rax
movq %rax, 0x828(%r14)
movl 0x830(%r14), %ecx
incl %ecx
movw %cx, 0x830(%r14)
cmpw $0x20, %cx
jne 0x18c9d5
movq 0x820(%r14), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x820(%r14)
movq %rax, (%rcx)
andw $0x0, 0x830(%r14)
andq $0x0, 0x828(%r14)
incq 0x838(%r14,%r12,8)
movq %r12, 0x968(%r14)
incq 0x818(%r14)
incq %rbx
jmp 0x18c81a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2ab55f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x158600(%rip), %rsi    # 0x2e5013
leaq 0x1c6426(%rip), %rdx    # 0x352e40
leaq 0x1c643c(%rip), %rcx    # 0x352e5d
leaq 0x1c5c2e(%rip), %r8     # 0x352656
movl $0x260, %r9d            # imm = 0x260
xorl %eax, %eax
callq 0x17a50
callq 0x17390