// File: /workspace/github_c_makefile_star2_O2/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, 0x10(%rsp)
movq %rdi, %rbx
callq 0x6366c
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2603e
movq %rax, %rcx
testq %r14, %r14
movq %rax, 0x8(%rsp)
je 0x63729
movq %r14, %rdi
callq 0xc103
movq 0x8(%rsp), %rcx
testb %al, %al
jne 0x63aac
movq %r14, 0x18(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x63a7b
testq %rcx, %rcx
je 0x63a7b
movq 0x10(%rsp), %rdi
callq 0x1b8e0
movq %rax, %rbx
xorl %eax, %eax
movl %eax, 0x4(%rsp)
testl %eax, %eax
jne 0x6377b
movq %rbx, %rdi
callq 0x1bb1e
testq %rax, %rax
je 0x6377b
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x63b70
jmp 0x63752
movq %rbx, %rdi
callq 0x1bbe1
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x56030
pushq $0x8
popq %r15
leaq 0x20(%rsp), %r12
cmpb $0x1, 0x21(%rbx)
movl 0x4(%rsp), %eax
jne 0x639a7
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
je 0x639ee
movq %r15, %rdi
callq 0x4b380
movq %rax, %r14
movq %rbx, %rdi
leaq 0x984(%rip), %rsi       # 0x6414e
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x55fe2
testl %eax, %eax
jne 0x63a1c
movq %r14, %rdi
callq 0x4b988
testq %rax, %rax
je 0x63a4a
xorl %ebx, %ebx
movq %r14, 0x28(%rsp)
movq %r14, %rdi
callq 0x4b988
movq %r14, %rdi
cmpq %rax, %rbx
jae 0x6393b
movq %rbx, %rsi
callq 0x4b48e
movq (%rax), %rbp
testq %rbp, %rbp
je 0x639b6
movq %rbx, 0x30(%rsp)
movq %r15, %rdi
callq 0x4b380
movq %rax, %r14
movq 0x10(%rsp), %rdi
callq 0x1b8e0
movq %rax, %r13
movq %r13, %rdi
callq 0x1bb1e
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x63882
movq %rax, %rdi
callq 0x1ba16
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1bb1e
testq %rax, %rax
je 0x63878
cmpq %rbp, %rax
jne 0x63856
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4b801
jmp 0x63856
movq %rbx, %rdi
callq 0x1bbe1
jmp 0x63839
movq %r13, %rdi
callq 0x1bbe1
movq %rbp, %rdi
callq 0x1bec8
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x1afe7
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x4b988
cmpq %rax, %r13
jae 0x63921
movq %r14, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rbx
movq %rbx, %rdi
leaq 0x6ce4c(%rip), %rsi     # 0xd0713
callq 0x18818
movq %rax, %r12
movq %rbp, %rdi
testq %r13, %r13
je 0x638fd
callq 0x1939e
movq %rax, %r15
movq %rax, %rdi
leaq 0x6ce2d(%rip), %rsi     # 0xd0716
movq %r12, %rdx
callq 0x1967b
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x8
popq %r15
jmp 0x63912
leaq 0x6ce12(%rip), %rsi     # 0xd0716
movq %r12, %rdx
callq 0x1967b
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x19245
incq %r13
leaq 0x20(%rsp), %r12
jmp 0x638a2
movq %r14, %rdi
callq 0x4c19d
movq 0x30(%rsp), %rbx
incq %rbx
movq 0x28(%rsp), %r14
jmp 0x637f4
callq 0x4c19d
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0x56030
movb $0x0, 0x21(%rbx)
movq 0x10(%rsp), %rdi
callq 0x1b8e0
movq %rax, %rbx
movl 0x4(%rsp), %eax
movl %eax, 0x4(%rsp)
testl %eax, %eax
jne 0x6398c
movq %rbx, %rdi
callq 0x1bb1e
testq %rax, %rax
je 0x6398c
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x63b70
jmp 0x63963
movq %rbx, %rdi
callq 0x1bbe1
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x56030
jmp 0x6379a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xca5fb(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6669f(%rip), %rsi     # 0xca066
leaq 0x79b98(%rip), %rdx     # 0xdd566
leaq 0x79ba3(%rip), %rcx     # 0xdd578
leaq 0x7992a(%rip), %r8      # 0xdd306
movl $0xe3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0xca5c3(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x66667(%rip), %rsi     # 0xca066
leaq 0x79b21(%rip), %rdx     # 0xdd527
leaq 0x79b32(%rip), %rcx     # 0xdd53f
leaq 0x798f2(%rip), %r8      # 0xdd306
movl $0x103, %r9d            # imm = 0x103
jmp 0x639e2
movq 0xca595(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x66639(%rip), %rsi     # 0xca066
leaq 0x66bdf(%rip), %rdx     # 0xca613
leaq 0x79b04(%rip), %rcx     # 0xdd53f
leaq 0x798c4(%rip), %r8      # 0xdd306
movl $0x107, %r9d            # imm = 0x107
jmp 0x639e2
movq 0xca567(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6660b(%rip), %rsi     # 0xca066
leaq 0x90ac1(%rip), %rdx     # 0xf4523
leaq 0x79ad6(%rip), %rcx     # 0xdd53f
leaq 0x79896(%rip), %r8      # 0xdd306
movl $0x108, %r9d            # imm = 0x108
jmp 0x639e2
movq 0xca536(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x665da(%rip), %rsi     # 0xca066
leaq 0x798b3(%rip), %rdx     # 0xdd346
leaq 0x7988d(%rip), %rcx     # 0xdd327
leaq 0x79865(%rip), %r8      # 0xdd306
movl $0x119, %r9d            # imm = 0x119
jmp 0x639e2
movq 0xca505(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x665a9(%rip), %rsi     # 0xca066
leaq 0x66b95(%rip), %rdx     # 0xca659
leaq 0x7985c(%rip), %rcx     # 0xdd327
leaq 0x79834(%rip), %r8      # 0xdd306
movl $0x118, %r9d            # imm = 0x118
jmp 0x639e2