user: 下面的汇编指令对应的C源代码是什么:

```asm
<_compute_viterbi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x50(%rsp)
  mov    %rsi,%r14
  mov    %rdx,0x40(%rsp)
  mov    %rcx,%r12
  mov    %r8d,%r13d
  mov    %r9d,0x34(%rsp)
  movslq %r8d,%rax
  lea    0x0(,%rax,8),%r15
  mov    %r15,(%rsp)
  mov    %r15,%rdi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    %r15,%rdi
  call   <malloc@plt>
  mov    %rax,0x10(%rsp)
  mov    %r15,%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    0x34(%rsp),%esi
  imul   %r13d,%esi
  mov    %esi,0x58(%rsp)
  movslq %esi,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x38(%rsp)
  test   %rbx,%rbx
  je     L78
  cmpq   $0x0,0x10(%rsp)
  je     L78
  test   %rbp,%rbp
  je     L41
  test   %rax,%rax
  je     L41
  test   %r13d,%r13d
  jle    L132
  mov    %r13d,%edx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
  mov    0x40(%rsp),%rcx
L182:
  movsd  (%rcx,%rax,8),%xmm0
  mulsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L182
  mov    %rbx,%rax
  mov    %r13d,%edx
  lea    (%rbx,%rdx,8),%rdx
L116:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L116
L132:
  lea    0x0(%r13,%r13,1),%eax
  mov    %eax,0x5c(%rsp)
  cmpl   $0x1,0x34(%rsp)
  jle    L47
  lea    -0x1(%r13),%r15d
  mov    %r13d,0x30(%rsp)
  movl   $0x1,0x2c(%rsp)
  lea    0x8(,%r15,8),%rax
  mov    %rax,0x48(%rsp)
  jmp    L98
L181:
  mov    0x10(%rsp),%rsi
  mov    %rsi,%rax
  mov    0x48(%rsp),%rdx
  add    %rsi,%rdx
L168:
  movsd  (%rax),%xmm0
  divsd  0x8(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L168
L109:
  mov    0x2c(%rsp),%eax
  add    $0x1,%eax
  add    %r13d,0x30(%rsp)
  cmp    %eax,0x34(%rsp)
  je     L169
  mov    %rbx,%rdx
  mov    0x10(%rsp),%rbx
  mov    %rdx,0x10(%rsp)
  mov    %eax,0x2c(%rsp)
L98:
  test   %r13d,%r13d
  jle    L109
  movslq 0x30(%rsp),%rax
  mov    0x38(%rsp),%rdi
  lea    (%rdi,%rax,4),%rsi
  mov    %rsi,0x18(%rsp)
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x20(%rsp)
  mov    $0x0,%r12d
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x8(%rsp)
L24:
  mov    %r12d,0x28(%rsp)
  lea    (%r14,%r12,8),%rdx
  mov    $0x0,%eax
L143:
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  mov    %rax,%rcx
  add    $0x1,%rax
  add    (%rsp),%rdx
  cmp    %r15,%rcx
  jne    L143
  mov    %r13d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <argmax@plt>
  mov    0x18(%rsp),%rdi
  mov    %eax,(%rdi,%r12,4)
  movslq %eax,%rdx
  movsd  (%rbx,%rdx,8),%xmm0
  mov    0x20(%rsp),%rsi
  mulsd  (%rsi,%r12,8),%xmm0
  imul   %r13d,%eax
  add    0x28(%rsp),%eax
  cltq
  mulsd  (%r14,%rax,8),%xmm0
  mov    0x10(%rsp),%rax
  movsd  %xmm0,(%rax,%r12,8)
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  lea    0x1(%r12),%rax
  cmp    %r12,%r15
  je     L181
  mov    %rax,%r12
  jmp    L24
L47:
  movslq 0x34(%rsp),%rax
  mov    0x50(%rsp),%rdi
  lea    -0x4(%rdi,%rax,4),%r12
  mov    %r13d,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <argmax@plt>
  mov    %eax,(%r12)
  mov    0x10(%rsp),%rax
  mov    %rbx,0x10(%rsp)
  mov    %rax,%rbx
  mov    $0x0,%r12d
  jmp    L76
L78:
  mov    0x10(%rsp),%rax
  mov    %rbx,0x10(%rsp)
  mov    %rax,%rbx
  mov    $0x2,%r12d
  jmp    L76
L41:
  mov    0x10(%rsp),%rax
  mov    %rbx,0x10(%rsp)
  mov    %rax,%rbx
  mov    $0x2,%r12d
  jmp    L76
L169:
  cltq
  mov    0x50(%rsp),%r14
  lea    -0x4(%r14,%rax,4),%r12
  mov    %r13d,%esi
  mov    0x10(%rsp),%rdi
  mov    $0x0,%eax
  call   <argmax@plt>
  mov    %eax,(%r12)
  mov    0x2c(%rsp),%eax
  sub    $0x1,%eax
  cltq
  mov    0x58(%rsp),%ecx
  sub    0x5c(%rsp),%ecx
  add    %r13d,%ecx
  mov    0x38(%rsp),%rdi
  mov    %r14,%rsi
L18:
  mov    %ecx,%edx
  add    0x4(%rsi,%rax,4),%edx
  movslq %edx,%rdx
  mov    (%rdi,%rdx,4),%edx
  mov    %edx,(%rsi,%rax,4)
  sub    $0x1,%rax
  sub    %r13d,%ecx
  test   %eax,%eax
  jns    L18
  mov    $0x0,%r12d
L76:
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    %r12d,%eax
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int _compute_viterbi(int *path, const double *A, const double *pobs, const double *pi, int N, int T) {
  int i, j, t, maxi, result;
  double sum;
  double *v, *vnext, *h, *vh;
  int *ptr;
  result = 0;
  v = (double *)malloc(N * sizeof(double));
  vnext = (double *)malloc(N * sizeof(double));
  h = (double *)malloc(N * sizeof(double));
  ptr = (int *)malloc(T * N * sizeof(int));
  if (!v || !vnext || !h || !ptr) {
    result = 2;
    goto error;
  }
  sum = 0.0;
  for (i = 0; i < N; i++) {
    v[i] = pobs[i] * pi[i];
    sum += v[i];
  }
  for (i = 0; i < N; i++) {
    v[i] /= sum;
  }
  for (t = 1; t < T; t++) {
    sum = 0.0;
    for (j = 0; j < N; j++) {
      for (i = 0; i < N; i++) {
        h[i] = v[i] * A[i * N + j];
      }
      maxi = argmax(h, N);
      ptr[t * N + j] = maxi;
      vnext[j] = pobs[t * N + j] * v[maxi] * A[maxi * N + j];
      sum += vnext[j];
    }
    for (i = 0; i < N; i++) {
      vnext[i] /= sum;
    }
    vh = v;
    v = vnext;
    vnext = vh;
  }
  path[T - 1] = argmax(v, N);
  for (t = T - 2; t >= 0; t--) {
    path[t] = ptr[(t + 1) * N + path[t + 1]];
  }
error:
  free(v);
  free(vnext);
  free(h);
  free(ptr);
  return result;
}
```