// File: /workspace/github_c_makefile_star2_O2/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 0x223c4
movq %rbx, %rdi
callq 0xc103
testb %al, %al
jne 0x225f7
movq %rbx, 0x10(%rsp)
testq %r13, %r13
je 0x225c9
cmpq $0x0, 0x8(%rsp)
je 0x225c9
pushq $-0x1
popq %r14
xorl %ebx, %ebx
movq %r13, 0x30(%rsp)
testl %ebx, %ebx
jne 0x22551
movq %r13, %rdi
callq 0x26787
testq %rax, %rax
je 0x2254e
movq %rax, %rbp
movq %rax, %rdi
leaq 0xae307(%rip), %rsi     # 0xd0716
callq 0x18818
testq %rax, %rax
je 0x22563
movq %rax, %rdi
callq 0x4f8ae
movq %rax, %rbx
callq 0x124cc
movq %rax, %r15
movq %rbx, %rdi
callq 0xb260
movq %r15, %rdi
movq %rbx, 0x28(%rsp)
movq %rbx, %rsi
movq %rax, %rdx
pushq $0x2c
popq %rcx
callq 0x124e1
movq %r15, %rdi
callq 0x127fd
testq %rax, %rax
je 0x22591
xorl %ebx, %ebx
xorl %ecx, %ecx
testl %ecx, %ecx
jne 0x224fe
movq %r15, %rdi
callq 0x127fd
cmpq %rax, %rbx
jae 0x22503
movq %r15, %rdi
movq %rbx, %rsi
callq 0x12765
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x267e0
xorl %ecx, %ecx
testb %al, %al
je 0x224f6
movq %rbp, %rdi
callq 0x1c2d8
movl %r14d, %r13d
movl %eax, %r14d
movq %rbp, %rdi
callq 0x1c285
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xaf292(%rip), %rsi     # 0xd1753
leaq 0xae24e(%rip), %rdx     # 0xd0716
movq %r12, %rcx
movl %r14d, %r8d
movl %r13d, %r14d
movq 0x38(%rsp), %r13
movq %rax, %r9
xorl %eax, %eax
leaq 0xae231(%rip), %r10     # 0xd0713
pushq %r10
callq 0xc007
popq %rax
popq %rcx
movq %rbp, %rdi
callq 0x1d1e3
movl %r14d, %ecx
incq %rbx
jmp 0x22463
movl %r14d, %ebx
jmp 0x2252b
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 0x22f40
popq %rcx
popq %rdx
movl %eax, %ebx
movq %r15, %rdi
callq 0x1283e
movq 0x28(%rsp), %rdi
leaq 0xacf51(%rip), %rsi     # 0xcf490
movl $0x720, %edx            # imm = 0x720
callq 0xd249
jmp 0x223e9
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10ba4e(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa7af2(%rip), %rsi     # 0xca066
leaq 0xaec9a(%rip), %rdx     # 0xd1215
leaq 0xaf17c(%rip), %rcx     # 0xd16fe
leaq 0xacf07(%rip), %r8      # 0xcf490
movl $0x70a, %r9d            # imm = 0x70A
jmp 0x225bd
movq 0x10ba20(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa7ac4(%rip), %rsi     # 0xca066
leaq 0xaf18f(%rip), %rdx     # 0xd1738
leaq 0xaf14e(%rip), %rcx     # 0xd16fe
leaq 0xaced9(%rip), %r8      # 0xcf490
movl $0x70e, %r9d            # imm = 0x70E
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0x10b9e8(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa7a8c(%rip), %rsi     # 0xca066
leaq 0xaf12d(%rip), %rdx     # 0xd170e
leaq 0xaf116(%rip), %rcx     # 0xd16fe
leaq 0xacea1(%rip), %r8      # 0xcf490
movl $0x702, %r9d            # imm = 0x702
jmp 0x225bd
movq 0x10b9ba(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa7a5e(%rip), %rsi     # 0xca066
leaq 0xa804a(%rip), %rdx     # 0xca659
leaq 0xaf0e8(%rip), %rcx     # 0xd16fe
leaq 0xace73(%rip), %r8      # 0xcf490
movl $0x701, %r9d            # imm = 0x701
jmp 0x225bd