// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/cds_check_visitor.c
// Function: cds_check_visitor_feature_node
static int cds_check_visitor_feature_node(GtNodeVisitor *nv, GtFeatureNode *fn,
                                          GtError *err)
{
  GtCDSCheckVisitor *v = cds_check_visitor_cast(nv);
  GtFeatureNodeIterator *fni;
  GtFeatureNode *node;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(v && fn);
  fni = gt_feature_node_iterator_new(fn);
  while (!had_err && (node = gt_feature_node_iterator_next(fni)))
    had_err = check_cds_phases_if_necessary(node, v, false, err);
  gt_feature_node_iterator_delete(fni);
  gt_hashmap_reset(v->cds_features);
  while (v->splitting_is_necessary) {
    split_cds_features(v->cds_features_to_split, fn);
    gt_hashmap_reset(v->cds_features_to_split);
    v->splitting_is_necessary = false;
    /* perform second pass to correct phases */
    fni = gt_feature_node_iterator_new(fn);
    while (!had_err && (node = gt_feature_node_iterator_next(fni)))
      had_err = check_cds_phases_if_necessary(node, v, false, err);
    gt_feature_node_iterator_delete(fni);
    gt_hashmap_reset(v->cds_features);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %rbx
callq 0x84384
movq %rax, %rdi
movq %rbx, %rsi
callq 0x49c1d
movq %rax, 0x8(%rsp)
testq %r14, %r14
je 0x8443c
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0x84726
testq %rbp, %rbp
je 0x84721
cmpq $0x0, 0x8(%rsp)
je 0x84721
movq %rbp, %rdi
callq 0x4186c
movq %rax, %rbx
movq %rax, %rdi
callq 0x41a02
testq %rax, %rax
je 0x84490
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x8478b
movl %eax, 0x4(%rsp)
testl %eax, %eax
jne 0x84498
movq %rbx, %rdi
callq 0x41a02
testq %rax, %rax
jne 0x84469
jmp 0x84498
movl $0x0, 0x4(%rsp)
movq %rbx, %rdi
callq 0x41a94
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x77249
cmpb $0x1, 0x21(%rbx)
jne 0x846fa
movq %r14, 0x18(%rsp)
movq 0x8(%rsp), %rbx
movq %rbp, 0x20(%rsp)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x84712
movl $0x8, %edi
callq 0x6e93c
movq %rax, %r15
movq %r14, %rdi
leaq 0x814(%rip), %rsi       # 0x84cff
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x771f5
testl %eax, %eax
leaq 0x10(%rsp), %rbx
jne 0x8471c
movq %r15, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x84717
movq %r15, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x84680
xorl %r12d, %r12d
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x6e9fa
movq (%rax), %r14
testq %r14, %r14
je 0x8470d
movq %r12, 0x30(%rsp)
movl $0x8, %edi
callq 0x6e93c
movq %rax, %r15
movq %rbp, %rdi
callq 0x4186c
movq %rax, %r13
movq %rax, %rdi
callq 0x41a02
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x845b1
movq %rax, %rdi
callq 0x41959
movq %rax, %r12
movq %rax, %rdi
callq 0x41a02
testq %rax, %rax
je 0x845a4
cmpq %r14, %rax
jne 0x8459f
movl $0x8, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6ec0e
movq %r12, %rdi
jmp 0x84580
movq %r12, %rdi
callq 0x41a94
movq %r13, %rdi
jmp 0x84563
movq %r13, %rdi
callq 0x41a94
movq %r14, %rdi
callq 0x41ca0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x412e0
movq %r15, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x84655
xorl %r13d, %r13d
movq %r15, %rdi
movq %r13, %rsi
callq 0x6e9fa
movq (%rax), %r12
movq %r12, %rdi
leaq 0x63181(%rip), %rsi     # 0xe7775
callq 0x3f850
movq %rax, %rbp
movq %r14, %rdi
testq %r13, %r13
je 0x8462b
callq 0x40133
movq %rax, %rbx
movq %rax, %rdi
leaq 0x63162(%rip), %rsi     # 0xe7778
movq %rbp, %rdx
callq 0x40300
movq %r12, %rdi
movq %rbx, %rsi
leaq 0x10(%rsp), %rbx
jmp 0x84640
leaq 0x63146(%rip), %rsi     # 0xe7778
movq %rbp, %rdx
callq 0x40300
movq %r12, %rdi
movq %r14, %rsi
callq 0x4005b
incq %r13
movq %r15, %rdi
callq 0x6ecda
cmpq %rax, %r13
jb 0x845dc
movq %r15, %rdi
callq 0x6f134
movq 0x30(%rsp), %r12
incq %r12
movq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x6ecda
cmpq %rax, %r12
movq 0x20(%rsp), %rbp
jb 0x8452c
movq %r15, %rdi
callq 0x6f134
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0x77249
movb $0x0, 0x21(%rbx)
movq %rbp, %rdi
callq 0x4186c
movq %rax, %r14
movl 0x4(%rsp), %ebx
testl %ebx, %ebx
je 0x846d3
movl %ebx, 0x4(%rsp)
movq %r14, %rdi
callq 0x41a94
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x77249
cmpb $0x0, 0x21(%rbx)
jne 0x844c7
jmp 0x846fa
movq %r14, %rdi
callq 0x41a02
testq %rax, %rax
je 0x846ad
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x8478b
movl %eax, %ebx
testl %eax, %eax
je 0x846d3
jmp 0x846ad
movl 0x4(%rsp), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f10a
callq 0x1f17c
callq 0x1f143
callq 0x1f0d1
callq 0x1f098
callq 0x1f05f