// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/feature_index.c
// Function: gt_feature_index_add_gff3file
int gt_feature_index_add_gff3file(GtFeatureIndex *feature_index,
                                  const char *gff3file, GtError *err)
{
  GtNodeStream *gff3_in_stream;
  GtGenomeNode *gn;
  GtArray *tmp;
  int had_err = 0;
  GtUword i;
  gt_error_check(err);
  gt_assert(feature_index && gff3file);
  tmp = gt_array_new(sizeof (GtGenomeNode*));
  gff3_in_stream = gt_gff3_in_stream_new_unsorted(1, &gff3file);
  while (!(had_err = gt_node_stream_next(gff3_in_stream, &gn, err)) && gn)
    gt_array_add(tmp, gn);
  if (!had_err) {
    GtNodeVisitor *feature_visitor = gt_feature_visitor_new(feature_index);
    for (i=0;i<gt_array_size(tmp);i++) {
      gn = *(GtGenomeNode**) gt_array_get(tmp, i);
      /* no need to lock, add_*_node() is synchronized */
      had_err = gt_genome_node_accept(gn, feature_visitor, NULL);
      gt_assert(!had_err); /* cannot happen */
    }
    gt_node_visitor_delete(feature_visitor);
  }
  gt_node_stream_delete(gff3_in_stream);
  for (i=0;i<gt_array_size(tmp);i++)
    gt_genome_node_delete(*(GtGenomeNode**) gt_array_get(tmp, i));
  gt_array_delete(tmp);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, 0x10(%rsp)
testq %rdx, %rdx
je 0x16c1e
movq %r12, %rdi
callq 0xc103
testb %al, %al
jne 0x16d86
movq %r14, 0x8(%rsp)
testq %r14, %r14
je 0x16d55
testq %rbx, %rbx
je 0x16d55
pushq $0x8
popq %r13
movq %r13, %rdi
callq 0x4b380
movq %rax, %rbx
pushq $0x1
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x1d949
movq %rax, %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x25c62
movl %eax, %ebp
testl %eax, %eax
jne 0x16c82
cmpq $0x0, (%rsp)
je 0x16c82
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x4b801
jmp 0x16c57
testl %ebp, %ebp
jne 0x16d0c
movq 0x8(%rsp), %rdi
callq 0x1be4d
movq %rax, %r15
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x4b988
cmpq %rax, %r12
jae 0x16d02
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b48e
movq (%rax), %rdi
movq %rdi, (%rsp)
movq %r15, %rsi
xorl %edx, %edx
callq 0x1c56c
incq %r12
testl %eax, %eax
je 0x16c9a
movq 0x1172e7(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xb338b(%rip), %rsi     # 0xca066
leaq 0xb3931(%rip), %rdx     # 0xca613
leaq 0xb6691(%rip), %rcx     # 0xcd37a
leaq 0xb6535(%rip), %r8      # 0xcd225
movl $0xc3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq %r15, %rdi
callq 0x264ba
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x25bbb
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x4b988
cmpq %rax, %r14
jae 0x16d3c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4b48e
movq (%rax), %rdi
callq 0x1d1e3
incq %r14
jmp 0x16d17
movq %rbx, %rdi
callq 0x4c19d
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x11725c(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xb3300(%rip), %rsi     # 0xca066
leaq 0xb662b(%rip), %rdx     # 0xcd398
leaq 0xb6606(%rip), %rcx     # 0xcd37a
leaq 0xb64aa(%rip), %r8      # 0xcd225
movl $0xb8, %r9d
jmp 0x16cf6
movq 0x11722b(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xb32cf(%rip), %rsi     # 0xca066
leaq 0xb38bb(%rip), %rdx     # 0xca659
leaq 0xb65d5(%rip), %rcx     # 0xcd37a
leaq 0xb6479(%rip), %r8      # 0xcd225
movl $0xb7, %r9d
jmp 0x16cf6