// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_extractseq.c
// Function: gt_extractseq_runner
static int gt_extractseq_runner(int argc, const char **argv, int parsed_args,
                                void *tool_arguments, GtError *err)
{
  ExtractSeqArguments *arguments = tool_arguments;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);
  if (gt_str_length(arguments->fastakeyfile)) {
    had_err = process_fastakeyfile(arguments->fastakeyfile, argc - parsed_args,
                            argv + parsed_args, arguments->width,
                            arguments->outfp, err);
  }
  else {
    GtBioseqIterator *bsi;
    GtBioseq *bs;
    bsi = gt_bioseq_iterator_new(argc - parsed_args, argv + parsed_args);
    while (!had_err &&
           !(had_err = gt_bioseq_iterator_next(bsi, &bs, err)) && bs) {
      if (arguments->frompos) {
        had_err = extractseq_pos(arguments->outfp, bs, arguments->frompos,
                                 arguments->topos, arguments->width, err);
      }
      else {
        had_err = extractseq_match(arguments->outfp, bs,
                                   gt_str_get(arguments->pattern),
                                   arguments->width, err);
      }
      gt_bioseq_delete(bs);
    }
    gt_bioseq_iterator_delete(bsi);
  }
  return had_err;
}

// Assembly:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x3525d
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x35225
jmp 0x3525d
movq 0x606d74(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e0ddd(%rip), %rsi    # 0x516013
leaq 0x4e0f82(%rip), %rdx    # 0x5161bf
leaq 0x4e853a(%rip), %rcx    # 0x51d77e
leaq 0x4e8315(%rip), %r8     # 0x51d560
movl $0x12b, %r9d            # imm = 0x12B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3525f
jmp 0x35261
cmpq $0x0, 0x38(%rsp)
jne 0x352a1
movq 0x606d30(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e0d99(%rip), %rsi    # 0x516013
leaq 0x5458de(%rip), %rdx    # 0x57ab5f
leaq 0x4e84f6(%rip), %rcx    # 0x51d77e
leaq 0x4e82d1(%rip), %r8     # 0x51d560
movl $0x12c, %r9d            # imm = 0x12C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x352a3
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x352fe
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
movl 0x64(%rsp), %esi
subl 0x54(%rsp), %esi
movq 0x58(%rsp), %rdx
movslq 0x54(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x38(%rsp), %rax
movq 0x30(%rax), %r8
movq 0x40(%rsp), %r9
callq 0x35420
movl %eax, 0x34(%rsp)
jmp 0x35414
movl 0x64(%rsp), %edi
subl 0x54(%rsp), %edi
movq 0x58(%rsp), %rsi
movslq 0x54(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x88690
movq %rax, 0x28(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x34(%rsp)
movb %al, 0x1f(%rsp)
jne 0x35360
movq 0x28(%rsp), %rdi
movq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rsi
callq 0x88790
movl %eax, %ecx
movl %ecx, 0x34(%rsp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x1f(%rsp)
jne 0x35360
cmpq $0x0, 0x20(%rsp)
setne %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x3536d
jmp 0x3540a
movq 0x38(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x353b2
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x20(%rsp), %rsi
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x38(%rsp), %rax
movq 0x20(%rax), %r8
movq 0x40(%rsp), %r9
callq 0x355f0
movl %eax, 0x34(%rsp)
jmp 0x353fb
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x40(%rsp), %r8
callq 0x35cb0
movl %eax, 0x34(%rsp)
movq 0x20(%rsp), %rdi
callq 0x84960
jmp 0x35321
movq 0x28(%rsp), %rdi
callq 0x88750
movl 0x34(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax)