// File: /workspace/github_c_makefile_star2_O3/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, %r15
movq %rsi, %r14
movq %rdi, %r12
testq %rdx, %rdx
je 0x17a3dc
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x17a632
callq 0x11ac6c
movq %rax, %rbx
leaq 0x1e0a6a(%rip), %rsi    # 0x35ae55
leaq 0x21a49b(%rip), %rdx    # 0x39488d
movq %r14, %rdi
movl $0x80, %ecx
callq 0xfcf55
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11b1ff
cmpl $-0x1, %eax
je 0x17a5c7
movq %rbx, 0x18(%rsp)
movq %r14, 0x10(%rsp)
movq %r12, 0x20(%rsp)
movq %rbx, %rdi
callq 0x11b0a1
movq %rax, %r13
movq %rbx, %rdi
callq 0x11b0ca
movq %rax, %rbp
testq %r15, %r15
je 0x17a450
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x17a637
callq 0x11ac6c
movq $0x0, 0x8(%rsp)
testq %rbp, %rbp
je 0x17a5a2
movq %rax, %r12
movq %rbp, %rbx
negq %rbx
movl $0x1, %r14d
movb -0x1(%r13,%r14), %al
cmpb $0x2c, %al
je 0x17a49f
movsbl %al, %esi
movq %r12, %rdi
callq 0x11af23
leaq (%rbx,%r14), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0x17a476
jmp 0x17a5a2
cmpq %rbp, %r14
jae 0x17a5a2
movzbl (%r13,%r14), %eax
movb $0x1, %bl
cmpl $0x2b, %eax
je 0x17a4c0
cmpl $0x2d, %eax
jne 0x17a612
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x11b0a1
movzbl %bl, %esi
movq %rax, %rdi
callq 0x17a1f8
movq %rax, 0x8(%rsp)
leaq 0x1(%r14), %rbx
cmpq %rbp, %rbx
jae 0x17a5a2
cmpb $0x2c, 0x1(%r13,%r14)
leaq 0x21a435(%rip), %r14    # 0x394927
jne 0x17a5ea
cmpb $0x2c, (%r13,%rbx)
jne 0x17a541
incq %rbx
cmpq %rbp, %rbx
jae 0x17a5a2
leaq (%rbx,%r13), %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
leaq 0x28(%rsp), %rcx
xorl %eax, %eax
callq 0x177f0
cmpl $0x2, %eax
jne 0x17a5ea
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x17a29e
incq %rbx
cmpq %rbp, %rbx
jb 0x17a4f8
movq 0x8(%rsp), %rdi
callq 0x17a2ce
testq %rax, %rax
je 0x17a63c
movq %r12, %rdi
callq 0x11bdbf
movl $0x8, %edx
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xd2410
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x11b132
movq %rbx, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x11b1ff
xorl %ebp, %ebp
cmpl $-0x1, %eax
jne 0x17a425
jmp 0x17a5c9
leaq 0x21a31f(%rip), %rsi    # 0x3948c8
movq %r15, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
jmp 0x17a5c9
xorl %ebp, %ebp
movq %r14, %rdi
callq 0xfd09a
movq %rbx, %rdi
callq 0x11bdbf
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21a2d7(%rip), %rsi    # 0x3948c8
movq %r15, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xfcb67
movq 0x8(%rsp), %rdi
callq 0x17a24b
movq %r12, %rdi
callq 0x11bdbf
jmp 0x17a5b6
leaq 0x21a2cd(%rip), %rsi    # 0x3948e6
movq %r15, %rdi
movl $0x2b, %edx
movl $0x2d, %ecx
movq %r13, %r8
xorl %eax, %eax
callq 0xfcb67
jmp 0x17a5fe
callq 0x56052
callq 0x56089
callq 0x560c0
nopl (%rax)