// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/gff3_parser.c
// Function: process_child
static int process_child(GtGenomeNode *child, GtSplitter *parent_splitter,
                         GtFeatureInfo *feature_info, bool strict,
                         unsigned int last_terminator,
                         GtTypeChecker *type_checker, GtQueue *genome_nodes,
                         GtError *err)
{
  GtStrArray *valid_parents;
  GtGenomeNode* parent_gf;
  GtUword i;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(child && parent_splitter && feature_info && genome_nodes);
  valid_parents = gt_str_array_new();
  for (i = 0; !had_err && i < gt_splitter_size(parent_splitter); i++) {
    const char *parent = gt_splitter_get_token(parent_splitter, i);
    parent_gf = (GtGenomeNode*) gt_feature_info_get(feature_info,
                                                    parent);
    gt_assert(parent_gf);
    if (gt_str_cmp(gt_genome_node_get_seqid(parent_gf),
                        gt_genome_node_get_seqid(child))) {
      gt_error_set(err, "child on line %u in file \"%s\" has different "
                   "sequence id than its parent on line %u ('%s' vs. '%s')",
                   gt_genome_node_get_line_number(child),
                   gt_genome_node_get_filename(child),
                   gt_genome_node_get_line_number(parent_gf),
                   gt_str_get(gt_genome_node_get_seqid(child)),
                   gt_str_get(gt_genome_node_get_seqid(parent_gf)));
      gt_genome_node_delete(child);
      had_err = -1;
    }
    if (!had_err && parent_gf == child) {
      gt_error_set(err, "feature on line %u in file \"%s\" is "
                   "self-referential (%s and %s are the same)",
                   gt_genome_node_get_line_number(child),
                   gt_genome_node_get_filename(child),
                   GT_GFF_PARENT, GT_GFF_ID);
      gt_genome_node_delete(child);
      had_err = -1;
    }
    if (!had_err && gt_genome_node_get_line_number(parent_gf) < last_terminator) {
      gt_error_set(err, "the child with %s \"%s\" on line %u in file "
                   "\"%s\" is separated from its corresponding %s on line %u "
                   "by terminator %s on line %u", GT_GFF_PARENT, parent,
                   gt_genome_node_get_line_number(child),
                   gt_genome_node_get_filename(child), GT_GFF_PARENT,
                   gt_genome_node_get_line_number(parent_gf), GT_GFF_TERMINATOR,
                   last_terminator);
      gt_genome_node_delete(child);
      had_err = -1;
    }
    if (!had_err) {
      if (i)
        child = gt_genome_node_ref(child);
      /* check for cycles (in strict mode, no cycles can occur) */
      if (!strict) {
        GtFeatureNodeIterator *fni;
        GtFeatureNode *node;
        fni = gt_feature_node_iterator_new((GtFeatureNode*) child);
        while (!had_err && (node = gt_feature_node_iterator_next(fni))) {
          if (node == (GtFeatureNode*) parent_gf) {
            gt_error_set(err, "linking the feature on line %u in file \"%s\" "
                         "to its %s with %s \"%s\" would cause a cycle",
                         gt_genome_node_get_line_number(child),
                         gt_genome_node_get_filename(child), GT_GFF_PARENT,
                         GT_GFF_ID, parent);
            gt_genome_node_delete(child);
            had_err = -1;
          }
        }
        gt_feature_node_iterator_delete(fni);
      }
    }
    if (!had_err && type_checker) {
      const char *parent_type, *child_type;
      /* check partof relationships */
      parent_type = gt_feature_node_get_type((GtFeatureNode*) parent_gf);
      child_type = gt_feature_node_get_type((GtFeatureNode*) child);
      if (!gt_type_checker_is_partof(type_checker, parent_type, child_type)) {
        gt_error_set(err, "the child feature with type '%s' on line %u in file "
                     "\"%s\" is not part-of parent feature with type '%s' "
                     "given on line %u (according to type checker '%s')",
                     child_type, gt_genome_node_get_line_number(child),
                     gt_genome_node_get_filename(child), parent_type,
                     gt_genome_node_get_line_number(parent_gf),
                     gt_type_checker_description(type_checker));
        gt_genome_node_delete(child);
        had_err = -1;
      }
    }
    if (!had_err) {
      gt_feature_node_add_child((GtFeatureNode*) parent_gf,
                                (GtFeatureNode*) child);
      gt_str_array_add_cstr(valid_parents, parent);
    }
  }
  if (!had_err) {
    gt_assert(gt_splitter_size(parent_splitter) ==
              gt_str_array_size(valid_parents));
    /* make sure all (valid) parents have the same (pseudo-)root */
    if (gt_str_array_size(valid_parents) >= 2) {
      GtArray *roots = find_roots(valid_parents, feature_info);
      dedup_roots(roots);
      if (roots_differ(roots))
        join_roots(roots, feature_info, genome_nodes);
      gt_array_delete(roots);
    }
  }
  gt_str_array_delete(valid_parents);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x28(%rsp)
movq %r8, 0x38(%rsp)
movl %ecx, 0x34(%rsp)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x22f7f
callq 0xc103
testb %al, %al
jne 0x236f5
testq %r12, %r12
je 0x236c4
testq %r15, %r15
je 0x236c4
testq %rbx, %rbx
je 0x236c4
callq 0x1532c
movq %rax, 0x18(%rsp)
xorl %eax, %eax
xorl %r14d, %r14d
movq %rbx, 0x10(%rsp)
movq %r15, 0x20(%rsp)
testl %eax, %eax
jne 0x232f4
movq %r15, %rdi
callq 0x127fd
cmpq %rax, %r14
jae 0x23301
movq %r15, %rdi
movq %r14, 0x8(%rsp)
movq %r14, %rsi
callq 0x12765
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x64687
testq %rax, %rax
je 0x235ff
movq %rax, %r14
movq %rax, %rdi
callq 0x1c31a
movq %rax, %rbp
movq %r12, %rdi
callq 0x1c31a
movq %rbp, %rdi
movq %rax, %rsi
callq 0x14573
testl %eax, %eax
je 0x230ac
movq %r12, %rdi
callq 0x1c2d8
movl %eax, %ebp
movq %r12, %rdi
callq 0x1c285
movq %rax, %r13
movq %r14, %rdi
callq 0x1c2d8
movl %eax, %ebx
movq %r12, %rdi
callq 0x1c31a
movq %rax, %rdi
callq 0x143d2
movq %rax, %r15
movq %r14, %rdi
callq 0x1c31a
movq %rax, %rdi
callq 0x143d2
movq %rax, %r10
subq $0x8, %rsp
movq 0x90(%rsp), %rdi
leaq 0xae267(%rip), %rsi     # 0xd12db
movl %ebp, %edx
movq %r13, %rcx
movl %ebx, %r8d
movq 0x18(%rsp), %rbx
movq %r15, %r9
movq 0x28(%rsp), %r15
xorl %eax, %eax
pushq %r10
callq 0xc007
popq %rax
popq %rcx
movq %r12, %rdi
callq 0x1d1e3
pushq $-0x1
popq %rax
movq 0x8(%rsp), %r14
incq %r14
jmp 0x22fb3
cmpq %r12, %r14
je 0x2312f
movq %r14, %rdi
callq 0x1c2d8
movq 0x38(%rsp), %rcx
cmpl %ecx, %eax
jae 0x23174
movq %r12, %rdi
movq %rcx, %rbp
callq 0x1c2d8
movl %eax, %ebx
movq %r12, %rdi
callq 0x1c285
movq %rax, %r15
movq %r14, %rdi
callq 0x1c2d8
movl %eax, %r10d
movq 0x88(%rsp), %rdi
leaq 0xae293(%rip), %rsi     # 0xd138b
leaq 0xad617(%rip), %rdx     # 0xd0716
movq %r13, %rcx
movl %ebx, %r8d
movq 0x10(%rsp), %rbx
movq %r15, %r9
movq 0x20(%rsp), %r15
xorl %eax, %eax
pushq %rbp
leaq 0xacbbf(%rip), %r11     # 0xcfcdb
pushq %r11
pushq %r10
pushq %rdx
callq 0xc007
addq $0x20, %rsp
jmp 0x23094
movq %r12, %rdi
callq 0x1c2d8
movl %eax, %ebx
movq %r12, %rdi
callq 0x1c285
movq 0x88(%rsp), %rdi
leaq 0xae1ee(%rip), %rsi     # 0xd133e
movl %ebx, %edx
movq 0x10(%rsp), %rbx
movq %rax, %rcx
leaq 0xad5b5(%rip), %r8      # 0xd0716
leaq 0xad5ab(%rip), %r9      # 0xd0713
xorl %eax, %eax
callq 0xc007
jmp 0x23094
cmpq $0x0, 0x8(%rsp)
je 0x23187
movq %r12, %rdi
callq 0x1bec8
movq %rax, %r12
cmpb $0x0, 0x34(%rsp)
je 0x2319f
cmpq $0x0, 0x28(%rsp)
jne 0x23235
jmp 0x232cb
movq %r12, %rdi
callq 0x1b8e0
movq %rax, %rbp
movb $0x1, %r15b
testb $0x1, %r15b
je 0x23216
movq %rbp, %rdi
callq 0x1bb1e
testq %rax, %rax
je 0x23216
cmpq %r14, %rax
setne %r15b
jne 0x231ad
movq %r12, %rdi
callq 0x1c2d8
movl %eax, %ebx
movq %r12, %rdi
callq 0x1c285
subq $0x8, %rsp
movq 0x90(%rsp), %rdi
leaq 0xae21a(%rip), %rsi     # 0xd1408
movl %ebx, %edx
movq %rax, %rcx
leaq 0xad51c(%rip), %r8      # 0xd0716
leaq 0xad512(%rip), %r9      # 0xd0713
xorl %eax, %eax
pushq %r13
callq 0xc007
popq %rax
popq %rcx
movq %r12, %rdi
callq 0x1d1e3
jmp 0x231ad
cmpq $0x0, 0x28(%rsp)
setne %bl
movq %rbp, %rdi
callq 0x1bbe1
testb %r15b, %bl
movq 0x10(%rsp), %rbx
je 0x232c5
movq %r14, %rdi
callq 0x19528
movq %rax, %r15
movq %r12, %rdi
callq 0x19528
movq %rax, %rbp
movq 0x28(%rsp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x29460
testb %al, %al
jne 0x232cb
movq %r12, %rdi
callq 0x1c2d8
movl %eax, %ebx
movq %r12, %rdi
callq 0x1c285
movq %r15, %r13
movq %rax, %r15
movq %r14, %rdi
callq 0x1c2d8
movl %eax, %r14d
movq 0x28(%rsp), %rdi
callq 0x29369
movq %rax, %r10
movq 0x88(%rsp), %rdi
leaq 0xae1c1(%rip), %rsi     # 0xd145f
movq %rbp, %rdx
movl %ebx, %ecx
movq 0x10(%rsp), %rbx
movq %r15, %r8
movq %r13, %r9
xorl %eax, %eax
pushq %r10
pushq %r14
callq 0xc007
popq %rax
popq %rcx
movq %r12, %rdi
callq 0x1d1e3
jmp 0x232e7
testb $0x1, %r15b
je 0x232e7
movq %r14, %rdi
movq %r12, %rsi
callq 0x19245
movq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x15407
xorl %eax, %eax
jmp 0x232ea
pushq $-0x1
popq %rax
movq 0x20(%rsp), %r15
jmp 0x2309f
movq 0x18(%rsp), %r14
pushq $-0x1
popq %rbx
jmp 0x235e6
movq %r15, %rdi
callq 0x127fd
movq %rax, %rbx
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x157f4
cmpq %rax, %rbx
jne 0x23726
movq %r14, %rdi
callq 0x157f4
xorl %ebx, %ebx
cmpq $0x2, %rax
jb 0x235e6
testq %r14, %r14
je 0x237b9
pushq $0x8
popq %r14
movq %r14, %rdi
callq 0x4b380
movq %rax, %r15
xorl %r12d, %r12d
leaq 0x40(%rsp), %r13
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
callq 0x157f4
cmpq %rax, %r12
jae 0x2339b
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1555e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x64968
movq %rax, 0x40(%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x4b801
incq %r12
jmp 0x23360
testq %r15, %r15
je 0x237ea
xorl %r14d, %r14d
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r14
jae 0x233fe
leaq 0x1(%r14), %rbx
movq %rbx, %r12
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r12
jae 0x233f9
movq %r15, %rdi
movq %r14, %rsi
callq 0x4b48e
movq (%rax), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x4b48e
cmpq (%rax), %r13
jne 0x233f4
movq %r15, %rdi
movq %r12, %rsi
callq 0x4b580
decq %r12
incq %r12
jmp 0x233bb
movq %rbx, %r14
jmp 0x233a7
movq %r15, %rdi
xorl %esi, %esi
callq 0x4b48e
movq (%rax), %rbx
pushq $0x1
popq %r14
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r14
jae 0x235d7
movq %r15, %rdi
movq %r14, %rsi
callq 0x4b48e
incq %r14
cmpq (%rax), %rbx
je 0x2340f
movq %r15, %rdi
xorl %esi, %esi
callq 0x4b48e
movq (%rax), %r12
pushq $0x1
popq %r14
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r14
jae 0x235d7
movq %r15, %rdi
movq %r14, %rsi
callq 0x4b48e
testq %r12, %r12
je 0x23637
movq (%rax), %r13
testq %r13, %r13
je 0x23637
movq %r12, %rdi
callq 0x19959
movl %eax, %ebp
movq %r13, %rdi
callq 0x19959
movl %ebp, %ecx
andb %al, %cl
cmpb $0x1, %cl
movq 0x10(%rsp), %rbx
jne 0x234f0
movq %r12, %rdi
callq 0x19959
testb %al, %al
je 0x23665
movq %r14, 0x8(%rsp)
movq %r13, %rdi
callq 0x19959
testb %al, %al
je 0x23693
movq %r13, %rdi
callq 0x1ba16
movq %rax, %rbp
movq %rbp, %rdi
callq 0x1bb1e
testq %rax, %rax
je 0x23510
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
callq 0x19245
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6487f
jmp 0x234c5
testb %bpl, %bpl
je 0x2353a
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq 0x80(%rsp), %rcx
callq 0x2381b
jmp 0x235cf
movq %rbp, %rdi
callq 0x1bbe1
movq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x5b2c5
movq %r13, %rdi
callq 0x1d1e3
movq 0x8(%rsp), %r14
jmp 0x235cf
testb $0x1, %al
je 0x23559
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq 0x80(%rsp), %rcx
callq 0x2381b
movq %r13, %r12
jmp 0x235cf
movq %r12, %rdi
callq 0x19959
testb %al, %al
jne 0x23757
movq %r14, %rbp
movq %r13, %rdi
callq 0x19959
testb %al, %al
jne 0x23788
movq %r12, %rdi
callq 0x18efa
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movq 0x10(%rsp), %r14
movq %r14, %rdx
callq 0x22a51
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x22a51
movq %r12, %rdi
movq %rbx, %rsi
movq 0x80(%rsp), %r14
movq %r14, %rdx
callq 0x22b7d
movq %r14, %rdi
movq %r13, %rsi
callq 0x5b2c5
movq %rbx, %r12
movq %rbp, %r14
incq %r14
jmp 0x23444
movq %r15, %rdi
callq 0x4c19d
xorl %ebx, %ebx
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x1583a
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10a9b2(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa6a56(%rip), %rsi     # 0xca066
leaq 0xadcba(%rip), %rdx     # 0xd12d1
leaq 0xadc6c(%rip), %rcx     # 0xd128a
leaq 0xabe6b(%rip), %r8      # 0xcf490
movl $0x2f3, %r9d            # imm = 0x2F3
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0x10a97a(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa6a1e(%rip), %rsi     # 0xca066
leaq 0xadf0d(%rip), %rdx     # 0xd155c
leaq 0xadf37(%rip), %rcx     # 0xd158d
leaq 0xabe33(%rip), %r8      # 0xcf490
movl $0x2ae, %r9d            # imm = 0x2AE
jmp 0x2362b
movq 0x10a94c(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa69f0(%rip), %rsi     # 0xca066
leaq 0xadf1f(%rip), %rdx     # 0xd159c
leaq 0xadf48(%rip), %rcx     # 0xd15cc
leaq 0xabe05(%rip), %r8      # 0xcf490
movl $0x276, %r9d            # imm = 0x276
jmp 0x2362b
movq 0x10a91e(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa69c2(%rip), %rsi     # 0xca066
leaq 0xadf34(%rip), %rdx     # 0xd15df
leaq 0xadf1a(%rip), %rcx     # 0xd15cc
leaq 0xabdd7(%rip), %r8      # 0xcf490
movl $0x277, %r9d            # imm = 0x277
jmp 0x2362b
movq 0x10a8ed(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa6991(%rip), %rsi     # 0xca066
leaq 0xadbbc(%rip), %rdx     # 0xd1298
leaq 0xadba7(%rip), %rcx     # 0xd128a
leaq 0xabda6(%rip), %r8      # 0xcf490
movl $0x2ed, %r9d            # imm = 0x2ED
jmp 0x2362b
movq 0x10a8bc(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa6960(%rip), %rsi     # 0xca066
leaq 0xa6f4c(%rip), %rdx     # 0xca659
leaq 0xadb76(%rip), %rcx     # 0xd128a
leaq 0xabd75(%rip), %r8      # 0xcf490
movl $0x2ec, %r9d            # imm = 0x2EC
jmp 0x2362b
movq 0x10a88b(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa692f(%rip), %rsi     # 0xca066
leaq 0xaddb9(%rip), %rdx     # 0xd14f7
leaq 0xadb45(%rip), %rcx     # 0xd128a
leaq 0xabd44(%rip), %r8      # 0xcf490
movl $0x343, %r9d            # imm = 0x343
jmp 0x2362b
movq 0x10a85a(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa68fe(%rip), %rsi     # 0xca066
leaq 0xadf00(%rip), %rdx     # 0xd166f
leaq 0xadf37(%rip), %rcx     # 0xd16ad
leaq 0xabd13(%rip), %r8      # 0xcf490
movl $0x29b, %r9d            # imm = 0x29B
jmp 0x2362b
movq 0x10a829(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa68cd(%rip), %rsi     # 0xca066
leaq 0xadf20(%rip), %rdx     # 0xd16c0
leaq 0xadf06(%rip), %rcx     # 0xd16ad
leaq 0xabce2(%rip), %r8      # 0xcf490
movl $0x29c, %r9d            # imm = 0x29C
jmp 0x2362b
movq 0x10a7f8(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa689c(%rip), %rsi     # 0xca066
leaq 0xadd6c(%rip), %rdx     # 0xd153d
leaq 0xadd6d(%rip), %rcx     # 0xd1545
leaq 0xabcb1(%rip), %r8      # 0xcf490
movl $0x258, %r9d            # imm = 0x258
jmp 0x2362b
movq 0x10a7c7(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa686b(%rip), %rsi     # 0xca066
leaq 0xadd48(%rip), %rdx     # 0xd154a
leaq 0xadd47(%rip), %rcx     # 0xd1550
leaq 0xabc80(%rip), %r8      # 0xcf490
movl $0x2d6, %r9d            # imm = 0x2D6
jmp 0x2362b