// File: /workspace/github_c_makefile_star2_O3/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 0x83f64
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48fc5
movq %rax, 0x8(%rsp)
testq %r14, %r14
je 0x8401c
movq %r14, %rdi
callq 0x34fea
testb %al, %al
jne 0x842f7
testq %rbp, %rbp
je 0x842f2
cmpq $0x0, 0x8(%rsp)
je 0x842f2
movq %rbp, %rdi
callq 0x40ee0
movq %rax, %rbx
movq %rbx, %rdi
callq 0x41076
testq %rax, %rax
je 0x84063
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x8435c
testl %eax, %eax
je 0x8403c
movl %eax, 0x4(%rsp)
jmp 0x8406b
movl $0x0, 0x4(%rsp)
movq %rbx, %rdi
callq 0x41108
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x7772d
cmpb $0x1, 0x21(%rbx)
jne 0x842cb
movq %r14, 0x18(%rsp)
movq 0x8(%rsp), %rbx
movq %rbp, 0x20(%rsp)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x842e3
movl $0x8, %edi
callq 0x6ef7c
movq %rax, %r15
movq %r14, %rdi
leaq 0x7c8(%rip), %rsi       # 0x84886
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x776d9
testl %eax, %eax
leaq 0x10(%rsp), %rbx
jne 0x842ed
movq %r15, %rdi
callq 0x6f310
testq %rax, %rax
je 0x842e8
movq %r15, %rdi
callq 0x6f310
testq %rax, %rax
je 0x84253
xorl %r12d, %r12d
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x6f037
movq (%rax), %r14
testq %r14, %r14
je 0x842de
movq %r12, 0x30(%rsp)
movl $0x8, %edi
callq 0x6ef7c
movq %rax, %r15
movq %rbp, %rdi
callq 0x40ee0
movq %rax, %r13
movq %rax, %rdi
callq 0x41076
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x84184
movq %rax, %rdi
callq 0x40fcd
movq %rax, %r12
movq %rax, %rdi
callq 0x41076
testq %rax, %rax
je 0x84177
cmpq %r14, %rax
jne 0x84172
movl $0x8, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6f240
movq %r12, %rdi
jmp 0x84153
movq %r12, %rdi
callq 0x41108
movq %r13, %rdi
jmp 0x84136
movq %r13, %rdi
callq 0x41108
movq %r14, %rdi
callq 0x4130c
movq %rbp, %rdi
movq %r14, %rsi
callq 0x40957
movq %r15, %rdi
callq 0x6f310
testq %rax, %rax
je 0x84228
xorl %r13d, %r13d
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %r12
movq %r12, %rdi
leaq 0x6355c(%rip), %rsi     # 0xe7723
callq 0x3eedc
movq %rax, %rbp
movq %r14, %rdi
testq %r13, %r13
je 0x841fe
callq 0x3f7c4
movq %rax, %rbx
movq %rax, %rdi
leaq 0x6353d(%rip), %rsi     # 0xe7726
movq %rbp, %rdx
callq 0x3f99b
movq %r12, %rdi
movq %rbx, %rsi
leaq 0x10(%rsp), %rbx
jmp 0x84213
leaq 0x63521(%rip), %rsi     # 0xe7726
movq %rbp, %rdx
callq 0x3f99b
movq %r12, %rdi
movq %r14, %rsi
callq 0x3f6eb
incq %r13
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r13
jb 0x841af
movq %r15, %rdi
callq 0x6f768
movq 0x30(%rsp), %r12
incq %r12
movq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r12
movq 0x20(%rsp), %rbp
jb 0x840ff
movq %r15, %rdi
callq 0x6f768
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0x7772d
movb $0x0, 0x21(%rbx)
movq %rbp, %rdi
callq 0x40ee0
movq %rax, %r14
movl 0x4(%rsp), %eax
testl %eax, %eax
jne 0x842ac
movq %r14, %rdi
callq 0x41076
testq %rax, %rax
je 0x842a5
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x8435c
testl %eax, %eax
je 0x84280
jmp 0x842a7
xorl %eax, %eax
movq 0x8(%rsp), %rbx
movl %eax, 0x4(%rsp)
movq %r14, %rdi
callq 0x41108
movq 0x10(%rbx), %rdi
callq 0x7772d
cmpb $0x0, 0x21(%rbx)
jne 0x8409a
movl 0x4(%rsp), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f0a4
callq 0x1f116
callq 0x1f0dd
callq 0x1f06b
callq 0x1f032
callq 0x1eff9