// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: process_orphans
static int process_orphans(GtOrphanage *orphanage, GtFeatureInfo *feature_info,
                           bool strict, unsigned int last_terminator,
                           GtTypeChecker *type_checker, GtQueue *genome_nodes,
                           GtError *err)
{
  GtGenomeNode *orphan;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(orphanage && feature_info && genome_nodes);
  while (!had_err && (orphan = gt_orphanage_get_orphan(orphanage))) {
    const char *parent_attr;
    char *parent_attr_dup;
    GtSplitter *splitter;
    GtUword i;
    parent_attr = gt_feature_node_get_attribute((GtFeatureNode*) orphan,
                                                GT_GFF_PARENT);
    gt_assert(parent_attr);
    parent_attr_dup = gt_cstr_dup(parent_attr);
    splitter = gt_splitter_new();
    gt_splitter_split(splitter, parent_attr_dup, strlen(parent_attr_dup), ',');
    gt_assert(gt_splitter_size(splitter));
    /* check for missing parents */
    for (i = 0; !had_err && i < gt_splitter_size(splitter); i++) {
      const char *parent = gt_splitter_get_token(splitter, i);
      if (gt_orphanage_parent_is_missing(orphanage, parent)) {
        gt_error_set(err, "%s \"%s\" on line %u in file \"%s\" was not defined "
                     "(via \"%s=\")", GT_GFF_PARENT, parent,
                     gt_genome_node_get_line_number(orphan),
                     gt_genome_node_get_filename(orphan) , GT_GFF_ID);
        gt_genome_node_delete(orphan);
        had_err = -1;
      }
    }
    if (!had_err) {
      had_err = process_child(orphan, splitter, feature_info, strict,
                              last_terminator, type_checker, genome_nodes, err);
    }
    gt_splitter_delete(splitter);
    gt_free(parent_attr_dup);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movl %edx, 0x4(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %r13
testq %r9, %r9
je 0x4638e
movq %r12, %rdi
callq 0x34fea
testb %al, %al
jne 0x46533
testq %r13, %r13
je 0x4652e
cmpq $0x0, 0x10(%rsp)
je 0x4652e
movq %r12, 0x8(%rsp)
movq %r13, %rdi
callq 0x493ff
testq %rax, %rax
je 0x46520
movq %rax, %rbp
movq %rax, %rdi
leaq 0xa1360(%rip), %rsi     # 0xe7726
callq 0x3eedc
testq %rax, %rax
je 0x46524
movq %rax, %rdi
callq 0x728c0
movq %rax, %r15
callq 0x39f34
movq %rax, %r14
movq %r15, %rdi
callq 0xb260
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl $0x2c, %ecx
callq 0x39f4f
movq %r14, %rdi
callq 0x3a16c
testq %rax, %rax
je 0x46529
movq %r14, %rdi
callq 0x3a16c
testq %rax, %rax
je 0x4644f
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a130
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x49427
testb %al, %al
jne 0x464a2
incq %rbx
movq %r14, %rdi
callq 0x3a16c
cmpq %rax, %rbx
jb 0x46422
movq %rbp, %rdi
movq %r14, %rsi
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
movl 0x4(%rsp), %r8d
movq 0x18(%rsp), %r9
movq 0x8(%rsp), %r12
pushq %r12
pushq 0x28(%rsp)
callq 0x46b29
addq $0x10, %rsp
movl %eax, %ebx
movq %r14, %rdi
callq 0x3a17c
movq %r15, %rdi
leaq 0xa0012(%rip), %rsi     # 0xe64a0
movl $0x720, %edx            # imm = 0x720
callq 0x35c27
testl %ebx, %ebx
je 0x463a8
jmp 0x4650c
movq %rbp, %rdi
callq 0x41592
movl %eax, %ebx
movq %rbp, %rdi
callq 0x41572
subq $0x8, %rsp
leaq 0xa1264(%rip), %r10     # 0xe7723
leaq 0xa229d(%rip), %rsi     # 0xe8763
leaq 0xa1259(%rip), %rdx     # 0xe7726
movq 0x10(%rsp), %rdi
movq %r12, %rcx
movl %ebx, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r10
callq 0x34f1f
addq $0x10, %rsp
movq %rbp, %rdi
callq 0x4210c
movq %r14, %rdi
callq 0x3a17c
leaq 0x9ffa1(%rip), %rsi     # 0xe64a0
movq %r15, %rdi
movl $0x720, %edx            # imm = 0x720
callq 0x35c27
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x46511
callq 0x12805
callq 0x127cc
callq 0x12793
callq 0x1275a