// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq $0x0, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
callq 0x30d490
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x30d55b
movq 0x32ea76(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x208adf(%rip), %rsi    # 0x516013
leaq 0x285b47(%rip), %rdx    # 0x593082
leaq 0x286a8c(%rip), %rcx    # 0x593fce
leaq 0x286ab5(%rip), %r8     # 0x593ffe
movl $0x32, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30d55d
jmp 0x30d55f
cmpq $0x0, 0x40(%rsp)
je 0x30d5af
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x30d577
jmp 0x30d5af
movq 0x32ea22(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x208a8b(%rip), %rsi    # 0x516013
leaq 0x208c30(%rip), %rdx    # 0x5161bf
leaq 0x286a38(%rip), %rcx    # 0x593fce
leaq 0x286a61(%rip), %r8     # 0x593ffe
movl $0x33, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30d5b1
movq 0x38(%rsp), %rax
movl $0x3, 0x10(%rax)
movq 0x48(%rsp), %rdi
callq 0x170b00
movq %rax, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x24(%rsp)
movb %al, 0x1f(%rsp)
jne 0x30d5f3
movq 0x30(%rsp), %rdi
callq 0x170e30
movq %rax, 0x28(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x30d600
jmp 0x30d6be
movq 0x28(%rsp), %rdi
callq 0x16cc70
movl %eax, 0x20(%rsp)
movq 0x38(%rsp), %rax
cmpl $0x3, 0x10(%rax)
jne 0x30d638
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0x10(%rcx), %eax
je 0x30d638
movl 0x20(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x10(%rax)
jmp 0x30d6b9
cmpl $0x3, 0x20(%rsp)
je 0x30d6b7
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0x10(%rcx), %eax
je 0x30d6b7
movq 0x28(%rsp), %rdi
callq 0x16d430
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
callq 0x171a90
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x171b20
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movl %eax, %ecx
movl 0x20(%rsp), %eax
movl %eax, %edi
leaq 0x2320ae(%rip), %rax    # 0x53f73c
movsbl (%rax,%rdi), %r8d
movq 0x38(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, %edi
leaq 0x232098(%rip), %rax    # 0x53f73c
movsbl (%rax,%rdi), %r9d
leaq 0x286978(%rip), %rdi    # 0x594028
movb $0x0, %al
callq 0x1267d0
jmp 0x30d6b9
jmp 0x30d5cc
movq 0x30(%rsp), %rdi
callq 0x170f50
cmpl $0x0, 0x24(%rsp)
jne 0x30d74a
movq 0x38(%rsp), %rax
cmpl $0x3, 0x10(%rax)
je 0x30d74a
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movl 0x10(%rax), %esi
callq 0x16e0f0
movq 0x48(%rsp), %rdi
callq 0x170b00
movq %rax, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x24(%rsp)
movb %al, 0x7(%rsp)
jne 0x30d722
movq 0x30(%rsp), %rdi
callq 0x170e30
movq %rax, 0x28(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x30d72c
jmp 0x30d740
movq 0x28(%rsp), %rdi
movq 0x38(%rsp), %rax
movl 0x10(%rax), %esi
callq 0x16e0f0
jmp 0x30d6fb
movq 0x30(%rsp), %rdi
callq 0x170f50
movl 0x24(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)