// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/extract_feature_visitor.c
// Function: extract_feature_visitor_feature_node
static int extract_feature_visitor_feature_node(GtNodeVisitor *nv,
                                                GtFeatureNode *fn, GtError *err)
{
  GtExtractFeatureVisitor *efv;
  GtFeatureNodeIterator *fni;
  GtFeatureNode *child;
  GtStrArray *target_ids = NULL;
  GtStr *seqid = NULL,
        *description,
        *sequence;
  int had_err = 0;
  gt_error_check(err);
  efv = gt_extract_feature_visitor_cast(nv);
  gt_assert(efv->region_mapping);
  fni = gt_feature_node_iterator_new(fn);
  if (efv->target)
    target_ids = gt_str_array_new();
  if (efv->seqid)
    seqid = gt_str_new();
  description = gt_str_new();
  sequence = gt_str_new();
  while (!had_err && (child = gt_feature_node_iterator_next(fni))) {
    if (seqid)
      gt_str_reset(seqid);
    if (target_ids)
      gt_str_array_reset(target_ids);
    if (efv->translate) {
      if (gt_extract_and_translate_feature_sequence(child,
                                                    efv->type, efv->join,
                                                    seqid, target_ids,
                                                    efv->region_mapping,
                                                    efv->ttable,
                                                    sequence, NULL, NULL,
                                                    err)) {
        had_err = -1;
      }
    } else {
      if (gt_extract_feature_sequence(sequence, (GtGenomeNode*) child,
                                      efv->type,
                                      efv->join, seqid, target_ids,
                                      efv->region_mapping, err)) {
        had_err = -1;
      }
    }
    if (!had_err && gt_str_length(sequence)) {
      efv->fastaseq_counter++;
      GtRange coords;
      if (efv->retain_ids && gt_feature_node_get_attribute(child, "ID")) {
        gt_assert(!gt_str_length(description));
        gt_str_append_cstr(description, gt_feature_node_get_attribute(child,
                                                                      "ID"));
      }
      coords = gt_genome_node_get_range((GtGenomeNode*) child);
      construct_description(description, efv->type, efv->fastaseq_counter,
                            efv->join, efv->translate,
                            efv->coords ? &coords : NULL,
                            gt_feature_node_get_strand(child),
                            seqid, target_ids);
      gt_fasta_show_entry(gt_str_get(description), gt_str_get(sequence),
                          gt_str_length(sequence),  efv->width,  efv->outfp);
      gt_str_reset(description);
      gt_str_reset(sequence);
    }
  }
  gt_str_delete(sequence);
  gt_str_delete(description);
  gt_str_delete(seqid);
  gt_str_array_delete(target_ids);
  gt_feature_node_iterator_delete(fni);
  return had_err;
}

