user: Demonstrate the C code that generates the assembly output below:

```asm
<sample_Lambda_m>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,%ebx
  mov    %esi,0x14(%rsp)
  mov    %edx,%r12d
  mov    %ecx,0x10(%rsp)
  mov    %r8,%r15
  mov    %r9,%rbp
  mov    0x90(%rsp),%r14
  mov    0x98(%rsp),%r13d
  lea    0x0(,%rdx,4),%edi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  test   %r12d,%r12d
  jle    L47
  mov    %r12d,%edx
  lea    (%rax,%rdx,4),%rdx
L44:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L44
  mov    %r12d,%ecx
  mov    $0x0,%eax
  mov    $0x0,%r12d
  jmp    L54
L213:
  add    $0x1,%rax
  cmp    %rcx,%rax
  je     L208
L54:
  cmp    %r13d,(%r14,%rax,4)
  jne    L213
  movslq %r12d,%rdx
  mov    0x8(%rsp),%rdi
  mov    %eax,(%rdi,%rdx,4)
  add    $0x1,%r12d
  jmp    L213
L47:
  mov    $0x0,%r12d
L208:
  test   %ebx,%ebx
  jle    L120
  movslq %r13d,%r13
  lea    0x0(%rbp,%r13,8),%rax
  mov    %rax,0x30(%rsp)
  mov    0x14(%rsp),%eax
  mov    %eax,%edi
  imul   %r12d,%edi
  mov    %edi,0x24(%rsp)
  mov    %ebx,%ebx
  lea    0x0(,%rbx,8),%rdi
  mov    %rdi,0x48(%rsp)
  lea    -0x1(%rax),%eax
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x28(%rsp)
  lea    -0x1(%r12),%eax
  mov    0x8(%rsp),%rdi
  lea    0x4(%rdi,%rax,4),%r14
  mov    $0x0,%r13d
  mov    %r15,%rax
  mov    %r12d,%r15d
  mov    %r14,%r12
  mov    %rax,%r14
  jmp    L141
L132:
  movslq (%rax),%rcx
  mov    (%r14,%rcx,8),%rcx
  mov    (%rcx,%r13,1),%rcx
  mov    (%rcx,%rsi,1),%rcx
  mov    (%rcx,%rbp,1),%rcx
  add    (%rcx,%rbx,1),%edx
  add    $0x4,%rax
  cmp    %rax,%r12
  jne    L132
L25:
  add    $0x8,%rsi
  cmp    %rsi,%r8
  je     L202
L228:
  mov    %rdi,%rax
  test   %r15d,%r15d
  jg     L132
  jmp    L25
L202:
  mov    0x20(%rsp),%edi
  cmp    %edi,0x4(%rsp)
  je     L249
  mov    0x30(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%rbp,1),%rax
  cmpl   $0x1,(%rax,%rbx,1)
  je     L45
  mov    0xb8(%rsp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%rbp,1),%rax
  lea    (%rax,%rbx,2),%rax
  mov    %rax,0x18(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x24(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mov    0xa0(%rsp),%rdi
  addsd  (%rdi),%xmm0
  addsd  0x8(%rdi),%xmm1
  call   <rgamma@plt>
  mov    0x18(%rsp),%rax
  movsd  %xmm0,(%rax)
L158:
  mov    0xb8(%rsp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%rbp,1),%rdx
  movsd  (%rdx,%rbx,2),%xmm0
  mov    (%rax,%rbx,2),%rax
  movsd  %xmm0,(%rax,%rbp,1)
L196:
  addl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%eax
  add    $0x4,%rbx
  cmp    %eax,0x10(%rsp)
  je     L175
L143:
  mov    $0x0,%esi
  mov    $0x0,%edx
  cmpl   $0x0,0x14(%rsp)
  jle    L202
  mov    0x8(%rsp),%rdi
  mov    0x28(%rsp),%r8
  jmp    L228
L249:
  mov    0xb8(%rsp),%rax
  mov    (%rax,%r13,1),%rax
  mov    %rbp,%rdi
  add    (%rax,%rbp,1),%rdi
  mov    %rdi,0x18(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x24(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mov    0xb0(%rsp),%rax
  addsd  (%rax),%xmm0
  addsd  0x8(%rax),%xmm1
  call   <rgamma@plt>
  mov    0x18(%rsp),%rdi
  movsd  %xmm0,(%rdi)
  jmp    L196
L45:
  mov    0xb8(%rsp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%rbp,1),%rax
  lea    (%rax,%rbx,2),%rax
  mov    %rax,0x18(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x24(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mov    0xa8(%rsp),%rdi
  addsd  (%rdi),%xmm0
  addsd  0x8(%rdi),%xmm1
  call   <rgamma@plt>
  mov    0x18(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L158
L175:
  addq   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%rax
  cmp    0x40(%rsp),%rax
  je     L235
L140:
  mov    0x38(%rsp),%rax
  mov    %eax,0x4(%rsp)
  mov    %eax,0x20(%rsp)
  cmp    %eax,0x10(%rsp)
  jle    L175
  lea    0x0(,%rax,8),%rbp
  lea    0x0(,%rax,4),%rbx
  jmp    L143
L235:
  add    $0x8,%r13
  cmp    0x48(%rsp),%r13
  je     L120
L141:
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jle    L235
  mov    %eax,%eax
  mov    %rax,0x40(%rsp)
  movq   $0x0,0x38(%rsp)
  jmp    L140
L120:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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);
}
```