// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r14
movq %rcx, %rbp
movl %edx, %r13d
movq %rsi, %rbx
movl %edi, %r15d
testq %r8, %r8
je 0xa6fd3
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa757d
movq %r14, 0x18(%rsp)
testq %rbp, %rbp
je 0xa756e
movq 0x8(%rbp), %rdi
callq 0x11b0ca
movl %r15d, %r14d
subl %r13d, %r14d
movslq %r13d, %rcx
leaq (%rbx,%rcx,8), %r12
testq %rax, %rax
je 0xa705c
movq 0x8(%rbp), %rbx
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rbp), %rbp
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xa7024
callq 0xfcc32
testb %al, %al
jne 0xa7587
movq %rbx, %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xa7582
cmpl %r13d, %r15d
jne 0xa7462
leaq 0x2a56f5(%rip), %rsi    # 0x34c73a
movq 0x18(%rsp), %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0xa754d
movl %r14d, %edi
movq %r12, %rsi
callq 0xd63a0
movq %rax, 0x48(%rsp)
movq 0x18(%rsp), %r13
movq %rbp, 0x20(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq %r13, %rdx
callq 0xd6416
movl %eax, %r12d
testl %eax, %eax
jne 0xa74e8
movq 0x40(%rsp), %r15
testq %r15, %r15
je 0xa74e8
movq 0x10(%rbp), %r14
movq 0x30(%rbp), %rax
movq %rax, 0x30(%rsp)
testq %r14, %r14
je 0xa712d
movq %r13, %rdi
movq 0x18(%rbp), %r13
movq 0x20(%rbp), %rbx
testq %rdi, %rdi
je 0xa70d0
callq 0xfcc32
testb %al, %al
jne 0xa7564
movq %r15, %rdi
callq 0xd4ff0
cmpq %r14, %rax
jb 0xa74b4
movq %r15, %rdi
callq 0xd4ff0
cmpq %r13, %rax
jb 0xa74b4
movq %rbx, 0x50(%rsp)
movq %r14, 0x38(%rsp)
leaq -0x1(%r14), %rbx
callq 0x11ac6c
movq %rax, %r14
movq %r15, %rdi
xorl %esi, %esi
callq 0xd4ba3
cmpq %rbx, %rax
movq %r14, 0x10(%rsp)
jbe 0xa7212
xorl %r12d, %r12d
movq %rbx, 0x28(%rsp)
jmp 0xa7267
movq (%rbp), %rdi
callq 0x11b0a1
movq %rax, %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
testq %r13, %r13
je 0xa7157
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa7578
testq %r14, %r14
je 0xa7569
movq %r15, %rdi
callq 0xd4fc8
xorl %r12d, %r12d
testq %rax, %rax
je 0xa744a
xorl %ebp, %ebp
movq %r15, %rdi
movq %rbp, %rsi
callq 0xd4bb7
testq %rax, %rax
je 0xa755f
movq %rax, %rbx
leaq 0xf(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r13, %rcx
callq 0xffd65
testl %eax, %eax
jne 0xa73cb
cmpb $0x1, 0xf(%rsp)
jne 0xa71f9
movq %r15, %rdi
movq %rbp, %rsi
callq 0xd4b0d
movq %rax, %r13
movq %r15, %rdi
movq %rbp, %rsi
callq 0xd4ba3
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
movq 0x10(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0xfe000
movq %r13, %rdi
movq 0x18(%rsp), %r13
leaq 0x2a52e7(%rip), %rsi    # 0x34c4d6
movl $0xf2, %edx
callq 0x1045eb
incq %rbp
movq %r15, %rdi
callq 0xd4fc8
cmpq %rax, %rbp
jb 0xa7176
jmp 0xa73ce
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %r15, %rdi
callq 0xd4fc8
cmpq %rax, %r12
jae 0xa724a
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
addq %rax, %rbp
incq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
addq %rbp, %rax
cmpq %rbx, %rax
jbe 0xa7217
jmp 0xa7253
testq %r12, %r12
je 0xa7120
testq %rbp, %rbp
je 0xa7573
subq %rbp, %rbx
movq %rbx, 0x28(%rsp)
movq %rbp, %rbx
movq %r13, %rbp
subq 0x38(%rsp), %rbp
leaq 0x1(%rbp), %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
subq 0x28(%rsp), %rax
movq %r14, 0x38(%rsp)
cmpq %rax, %r14
jbe 0xa7371
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
movq %rax, %rbp
leaq -0x1(%rax), %rcx
movq 0x28(%rsp), %rdx
subq %rdx, %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4d09
movq %rax, %r14
addq %rbp, %rbx
subq %rbx, %r13
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x11ae1b
movq %r14, %rdi
leaq 0x2a51fd(%rip), %rsi    # 0x34c4d6
movl $0xc3, %edx
callq 0x1045eb
incq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
cmpq %rax, %r13
jbe 0xa73ba
movq 0x20(%rsp), %rbp
movq %r15, %rdi
callq 0xd4fc8
decq %rax
cmpq %rax, %r12
jae 0xa73d5
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
movq %rax, %rbx
leaq -0x1(%rax), %rcx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd4d09
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x11ae1b
movq %r14, %rdi
leaq 0x2a5187(%rip), %rsi    # 0x34c4d6
movl $0xcc, %edx
callq 0x1045eb
subq %rbx, %r13
incq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd4ba3
cmpq %rax, %r13
ja 0xa72ff
jmp 0xa73bf
movq 0x28(%rsp), %rdx
addq %rdx, %rbp
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rcx
callq 0xd4d09
movq %rax, %rbx
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rdx
callq 0x11ae1b
movq %rbx, %rdi
leaq 0x2a512d(%rip), %rsi    # 0x34c4d6
movl $0xba, %edx
callq 0x1045eb
movq 0x20(%rsp), %rbp
jmp 0xa7410
movq 0x20(%rsp), %rbp
testq %r13, %r13
movq 0x10(%rsp), %r14
jne 0xa73da
jmp 0xa7410
movl %eax, %r12d
movq 0x20(%rsp), %rbp
jmp 0xa744a
movq 0x10(%rsp), %r14
leaq -0x1(%r13), %rcx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd4d09
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11ae1b
movq %rbx, %rdi
leaq 0x2a50d0(%rip), %rsi    # 0x34c4d6
movl $0xd5, %edx
callq 0x1045eb
movq %r14, %rdi
callq 0x11b0a1
movq %rax, %rbx
movq %r14, %rdi
callq 0x11b0ca
xorl %r12d, %r12d
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
movq 0x50(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0xfe000
movq %r14, %rdi
callq 0x11bdbf
movq 0x18(%rsp), %r13
movq 0x40(%rsp), %rdi
callq 0xd491d
testl %r12d, %r12d
je 0xa7076
jmp 0xa74e8
movq %rbp, 0x30(%rsp)
movq %rbx, %rbp
cmpl $0x1, %r14d
movq 0x18(%rsp), %r13
jne 0xa74a5
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x1b0c76
testb %al, %al
je 0xa74f4
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rcx
callq 0x1b0c82
xorl %r12d, %r12d
negl %eax
sbbl %r12d, %r12d
jmp 0xa754d
callq 0x11be10
movq %rax, %r15
testl %r14d, %r14d
jg 0xa74fc
jmp 0xa751b
movq %r15, %rdi
callq 0xd4ff0
leaq 0x2a52b7(%rip), %rsi    # 0x34c77a
movq 0x18(%rsp), %rdi
movq %r14, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xfcb67
movq 0x40(%rsp), %rdi
callq 0xd491d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0x48(%rsp), %rdi
callq 0xd63ee
jmp 0xa754d
callq 0x11be10
movq %rax, %r15
movl %r14d, %ebx
xorl %r13d, %r13d
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
callq 0x11bee9
incq %r13
cmpq %r13, %rbx
jne 0xa7502
movq 0x18(%rsp), %r13
movl $0x1, %edi
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0x1b104a
xorl %r12d, %r12d
cmpl $0x1, %eax
setne %r12b
negl %r12d
movq %r15, %rdi
callq 0x11c144
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1aa9e
callq 0x1a9f3
callq 0x1aad7
callq 0x1ab10
callq 0x1aa2c
callq 0x1aa65
callq 0x1a948
callq 0x1a9ba
callq 0x1a981