// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq %rsi, %r14
movq %rdi, %r15
callq 0x103484
movq %rax, %rdi
movq %r15, %rsi
callq 0x102dfe
testq %rax, %rax
je 0x103b4a
movq %rax, %rbp
testq %r12, %r12
je 0x103512
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x103b78
movq %r14, %rdi
callq 0xdc6f0
movq %rax, 0x58(%rsp)
xorl %r14d, %r14d
movq %r12, 0x50(%rsp)
movq %rbp, 0x90(%rsp)
movl %r14d, %ebx
testl %r14d, %r14d
jne 0x1039d8
movq 0x58(%rsp), %rdi
callq 0xdc92e
xorl %ebx, %ebx
testq %rax, %rax
je 0x1039d8
movq %rax, %r15
movq %rax, %rdi
callq 0xda338
movq 0x18(%rbp), %rdi
movq %rax, %rsi
callq 0x8f482
testq %rax, %rax
je 0x1036e2
movq %r15, %rdi
callq 0xdd1f4
movq %rax, 0x28(%rsp)
movq 0x10(%rbp), %r14
movl 0x20(%rbp), %eax
movq %rax, 0x8(%rsp)
movl 0x24(%rbp), %r13d
movb 0x28(%rbp), %bl
callq 0xacb84
movq %rax, %rbp
movq %r15, %rdi
callq 0xda338
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r12
pushq %r14
callq 0x29a8d0
popq %rcx
popq %rdx
movl %eax, %r14d
testl %eax, %eax
jne 0x1038cf
movq %r13, 0x30(%rsp)
movq %rbp, %rdi
callq 0xad1fa
movq %rax, %r14
movq %rbp, 0x48(%rsp)
movq %rbp, %rdi
callq 0xad289
movq %r14, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x6ad4b
testq %rax, %rax
je 0x103a58
movq %rax, %r14
movq %rax, %rdi
callq 0xb1af2
testq %rax, %rax
movq 0x30(%rsp), %r13
je 0x103a27
movq %r14, 0x40(%rsp)
movq %r14, %rdi
movq %rax, 0x38(%rsp)
movq %rax, %rsi
callq 0x103e00
testq %rax, %rax
je 0x1039f6
movq %rax, %rbp
movq 0x28(%rsp), %rax
leaq -0x1(%rax), %r14
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %r12, %rcx
callq 0x103e83
testl %eax, %eax
jne 0x103704
testb %bl, %bl
je 0x10369d
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %ecx, %ecx
movq %r15, %r8
movq %r14, %r9
pushq %r13
pushq 0x10(%rsp)
callq 0x103c4a
popq %rax
popq %rcx
jmp 0x103657
leaq 0x10(%rsp), %rdi
callq 0xa31ee
movq %rax, %r12
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
callq 0xa31ee
cmpq %rax, %r12
movq 0x50(%rsp), %r12
jbe 0x103657
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp,%rax)
jmp 0x103657
movq 0x18(%rbp), %rdi
leaq 0x25c099(%rip), %rsi    # 0x35f786
callq 0x8f482
xorl %r14d, %r14d
cmpq $0x1, %rax
jne 0x10352f
jmp 0x103570
cmpl $-0x2, %eax
jne 0x103714
pushq $-0x1
popq %rax
movl %eax, %r14d
jmp 0x1038ca
testb %bl, %bl
je 0x103951
movq 0x40(%rsp), %rdi
callq 0x6a21c
movq 0x38(%rsp), %rdi
callq 0xb217a
movq %rbp, %rdi
callq 0x103f72
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0xad289
movq %rax, %r14
movq %rbp, %rdi
callq 0xad247
movq %rax, %r12
movq %rbp, %rdi
callq 0xad289
movq %r12, %rdi
movq %rax, %rsi
movq 0x50(%rsp), %r13
movq %r13, %rdx
callq 0x111ab8
testl %eax, %eax
jne 0x103a89
movq %rbp, %rdi
callq 0xad1fa
movq %rax, %r12
movq %rbp, %rdi
callq 0xad289
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x6ad4b
testq %rax, %rax
je 0x103b1c
movq %rax, %rbp
movq %r13, %r12
movq %rax, %rdi
callq 0xb1af2
testq %rax, %rax
movq 0x28(%rsp), %r13
je 0x103aeb
movq %rbp, 0x40(%rsp)
movq %rbp, %rdi
movq %rax, 0x38(%rsp)
movq %rax, %rsi
callq 0x103e00
testq %rax, %rax
je 0x103aba
movq %rax, %rbp
addq %r14, %r13
addq $-0x2, %r13
movq 0x8(%rsp), %r14
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %r12, %rcx
callq 0x103e83
testl %eax, %eax
jne 0x10388a
testb %bl, %bl
je 0x103845
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
pushq $0x1
popq %rcx
movq %r15, %r8
movq %r13, %r9
pushq 0x30(%rsp)
pushq %r14
callq 0x103c4a
popq %rax
popq %rcx
jmp 0x103802
leaq 0x10(%rsp), %rdi
callq 0xa31ee
movq %rax, %r14
movl 0x4(%rsp), %eax
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
callq 0xa31ee
cmpq %rax, %r14
movq 0x8(%rsp), %r14
jbe 0x103802
movl 0x4(%rsp), %eax
shlq $0x4, %rax
movdqa 0x10(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp,%rax)
jmp 0x103802
xorl %r14d, %r14d
cmpl $-0x2, %eax
sete %al
movb %al, 0x28(%rsp)
orb %al, %bl
je 0x103995
movb 0x28(%rsp), %al
movb %al, %r14b
negl %r14d
movq 0x40(%rsp), %rdi
callq 0x6a21c
movq 0x38(%rsp), %rdi
callq 0xb217a
movq %rbp, %rdi
callq 0x103f72
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0xae103
testl %r14d, %r14d
movq 0x90(%rsp), %rbp
jne 0x10352f
movq 0x18(%rbp), %rdi
leaq 0x25be93(%rip), %rsi    # 0x35f786
callq 0x8f482
cmpq $0x1, %rax
movl $0x0, %ebx
je 0x1039d8
movq %r15, %rdi
callq 0xda2e0
xorl %r14d, %r14d
testb %al, %al
je 0x10352f
movq %r15, %rdi
callq 0xdc6f0
movq %rax, %r15
movq %rax, %rdi
callq 0xdc92e
movq %r15, %rdi
callq 0xdc92e
testq %rax, %rax
je 0x103944
movq %rax, %rdi
callq 0xda338
jmp 0x10392d
movq %r15, %rdi
callq 0xdc9f1
jmp 0x10352f
leaq 0x68(%rsp), %r12
xorl %r13d, %r13d
cmpq $0x3, %r13
je 0x10371c
movq -0x8(%r12), %rdi
cmpq $-0x1, %rdi
je 0x10398c
movq (%r12), %rsi
movl %r13d, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %r14, %r9
pushq 0x30(%rsp)
pushq 0x10(%rsp)
callq 0x103c4a
popq %rax
popq %rcx
incq %r13
addq $0x10, %r12
jmp 0x103959
leaq 0x68(%rsp), %rbx
xorl %r12d, %r12d
cmpq $0x3, %r12
je 0x10389f
movq -0x8(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x1039cf
movq (%rbx), %rsi
movl %r12d, %edx
pushq $0x1
popq %rcx
movq %r15, %r8
movq %r13, %r9
pushq 0x30(%rsp)
pushq 0x10(%rsp)
callq 0x103c4a
popq %rax
popq %rcx
incq %r12
addq $0x10, %rbx
jmp 0x10399d
movq 0x58(%rsp), %rdi
callq 0xdc9f1
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x33456b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e160c(%rip), %rsi    # 0x2e5013
leaq 0x22a290(%rip), %rdx    # 0x32dc9e
leaq 0x22a27b(%rip), %rcx    # 0x32dc90
leaq 0x22a221(%rip), %r8     # 0x32dc3d
movl $0xa9, %r9d
jmp 0x103ba4
movq 0x33453a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e15db(%rip), %rsi    # 0x2e5013
leaq 0x22a276(%rip), %rdx    # 0x32dcb5
leaq 0x22a24a(%rip), %rcx    # 0x32dc90
leaq 0x22a1f0(%rip), %r8     # 0x32dc3d
movl $0xa6, %r9d
jmp 0x103ba4
movq 0x334509(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e15aa(%rip), %rsi    # 0x2e5013
leaq 0x21011c(%rip), %rdx    # 0x313b8c
leaq 0x22a219(%rip), %rcx    # 0x32dc90
leaq 0x22a1bf(%rip), %r8     # 0x32dc3d
movl $0xa4, %r9d
jmp 0x103ba4
movq 0x3344d8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e1579(%rip), %rsi    # 0x2e5013
leaq 0x1ff4f6(%rip), %rdx    # 0x302f97
leaq 0x22a1e8(%rip), %rcx    # 0x32dc90
leaq 0x22a18e(%rip), %r8     # 0x32dc3d
movl $0xdc, %r9d
jmp 0x103ba4
movq 0x3344a7(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e1548(%rip), %rsi    # 0x2e5013
leaq 0x22a1cc(%rip), %rdx    # 0x32dc9e
leaq 0x22a1b7(%rip), %rcx    # 0x32dc90
leaq 0x22a15d(%rip), %r8     # 0x32dc3d
movl $0xe3, %r9d
jmp 0x103ba4
movq 0x334476(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e1517(%rip), %rsi    # 0x2e5013
leaq 0x22a1b2(%rip), %rdx    # 0x32dcb5
leaq 0x22a186(%rip), %rcx    # 0x32dc90
leaq 0x22a12c(%rip), %r8     # 0x32dc3d
movl $0xe1, %r9d
jmp 0x103ba4
movq 0x334445(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e14e6(%rip), %rsi    # 0x2e5013
leaq 0x210058(%rip), %rdx    # 0x313b8c
leaq 0x22a155(%rip), %rcx    # 0x32dc90
leaq 0x22a0fb(%rip), %r8     # 0x32dc3d
movl $0xdf, %r9d
jmp 0x103ba4
movq 0x334417(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e14b8(%rip), %rsi    # 0x2e5013
leaq 0x25c7df(%rip), %rdx    # 0x360341
leaq 0x22a0f6(%rip), %rcx    # 0x32dc5f
leaq 0x22a0cd(%rip), %r8     # 0x32dc3d
movl $0x115, %r9d            # imm = 0x115
jmp 0x103ba4
movq 0x3343e9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e148a(%rip), %rsi    # 0x2e5013
leaq 0x1e162f(%rip), %rdx    # 0x2e51bf
leaq 0x22a0c8(%rip), %rcx    # 0x32dc5f
leaq 0x22a09f(%rip), %r8     # 0x32dc3d
movl $0x116, %r9d            # imm = 0x116
xorl %eax, %eax
callq 0x17a50
callq 0x17390