// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %r9, %r14
movq %r8, 0x18(%rsp)
movq %rcx, 0x30(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq %rax, 0x28(%rsp)
xorl %ebp, %ebp
movq %rdx, 0x40(%rsp)
testq %rdx, %rdx
sete %bpl
callq 0x11f0ac
movq %rax, %r12
movq %rbx, %rdi
callq 0x120d23
movq %rax, %r15
movq %rbx, %rdi
callq 0x120d4c
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl $0x20, %ecx
callq 0x11f0c7
movq %r12, %rdi
callq 0x11f2e4
movq %rax, %r13
leaq 0x5(,%rbp,2), %rbp
cmpq %rbp, %rax
movq %r14, (%rsp)
jne 0x1d7234
movq %r12, %rdi
callq 0x11f299
movq %rax, %r15
jmp 0x1d7248
leaq 0x1e0de1(%rip), %rsi    # 0x3b801c
xorl %r15d, %r15d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq %rbp, %r13
movq (%rsp), %r13
movq 0x40(%rsp), %r14
jne 0x1d728e
testq %r15, %r15
je 0x1d750a
movq (%r15), %rsi
leaq 0x10(%rsp), %rdi
callq 0x11043f
testl %eax, %eax
je 0x1d728c
movl %eax, %ebx
leaq 0x1e0dcf(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x1019cf
jmp 0x1d728e
xorl %ebx, %ebx
movq %r12, 0x38(%rsp)
movb $0x1, %r12b
testl %ebx, %ebx
jne 0x1d7308
testq %r15, %r15
je 0x1d750f
movq 0x8(%r15), %r13
movq %r13, %rdi
callq 0x172f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movb $0x1, %r12b
cmpq $0x1, %rax
jne 0x1d72db
movzbl (%r13), %ecx
xorl %eax, %eax
cmpl $0x2d, %ecx
je 0x1d72df
cmpl $0x2b, %ecx
movq (%rsp), %r13
jne 0x1d72ea
xorl %ebx, %ebx
movb $0x1, %r12b
movb $0x1, %al
jmp 0x1d72ea
xorl %eax, %eax
jmp 0x1d72e6
movb $0x1, %al
xorl %r12d, %r12d
xorl %ebx, %ebx
movq (%rsp), %r13
testb %al, %al
je 0x1d72f2
xorl %ebx, %ebx
jmp 0x1d7308
leaq 0x1e0d54(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1019cf
testl %ebx, %ebx
jne 0x1d7343
testq %r15, %r15
je 0x1d7514
movq 0x10(%r15), %rsi
leaq 0x8(%rsp), %rdi
callq 0x11043f
testl %eax, %eax
je 0x1d7341
movl %eax, %ebx
leaq 0x1e0d1d(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x2, %edx
xorl %eax, %eax
callq 0x1019cf
jmp 0x1d7343
xorl %ebx, %ebx
movb $0x1, %bpl
testl %ebx, %ebx
jne 0x1d73b3
testq %r15, %r15
je 0x1d7519
movq 0x18(%r15), %r13
movq %r13, %rdi
callq 0x172f0
movb $0x1, %bpl
xorl %ebx, %ebx
cmpq $0x1, %rax
jne 0x1d7388
movzbl (%r13), %eax
cmpl $0x2d, %eax
je 0x1d738c
cmpl $0x2b, %eax
movq (%rsp), %r13
jne 0x1d742c
movb $0x1, %bpl
movb $0x1, %al
jmp 0x1d7394
xorl %eax, %eax
jmp 0x1d7390
movb $0x1, %al
xorl %ebp, %ebp
movq (%rsp), %r13
testb %al, %al
jne 0x1d73b3
leaq 0x1e0cae(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x3, %edx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %ebx, %ebx
jne 0x1d73ee
testq %r15, %r15
je 0x1d751e
movq 0x20(%r15), %rsi
leaq 0x28(%rsp), %rdi
callq 0x11043f
testl %eax, %eax
je 0x1d73ec
movl %eax, %ebx
leaq 0x1e0c72(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x4, %edx
xorl %eax, %eax
callq 0x1019cf
jmp 0x1d73ee
xorl %ebx, %ebx
testq %r14, %r14
jne 0x1d7470
testl %ebx, %ebx
jne 0x1d7435
testq %r15, %r15
je 0x1d7523
movq 0x28(%r15), %rsi
leaq 0x50(%rsp), %rdi
callq 0x11043f
testl %eax, %eax
je 0x1d7433
movl %eax, %ebx
leaq 0x1e0c32(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x5, %edx
xorl %eax, %eax
callq 0x1019cf
jmp 0x1d7435
xorl %eax, %eax
jmp 0x1d7394
xorl %ebx, %ebx
testl %ebx, %ebx
jne 0x1d7470
testq %r15, %r15
je 0x1d7528
movq 0x30(%r15), %rsi
leaq 0x48(%rsp), %rdi
callq 0x11043f
testl %eax, %eax
je 0x1d746e
movl %eax, %ebx
leaq 0x1e0bf0(%rip), %rsi    # 0x3b804d
movq %r13, %rdi
movl $0x6, %edx
xorl %eax, %eax
callq 0x1019cf
jmp 0x1d7470
xorl %ebx, %ebx
testl %ebx, %ebx
je 0x1d748f
movq 0x38(%rsp), %rdi
callq 0x11f2f4
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsp), %rdx
testq %r14, %r14
je 0x1d74bc
cmpq 0x20(%rsp), %rdx
jb 0x1d7474
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movzbl %r12b, %ecx
movzbl %bpl, %r8d
movq 0x18(%rsp), %r9
callq *%r14
jmp 0x1d7474
movq 0x20(%rsp), %rsi
cmpq %rsi, %rdx
setb %al
movq 0x50(%rsp), %rcx
cmpq %rsi, %rcx
setb %sil
testb %sil, %al
jne 0x1d7474
movq 0x30(%rsp), %r10
testq %r10, %r10
je 0x1d752d
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x48(%rsp), %r8
movzbl %bpl, %eax
movzbl %r12b, %r9d
pushq 0x18(%rsp)
pushq %rax
callq *%r10
addq $0x10, %rsp
jmp 0x1d7474
callq 0x6d60a
callq 0x6d5d1
callq 0x6d598
callq 0x6d55f
callq 0x6d526
callq 0x6d4ed
callq 0x6d4b4
callq 0x6d47b