// File: /workspace/github_c_makefile_star2_O3/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 0x1634a0
movq %rax, %rdi
movq %r15, %rsi
callq 0x1630b1
testq %rax, %rax
je 0x163a38
movq %rax, %rbp
testq %rbx, %rbx
movq %rbx, %r15
je 0x163536
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x163a3d
movq %r14, %rdi
callq 0x143f54
movq %rax, %r13
movq %rax, %rdi
callq 0x1440ea
testq %rax, %rax
je 0x1639e5
movq %rax, %r12
leaq 0x25bdda(%rip), %rbx    # 0x3bf336
movq %r13, 0x20(%rsp)
movq %rbp, 0x90(%rsp)
movq %r12, %rdi
callq 0x142988
movq 0x18(%rbp), %rdi
movq %rax, %rsi
callq 0x100add
testq %rax, %rax
je 0x1639b2
movq %r12, %rdi
callq 0x144679
movq %rax, 0x8(%rsp)
movq 0x10(%rbp), %r14
movl 0x20(%rbp), %eax
movq %rax, 0x30(%rsp)
movl 0x24(%rbp), %eax
movq %rax, 0x28(%rsp)
movb 0x28(%rbp), %bl
callq 0x11ac6c
movq %rax, %r13
movq %r12, %rdi
callq 0x142988
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r14
callq 0x2fda60
addq $0x10, %rsp
testl %eax, %eax
movq %r13, 0x48(%rsp)
jne 0x163a19
movq %r13, %rdi
callq 0x11b0a1
movq %rax, %r14
movq %r13, %rdi
callq 0x11b0ca
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xe2fdd
testq %rax, %rax
je 0x163a33
movq %rax, %r14
movq %rax, %rdi
callq 0x11e737
testq %rax, %rax
leaq 0x10(%rsp), %rbp
je 0x163a2e
movq %r14, 0x40(%rsp)
movq %r14, %rdi
movq %rax, 0x38(%rsp)
movq %rax, %rsi
callq 0x163c98
testq %rax, %rax
je 0x163a29
movq %rax, %r14
movq 0x8(%rsp), %rax
leaq -0x1(%rax), %r13
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movdqa %xmm0, 0x50(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
leaq 0x4(%rsp), %rdx
movq %r15, %rcx
callq 0x163cf1
testl %eax, %eax
jne 0x1636ef
testb %bl, %bl
je 0x1636ac
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %ecx, %ecx
movq %r12, %r8
movq %r13, %r9
pushq 0x28(%rsp)
pushq 0x38(%rsp)
callq 0x163abd
addq $0x10, %rsp
jmp 0x163668
movq %rbp, %rdi
callq 0x112233
movq %rax, %rbp
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x50, %rdi
callq 0x112233
cmpq %rax, %rbp
leaq 0x10(%rsp), %rbp
jbe 0x163668
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x50(%rsp,%rax)
jmp 0x163668
cmpl $-0x2, %eax
je 0x1639e9
movq %r15, 0x88(%rsp)
testb %bl, %bl
jne 0x163740
leaq 0x58(%rsp), %r15
xorl %ebp, %ebp
movq -0x8(%r15), %rdi
cmpq $-0x1, %rdi
je 0x163733
movq (%r15), %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movq %r12, %r8
movq %r13, %r9
pushq 0x28(%rsp)
pushq 0x38(%rsp)
callq 0x163abd
addq $0x10, %rsp
incq %rbp
addq $0x10, %r15
cmpq $0x3, %rbp
jne 0x16370b
movq 0x40(%rsp), %rdi
callq 0xe26c6
movq 0x38(%rsp), %rdi
callq 0x11eb7a
movq %r14, %rdi
callq 0x163daf
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movdqa %xmm0, 0x50(%rsp)
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0x11b0ca
movq %rax, %r14
movq %rbp, %rdi
callq 0x11b0bb
movq %rax, %r13
movq %rbp, %rdi
callq 0x11b0ca
movq %r13, %rdi
movq %rax, %rsi
movq 0x88(%rsp), %r15
movq %r15, %rdx
callq 0x16eef8
testl %eax, %eax
jne 0x163a42
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %r13
movq %rbp, %rdi
callq 0x11b0ca
movq %r13, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xe2fdd
testq %rax, %rax
leaq 0x10(%rsp), %r13
je 0x163a51
movq %rax, %rbp
movq %rax, %rdi
callq 0x11e737
testq %rax, %rax
je 0x163a4c
movq %rbp, 0x40(%rsp)
movq %rbp, %rdi
movq %rax, 0x38(%rsp)
movq %rax, %rsi
callq 0x163c98
testq %rax, %rax
je 0x163a47
movq %rax, %rdi
movq 0x8(%rsp), %rax
addq %rax, %r14
addq $-0x2, %r14
movq %rdi, 0x8(%rsp)
movq %r13, %rsi
leaq 0x4(%rsp), %rdx
movq %r15, %rcx
callq 0x163cf1
testl %eax, %eax
jne 0x1638d8
movq 0x8(%rsp), %r13
testb %bl, %bl
je 0x16387a
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl $0x1, %ecx
movq %r12, %r8
movq %r14, %r9
pushq 0x28(%rsp)
pushq 0x38(%rsp)
callq 0x163abd
addq $0x10, %rsp
leaq 0x10(%rsp), %rbp
jmp 0x1638bd
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x112233
movq %rax, %r13
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x50, %rdi
callq 0x112233
cmpq %rax, %r13
movq 0x8(%rsp), %r13
jbe 0x1638bd
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x50(%rsp,%rax)
movq %r13, %rdi
movq %rbp, %rsi
leaq 0x4(%rsp), %rdx
movq %r15, %rcx
callq 0x163cf1
testl %eax, %eax
je 0x163845
movl %eax, %ebp
cmpl $-0x2, %eax
sete %al
orb %bl, %al
jne 0x163925
leaq 0x58(%rsp), %rbx
xorl %r13d, %r13d
movq -0x8(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x163918
movq (%rbx), %rsi
movl %r13d, %edx
movl $0x1, %ecx
movq %r12, %r8
movq %r14, %r9
pushq 0x28(%rsp)
pushq 0x38(%rsp)
callq 0x163abd
addq $0x10, %rsp
incq %r13
addq $0x10, %rbx
cmpq $0x3, %r13
jne 0x1638ec
movq 0x40(%rsp), %rdi
callq 0xe26c6
movq 0x38(%rsp), %rdi
callq 0x11eb7a
movq 0x8(%rsp), %rdi
callq 0x163daf
movq 0x48(%rsp), %rdi
callq 0x11bdbf
cmpl $-0x2, %ebp
je 0x163a1d
movq 0x90(%rsp), %rbp
movq 0x18(%rbp), %rdi
leaq 0x25b9cd(%rip), %rbx    # 0x3bf336
movq %rbx, %rsi
callq 0x100add
cmpq $0x1, %rax
movq 0x20(%rsp), %r13
je 0x1639e5
movq %r12, %rdi
callq 0x142963
testb %al, %al
je 0x1639d1
movq %r12, %rdi
callq 0x143f54
movq %rax, %r14
movq %rax, %rdi
callq 0x1440ea
movq %r14, %rdi
callq 0x1440ea
testq %rax, %rax
je 0x1639c9
movq %rax, %rdi
callq 0x142988
jmp 0x16399b
movq 0x18(%rbp), %rdi
movq %rbx, %rsi
callq 0x100add
cmpq $0x1, %rax
jne 0x1639d1
jmp 0x163586
movq %r14, %rdi
callq 0x14417c
movq %r13, %rdi
callq 0x1440ea
movq %rax, %r12
testq %rax, %rax
jne 0x163569
xorl %ebp, %ebp
jmp 0x1639fd
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %r13
movq 0x48(%rsp), %rdi
callq 0x11bdbf
movq %r13, %rdi
callq 0x14417c
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebp
jmp 0x1639ee
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %r13
jmp 0x1639fd
callq 0x4e2dd
callq 0x4e316
callq 0x4e34f
callq 0x4e388
callq 0x4e1c0
callq 0x4e1f9
callq 0x4e232
callq 0x4e26b
callq 0x4e2a4