// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/mutate.c
// Function: gt_mutate_seq
GtSeq* gt_mutate_seq(const char *description, const char *orig_seq,
                     GtUword len, GtAlphabet *alphabet, unsigned int rate)
{
  char *mutated_description, *mutated_seq;
  GtSeq *seq;
  gt_assert(description && orig_seq && alphabet);
  gt_assert(rate <= 100);
  mutated_description = mutate_description(description, rate);
  mutated_seq = mutate_seq(orig_seq, len, alphabet, rate);
  seq = gt_seq_new_own(mutated_seq, strlen(mutated_seq), alphabet);
  gt_seq_set_description_own(seq, mutated_description);
  return seq;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
testq %rdi, %rdi
je 0x102768
movq %rsi, %r12
testq %rsi, %rsi
je 0x102768
testq %rcx, %rcx
je 0x102768
movl %r8d, %ebp
cmpl $0x65, %r8d
jae 0x102792
movq %rdx, %r15
movq %rdi, %r14
movq %rcx, (%rsp)
callq 0x172d0
movq %rax, %rbx
addq $0x19, %rbx
leaq 0x22b1ac(%rip), %rsi    # 0x32d74a
pushq $0x28
popq %rdx
movq %rbx, %rdi
callq 0x93160
leaq 0x22b1cf(%rip), %rdx    # 0x32d77f
leaq 0x22b1d0(%rip), %r8     # 0x32d787
movq %rax, 0x28(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x17bf0
cltq
cmpq %rax, %rbx
jbe 0x1027bc
cvtsi2sd %ebp, %xmm0
divsd 0x1e71fa(%rip), %xmm0   # 0x2e97e0
movsd %xmm0, 0x30(%rsp)
leaq (%r15,%r15), %rdi
leaq 0x22b153(%rip), %rsi    # 0x32d74a
pushq $0x45
popq %rdx
callq 0x93160
movq %rax, %r13
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ebp, %ebp
xorl %r14d, %r14d
cmpq %r15, %r14
jae 0x1026dd
callq 0x17820
movq (%rax), %rax
movsbq (%r12,%r14), %rcx
movzwl (%rax,%rcx,2), %ebx
callq 0x9576b
movsd 0x30(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x102667
movb (%r12,%r14), %al
incq %r14
movb %al, (%r13,%rbp)
incq %rbp
jmp 0x10262b
callq 0x9576b
movsd 0x1ebb54(%rip), %xmm1   # 0x2ee1c8
ucomisd %xmm0, %xmm1
jae 0x102692
movsd 0x22b08e(%rip), %xmm1   # 0x32d710
ucomisd %xmm0, %xmm1
jae 0x1026b5
incq %r14
incq 0x10(%rsp)
jmp 0x1026d3
shrl $0x8, %ebx
andl $0x1, %ebx
movq (%rsp), %rdi
movl %ebx, %esi
callq 0x1027f2
movb %al, (%r13,%rbp)
incq %rbp
incq 0x18(%rsp)
incq %r14
jmp 0x1026d3
shrl $0x8, %ebx
andl $0x1, %ebx
movq (%rsp), %rdi
movl %ebx, %esi
callq 0x1027f2
movb %al, (%r13,%rbp)
incq %rbp
incq 0x8(%rsp)
incq 0x20(%rsp)
jmp 0x10262b
movb $0x0, (%r13,%rbp)
leaq 0x22b0d1(%rip), %rdi    # 0x32d7bb
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x92a82
leaq 0x22b0e3(%rip), %rdi    # 0x32d7e0
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x92a82
leaq 0x22b0f3(%rip), %rdi    # 0x32d803
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x92a82
leaq 0x22b100(%rip), %rdi    # 0x32d823
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x92a82
movq %r13, %rdi
callq 0x172d0
movq %r13, %rdi
movq %rax, %rsi
movq (%rsp), %rdx
callq 0xa5660
movq %rax, %rbx
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0xa56ad
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3357f9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e289a(%rip), %rsi    # 0x2e5013
leaq 0x22af98(%rip), %rdx    # 0x32d718
leaq 0x22afb5(%rip), %rcx    # 0x32d73c
leaq 0x22afbc(%rip), %r8     # 0x32d74a
pushq $0x70
jmp 0x1027e4
movq 0x3357cf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e2870(%rip), %rsi    # 0x2e5013
leaq 0x22afb6(%rip), %rdx    # 0x32d760
leaq 0x22af8b(%rip), %rcx    # 0x32d73c
leaq 0x22af92(%rip), %r8     # 0x32d74a
pushq $0x71
jmp 0x1027e4
movq 0x3357a5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e2846(%rip), %rsi    # 0x2e5013
leaq 0x22afc8(%rip), %rdx    # 0x32d79c
leaq 0x22af91(%rip), %rcx    # 0x32d76c
leaq 0x22af68(%rip), %r8     # 0x32d74a
pushq $0x2b
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390