// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/inter_feature_visitor.c
// Function: inter_feature_in_children
static int inter_feature_in_children(GtFeatureNode *current_feature, void *data,
                                     GtError *err)
{
  GtInterFeatureVisitor *aiv = (GtInterFeatureVisitor*) data;
  GtFeatureNode *inter_node;
  GtRange previous_range, current_range, inter_range;
  GtStrand previous_strand, current_strand, inter_strand;
  GtStr *parent_seqid;
  gt_error_check(err);
  gt_assert(current_feature);
  if (gt_feature_node_has_type(current_feature, aiv->outside_type)) {
    if (aiv->previous_feature) {
      /* determine inter range */
      previous_range = gt_genome_node_get_range((GtGenomeNode*)
                                                aiv->previous_feature);
      current_range = gt_genome_node_get_range((GtGenomeNode*) current_feature);
      if (previous_range.end >= current_range.start) {
        gt_warning("overlapping boundary features " GT_WU "-" GT_WU " and "
                   GT_WU "-" GT_WU ", " "not placing '%s' inter-feature",
                   previous_range.start,
                   previous_range.end,
                   current_range.start,
                   current_range.end,
                   aiv->inter_type);
        return 0;
      }
      if (current_range.start - previous_range.end < 2) {
        gt_warning("no space for inter-feature '%s' between " GT_WU " and "
                   GT_WU,
                   aiv->inter_type,
                   previous_range.end,
                   current_range.start);
        return 0;
      }
      inter_range.start = previous_range.end + 1;
      inter_range.end = current_range.start - 1;

      /* determine inter strand */
      previous_strand = gt_feature_node_get_strand(aiv->previous_feature);
      current_strand = gt_feature_node_get_strand(current_feature);
      if (previous_strand != current_strand)
      {
        GtUword curr_ln = gt_genome_node_get_line_number((GtGenomeNode*)
                                                         current_feature);
        GtUword prev_ln = gt_genome_node_get_line_number((GtGenomeNode*)
                                                         aiv->previous_feature);
        const char *filename = gt_genome_node_get_filename((GtGenomeNode*)
                                                           current_feature);
        gt_error_set(err, "feature on line " GT_WU " of '%s' has a different "
                     "strand than the feature on line " GT_WU, curr_ln,
                     filename, prev_ln);
        return -1;
      }
      inter_strand = previous_strand;

      /* determine sequence id */
      parent_seqid =
        gt_genome_node_get_seqid((GtGenomeNode*) aiv->parent_feature);
      gt_assert(!gt_str_cmp(parent_seqid,
                            gt_genome_node_get_seqid((GtGenomeNode*)
                                                     aiv->previous_feature)));
      gt_assert(!gt_str_cmp(parent_seqid,
                            gt_genome_node_get_seqid((GtGenomeNode*)
                                                     current_feature)));

      /* create inter feature */
      inter_node = (GtFeatureNode*)
                   gt_feature_node_new(parent_seqid, aiv->inter_type,
                                       inter_range.start, inter_range.end,
                                       inter_strand);
      gt_feature_node_add_child(aiv->parent_feature, inter_node);
    }
    aiv->previous_feature = current_feature;
  }
  return 0;
}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
cmpq $0x0, 0xa8(%rsp)
je 0x196315
movq 0xa8(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1962dd
jmp 0x196315
movq 0x4a5cbc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x37fd25(%rip), %rsi    # 0x516013
leaq 0x37feca(%rip), %rdx    # 0x5161bf
leaq 0x3c0f1a(%rip), %rcx    # 0x557216
leaq 0x3c0ecb(%rip), %r8     # 0x5571ce
movl $0x30, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x196317
jmp 0x196319
cmpq $0x0, 0xb8(%rsp)
jne 0x19635c
movq 0x4a5c75(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x37fcde(%rip), %rsi    # 0x516013
leaq 0x3c0ef4(%rip), %rdx    # 0x557230
leaq 0x3c0ed3(%rip), %rcx    # 0x557216
leaq 0x3c0e84(%rip), %r8     # 0x5571ce
movl $0x31, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x19635e
movq 0xb8(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x16d960
testb $0x1, %al
jne 0x196380
jmp 0x19669c
movq 0xa0(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x196688
movq 0xa0(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x171cc0
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x171cc0
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x90(%rsp), %rax
cmpq 0x78(%rsp), %rax
jb 0x19644c
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x78(%rsp), %rcx
movq 0x80(%rsp), %r8
movq 0xa0(%rsp), %rax
movq 0x18(%rax), %r9
leaq 0x3c0e0b(%rip), %rdi    # 0x557240
movb $0x0, %al
callq 0x1267d0
movl $0x0, 0xc4(%rsp)
jmp 0x1966a7
movq 0x78(%rsp), %rax
subq 0x90(%rsp), %rax
cmpq $0x2, %rax
jae 0x196496
movq 0xa0(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x90(%rsp), %rdx
movq 0x78(%rsp), %rcx
leaq 0x3c0e13(%rip), %rdi    # 0x557292
movb $0x0, %al
callq 0x1267d0
movl $0x0, 0xc4(%rsp)
jmp 0x1966a7
movq 0x90(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
movq 0x78(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x70(%rsp)
movq 0xa0(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x16cc70
movl %eax, 0x64(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x16cc70
movl %eax, 0x60(%rsp)
movl 0x64(%rsp), %eax
cmpl 0x60(%rsp), %eax
je 0x196558
movq 0xb8(%rsp), %rdi
callq 0x171b20
movl %eax, %eax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x171b20
movl %eax, %eax
movq %rax, 0x20(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x171a90
movq %rax, 0x18(%rsp)
movq 0xa8(%rsp), %rdi
movq 0x28(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r8
leaq 0x3c0d85(%rip), %rsi    # 0x5572c6
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x1966a7
movl 0x64(%rsp), %eax
movl %eax, 0x5c(%rsp)
movq 0xa0(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x171b70
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xa0(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x171b70
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x11e170
cmpl $0x0, %eax
je 0x1965db
movq 0x4a59f6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x37fa5f(%rip), %rsi    # 0x516013
leaq 0x3c0d5b(%rip), %rdx    # 0x557316
leaq 0x3c0c54(%rip), %rcx    # 0x557216
leaq 0x3c0c05(%rip), %r8     # 0x5571ce
movl $0x64, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1965dd
jmp 0x1965df
movq 0x50(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x171b70
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x11e170
cmpl $0x0, %eax
je 0x196640
movq 0x4a5991(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x37f9fa(%rip), %rsi    # 0x516013
leaq 0x3c0d51(%rip), %rdx    # 0x557371
leaq 0x3c0bef(%rip), %rcx    # 0x557216
leaq 0x3c0ba0(%rip), %r8     # 0x5571ce
movl $0x67, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x196642
movq 0x50(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movl 0x5c(%rsp), %r8d
callq 0x16c7e0
movq %rax, 0x98(%rsp)
movq 0xa0(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x98(%rsp), %rsi
callq 0x16d010
movq 0xb8(%rsp), %rcx
movq 0xa0(%rsp), %rax
movq %rcx, 0x28(%rax)
movl $0x0, 0xc4(%rsp)
movl 0xc4(%rsp), %eax
addq $0xc8, %rsp
retq
nopw %cs:(%rax,%rax)