// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-spmlist.c
// Function: parse_line
static inline int parse_line(GtStr *s, GtUword min_length,
    GtSpmproc proc_e, GtSpmprocA proc_a, void *data, GtError *err)
{
  int had_err = 0;
  GtSplitter *splitter;
  char **tokens = NULL;
  GtUword suffix_seqnum = 0, prefix_seqnum = 0, suffix_length = 0,
                prefix_length, unit_edist;
  bool suffixseq_direct = true, prefixseq_direct = true, exact;

  exact = (proc_e != NULL) ? true : false;
  splitter = gt_splitter_new();
  gt_splitter_split(splitter, gt_str_get(s), gt_str_length(s), ' ');
  if (gt_splitter_size(splitter) != (exact ? 5UL : 7UL))
  {
    gt_error_set(err, "Wrong number of tokens");
    had_err = -1;
  }
  if (!had_err) tokens = gt_splitter_get_tokens(splitter);
  GT_SPMLIST_PARSE(0, gt_parse_uword, &suffix_seqnum);
  GT_SPMLIST_PARSE(1, parse_plusminus, &suffixseq_direct);
  GT_SPMLIST_PARSE(2, gt_parse_uword, &prefix_seqnum);
  GT_SPMLIST_PARSE(3, parse_plusminus, &prefixseq_direct);
  GT_SPMLIST_PARSE(4, gt_parse_uword, &suffix_length);
  if (!exact)
  {
    GT_SPMLIST_PARSE(5, gt_parse_uword, &prefix_length);
    GT_SPMLIST_PARSE(6, gt_parse_uword, &unit_edist);
  }
  if (!had_err)
  {
    if (exact && suffix_length >= min_length)
    {
      gt_assert(proc_e != NULL);
      proc_e(suffix_seqnum, prefix_seqnum, suffix_length,
          suffixseq_direct, prefixseq_direct, data);
    }
    else if (!exact && (suffix_length >= min_length ||
          prefix_length >= min_length))
    {
      gt_assert(proc_a != NULL);
      proc_a(suffix_seqnum, prefix_seqnum, suffix_length, prefix_length,
          unit_edist, suffixseq_direct, prefixseq_direct, data);
    }
  }
  gt_splitter_delete(splitter);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r14
movq %r8, 0x20(%rsp)
andq $0x0, 0x18(%rsp)
movq %rcx, 0x30(%rsp)
andq $0x0, 0x10(%rsp)
movq %rdx, %r15
andq $0x0, 0x8(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdi, %r12
movb $0x1, %al
movb %al, 0x7(%rsp)
movb %al, 0x6(%rsp)
xorl %r13d, %r13d
testq %rdx, %rdx
sete %r13b
callq 0xab2f4
movq %rax, %rbx
movq %r12, %rdi
callq 0xad1fa
movq %rax, %rbp
movq %r12, %rdi
callq 0xad289
pushq $0x20
popq %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xab309
movq %rbx, %rdi
callq 0xab625
leaq 0x5(,%r13,2), %rcx
cmpq %rcx, %rax
jne 0x17ecd0
movq %rbx, %rdi
callq 0xab54d
testq %rax, %rax
je 0x17ee64
movq %rax, %r12
movq (%rax), %rsi
leaq 0x18(%rsp), %rdi
callq 0x9bd05
testl %eax, %eax
je 0x17ece3
movl %eax, %ebp
leaq 0x1d00db(%rip), %rsi    # 0x34ed9d
movq %r14, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x89dbb
jmp 0x17ed0d
leaq 0x1d0095(%rip), %rsi    # 0x34ed6c
movq %r14, %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x17ed0a
movq 0x8(%r12), %rsi
leaq 0x7(%rsp), %rdi
callq 0x17eeca
testl %eax, %eax
je 0x17ed26
leaq 0x1d00a0(%rip), %rsi    # 0x34ed9d
pushq $0x1
popq %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
movq %rbx, %rdi
callq 0xab666
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r12), %rsi
leaq 0x10(%rsp), %rdi
callq 0x9bd05
testl %eax, %eax
je 0x17ed4d
movl %eax, %ebp
leaq 0x1d005b(%rip), %rsi    # 0x34ed9d
pushq $0x2
popq %rdx
movq %r14, %rdi
jmp 0x17ecc7
movq 0x18(%r12), %rsi
leaq 0x6(%rsp), %rdi
callq 0x17eeca
testl %eax, %eax
je 0x17ed6b
leaq 0x1d0036(%rip), %rsi    # 0x34ed9d
pushq $0x3
jmp 0x17ecff
movq 0x20(%r12), %rsi
leaq 0x8(%rsp), %rdi
callq 0x9bd05
testl %eax, %eax
je 0x17ed8b
movl %eax, %ebp
leaq 0x1d0016(%rip), %rsi    # 0x34ed9d
pushq $0x4
jmp 0x17ed44
testq %r15, %r15
je 0x17edc4
movq 0x8(%rsp), %rdx
xorl %ebp, %ebp
cmpq 0x28(%rsp), %rdx
jb 0x17ed0d
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movzbl 0x7(%rsp), %ecx
movzbl 0x6(%rsp), %r8d
movq 0x20(%rsp), %r9
callq *%r15
jmp 0x17ed0d
movq 0x28(%r12), %rsi
leaq 0x40(%rsp), %rdi
callq 0x9bd05
testl %eax, %eax
je 0x17ede7
movl %eax, %ebp
leaq 0x1cffbd(%rip), %rsi    # 0x34ed9d
pushq $0x5
jmp 0x17ed44
movq 0x30(%r12), %rsi
leaq 0x38(%rsp), %rdi
callq 0x9bd05
testl %eax, %eax
je 0x17ee0a
movl %eax, %ebp
leaq 0x1cff9a(%rip), %rsi    # 0x34ed9d
pushq $0x6
jmp 0x17ed44
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rsi
cmpq %rsi, %rdx
setb %al
movq 0x40(%rsp), %rcx
cmpq %rsi, %rcx
setb %sil
xorl %ebp, %ebp
testb %sil, %al
jne 0x17ed0d
movq 0x30(%rsp), %r10
testq %r10, %r10
je 0x17ee9c
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x38(%rsp), %r8
movzbl 0x7(%rsp), %r9d
movzbl 0x6(%rsp), %eax
pushq 0x20(%rsp)
pushq %rax
callq *%r10
popq %rax
popq %rcx
jmp 0x17ed0d
movq 0x2b90fd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16619e(%rip), %rsi    # 0x2e5013
leaq 0x1cff07(%rip), %rdx    # 0x34ed83
leaq 0x1cff0f(%rip), %rcx    # 0x34ed92
leaq 0x1cfd5f(%rip), %r8     # 0x34ebe9
movl $0xb5, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2b90c5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x166166(%rip), %rsi    # 0x2e5013
leaq 0x1cfeff(%rip), %rdx    # 0x34edb3
leaq 0x1cfed7(%rip), %rcx    # 0x34ed92
leaq 0x1cfd27(%rip), %r8     # 0x34ebe9
movl $0xca, %r9d
jmp 0x17ee90