// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, 0x30(%rsp)
testq %rdi, %rdi
je 0x16ab60
movq %rsi, %r12
testq %rsi, %rsi
je 0x16ab60
cmpq $0x0, 0x8(%rsp)
je 0x16ab60
movl %r8d, %ebx
cmpl $0x65, %r8d
jae 0x16ab65
movq %rdi, %r14
callq 0x172f0
movq %rax, %r13
addq $0x19, %r13
leaq 0x22bde6(%rip), %rsi    # 0x39673a
movq %r13, %rdi
movl $0x28, %edx
callq 0x1092b2
movq %rax, %r15
leaq 0x22be04(%rip), %rdx    # 0x39676f
leaq 0x22be05(%rip), %r8     # 0x396777
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x17c60
cltq
cmpq %rax, %r13
jbe 0x16ab6a
movq %r15, 0x38(%rsp)
movq 0x30(%rsp), %r14
leaq (%r14,%r14), %rdi
leaq 0x22bd95(%rip), %rsi    # 0x39673a
movl $0x45, %edx
callq 0x1092b2
movq %rax, 0x10(%rsp)
testq %r14, %r14
je 0x16aab2
cvtsi2sd %ebx, %xmm0
divsd 0x1e7e27(%rip), %xmm0   # 0x3527f0
movsd %xmm0, 0x40(%rsp)
xorl %r13d, %r13d
callq 0x17870
movq %rax, %r14
xorl %r15d, %r15d
movq $0x0, 0x28(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq (%r14), %rax
movsbq (%r12,%r13), %rcx
movzwl (%rax,%rcx,2), %ebx
callq 0x10af04
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x16aa2c
movb (%r12,%r13), %al
incq %r13
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
jmp 0x16aaa5
callq 0x10af04
movsd 0x1ec7bf(%rip), %xmm1   # 0x3571f8
ucomisd %xmm0, %xmm1
jae 0x16aa57
movsd 0x22bcb9(%rip), %xmm1   # 0x396700
ucomisd %xmm0, %xmm1
jae 0x16aa7f
incq %r13
incq 0x20(%rsp)
jmp 0x16aaa2
shrl $0x8, %ebx
andl $0x1, %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x16ab6f
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
incq 0x28(%rsp)
incq %r13
jmp 0x16aaa2
shrl $0x8, %ebx
andl $0x1, %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x16ab6f
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
incq 0x18(%rsp)
incq %rbp
cmpq 0x30(%rsp), %r13
jb 0x16a9fa
jmp 0x16aad2
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x28(%rsp)
xorl %r15d, %r15d
movq 0x10(%rsp), %rbx
movb $0x0, (%rbx,%r15)
leaq 0x22bcc8(%rip), %rdi    # 0x3967ab
movq %rbp, %rsi
xorl %eax, %eax
callq 0x108e02
leaq 0x22bcdc(%rip), %rdi    # 0x3967d0
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x108e02
leaq 0x22bcec(%rip), %rdi    # 0x3967f3
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x108e02
leaq 0x22bcf9(%rip), %rdi    # 0x396813
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x108e02
movq %rbx, %rdi
callq 0x172f0
movq %rbx, %rdi
movq %rax, %rsi
movq 0x8(%rsp), %rdx
callq 0x1193bd
movq %rax, %rbx
movq %rax, %rdi
movq 0x38(%rsp), %rsi
callq 0x1193d9
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4e9cd
callq 0x4ea04
callq 0x4ea3b