// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/bioseq_iterator.c
// Function: gt_bioseq_iterator_next
int gt_bioseq_iterator_next(GtBioseqIterator *bsi, GtBioseq **bioseq,
                            GtError *err)
{
  int had_err = 0;
  gt_error_check(err);
  gt_assert(bsi && bioseq);
  if (bsi->current_file < bsi->seqfile_counter) {
    if (bsi->sequence_files[bsi->current_file] &&
        !strcmp(bsi->sequence_files[bsi->current_file], "-")) {
      if (bsi->stdin_was_used) {
        gt_error_set(err, "multiple specification of sequence file \"-\"");
        had_err = -1;
      }
      else
        bsi->stdin_was_used = true;
    }
    if (!had_err) {
      if (bsi->sequence_files[bsi->current_file])
        *bioseq = gt_bioseq_new(bsi->sequence_files[bsi->current_file], err);
      else
        *bioseq = gt_bioseq_new("-", err);
      if (*bioseq)
        bsi->current_file++;
      else
        had_err = -1;
    }
  }
  else
    *bioseq = NULL;
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x887fb
movq 0x10(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x887c3
jmp 0x887fb
movq 0x5b37d6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x48d83f(%rip), %rsi    # 0x516013
leaq 0x48d9e4(%rip), %rdx    # 0x5161bf
leaq 0x4a85ea(%rip), %rcx    # 0x530dcc
leaq 0x4a85c8(%rip), %r8     # 0x530db1
movl $0x34, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x887fd
jmp 0x887ff
cmpq $0x0, 0x20(%rsp)
je 0x8880f
cmpq $0x0, 0x18(%rsp)
jne 0x88847
movq 0x5b378a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x48d7f3(%rip), %rsi    # 0x516013
leaq 0x4a85bd(%rip), %rdx    # 0x530de4
leaq 0x4a859e(%rip), %rcx    # 0x530dcc
leaq 0x4a857c(%rip), %r8     # 0x530db1
movl $0x35, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x88849
movq 0x20(%rsp), %rax
movl (%rax), %eax
movq 0x20(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x8895f
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
movslq (%rcx), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x888cf
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x512a95(%rip), %rsi    # 0x59b327
callq 0x19980
cmpl $0x0, %eax
jne 0x888cf
movq 0x20(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x888c4
movq 0x10(%rsp), %rdi
leaq 0x4a853f(%rip), %rsi    # 0x530df2
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
jmp 0x888cd
movq 0x20(%rsp), %rax
movb $0x1, 0x10(%rax)
jmp 0x888cf
cmpl $0x0, 0xc(%rsp)
jne 0x8895d
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
movslq (%rcx), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x8891e
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x10(%rsp), %rsi
callq 0x84600
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
jmp 0x8893a
movq 0x10(%rsp), %rsi
leaq 0x5129fd(%rip), %rdi    # 0x59b327
callq 0x84600
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x88953
movq 0x20(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x8895b
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
jmp 0x8895d
jmp 0x8896b
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
movl 0xc(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nop