// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/seqpos_classifier.c
// Function: gt_seqpos_classifier_next_specified_ft
static int gt_seqpos_classifier_next_specified_ft(
    GtSeqposClassifier *seqpos_classifier, GtRange *range,
    bool *end_of_annotation, GtError *err)
{
  int had_err = 0;
  GtFeatureNode *cfn;
  bool fni_exhausted = (seqpos_classifier->fni == NULL) ? true : false;
  gt_assert(seqpos_classifier != NULL);
  gt_assert(range != NULL);
  while (true)
  {
    if (fni_exhausted)
    {
      had_err = gt_seqpos_classifier_next_fn(seqpos_classifier, err);
      if (had_err != 0 || seqpos_classifier->fn == NULL)
      {
        *end_of_annotation = true;
        return had_err;
      }
      fni_exhausted = false;
    }
    gt_assert(seqpos_classifier->fni != NULL);
    cfn = gt_feature_node_iterator_next(seqpos_classifier->fni);
    if (cfn == NULL)
    {
      fni_exhausted = true;
    }
    else if (strcmp(gt_feature_node_get_type(cfn),
          seqpos_classifier->specified_ft) == 0)
    {
      seqpos_classifier->nof_specified_ft_found++;
      *range = gt_genome_node_get_range((GtGenomeNode*)cfn);
      gt_assert(range->start > 0);
      gt_assert(range->end > 0);
      range->start--;
      range->end--;
      *end_of_annotation = false;
      return had_err;
    }
  }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmovel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x1f(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x1d5eb3
movq 0x46611e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x340187(%rip), %rsi    # 0x516013
leaq 0x38f774(%rip), %rdx    # 0x565607
leaq 0x38f787(%rip), %rcx    # 0x565621
leaq 0x38f653(%rip), %r8     # 0x5654f4
movl $0x62, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d5eb5
jmp 0x1d5eb7
cmpq $0x0, 0x40(%rsp)
jne 0x1d5ef7
movq 0x4660da(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x340143(%rip), %rsi    # 0x516013
leaq 0x3b54b0(%rip), %rdx    # 0x58b387
leaq 0x38f743(%rip), %rcx    # 0x565621
leaq 0x38f60f(%rip), %r8     # 0x5654f4
movl $0x63, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d5ef9
jmp 0x1d5efb
testb $0x1, 0x1f(%rsp)
je 0x1d5f42
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x1d61a0
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x1d5f28
movq 0x48(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1d5f3d
movq 0x38(%rsp), %rax
movb $0x1, (%rax)
movl 0x2c(%rsp), %eax
movl %eax, 0x54(%rsp)
jmp 0x1d60df
movb $0x0, 0x1f(%rsp)
jmp 0x1d5f44
movq 0x48(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x1d5f88
movq 0x466049(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3400b2(%rip), %rsi    # 0x516013
leaq 0x38f6e0(%rip), %rdx    # 0x565648
leaq 0x38f6b2(%rip), %rcx    # 0x565621
leaq 0x38f57e(%rip), %r8     # 0x5654f4
movl $0x70, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d5f8a
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x170e30
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x1d5faf
movb $0x1, 0x1f(%rsp)
jmp 0x1d60da
movq 0x20(%rsp), %rdi
callq 0x16d430
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq 0x38(%rax), %rsi
callq 0x19980
cmpl $0x0, %eax
jne 0x1d60d8
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
callq 0x171cc0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
cmpq $0x0, (%rax)
ja 0x1d605c
movq 0x465f75(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33ffde(%rip), %rsi    # 0x516013
leaq 0x38f62b(%rip), %rdx    # 0x565667
leaq 0x38f5de(%rip), %rcx    # 0x565621
leaq 0x38f4aa(%rip), %r8     # 0x5654f4
movl $0x7b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d605e
jmp 0x1d6060
movq 0x40(%rsp), %rax
cmpq $0x0, 0x8(%rax)
ja 0x1d60a4
movq 0x465f2d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33ff96(%rip), %rsi    # 0x516013
leaq 0x38f5f4(%rip), %rdx    # 0x565678
leaq 0x38f596(%rip), %rcx    # 0x565621
leaq 0x38f462(%rip), %r8     # 0x5654f4
movl $0x7c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d60a6
movq 0x40(%rsp), %rax
movq (%rax), %rcx
addq $-0x1, %rcx
movq %rcx, (%rax)
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rax
movb $0x0, (%rax)
movl 0x2c(%rsp), %eax
movl %eax, 0x54(%rsp)
jmp 0x1d60df
jmp 0x1d60da
jmp 0x1d5efb
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)