// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_extractseq.c
// Function: extractseq_match
static int extractseq_match(GtFile *outfp, GtBioseq *bs,
                            const char *pattern, GtUword width,
                            GtError *err)
{
  const char *desc;
  GtUword i;
  bool match;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(bs && pattern);

  for (i = 0; !had_err && i < gt_bioseq_number_of_sequences(bs); i++) {
    desc = gt_bioseq_get_description(bs, i);
    gt_assert(desc);
    had_err = gt_grep(&match, pattern, desc, err);
    if (!had_err && match) {
      char *out = gt_bioseq_get_sequence(bs, i);
      gt_fasta_show_entry(desc, out, gt_bioseq_get_sequence_length(bs, i),
                          width, outfp);
      gt_free(out);
    }
  }

  return had_err;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movl $0x0, 0x28(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x35d25
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x35ced
jmp 0x35d25
movq 0x6062ac(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e0315(%rip), %rsi    # 0x516013
leaq 0x4e04ba(%rip), %rdx    # 0x5161bf
leaq 0x4e7b4f(%rip), %rcx    # 0x51d85b
leaq 0x4e784d(%rip), %r8     # 0x51d560
movl $0xe7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x35d27
jmp 0x35d29
cmpq $0x0, 0x58(%rsp)
je 0x35d39
cmpq $0x0, 0x50(%rsp)
jne 0x35d71
movq 0x606260(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e02c9(%rip), %rsi    # 0x516013
leaq 0x4e7b1b(%rip), %rdx    # 0x51d86c
leaq 0x4e7b03(%rip), %rcx    # 0x51d85b
leaq 0x4e7801(%rip), %r8     # 0x51d560
movl $0xe8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x35d73
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x28(%rsp)
movb %al, 0x1f(%rsp)
jne 0x35daf
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
callq 0x85910
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x35dbc
jmp 0x35eb9
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x84ea0
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x35e10
movq 0x6061c1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e022a(%rip), %rsi    # 0x516013
leaq 0x50c7e5(%rip), %rdx    # 0x5425d5
leaq 0x4e7a64(%rip), %rcx    # 0x51d85b
leaq 0x4e7762(%rip), %r8     # 0x51d560
movl $0xec, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x35e12
movq 0x50(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
leaq 0x2f(%rsp), %rdi
callq 0xdfdb0
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x28(%rsp)
jne 0x35ea4
testb $0x1, 0x2f(%rsp)
je 0x35ea4
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x84cc0
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x84e30
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq 0x48(%rsp), %rcx
movq 0x60(%rsp), %r8
callq 0xdbd10
movq 0x20(%rsp), %rdi
leaq 0x4e76c6(%rip), %rsi    # 0x51d560
movl $0xf2, %edx
callq 0xe88c0
jmp 0x35ea6
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x35d7c
movl 0x28(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)