// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
callq 0xa49e0
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x34d50
movq %rax, 0x18(%rsp)
movl $0x0, 0x4(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0xa4b02
movq 0x20(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xa4aca
jmp 0xa4b02
movq 0x10f507(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xb958b(%rip), %rsi     # 0x15e066
leaq 0xb9b66(%rip), %rdx     # 0x15e648
leaq 0xcd708(%rip), %rcx     # 0x1721f1
leaq 0xcd6e0(%rip), %r8      # 0x1721d0
movl $0x118, %r9d            # imm = 0x118
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xa4b04
jmp 0xa4b06
cmpq $0x0, 0x18(%rsp)
je 0xa4b16
cmpq $0x0, 0x28(%rsp)
jne 0xa4b4e
movq 0x10f4bb(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xb953f(%rip), %rsi     # 0x15e066
leaq 0xcd6e2(%rip), %rdx     # 0x172210
leaq 0xcd6bc(%rip), %rcx     # 0x1721f1
leaq 0xcd694(%rip), %r8      # 0x1721d0
movl $0x119, %r9d            # imm = 0x119
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xa4b50
movq 0x28(%rsp), %rdi
callq 0x248a0
movq %rax, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x4(%rsp)
movb %al, 0x3(%rsp)
jne 0xa4b86
movq 0x10(%rsp), %rdi
callq 0x24bd0
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x3(%rsp)
movb 0x3(%rsp), %al
testb $0x1, %al
jne 0xa4b90
jmp 0xa4bac
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rcx
xorl %edx, %edx
callq 0xa4d40
movl %eax, 0x4(%rsp)
jmp 0xa4b5f
movq 0x10(%rsp), %rdi
callq 0x24cf0
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x867b0
movq 0x18(%rsp), %rax
testb $0x1, 0x21(%rax)
je 0xa4c76
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0xa4fc0
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x867b0
movq 0x18(%rsp), %rax
movb $0x0, 0x21(%rax)
movq 0x28(%rsp), %rdi
callq 0x248a0
movq %rax, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x4(%rsp)
movb %al, 0x2(%rsp)
jne 0xa4c33
movq 0x10(%rsp), %rdi
callq 0x24bd0
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x2(%rsp)
movb 0x2(%rsp), %al
testb $0x1, %al
jne 0xa4c3d
jmp 0xa4c59
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rcx
xorl %edx, %edx
callq 0xa4d40
movl %eax, 0x4(%rsp)
jmp 0xa4c0c
movq 0x10(%rsp), %rdi
callq 0x24cf0
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x867b0
jmp 0xa4bc4
movl 0x4(%rsp), %eax
addq $0x38, %rsp
retq
nop