// Assembly:
pushq %rbx
subq $0xf0, %rsp
movq %rdi, 0xe8(%rsp)
movq %rsi, 0xe0(%rsp)
movq %rdx, 0xd8(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xb0(%rsp)
movl $0x0, 0x9c(%rsp)
cmpq $0x0, 0xd8(%rsp)
je 0x167b99
movq 0xd8(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x167b61
jmp 0x167b99
movq 0x4d4438(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3ae4a1(%rip), %rsi    # 0x516013
leaq 0x3ae646(%rip), %rdx    # 0x5161bf
leaq 0x3e7a80(%rip), %rcx    # 0x54f600
leaq 0x3e79a2(%rip), %r8     # 0x54f529
movl $0x6b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x167b9b
callq 0x167a30
movq %rax, %rdi
movq 0xe8(%rsp), %rsi
callq 0x1b2350
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x167bff
movq 0x4d43d2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3ae43b(%rip), %rsi    # 0x516013
leaq 0x3e7a46(%rip), %rdx    # 0x54f625
leaq 0x3e7a1a(%rip), %rcx    # 0x54f600
leaq 0x3e793c(%rip), %r8     # 0x54f529
movl $0x6d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x167c01
movq 0xe0(%rsp), %rdi
callq 0x170b00
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rax
testb $0x1, 0x23(%rax)
je 0x167c31
callq 0x11f5c0
movq %rax, 0xb8(%rsp)
movq 0xd0(%rsp), %rax
testb $0x1, 0x22(%rax)
je 0x167c4c
callq 0x11d4a0
movq %rax, 0xb0(%rsp)
callq 0x11d4a0
movq %rax, 0xa8(%rsp)
callq 0x11d4a0
movq %rax, 0xa0(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x9c(%rsp)
movb %al, 0x77(%rsp)
jne 0x167c96
movq 0xc8(%rsp), %rdi
callq 0x170e30
movq %rax, 0xc0(%rsp)
cmpq $0x0, %rax
setne %al
movb %al, 0x77(%rsp)
movb 0x77(%rsp), %al
testb $0x1, %al
jne 0x167ca3
jmp 0x168059
cmpq $0x0, 0xb0(%rsp)
je 0x167cbb
movq 0xb0(%rsp), %rdi
callq 0x11e110
cmpq $0x0, 0xb8(%rsp)
je 0x167cd3
movq 0xb8(%rsp), %rdi
callq 0x11fc60
movq 0xd0(%rsp), %rax
testb $0x1, 0x21(%rax)
je 0x167d7b
movq 0xc0(%rsp), %rdi
movq 0xd0(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0xd0(%rsp), %rax
movb 0x20(%rax), %dl
movq 0xb0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movq 0xd0(%rsp), %rax
movq 0x38(%rax), %r9
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %r11
movq 0xa0(%rsp), %r10
movq 0xd8(%rsp), %rax
xorl %ebx, %ebx
andb $0x1, %dl
movzbl %dl, %edx
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x48fba0
cmpl $0x0, %eax
je 0x167d79
movl $0xffffffff, 0x9c(%rsp) # imm = 0xFFFFFFFF
jmp 0x167dec
movq 0xa0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xd0(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0xd0(%rsp), %rax
movb 0x20(%rax), %cl
movq 0xb0(%rsp), %r8
movq 0xb8(%rsp), %r9
movq 0xd0(%rsp), %rax
movq 0x38(%rax), %r10
movq 0xd8(%rsp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x48f4f0
cmpl $0x0, %eax
je 0x167dea
movl $0xffffffff, 0x9c(%rsp) # imm = 0xFFFFFFFF
jmp 0x167dec
cmpl $0x0, 0x9c(%rsp)
jne 0x168054
movq 0xa0(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x168054
movq 0xd0(%rsp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0xd0(%rsp), %rax
testb $0x1, 0x25(%rax)
je 0x167ece
movq 0xc0(%rsp), %rdi
leaq 0x447c67(%rip), %rsi    # 0x5afaad
callq 0x16c040
cmpq $0x0, %rax
je 0x167ece
jmp 0x167e53
movq 0xa8(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x167e9e
movq 0x4d4133(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3ae19c(%rip), %rsi    # 0x516013
leaq 0x3e77bb(%rip), %rdx    # 0x54f639
leaq 0x3e777b(%rip), %rcx    # 0x54f600
leaq 0x3e769d(%rip), %r8     # 0x54f529
movl $0x90, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x167ea0
movq 0xa8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xc0(%rsp), %rdi
leaq 0x447bf1(%rip), %rsi    # 0x5afaad
callq 0x16c040
movq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x11d550
movq 0xc0(%rsp), %rdi
callq 0x171cc0
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xd0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0xd0(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0xd0(%rsp), %rax
movb 0x20(%rax), %al
movb %al, 0x66(%rsp)
movq 0xd0(%rsp), %rax
movb 0x21(%rax), %al
movb %al, 0x67(%rsp)
movq 0xd0(%rsp), %rax
testb $0x1, 0x24(%rax)
je 0x167f6f
leaq 0x88(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x167f78
xorl %eax, %eax
movq %rax, 0x40(%rsp)
jmp 0x167f78
movq 0x40(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x16cc70
movb 0x66(%rsp), %cl
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x28(%rsp), %r9
movl %eax, %r10d
movb 0x67(%rsp), %al
movq 0xb0(%rsp), %r11
movq 0xb8(%rsp), %rbx
movq %rsp, %r8
movq %rbx, 0x10(%r8)
movq %r11, 0x8(%r8)
movl %r10d, (%r8)
movzbl %cl, %ecx
andl $0x1, %ecx
movzbl %al, %r8d
andl $0x1, %r8d
callq 0x168370
movq 0xa8(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x30(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x38(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x11dfa0
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rax, %rdx
movq 0xd0(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0xd0(%rsp), %rax
movq 0x40(%rax), %r8
callq 0xdbd10
movq 0xa8(%rsp), %rdi
callq 0x11e110
movq 0xa0(%rsp), %rdi
callq 0x11e110
jmp 0x167c66
movq 0xa0(%rsp), %rdi
callq 0x11f560
movq 0xa8(%rsp), %rdi
callq 0x11f560
movq 0xb0(%rsp), %rdi
callq 0x11f560
movq 0xb8(%rsp), %rdi
callq 0x11fd20
movq 0xc8(%rsp), %rdi
callq 0x170f50
movl 0x9c(%rsp), %eax
addq $0xf0, %rsp
popq %rbx
retq
nopw (%rax,%rax)