// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/ltr/ltr_input_check_visitor.c
// Function: gt_ltr_input_check_visitor_feature_node
static int gt_ltr_input_check_visitor_feature_node(GtNodeVisitor *nv,
                                                   GtFeatureNode *fn,
                                                   GtError *err)
{
  GT_UNUSED GtLTRInputCheckVisitor *lv;
  GtFeatureNodeIterator *fni;
  bool seen_left = false;
  GtFeatureNode *curnode = NULL,
                *ltr_retrotrans = NULL,
                *lltr = NULL,
                *rltr = NULL;
  int had_err = 0;
  lv = gt_ltr_input_check_visitor_cast(nv);
  gt_assert(lv);
  gt_error_check(err);

  /* traverse annotation subgraph and find LTR components */
  fni = gt_feature_node_iterator_new(fn);
  while (!had_err && (curnode = gt_feature_node_iterator_next(fni))) {
    if (strcmp(gt_feature_node_get_type(curnode),
               gt_ft_LTR_retrotransposon) == 0) {
      ltr_retrotrans = curnode;
    }
    if (strcmp(gt_feature_node_get_type(curnode),
               gt_ft_long_terminal_repeat) == 0) {
      if (seen_left)
        rltr = curnode;
      else {
        lltr = curnode;
        seen_left = true;
      }
    }
  }
  gt_feature_node_iterator_delete(fni);

  if (lv->only_ltrs) {
    if (!had_err && !ltr_retrotrans) {
      gt_error_set(err, "connected component with %s entry node (%s, line %u) "
                        "does not contain a '%s' node, which is required",
                   gt_feature_node_get_type(fn),
                   gt_genome_node_get_filename((GtGenomeNode*) fn),
                   gt_genome_node_get_line_number((GtGenomeNode*) fn),
                   gt_ft_LTR_retrotransposon);
      had_err = -1;
    }
  }

  if (!had_err && ltr_retrotrans && (!lltr || !rltr)) {
    gt_error_set(err, "LTR_retrotransposon feature (%s, line %u) "
                      "does not contain two %s child features, both of which "
                      "are required",
                 gt_genome_node_get_filename((GtGenomeNode*) ltr_retrotrans),
                 gt_genome_node_get_line_number((GtGenomeNode*) ltr_retrotrans),
                 gt_ft_long_terminal_repeat);
    had_err = -1;
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0x208444
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1630b1
testq %rax, %rax
je 0x208643
movq %rax, %r14
testq %r12, %r12
je 0x2084c9
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0x208648
movq %r15, %rdi
callq 0x143f54
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x1440ea
testq %rax, %rax
je 0x208591
movq %rax, %rbp
movq %r14, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq %r12, 0x20(%rsp)
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rbx, %r14
movq %rbp, %rdi
callq 0x142988
movq %rax, %rdi
leaq 0x18c69e(%rip), %rsi    # 0x394bb7
callq 0x17a40
testl %eax, %eax
cmoveq %rbp, %r12
movq %rbp, %rdi
callq 0x142988
movq %rax, %rdi
leaq 0x18ef82(%rip), %rsi    # 0x3974b8
callq 0x17a40
testb $0x1, %r15b
movq %rbp, %rbx
cmovneq %r14, %rbx
movq %r13, %rcx
cmoveq %r13, %rbp
testl %eax, %eax
sete %al
cmovneq %r14, %rbx
movq %rbp, %r13
cmovneq %rcx, %r13
orb %al, %r15b
movq 0x8(%rsp), %rdi
callq 0x1440ea
movq %rax, %rbp
testq %rax, %rax
jne 0x208504
testq %rbx, %rbx
setne %al
testq %r13, %r13
setne %bl
andb %al, %bl
movq 0x20(%rsp), %rbp
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r14
jmp 0x208599
movq %r12, %rbp
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
callq 0x14417c
cmpb $0x1, 0x10(%r14)
jne 0x2085f0
testq %r12, %r12
jne 0x2085f0
movq %r15, %rdi
callq 0x142988
movq %rax, %rbx
movq %r15, %rdi
callq 0x144606
movq %rax, %r14
movq %r15, %rdi
callq 0x144626
leaq 0x1b70f2(%rip), %rsi    # 0x3bf6c6
leaq 0x18c5dc(%rip), %r9     # 0x394bb7
movq %rbp, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0xfcb67
jmp 0x20862f
testq %r12, %r12
sete %cl
orb %bl, %cl
xorl %eax, %eax
testb $0x1, %cl
jne 0x208634
movq %r12, %rdi
callq 0x144606
movq %rax, %rbx
movq %r12, %rdi
callq 0x144626
leaq 0x1b7112(%rip), %rsi    # 0x3bf72b
leaq 0x18ee98(%rip), %r8     # 0x3974b8
movq %rbp, %rdi
movq %rbx, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x80503
callq 0x804cc