// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r13
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %r12d
testq %r8, %r8
je 0x290eb
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x296f5
testq %r13, %r13
je 0x296c4
movq 0x8(%r13), %rdi
callq 0xad289
movl %r12d, 0x20(%rsp)
movl %r12d, %r14d
subl %ebp, %r14d
movslq %ebp, %rcx
leaq (%r15,%rcx,8), %r12
testq %rax, %rax
movq %rbx, 0x18(%rsp)
je 0x29174
movq 0x8(%r13), %r15
movq 0x20(%r13), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%r13), %r13
testq %rbx, %rbx
je 0x2913f
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x29788
movq %r15, %rdi
callq 0xad289
testq %rax, %rax
je 0x29726
cmpl %ebp, 0x20(%rsp)
jne 0x29560
pushq $-0x1
popq %r12
leaq 0x2c35d5(%rip), %rsi    # 0x2ec73a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x295ed
movl %r14d, %edi
movq %r12, %rsi
callq 0x5d64c
movq %rax, 0x38(%rsp)
xorl %r12d, %r12d
movq %r13, %r14
movq %r13, 0x30(%rsp)
testl %r12d, %r12d
jne 0x29551
movq 0x38(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x5d6eb
movl %eax, %r12d
testl %eax, %eax
jne 0x29551
movq 0x40(%rsp), %r15
testq %r15, %r15
je 0x29551
movq 0x10(%r14), %rbp
movq 0x30(%r14), %rax
movq %rax, 0x20(%rsp)
testq %rbp, %rbp
je 0x2923d
movq 0x18(%r14), %r12
movq 0x20(%r14), %r13
testq %rbx, %rbx
je 0x291f2
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x29637
movq %r15, %rdi
callq 0x5bb07
cmpq %rbp, %rax
jb 0x29210
movq %r15, %rdi
callq 0x5bb07
cmpq %r12, %rax
jae 0x29319
movq %r15, %rdi
callq 0x5bb07
movq %rbx, %rdi
leaq 0x2c3558(%rip), %rsi    # 0x2ec77a
movq %rbp, %rdx
movq %r12, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
movl %eax, %r12d
jmp 0x29542
movq (%r14), %rdi
callq 0xad1fa
movq %rax, %r13
movq 0x20(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rbx, %rbx
je 0x29266
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x29693
testq %r13, %r13
je 0x29665
xorl %r12d, %r12d
xorl %r14d, %r14d
testl %r12d, %r12d
jne 0x2953d
movq %r15, %rdi
callq 0x5ba79
cmpq %rax, %r14
jae 0x2953d
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b338
testq %rax, %rax
je 0x295ff
movq %rax, %rbp
leaq 0xf(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x8e835
movl %eax, %r12d
testl %eax, %eax
jne 0x29311
cmpb $0x1, 0xf(%rsp)
jne 0x29311
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b1f9
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b2f1
movq %rbp, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %r8
callq 0x8c0bc
movq %rbx, %rdi
movq 0x18(%rsp), %rbx
leaq 0x2c31cf(%rip), %rsi    # 0x2ec4d6
movl $0xf2, %edx
callq 0x936f9
incq %r14
jmp 0x29275
movq %r13, 0x50(%rsp)
movq %r12, %rax
subq %rbp, %rax
movq %rax, 0x48(%rsp)
incq %rax
movq %rax, 0x28(%rsp)
decq %rbp
callq 0xacb84
movq %rax, 0x10(%rsp)
pushq $0x1
popq %r13
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b2f1
addq %rbx, %rax
cmpq %rbp, %rax
ja 0x2937d
movq %r15, %rdi
callq 0x5ba79
cmpq %rax, %r14
jae 0x2937d
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b2f1
addq %rax, %rbx
incq %r14
incq %r13
jmp 0x29347
testq %r14, %r14
je 0x29390
testq %rbx, %rbx
je 0x29757
subq %rbx, %rbp
jmp 0x29393
movq %rbp, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b2f1
subq %rbp, %rax
movq 0x28(%rsp), %rdx
cmpq %rax, %rdx
jbe 0x2947e
movq %r15, %rdi
movq %r14, %rsi
callq 0x5b2f1
leaq -0x1(%rax), %rcx
subq %rbp, %rax
movq %rax, 0x28(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x5b5a5
movq %rax, %r14
movq 0x28(%rsp), %rdx
addq %rdx, %rbx
subq %rbx, %r12
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xacd9e
movq %r14, %rdi
leaq 0x2c30dd(%rip), %rsi    # 0x2ec4d6
movl $0xc3, %edx
callq 0x936f9
movq 0x18(%rsp), %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x5b2f1
cmpq %rax, %r12
jbe 0x294c5
movq %r15, %rdi
callq 0x5ba79
decq %rax
cmpq %rax, %r13
jae 0x294ca
movq %r15, %rdi
movq %r13, %rsi
callq 0x5b2f1
movq %rax, %r14
leaq -0x1(%rax), %rcx
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x5b5a5
movq %rax, %rbp
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xacd9e
movq %rbp, %rdi
leaq 0x2c306a(%rip), %rsi    # 0x2ec4d6
movl $0xcc, %edx
callq 0x936f9
subq %r14, %r12
incq %r13
jmp 0x29408
movq 0x48(%rsp), %rcx
addq %rbp, %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rdx, %rbx
movq %rbp, %rdx
callq 0x5b5a5
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xacd9e
movq %r14, %rdi
leaq 0x2c3022(%rip), %rsi    # 0x2ec4d6
movl $0xba, %edx
callq 0x936f9
movq 0x18(%rsp), %rbx
jmp 0x29503
testq %r12, %r12
je 0x29503
leaq -0x1(%r12), %rcx
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x5b5a5
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0xacd9e
movq %r14, %rdi
leaq 0x2c2fdd(%rip), %rsi    # 0x2ec4d6
movl $0xd5, %edx
callq 0x936f9
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xad1fa
movq %rax, %r14
movq %r15, %rdi
callq 0xad289
xorl %r12d, %r12d
xorl %edi, %edi
movq %r14, %rsi
movq %rax, %rdx
movq 0x50(%rsp), %rcx
movq 0x20(%rsp), %r8
callq 0x8c0bc
movq %r15, %rdi
callq 0xae103
movq 0x30(%rsp), %r14
movq 0x40(%rsp), %rdi
callq 0x5af87
jmp 0x2918f
movq 0x38(%rsp), %rdi
callq 0x5d6c5
jmp 0x295ed
movq %r13, %rbp
cmpl $0x1, %r14d
jne 0x29596
movq (%r12), %r13
movq %r13, %rdi
callq 0x15e60c
testb %al, %al
je 0x29596
movq %r13, %rdi
movq %r15, %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rcx
callq 0x15e618
xorl %r12d, %r12d
negl %eax
sbbl %r12d, %r12d
jmp 0x295ed
callq 0xae154
movq %rax, %r13
xorl %ebx, %ebx
testl %r14d, %r14d
cmovlel %ebx, %r14d
cmpq %rbx, %r14
je 0x295bd
movq (%r12,%rbx,8), %rsi
movq %r13, %rdi
callq 0xae22f
incq %rbx
jmp 0x295a7
pushq $0x1
popq %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
movq %r13, %r8
movq 0x18(%rsp), %r9
callq 0x15ea5b
xorl %r12d, %r12d
cmpl $0x1, %eax
setne %r12b
negl %r12d
movq %r13, %rdi
callq 0xae662
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40e962(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bba03(%rip), %rsi    # 0x2e5013
leaq 0x2e7068(%rip), %rdx    # 0x31067f
leaq 0x2c31b3(%rip), %rcx    # 0x2ec7d1
leaq 0x2c2eb1(%rip), %r8     # 0x2ec4d6
movl $0xec, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x40e92a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb9cb(%rip), %rsi    # 0x2e5013
leaq 0x2bbb70(%rip), %rdx    # 0x2e51bf
leaq 0x2c3115(%rip), %rcx    # 0x2ec76b
leaq 0x2c2e79(%rip), %r8     # 0x2ec4d6
movl $0x99, %r9d
jmp 0x2962b
movq 0x40e8fc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb99d(%rip), %rsi    # 0x2e5013
leaq 0x2c3165(%rip), %rdx    # 0x2ec7e2
leaq 0x2c314d(%rip), %rcx    # 0x2ec7d1
leaq 0x2c2e4b(%rip), %r8     # 0x2ec4d6
movl $0xe8, %r9d
jmp 0x2962b
movq 0x40e8ce(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb96f(%rip), %rsi    # 0x2e5013
leaq 0x2bbb14(%rip), %rdx    # 0x2e51bf
leaq 0x2c311f(%rip), %rcx    # 0x2ec7d1
leaq 0x2c2e1d(%rip), %r8     # 0x2ec4d6
movl $0xe7, %r9d
jmp 0x2962b
movq 0x40e89d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb93e(%rip), %rsi    # 0x2e5013
leaq 0x31ef77(%rip), %rdx    # 0x348653
leaq 0x2c3011(%rip), %rcx    # 0x2ec6f4
leaq 0x2c2dec(%rip), %r8     # 0x2ec4d6
movl $0x12c, %r9d            # imm = 0x12C
jmp 0x2962b
movq 0x40e86c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb90d(%rip), %rsi    # 0x2e5013
leaq 0x2bbab2(%rip), %rdx    # 0x2e51bf
leaq 0x2c2fe0(%rip), %rcx    # 0x2ec6f4
leaq 0x2c2dbb(%rip), %r8     # 0x2ec4d6
movl $0x12b, %r9d            # imm = 0x12B
jmp 0x2962b
movq 0x40e83b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb8dc(%rip), %rsi    # 0x2e5013
leaq 0x2c2fe0(%rip), %rdx    # 0x2ec71e
leaq 0x2c2fc4(%rip), %rcx    # 0x2ec709
leaq 0x2c2d8a(%rip), %r8     # 0x2ec4d6
movl $0xff, %r9d
jmp 0x2962b
movq 0x40e80a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb8ab(%rip), %rsi    # 0x2e5013
leaq 0x2c3056(%rip), %rdx    # 0x2ec7c5
leaq 0x2c2ff5(%rip), %rcx    # 0x2ec76b
leaq 0x2c2d59(%rip), %r8     # 0x2ec4d6
movl $0xb0, %r9d
jmp 0x2962b
movq 0x40e7d9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bb87a(%rip), %rsi    # 0x2e5013
leaq 0x2bba1f(%rip), %rdx    # 0x2e51bf
leaq 0x2c2f62(%rip), %rcx    # 0x2ec709
leaq 0x2c2d28(%rip), %r8     # 0x2ec4d6
movl $0xfe, %r9d
jmp 0x2962b
nopl (%rax)