// File: /workspace/github_c_makefile_star2_O3/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 0x162ce0
movq %rsi, %r12
testq %rsi, %rsi
je 0x162ce0
cmpq $0x0, 0x8(%rsp)
je 0x162ce0
movl %r8d, %ebx
cmpl $0x65, %r8d
jae 0x162ce5
movq %rdi, %r14
callq 0x172f0
movq %rax, %r13
addq $0x19, %r13
leaq 0x22a886(%rip), %rsi    # 0x38d35a
movq %r13, %rdi
movl $0x28, %edx
callq 0x104226
movq %rax, %r15
leaq 0x22a8a4(%rip), %rdx    # 0x38d38f
leaq 0x22a8a5(%rip), %r8     # 0x38d397
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x17c60
cltq
cmpq %rax, %r13
jbe 0x162cea
movq %r15, 0x38(%rsp)
movq 0x30(%rsp), %r14
leaq (%r14,%r14), %rdi
leaq 0x22a835(%rip), %rsi    # 0x38d35a
movl $0x45, %edx
callq 0x104226
movq %rax, 0x10(%rsp)
testq %r14, %r14
je 0x162c32
cvtsi2sd %ebx, %xmm0
divsd 0x1e6c97(%rip), %xmm0   # 0x3497e0
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 0x105e4d
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x162bac
movb (%r12,%r13), %al
incq %r13
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
jmp 0x162c25
callq 0x105e4d
movsd 0x1eb60f(%rip), %xmm1   # 0x34e1c8
ucomisd %xmm0, %xmm1
jae 0x162bd7
movsd 0x22a759(%rip), %xmm1   # 0x38d320
ucomisd %xmm0, %xmm1
jae 0x162bff
incq %r13
incq 0x20(%rsp)
jmp 0x162c22
shrl $0x8, %ebx
andl $0x1, %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x162cef
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
incq 0x28(%rsp)
incq %r13
jmp 0x162c22
shrl $0x8, %ebx
andl $0x1, %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x162cef
movq 0x10(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
incq 0x18(%rsp)
incq %rbp
cmpq 0x30(%rsp), %r13
jb 0x162b7a
jmp 0x162c52
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 0x22a768(%rip), %rdi    # 0x38d3cb
movq %rbp, %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x22a77c(%rip), %rdi    # 0x38d3f0
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x22a78c(%rip), %rdi    # 0x38d413
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x22a799(%rip), %rdi    # 0x38d433
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
callq 0x172f0
movq %rbx, %rdi
movq %rax, %rsi
movq 0x8(%rsp), %rdx
callq 0x113ce5
movq %rax, %rbx
movq %rax, %rdi
movq 0x38(%rsp), %rsi
callq 0x113d01
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4dad8
callq 0x4db0f
callq 0x4db46