// File: /workspace/github_c_makefile_star2_O3/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, %r13
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %ebx
testq %r8, %r8
je 0xc38e7
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0xc3a60
movq %r14, 0x20(%rsp)
testq %r14, %r14
je 0xc3a5b
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r15,%rax,8), %rsi
movl %ebx, %edi
callq 0xd63a0
leaq 0x8(%rsp), %r12
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xd6416
movl %eax, %ebx
testl %eax, %eax
sete %al
movq (%r12), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xc3a40
movq %r13, 0x18(%rsp)
movq 0x20(%rsp), %r13
callq 0xd4fc8
testq %rax, %rax
je 0xc3a0e
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd4b0d
movq %rax, %r12
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd4bb7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xd4ba3
movq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0xd4a72
movl (%r13), %r8d
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x162a78
movq %rax, %rbx
movq %rax, %rdi
callq 0x113d45
movq %rax, %r15
movq %rbx, %rdi
callq 0x113d55
movq %rax, %r14
movq %rbx, %rdi
callq 0x113dcc
movq 0x8(%r13), %rcx
movq 0x18(%r13), %r8
movq %r15, %rdi
leaq 0x294fad(%rip), %r15    # 0x358982
movq %r14, %rsi
movq %rax, %rdx
callq 0xfe000
movq %r12, %rdi
movq %r15, %rsi
movl $0x67, %edx
callq 0x1045eb
movq %rbx, %rdi
callq 0x113ddc
incq %rbp
movq 0x8(%rsp), %rdi
callq 0xd4fc8
cmpq %rax, %rbp
jb 0xc3953
movq 0x8(%rsp), %rdi
callq 0xd491d
movq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0xd6416
movl %eax, %ebx
testl %eax, %eax
jne 0xc3a40
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
jne 0xc3943
movq 0x10(%rsp), %rdi
callq 0xd63ee
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f032
callq 0x1effb
nopl (%rax)