// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %r9, %rbx
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movl %edx, 0x4(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %r13
testq %r9, %r9
je 0x46ac4
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
jne 0x46c7b
testq %r13, %r13
je 0x46c76
cmpq $0x0, 0x8(%rsp)
je 0x46c76
movq %r13, %rdi
callq 0x4a057
testq %rax, %rax
je 0x46c57
movq %rax, %rbp
movq %rbx, 0x10(%rsp)
movq %rbp, %rdi
leaq 0xa0c7c(%rip), %rsi     # 0xe7778
callq 0x3f850
testq %rax, %rax
je 0x46c6c
movq %rax, %rdi
callq 0x722dc
movq %rax, %rbx
callq 0x3a794
movq %rax, %r15
movq %rbx, %rdi
callq 0xb260
movq %r15, %rdi
movq %rbx, 0x28(%rsp)
movq %rbx, %rsi
movq %rax, %rdx
movl $0x2c, %ecx
callq 0x3a7af
movq %r15, %rdi
callq 0x3a9cc
testq %rax, %rax
je 0x46c71
xorl %r14d, %r14d
movq %r15, 0x30(%rsp)
movq %r15, %rdi
callq 0x3a9cc
cmpq %rax, %r14
jae 0x46bf3
movq %r15, %rdi
movq %r14, %rsi
callq 0x3a990
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x4a07f
movl %eax, %ebx
testb %al, %al
je 0x46be0
movq %rbp, %rdi
callq 0x41f30
movq %r13, %r15
movl %eax, %r13d
movq %rbp, %rdi
callq 0x41f10
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xa1c09(%rip), %rsi     # 0xe87b5
leaq 0xa0bc5(%rip), %rdx     # 0xe7778
movq %r12, %rcx
movl %r13d, %r8d
movq %r15, %r13
movq 0x38(%rsp), %r15
movq %rax, %r9
xorl %eax, %eax
leaq 0xa0ba8(%rip), %r10     # 0xe7775
pushq %r10
callq 0x3559f
addq $0x10, %rsp
movq %rbp, %rdi
callq 0x42ade
incq %r14
testb %bl, %bl
je 0x46b56
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x46c1e
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
xorl %ecx, %ecx
movl 0x4(%rsp), %r8d
movq 0x18(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x28(%rsp)
callq 0x47713
addq $0x10, %rsp
movl %eax, %r14d
movq %r15, %rdi
callq 0x3a9dc
movq 0x28(%rsp), %rdi
leaq 0x9f8ae(%rip), %rsi     # 0xe64e0
movl $0x720, %edx            # imm = 0x720
callq 0x362a0
testl %r14d, %r14d
jne 0x46c5a
movq %r13, %rdi
callq 0x4a057
movq %rax, %rbp
testq %rax, %rax
jne 0x46af2
jmp 0x46c5a
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x12920
callq 0x128e7
callq 0x128ae
callq 0x12875