// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/orf_finder_visitor.c
// Function: gt_orf_finder_visitor_feature_node
static int gt_orf_finder_visitor_feature_node(GtNodeVisitor *gv,
                                              GtFeatureNode *gf,
                                              GtError *err)
{
  GtORFFinderVisitor *lv;
  const char *gft = NULL;
  GtFeatureNodeIterator *gfi;
  GtFeatureNode *curnode = NULL;
  int had_err = 0;
  GtRange rng;

  lv = gt_orf_finder_visitor_cast(gv);
  gt_assert(lv);
  gt_error_check(err);

  gfi = gt_feature_node_iterator_new(gf);

  while (!had_err && (curnode = gt_feature_node_iterator_next(gfi))) {
    gft = gt_feature_node_get_type(curnode);

    if (gt_hashmap_get(lv->types, (void*) gft) != NULL ||
                       gt_hashmap_get(lv->types,
                                      (void*) "all") == (void*) 1) {
      if (!had_err) {
        rng = gt_genome_node_get_range((GtGenomeNode*) curnode);
        had_err = run_orffinder(lv->rmap, curnode, rng.start - 1, rng.end - 1,
                                lv->min, lv->max, lv->all, err);
      }
      if (!had_err) {
        if (gt_hashmap_get(lv->types,
                           (void*) "all") == (void*) 1) {
          break;
        }
        else if (gt_feature_node_has_children(curnode)) {
          GtFeatureNode *tmpnode = NULL;
          GtFeatureNodeIterator *tmpgfi = gt_feature_node_iterator_new(curnode);
          (void) gt_feature_node_iterator_next(tmpgfi);
          while ((tmpnode = gt_feature_node_iterator_next(tmpgfi))) {
            gft = gt_feature_node_get_type(tmpnode);
            if (strcmp(gft, (const char*) GT_ORF_TYPE) == 0) {
              continue;
            }
            /* curnode = gt_feature_node_iterator_next(gfi); */
          }
          gt_feature_node_iterator_delete(tmpgfi);
        }
      }
    }
  }

  gt_feature_node_iterator_delete(gfi);

  return had_err;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x50(%rsp)
movl $0x0, 0x4c(%rsp)
callq 0x1b2ca0
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x68(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x1b2d7d
movq 0x489254(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3632bd(%rip), %rsi    # 0x516013
leaq 0x3e0325(%rip), %rdx    # 0x593082
leaq 0x3ad34b(%rip), %rcx    # 0x5600af
leaq 0x3ad322(%rip), %r8     # 0x56008d
movl $0x115, %r9d            # imm = 0x115
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1b2d7f
jmp 0x1b2d81
cmpq $0x0, 0x70(%rsp)
je 0x1b2dd1
movq 0x70(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1b2d99
jmp 0x1b2dd1
movq 0x489200(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x363269(%rip), %rsi    # 0x516013
leaq 0x36340e(%rip), %rdx    # 0x5161bf
leaq 0x3ad2f7(%rip), %rcx    # 0x5600af
leaq 0x3ad2ce(%rip), %r8     # 0x56008d
movl $0x116, %r9d            # imm = 0x116
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1b2dd3
movq 0x78(%rsp), %rdi
callq 0x170b00
movq %rax, 0x58(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x4c(%rsp)
movb %al, 0x17(%rsp)
jne 0x1b2e09
movq 0x58(%rsp), %rdi
callq 0x170e30
movq %rax, 0x50(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x1b2e16
jmp 0x1b2fa2
movq 0x50(%rsp), %rdi
callq 0x16d430
movq %rax, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x60(%rsp), %rsi
callq 0xe0f20
cmpq $0x0, %rax
jne 0x1b2e61
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x3996ef(%rip), %rsi    # 0x54c53d
callq 0xe0f20
movl $0x1, %ecx
cmpq %rcx, %rax
jne 0x1b2f9d
cmpl $0x0, 0x4c(%rsp)
jne 0x1b2eee
movq 0x50(%rsp), %rdi
callq 0x171cc0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x50(%rsp), %rsi
movq 0x38(%rsp), %rdx
subq $0x1, %rdx
movq 0x40(%rsp), %rcx
subq $0x1, %rcx
movq 0x68(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x68(%rsp), %rax
movl 0x24(%rax), %r9d
movq 0x68(%rsp), %rax
movb 0x28(%rax), %r10b
movq 0x70(%rsp), %rax
andb $0x1, %r10b
movzbl %r10b, %r10d
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1b30a0
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x1b2f9b
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x399634(%rip), %rsi    # 0x54c53d
callq 0xe0f20
movl $0x1, %ecx
cmpq %rcx, %rax
jne 0x1b2f1d
jmp 0x1b2fa2
movq 0x50(%rsp), %rdi
callq 0x16d3a0
testb $0x1, %al
jne 0x1b2f2d
jmp 0x1b2f97
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rdi
callq 0x170b00
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x170e30
movq 0x18(%rsp), %rdi
callq 0x170e30
movq %rax, 0x20(%rsp)
cmpq $0x0, %rax
je 0x1b2f8d
movq 0x20(%rsp), %rdi
callq 0x16d430
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rdi
leaq 0x3ad153(%rip), %rsi    # 0x5600d2
callq 0x19980
cmpl $0x0, %eax
jne 0x1b2f8b
jmp 0x1b2f4f
jmp 0x1b2f4f
movq 0x18(%rsp), %rdi
callq 0x170f50
jmp 0x1b2f99
jmp 0x1b2f9b
jmp 0x1b2f9d
jmp 0x1b2de2
movq 0x58(%rsp), %rdi
callq 0x170f50
movl 0x4c(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax,%rax)