// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/sspliced_alignment_parsing.c
// Function: gt_sspliced_alignment_parse
int gt_sspliced_alignment_parse(GtArray *spliced_alignments,
                                const char *filename,
                                GtError *err)
{
  FILE *input_file;
  GtSSplicedAlignment *sa;
  int had_err = 0;
  GtStr *line;
  gt_error_check(err);

  line = gt_str_new();
  input_file = gt_fa_xfopen(filename, "r");

  while (!had_err && gt_str_read_next_line(line, input_file) != EOF) {
    /* parse input line and save result in spliced alignment */
    had_err = parse_input_line(&sa, gt_str_get(line), gt_str_length(line), err);
    if (!had_err) {
      /* store spliced alignment */
      gt_array_add(spliced_alignments, sa);
      /* reset array */
      gt_str_reset(line);
    }
  }

  gt_fa_xfclose(input_file);
  gt_str_delete(line);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
testq %rdx, %rdx
je 0x11f95e
movq %rbp, %rdi
callq 0x89eb7
testb %al, %al
jne 0x11fc1a
callq 0xacb84
movq %rax, %r15
leaq 0x1db4c0(%rip), %rsi    # 0x2fae2d
leaq 0x215288(%rip), %rdx    # 0x334bfc
movq %r14, %rdi
movl $0x80, %ecx
callq 0x8a3a7
movq %rax, %rbx
movq %rax, 0x18(%rsp)
movq %rbp, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xad4de
cmpl $-0x1, %eax
je 0x11fbec
movq %r15, %rdi
callq 0xad1fa
movq %rax, %r13
movq %r15, %rdi
callq 0xad289
movq %rax, %r12
testq %rbp, %rbp
je 0x11f9cc
movq %rbp, %rdi
callq 0x89eb7
testb %al, %al
jne 0x11fbf0
callq 0xacb84
andq $0x0, 0x8(%rsp)
movq %rax, %r14
movq %r12, %rbx
negq %rbx
pushq $0x1
popq %rbp
leaq (%rbx,%rbp), %rax
cmpq $0x1, %rax
je 0x11fb76
movb -0x1(%r13,%rbp), %al
cmpb $0x2c, %al
je 0x11fa0a
movsbl %al, %esi
movq %r14, %rdi
callq 0xaced9
incq %rbp
jmp 0x11f9e3
cmpq %r12, %rbp
jae 0x11fb76
movzbl (%r13,%rbp), %eax
cmpl $0x2b, %eax
movq %r15, 0x10(%rsp)
je 0x11fa2c
cmpl $0x2d, %eax
jne 0x11fa78
xorl %ebx, %ebx
jmp 0x11fa2e
movb $0x1, %bl
movq %r14, %rdi
callq 0xad1fa
movzbl %bl, %esi
movq %rax, %rdi
callq 0x11f608
movq %rax, 0x8(%rsp)
leaq 0x1(%rbp), %rbx
cmpq %r12, %rbx
jae 0x11fb76
movb $0x1, %r15b
cmpb $0x2c, 0x1(%r13,%rbp)
je 0x11fa9c
xorl %r15d, %r15d
movq (%rsp), %rdi
leaq 0x2151cb(%rip), %rsi    # 0x334c37
movq %r13, %rdx
xorl %eax, %eax
callq 0x89dbb
jmp 0x11fa9c
xorl %r15d, %r15d
movq (%rsp), %rdi
leaq 0x2151cf(%rip), %rsi    # 0x334c55
pushq $0x2b
popq %rdx
pushq $0x2d
popq %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x89dbb
incq %rbp
movq %rbp, %rbx
testb $0x1, %r15b
je 0x11fb90
cmpb $0x2c, (%r13,%rbx)
jne 0x11faf4
leaq 0x1(%rbx), %rbp
cmpq %r12, %rbp
jae 0x11fbd0
movq %r13, %rdi
addq %rbp, %rdi
leaq 0x2151ce(%rip), %rsi    # 0x334c96
leaq 0x30(%rsp), %rdx
leaq 0x28(%rsp), %rcx
xorl %eax, %eax
callq 0x177b0
cmpl $0x2, %eax
jne 0x11fb07
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x11f706
jmp 0x11faf7
movq %rbx, %rbp
incq %rbp
movb $0x1, %r15b
movq %rbp, %rbx
cmpq %r12, %rbp
jb 0x11fa9c
jmp 0x11fb2e
xorl %r15d, %r15d
movq (%rsp), %rdi
leaq 0x215122(%rip), %rsi    # 0x334c37
movq %r13, %rdx
xorl %eax, %eax
callq 0x89dbb
addq $0x2, %rbx
cmpq %r12, %rbx
jb 0x11fa9c
jmp 0x11fb90
movq 0x8(%rsp), %rdi
callq 0x11f765
testq %rax, %rax
je 0x11fc50
movq %r14, %rdi
callq 0xae103
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x5851d
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xad357
movq 0x18(%rsp), %rbx
movq (%rsp), %rbp
jmp 0x11f98d
leaq 0x2150ba(%rip), %rsi    # 0x334c37
movq (%rsp), %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
jmp 0x11fbaa
movq 0x8(%rsp), %rdi
callq 0x11f686
movq %r14, %rdi
callq 0xae103
pushq $-0x1
popq %rbp
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x8a5e5
movq %r15, %rdi
callq 0xae103
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x215060(%rip), %rsi    # 0x334c37
movq (%rsp), %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x89dbb
movq 0x10(%rsp), %r15
jmp 0x11fb8b
xorl %ebp, %ebp
jmp 0x11fbaf
movq 0x318371(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c5412(%rip), %rsi    # 0x2e5013
leaq 0x1c55b7(%rip), %rdx    # 0x2e51bf
leaq 0x215017(%rip), %rcx    # 0x334c26
leaq 0x214fe6(%rip), %r8     # 0x334bfc
pushq $0x23
jmp 0x11fc42
movq 0x318347(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c53e8(%rip), %rsi    # 0x2e5013
leaq 0x1c558d(%rip), %rdx    # 0x2e51bf
leaq 0x214fa7(%rip), %rcx    # 0x334be0
leaq 0x214fbc(%rip), %r8     # 0x334bfc
pushq $0x7d
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x318311(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c53b2(%rip), %rsi    # 0x2e5013
leaq 0x215036(%rip), %rdx    # 0x334c9e
leaq 0x214fb7(%rip), %rcx    # 0x334c26
leaq 0x214f86(%rip), %r8     # 0x334bfc
pushq $0x6e
jmp 0x11fc42
nop