// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_seqmutate.c
// Function: gt_seqmutate_runner
static int gt_seqmutate_runner(int argc, const char **argv, int parsed_args,
                            void *tool_arguments, GtError *err)
{
  MutateArguments *arguments = tool_arguments;
  GtBioseqIterator *bsi;
  GtUword i;
  GtBioseq *bioseq;
  GtSeq *mutated_seq;
  int had_err;

  gt_error_check(err);
  gt_assert(arguments);

  bsi = gt_bioseq_iterator_new(argc - parsed_args, argv + parsed_args);

  while (!(had_err = gt_bioseq_iterator_next(bsi, &bioseq, err)) && bioseq) {
    char *seq;
    for (i = 0; i < gt_bioseq_number_of_sequences(bioseq); i++) {
      seq = gt_bioseq_get_sequence(bioseq, i);
      mutated_seq = gt_mutate_seq(gt_bioseq_get_description(bioseq, i),
                                  seq,
                                  gt_bioseq_get_sequence_length(bioseq, i),
                                  gt_bioseq_get_alphabet(bioseq),
                                  arguments->rate);
      gt_fasta_show_entry(gt_seq_get_description(mutated_seq),
                          gt_seq_get_orig(mutated_seq),
                          gt_seq_length(mutated_seq),
                          arguments->width, arguments->outfp);
      gt_free(seq);
      gt_seq_delete(mutated_seq);
    }
    gt_bioseq_delete(bioseq);
  }

  gt_bioseq_iterator_delete(bsi);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %ebx
testq %r8, %r8
je 0x47a88
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x47bde
testq %r14, %r14
je 0x47bb4
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r15,%rax,8), %rsi
movl %ebx, %edi
callq 0x5d64c
movq %rax, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq 0x8(%rsp), %rdi
movq %rsp, %rsi
movq %r12, %rdx
callq 0x5d6eb
movl %eax, %ebx
testl %eax, %eax
jne 0x47b99
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x47b99
xorl %r12d, %r12d
callq 0x5ba79
movq (%rsp), %rdi
cmpq %rax, %r12
jae 0x47b8a
movq %r12, %rsi
callq 0x5b1f9
movq %rax, %rbx
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5b338
movq %rax, %r15
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5b2f1
movq %rax, %r13
movq (%rsp), %rdi
callq 0x5b0cc
movl (%r14), %r8d
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %rax, %rcx
callq 0x102548
movq %rax, %r15
movq %rax, %rdi
callq 0xa5720
movq %rax, %r13
movq %r15, %rdi
callq 0xa5761
movq %rax, %rbp
movq %r15, %rdi
callq 0xa5869
movq 0x8(%r14), %rcx
movq 0x18(%r14), %r8
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x8c0bc
movq %rbx, %rdi
leaq 0x2b0e24(%rip), %rsi    # 0x2f8992
pushq $0x67
popq %rdx
callq 0x936f9
movq %r15, %rdi
callq 0xa58aa
incq %r12
movq (%rsp), %rdi
jmp 0x47ad5
callq 0x5af87
movq 0x10(%rsp), %r12
jmp 0x47aab
movq 0x8(%rsp), %rdi
callq 0x5d6c5
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f03ad(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29d44e(%rip), %rsi    # 0x2e5013
leaq 0x300a87(%rip), %rdx    # 0x348653
leaq 0x2b0e41(%rip), %rcx    # 0x2f8a14
leaq 0x2b0db8(%rip), %r8     # 0x2f8992
pushq $0x56
jmp 0x47c06
movq 0x3f0383(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29d424(%rip), %rsi    # 0x2e5013
leaq 0x29d5c9(%rip), %rdx    # 0x2e51bf
leaq 0x2b0e17(%rip), %rcx    # 0x2f8a14
leaq 0x2b0d8e(%rip), %r8     # 0x2f8992
pushq $0x55
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390