// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %r8, %r15
movq %rcx, 0x28(%rsp)
movl %edx, %r13d
movq %rsi, %r12
movl %edi, %ebx
testq %r8, %r8
je 0xa9364
movq %r15, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa98cd
movq %r15, 0x10(%rsp)
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0xa98c8
movq 0x8(%r14), %rdi
callq 0x120d4c
movl %ebx, %ebp
subl %r13d, %ebp
movslq %r13d, %rcx
leaq (%r12,%rcx,8), %r12
testq %rax, %rax
je 0xa93f1
movq 0x8(%r14), %r15
movq 0x20(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%r14), %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa93b9
callq 0x101a9a
testb %al, %al
jne 0xa98dc
movq %r15, %rdi
callq 0x120d4c
testq %rax, %rax
je 0xa98d2
cmpl %r13d, %ebx
jne 0xa9817
leaq 0x2ac38f(%rip), %rsi    # 0x355769
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0xa98a2
movl %ebp, %edi
movq %r12, %rsi
callq 0xd89fc
movq %rax, %r13
movq 0x10(%rsp), %rbx
movq %rax, 0x30(%rsp)
movq %r13, %rdi
leaq 0x38(%rsp), %rsi
movq %rbx, %rdx
callq 0xd8a72
movl %eax, %r15d
testl %eax, %eax
jne 0xa980a
movq 0x38(%rsp), %r12
testq %r12, %r12
je 0xa980a
movq 0x10(%r14), %rbp
testq %rbp, %rbp
je 0xa94b0
movq 0x18(%r14), %r15
movq 0x20(%r14), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x40(%rsp)
testq %rbx, %rbx
je 0xa9465
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa98b9
movq %r12, %rdi
callq 0xd75fa
cmpq %rbp, %rax
jb 0xa9483
movq %r12, %rdi
callq 0xd75fa
cmpq %r15, %rax
jae 0xa95a3
movq %r12, %rdi
callq 0xd75fa
movq %rbx, %rdi
leaq 0x2ac314(%rip), %rsi    # 0x3557a9
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0xa97f7
movq (%r14), %rdi
movq 0x30(%r14), %rax
movq %rax, 0x8(%rsp)
callq 0x120d23
movq %rax, %r13
movq 0x20(%r14), %rax
movq %rax, 0x18(%rsp)
testq %rbx, %rbx
je 0xa94e2
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa98c3
testq %r13, %r13
je 0xa98be
movq %r12, %rdi
callq 0xd75d2
testq %rax, %rax
je 0xa9616
xorl %ebx, %ebx
movq %r12, %rdi
movq %rbx, %rsi
callq 0xd71c2
testq %rax, %rax
je 0xa98b4
movq %rax, %r14
leaq 0x7(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq 0x10(%rsp), %rcx
callq 0x104c64
movl %eax, %r15d
testl %eax, %eax
jne 0xa97e8
cmpb $0x1, 0x7(%rsp)
jne 0xa9581
movq %r12, %rdi
movq %rbx, %rsi
callq 0xd7118
movq %rax, %rbp
movq %r12, %rdi
movq %rbx, %rsi
callq 0xd71ae
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rdx
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x102ec0
movq %rbp, %rdi
leaq 0x2abf8e(%rip), %rsi    # 0x355505
movl $0xf2, %edx
callq 0x109670
testl %r15d, %r15d
jne 0xa97e8
incq %rbx
movq %r12, %rdi
callq 0xd75d2
cmpq %rax, %rbx
jb 0xa94fe
jmp 0xa97e8
leaq -0x1(%rbp), %rbx
callq 0x1208f8
movq %rax, 0x8(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0xd71ae
movl $0x0, %r14d
movl $0x0, %r13d
cmpq %rbx, %rax
ja 0xa9603
xorl %r13d, %r13d
xorl %r14d, %r14d
movq %r12, %rdi
callq 0xd75d2
cmpq %rax, %r13
jae 0xa9603
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
addq %rax, %r14
incq %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
addq %r14, %rax
cmpq %rbx, %rax
jbe 0xa95d2
testq %r13, %r13
je 0xa961e
testq %r14, %r14
je 0xa98d7
subq %r14, %rbx
jmp 0xa9621
xorl %r15d, %r15d
jmp 0xa97e8
movq %rbx, %r14
movq %rbx, 0x20(%rsp)
movq %r15, %rbx
subq %rbp, %rbx
leaq 0x1(%rbx), %rbp
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
subq 0x20(%rsp), %rax
cmpq %rax, %rbp
jbe 0xa9729
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
movq %rax, %rbx
leaq -0x1(%rax), %rcx
movq 0x20(%rsp), %rdx
subq %rdx, %rbx
movq %r12, %rdi
movq %r13, %rsi
callq 0xd7314
movq %rax, %rbp
addq %rbx, %r14
subq %r14, %r15
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x120a9d
movq %rbp, %rdi
leaq 0x2abe74(%rip), %rsi    # 0x355505
movl $0xc3, %edx
callq 0x109670
incq %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
cmpq %rax, %r15
jbe 0xa9770
movq 0x18(%rsp), %rbp
movq %r12, %rdi
callq 0xd75d2
decq %rax
cmpq %rax, %r13
jae 0xa9775
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
movq %rax, %rbx
leaq -0x1(%rax), %rcx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd7314
movq %rax, %r14
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x120a9d
movq %r14, %rdi
leaq 0x2abdfe(%rip), %rsi    # 0x355505
movl $0xcc, %edx
callq 0x109670
subq %rbx, %r15
incq %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xd71ae
cmpq %rax, %r15
ja 0xa96b7
jmp 0xa9775
movq 0x20(%rsp), %rdx
addq %rdx, %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rcx
callq 0xd7314
movq %rax, %rbx
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x120a9d
movq %rbx, %rdi
leaq 0x2abda6(%rip), %rsi    # 0x355505
movl $0xba, %edx
callq 0x109670
movq 0x18(%rsp), %rbp
jmp 0xa97b5
movq 0x18(%rsp), %rbp
testq %r15, %r15
movq 0x8(%rsp), %r14
je 0xa97b5
leaq -0x1(%r15), %rcx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd7314
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x120a9d
movq %rbx, %rdi
leaq 0x2abd5a(%rip), %rsi    # 0x355505
movl $0xd5, %edx
callq 0x109670
movq %r14, %rdi
callq 0x120d23
movq %rax, %rbx
movq %r14, %rdi
callq 0x120d4c
xorl %r15d, %r15d
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
movq %rbp, %rcx
movq 0x40(%rsp), %r8
callq 0x102ec0
movq %r14, %rdi
callq 0x121b03
movq 0x10(%rsp), %rbx
movq 0x28(%rsp), %r14
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rdi
callq 0xd6f28
testl %r15d, %r15d
je 0xa9408
movq %r13, %rdi
callq 0xd8a4a
jmp 0xa98a2
cmpl $0x1, %ebp
jne 0xa984b
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x1b97e4
testb %al, %al
je 0xa984b
movq %rbx, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq 0x1b97f0
xorl %r15d, %r15d
negl %eax
sbbl %r15d, %r15d
jmp 0xa98a2
callq 0x121b54
movq %rax, %rbx
testl %ebp, %ebp
jle 0xa9870
movl %ebp, %r13d
xorl %ebp, %ebp
movq (%r12,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x121c30
incq %rbp
cmpq %rbp, %r13
jne 0xa985c
movl $0x1, %edi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rcx
movq %rbx, %r8
movq 0x10(%rsp), %r9
callq 0x1b9c24
xorl %r15d, %r15d
cmpl $0x1, %eax
setne %r15b
negl %r15d
movq %rbx, %rdi
callq 0x121e8b
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1ab61
callq 0x1aab6
callq 0x1ab9a
callq 0x1ab28
callq 0x1abd3
callq 0x1aa0b
callq 0x1aa7d
callq 0x1aaef
callq 0x1aa44
nopl (%rax)