// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x16b314
movq %rax, %rdi
movq %r15, %rsi
callq 0x16af21
testq %rax, %rax
je 0x16b8be
movq %rax, %r13
testq %rbx, %rbx
je 0x16b3a7
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x16b8c3
movq %r14, %rdi
callq 0x14b1a8
movq %rax, 0x58(%rsp)
movq %rbx, 0x48(%rsp)
movq %r13, 0x90(%rsp)
movq 0x58(%rsp), %rdi
callq 0x14b33e
testq %rax, %rax
je 0x16b879
movq %rax, %r12
movq %rax, %rdi
callq 0x149bb2
movq 0x18(%r13), %rdi
movq %rax, %rsi
callq 0x105a11
testq %rax, %rax
je 0x16b588
movq %r12, %rdi
callq 0x14b8df
movq %rbx, %r14
movq 0x10(%r13), %rbx
movq %rax, 0x40(%rsp)
leaq -0x1(%rax), %rbp
movl 0x20(%r13), %eax
movq %rax, 0x38(%rsp)
movl 0x24(%r13), %eax
movq %rax, 0x30(%rsp)
movb 0x28(%r13), %r15b
callq 0x1208f8
movq %rax, %r13
movq %r12, %rdi
callq 0x149bb2
movq %r13, 0x50(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r14
pushq %rbx
callq 0x307764
addq $0x10, %rsp
movl %eax, %r14d
movl $0x0, %ecx
movl $0x0, %r13d
movl $0x0, %eax
movq %rax, 0x28(%rsp)
testl %r14d, %r14d
jne 0x16b5bf
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x120d23
movq %rax, %r14
movq %rbx, %rdi
callq 0x120d4c
movq %r14, %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rbx
movq %rbx, %rdx
callq 0xe74a9
testq %rax, %rax
je 0x16b8b9
movq %rax, %r13
movq %rax, %rdi
callq 0x124477
testq %rax, %rax
leaq 0x10(%rsp), %r14
je 0x16b8b4
movq %r13, 0x28(%rsp)
movq %r13, %rdi
movq %rax, 0x8(%rsp)
movq %rax, %rsi
callq 0x16bb20
testq %rax, %rax
je 0x16b8af
movq %rax, %r13
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movq %r13, %rdi
movq %r14, %rsi
leaq 0x4(%rsp), %rdx
movq %rbx, %rcx
callq 0x16bb79
testl %eax, %eax
jne 0x16b5aa
testb %r15b, %r15b
je 0x16b545
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %ecx, %ecx
movq %r12, %r8
movq %rbp, %r9
pushq 0x30(%rsp)
pushq 0x40(%rsp)
callq 0x16b92f
addq $0x10, %rsp
jmp 0x16b4fc
movq %r14, %rdi
callq 0x117813
movq %rax, %r14
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
callq 0x117813
cmpq %rax, %r14
leaq 0x10(%rsp), %r14
jbe 0x16b4fc
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp,%rax)
jmp 0x16b4fc
movq 0x18(%r13), %rdi
leaq 0x25d423(%rip), %rsi    # 0x3c89b6
callq 0x105a11
xorl %r14d, %r14d
cmpq $0x1, %rax
jne 0x16b86e
jmp 0x16b3f4
cmpl $-0x2, %eax
movq 0x8(%rsp), %rcx
jne 0x16b5bc
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x16b5bf
xorl %r14d, %r14d
testl %r14d, %r14d
jne 0x16b7fb
movq %rcx, 0x8(%rsp)
testb %r15b, %r15b
jne 0x16b610
leaq 0x68(%rsp), %rbx
xorl %r14d, %r14d
movq -0x8(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x16b603
movq (%rbx), %rsi
movl %r14d, %edx
xorl %ecx, %ecx
movq %r12, %r8
movq %rbp, %r9
pushq 0x30(%rsp)
pushq 0x40(%rsp)
callq 0x16b92f
addq $0x10, %rsp
incq %r14
addq $0x10, %rbx
cmpq $0x3, %r14
jne 0x16b5da
movq 0x28(%rsp), %rdi
callq 0xe6b9a
movq 0x8(%rsp), %rdi
callq 0x1248e1
movq %r13, %rdi
callq 0x16bc3d
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movq 0x50(%rsp), %rbp
movq %rbp, %rdi
callq 0x120d4c
movq %rax, %r14
movq %rbp, %rdi
callq 0x120d3d
movq %rax, %r13
movq %rbp, %rdi
callq 0x120d4c
movq %r13, %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rbx
movq %rbx, %rdx
callq 0x177290
testl %eax, %eax
jne 0x16b89b
movq %rbp, %rdi
callq 0x120d23
movq %rax, %r13
movq %rbp, %rdi
callq 0x120d4c
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xe74a9
testq %rax, %rax
je 0x16b8aa
movq %rax, %r13
movq %rax, %rdi
callq 0x124477
testq %rax, %rax
je 0x16b8a5
movq %r13, 0x28(%rsp)
movq %r13, %rdi
movq %rax, 0x8(%rsp)
movq %rax, %rsi
callq 0x16bb20
testq %rax, %rax
je 0x16b8a0
movq %rax, %rbp
movq 0x40(%rsp), %rax
leaq (%rax,%r14), %r13
addq $-0x2, %r13
movq %rbp, %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
leaq 0x4(%rsp), %rdx
movq %rbx, %rcx
callq 0x16bb79
testl %eax, %eax
jne 0x16b782
testb %r15b, %r15b
je 0x16b73c
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl $0x1, %ecx
movq %r12, %r8
movq %r13, %r9
pushq 0x30(%rsp)
pushq 0x40(%rsp)
callq 0x16b92f
addq $0x10, %rsp
jmp 0x16b77a
movq %r14, %rdi
callq 0x117813
movq %rax, %r14
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
callq 0x117813
cmpq %rax, %r14
leaq 0x10(%rsp), %r14
jbe 0x16b77a
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp,%rax)
movq %rbp, %rdi
jmp 0x16b6f7
xorl %r14d, %r14d
cmpl $-0x2, %eax
sete %al
movb %al, 0x40(%rsp)
orb %al, %r15b
jne 0x16b7d5
leaq 0x68(%rsp), %rbx
xorl %r15d, %r15d
movq -0x8(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x16b7c8
movq (%rbx), %rsi
movl %r15d, %edx
movl $0x1, %ecx
movq %r12, %r8
movq %r13, %r9
pushq 0x30(%rsp)
pushq 0x40(%rsp)
callq 0x16b92f
addq $0x10, %rsp
incq %r15
addq $0x10, %rbx
cmpq $0x3, %r15
jne 0x16b79c
movb 0x40(%rsp), %al
movb %al, %r14b
negl %r14d
movq 0x28(%rsp), %rdi
callq 0xe6b9a
movq 0x8(%rsp), %rdi
callq 0x1248e1
movq %rbp, %rdi
callq 0x16bc3d
movq 0x50(%rsp), %rdi
callq 0x121b03
testl %r14d, %r14d
movq 0x48(%rsp), %rbx
movq 0x90(%rsp), %r13
jne 0x16b86e
movq 0x18(%r13), %rdi
leaq 0x25d194(%rip), %rsi    # 0x3c89b6
callq 0x105a11
cmpq $0x1, %rax
je 0x16b879
movq %r12, %rdi
callq 0x149b8d
xorl %r14d, %r14d
testb %al, %al
je 0x16b86e
movq %r12, %rdi
callq 0x14b1a8
movq %rax, %r15
movq %rax, %rdi
callq 0x14b33e
movq %r15, %rdi
callq 0x14b33e
testq %rax, %rax
je 0x16b866
movq %rax, %rdi
callq 0x149bb2
jmp 0x16b84f
movq %r15, %rdi
callq 0x14b3d0
testl %r14d, %r14d
je 0x16b3c1
jmp 0x16b87c
xorl %r14d, %r14d
movq 0x58(%rsp), %rdi
callq 0x14b3d0
movl %r14d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4f0ee
callq 0x4f127
callq 0x4f160
callq 0x4f199
callq 0x4f1d2
callq 0x4f20b
callq 0x4f244
callq 0x4f27d
callq 0x4f0b5