user: 请将以下的汇编代码转换成C语言代码：

```asm
<sample_Lambda_m>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %ecx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9,-0x60(%rbp)
  movl   $0x0,-0x3c(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L133
L53:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x34(%rbp)
L133:
  mov    -0x34(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L53
  movl   $0x0,-0x30(%rbp)
  jmp    L10
L54:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,0x18(%rbp)
  jne    L188
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x3c(%rbp)
L188:
  addl   $0x1,-0x30(%rbp)
L10:
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L54
  movl   $0x0,-0x2c(%rbp)
  jmp    L127
L55:
  movl   $0x0,-0x28(%rbp)
  jmp    L165
L75:
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L61
L25:
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L116
L50:
  movl   $0x0,-0x1c(%rbp)
  jmp    L159
L152:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x38(%rbp)
  addl   $0x1,-0x1c(%rbp)
L159:
  mov    -0x1c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L152
  addl   $0x1,-0x20(%rbp)
L116:
  mov    -0x20(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L50
  mov    -0x24(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jne    L70
  mov    0x30(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x3c(%rbp),%eax
  imul   -0x48(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  mov    0x30(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    (%rcx,%rdx,1),%rbx
  movapd %xmm2,%xmm1
  movq   %rax,%xmm0
  call   <rgamma@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  jmp    L80
L70:
  mov    0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L90
  mov    0x28(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x3c(%rbp),%eax
  imul   -0x48(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  mov    0x28(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    (%rcx,%rdx,1),%rbx
  movapd %xmm2,%xmm1
  movq   %rax,%xmm0
  call   <rgamma@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  jmp    L52
L90:
  mov    0x20(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x3c(%rbp),%eax
  imul   -0x48(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  mov    0x20(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    (%rcx,%rdx,1),%rbx
  movapd %xmm2,%xmm1
  movq   %rax,%xmm0
  call   <rgamma@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
L52:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
L80:
  addl   $0x1,-0x24(%rbp)
L61:
  mov    -0x24(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L25
  addl   $0x1,-0x28(%rbp)
L165:
  mov    -0x28(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L75
  addl   $0x1,-0x2c(%rbp)
L127:
  mov    -0x2c(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L55
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void sample_Lambda_m(int D, int R, int N, int p, int *****Y_t, int ****L_t, int *cla_t, int m, double *par_0, double *par_1, double *par_2, double ***Lambda_t) {
  int total = 0, tmp;
  int *ind;
  ind = (int *)malloc(N * sizeof(int));
  for (int i = 0; i < N; i++) {
    ind[i] = -1;
  }
  for (int i = 0; i < N; i++) {
    if (cla_t[i] == m) {
      ind[total] = i;
      total += 1;
    }
  }
  for (int d = 0; d < D; d++) {
    for (int i = 0; i < p; i++) {
      for (int j = i; j < p; j++) {
        tmp = 0;
        for (int r = 0; r < R; r++) {
          for (int k = 0; k < total; k++) {
            tmp += Y_t[ind[k]][d][r][i][j];
          }
        }
        if (j == i) {
          Lambda_t[d][i][i] = rgamma(par_2[0] + tmp, par_2[1] + total * R);
        } else {
          if (L_t[m][d][i][j] == 1) {
            Lambda_t[d][i][j] = rgamma(par_1[0] + tmp, par_1[1] + total * R);
          } else {
            Lambda_t[d][i][j] = rgamma(par_0[0] + tmp, par_0[1] + total * R);
          }
          Lambda_t[d][j][i] = Lambda_t[d][i][j];
        }
      }
    }
  }
  free(ind);
}
```