// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/ltr/ltrdigest_strand_assign_visitor.c
// Function: gt_ltrdigest_strand_assign_visitor_feature_node
static int gt_ltrdigest_strand_assign_visitor_feature_node(GtNodeVisitor *nv,
                                                 GtFeatureNode *fn,
                                                 GT_UNUSED GtError *err)
{
  GtLTRdigestStrandAssignVisitor *lv;
  GtFeatureNodeIterator *fni;
  GtFeatureNode *curnode = NULL;
  int had_err = 0;
  lv = gt_ltrdigest_strand_assign_visitor_cast(nv);
  gt_assert(lv);
  gt_error_check(err);

  lv->strand = GT_STRAND_UNKNOWN;
  fni = gt_feature_node_iterator_new(fn);
  while (!had_err && (curnode = gt_feature_node_iterator_next(fni))) {
    GtStrand node_strand = gt_feature_node_get_strand(curnode);
    if (lv->strand == GT_STRAND_UNKNOWN && node_strand != lv->strand)
      lv->strand = node_strand;
    else {
      if (node_strand != GT_STRAND_UNKNOWN && node_strand != lv->strand) {
        gt_warning("inconsistent strands encountered in `%s' feature "
                   "in file %s, line %u: found %c, expected %c",
                   gt_feature_node_get_type(curnode),
                   gt_genome_node_get_filename((GtGenomeNode*) curnode),
                   gt_genome_node_get_line_number((GtGenomeNode*) curnode),
                   GT_STRAND_CHARS[node_strand],
                   GT_STRAND_CHARS[lv->strand]);
      }
    }
  }
  gt_feature_node_iterator_delete(fni);

  if (!had_err && lv->strand != GT_STRAND_UNKNOWN) {
    gt_feature_node_set_strand(fn, lv->strand);
    fni = gt_feature_node_iterator_new(fn);
    while (!had_err && (curnode = gt_feature_node_iterator_next(fni))) {
      gt_feature_node_set_strand(curnode, lv->strand);
    }
    gt_feature_node_iterator_delete(fni);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1c3577
movq %rax, %rdi
movq %rbx, %rsi
callq 0x102dfe
testq %rax, %rax
je 0x1c36fb
movq %rax, %rbx
testq %r15, %r15
je 0x1c35f4
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1c3725
movl $0x3, 0x10(%rbx)
movq %r14, (%rsp)
movq %r14, %rdi
callq 0xdc6f0
movq %rax, %r15
movq %r15, %rdi
callq 0xdc92e
testq %rax, %rax
je 0x1c36a1
movq %rax, %r13
movq %rax, %rdi
callq 0xd9d99
movl %eax, %ebp
movl 0x10(%rbx), %eax
cmpl $0x3, %eax
setne %cl
cmpl $0x3, %ebp
sete %dl
orb %cl, %dl
je 0x1c3699
cmpl $0x3, %ebp
sete %cl
cmpl %eax, %ebp
sete %al
orb %cl, %al
jne 0x1c360a
movq %r13, %rdi
callq 0xda338
movq %rax, %r14
movq %r13, %rdi
callq 0xdd0b5
movq %rax, %r12
movq %r13, %rdi
callq 0xdd108
movl %ebp, %ecx
leaq 0x14a6e3(%rip), %rdx    # 0x30dd54
movsbl (%rcx,%rdx), %r8d
movl 0x10(%rbx), %ecx
movsbl (%rcx,%rdx), %r9d
leaq 0x19dac5(%rip), %rdi    # 0x36114a
movq %r14, %rsi
movq %r12, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0xb2cd0
jmp 0x1c360a
movl %ebp, 0x10(%rbx)
jmp 0x1c360a
movq %r15, %rdi
callq 0xdc9f1
movl 0x10(%rbx), %esi
cmpl $0x3, %esi
je 0x1c36ea
movq (%rsp), %r14
movq %r14, %rdi
callq 0xdab34
movq %r14, %rdi
callq 0xdc6f0
movq %rax, %r14
movq %r14, %rdi
callq 0xdc92e
testq %rax, %rax
je 0x1c36e2
movl 0x10(%rbx), %esi
movq %rax, %rdi
callq 0xdab34
jmp 0x1c36c8
movq %r14, %rdi
callq 0xdc9f1
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x274866(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x121907(%rip), %rsi    # 0x2e5013
leaq 0x19cc2e(%rip), %rdx    # 0x360341
leaq 0x19d9d6(%rip), %rcx    # 0x3610f0
leaq 0x19d9ff(%rip), %r8     # 0x361120
pushq $0x32
jmp 0x1c374d
movq 0x27483c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1218dd(%rip), %rsi    # 0x2e5013
leaq 0x121a82(%rip), %rdx    # 0x2e51bf
leaq 0x19d9ac(%rip), %rcx    # 0x3610f0
leaq 0x19d9d5(%rip), %r8     # 0x361120
pushq $0x33
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390