// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %r8, %r12
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %ebx
testq %r8, %r8
je 0xc5a0b
movq %r12, %rdi
callq 0x101a9a
testb %al, %al
jne 0xc5b7e
testq %r14, %r14
je 0xc5b79
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r15,%rax,8), %rsi
movl %ebx, %edi
callq 0xd89fc
leaq 0x8(%rsp), %rsi
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq %r12, %rdx
callq 0xd8a72
movl %eax, %ebx
testl %eax, %eax
jne 0xc5b5e
movq %r14, 0x20(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0xc5b5e
movq %r12, 0x18(%rsp)
movq 0x20(%rsp), %r13
movq 0x8(%rsp), %rdi
callq 0xd75d2
testq %rax, %rax
je 0xc5b2e
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd7118
movq %rax, %r12
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd71c2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd71ae
movq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0xd707d
movl (%r13), %r8d
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x16a8f8
movq %rax, %rbx
movq %rax, %rdi
callq 0x11941d
movq %rax, %r15
movq %rbx, %rdi
callq 0x11942d
movq %rax, %r14
movq %rbx, %rdi
callq 0x1194a2
movq 0x8(%r13), %rcx
movq 0x18(%r13), %r8
movq %r15, %rdi
leaq 0x29bee0(%rip), %r15    # 0x3619d5
movq %r14, %rsi
movq %rax, %rdx
callq 0x102ec0
movq %r12, %rdi
movq %r15, %rsi
movl $0x67, %edx
callq 0x109670
movq %rbx, %rdi
callq 0x1194b2
incq %rbp
movq 0x8(%rsp), %rdi
callq 0xd75d2
cmpq %rax, %rbp
jb 0xc5a73
movq 0x8(%rsp), %rdi
callq 0xd6f28
movq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0xd8a72
movl %eax, %ebx
testl %eax, %eax
jne 0xc5b5e
cmpq $0x0, 0x8(%rsp)
jne 0xc5a5e
movq 0x10(%rsp), %rdi
callq 0xd8a4a
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f3bc
callq 0x1f385
nop