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

```asm
<_sample_path>:
  endbr64
  push   %r15
  movslq %r8d,%rax
  mov    %r9d,%r15d
  push   %r14
  mov    %rax,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x0(,%rax,8),%edi
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  xor    %edi,%edi
  mov    %rax,%rbx
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  test   %r14d,%r14d
  jle    L180
  lea    -0x1(%r15),%eax
  lea    -0x1(%r14),%edi
  imul   %r14d,%eax
  movslq %eax,%rsi
  lea    0x8(,%rsi,8),%r9
  cmp    $0x2,%edi
  jbe    L171
  lea    0x0(%r13,%r9,1),%rdi
  cmp    %rdi,%rbx
  je     L171
  mov    %r14d,%edi
  mov    %r13,%r10
  mov    %rbx,%rsi
  shr    %edi
  sub    %rbx,%r10
  shl    $0x4,%rdi
  lea    -0x8(%r10,%r9,1),%r9
  add    %rbx,%rdi
  nopl   (%rax)
L111:
  movupd (%rsi,%r9,1),%xmm2
  add    $0x10,%rsi
  movups %xmm2,-0x10(%rsi)
  cmp    %rdi,%rsi
  jne    L111
  mov    %r14d,%esi
  and    $0xfffffffe,%esi
  test   $0x1,%r14b
  je     L180
  add    %esi,%eax
  cltq
  movsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rsi,8)
L180:
  mov    %r14d,%esi
  mov    %rbx,%rdi
  call   <_normalize@plt>
  mov    0x8(%rsp),%rdx
  movslq %r15d,%rax
  mov    %r14d,%esi
  mov    %rbx,%rdi
  lea    -0x4(%rdx,%rax,4),%r12
  call   <_random_choice@plt>
  mov    %eax,(%r12)
  sub    $0x2,%r15d
  js     L16
  mov    0x10(%rsp),%rcx
  mov    %r14d,%eax
  xor    %esi,%esi
  movslq %r15d,%r12
  sub    $0x1,%rax
  imul   %r14d,%r15d
  lea    0x0(,%rcx,8),%rdx
  mov    %rdx,%rdi
  mov    %rdx,0x38(%rsp)
  mov    %rsi,%rdx
  imul   %rax,%rdi
  lea    (%rbx,%rax,8),%rax
  test   %r14d,%r14d
  mov    %rax,0x28(%rsp)
  mov    %r14d,%eax
  cmovns %rdi,%rdx
  cmovs  %rdi,%rsi
  shr    %eax
  sub    $0x1,%eax
  shl    $0x4,%rcx
  add    $0x1,%rax
  mov    %rdx,0x30(%rsp)
  shl    $0x4,%rax
  mov    %rsi,0x20(%rsp)
  add    %rbx,%rax
  mov    %rcx,0x50(%rsp)
  mov    %rax,0x40(%rsp)
  mov    %r14d,%eax
  and    $0xfffffffe,%eax
  mov    %eax,%edx
  mov    %eax,0x4c(%rsp)
  cltq
  imul   %r14d,%edx
  lea    (%rbx,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x1(%r14),%eax
  mov    %eax,0x48(%rsp)
  lea    0x8(%rbx,%rax,8),%rax
  mov    %edx,0x10(%rsp)
  mov    %r13,%rdx
  mov    %r12,%r13
  mov    %rax,0x58(%rsp)
  mov    %r14d,%eax
  mov    %rdx,%r12
  mov    %rbx,%r14
  mov    %eax,%ebx
  jmp    L154
  nopw   0x0(%rax,%rax,1)
L86:
  movslq %eax,%rsi
  movslq %r15d,%rax
  movsd  0x0(%rbp,%rsi,8),%xmm0
  mulsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,(%r14)
L184:
  mov    %ebx,%esi
  mov    %r14,%rdi
  sub    %ebx,%r15d
  call   <_normalize@plt>
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <_random_choice@plt>
  mov    0x8(%rsp),%rcx
  mov    %eax,(%rcx,%r13,4)
  sub    $0x1,%r13
  test   %r13d,%r13d
  js     L16
L154:
  test   %ebx,%ebx
  jle    L184
  mov    0x8(%rsp),%rdx
  lea    0x1(%r13),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%ebx
  je     L86
  mov    0x20(%rsp),%rdx
  movslq %eax,%rdi
  movslq %r15d,%rsi
  shl    $0x3,%rdi
  lea    0x8(,%rsi,8),%r10
  lea    (%rdx,%rdi,1),%rsi
  mov    0x30(%rsp),%rdx
  add    %rbp,%rsi
  cmp    %rsi,0x28(%rsp)
  lea    (%rdx,%rdi,1),%rsi
  setb   %r11b
  add    %rbp,%rsi
  cmp    %rsi,%r14
  seta   %sil
  add    %rbp,%rdi
  or     %r11b,%sil
  je     L63
  lea    (%r12,%r10,1),%rsi
  cmp    %rsi,%r14
  setne  %r11b
  cmpl   $0x3,0x48(%rsp)
  seta   %sil
  test   %sil,%r11b
  je     L63
  mov    %r12,%r11
  mov    0x40(%rsp),%rdx
  mov    0x38(%rsp),%rcx
  mov    %r14,%rsi
  sub    %r14,%r11
  mov    0x50(%rsp),%r8
  lea    -0x8(%r11,%r10,1),%r10
  nopl   0x0(%rax,%rax,1)
L60:
  movsd  (%rdi),%xmm0
  movupd (%rsi,%r10,1),%xmm1
  add    $0x10,%rsi
  movhpd (%rdi,%rcx,1),%xmm0
  add    %r8,%rdi
  mulpd  %xmm1,%xmm0
  movups %xmm0,-0x10(%rsi)
  cmp    %rsi,%rdx
  jne    L60
  mov    0x4c(%rsp),%ecx
  cmp    %ebx,%ecx
  je     L184
  lea    (%r15,%rcx,1),%esi
  add    0x10(%rsp),%eax
  cltq
  movslq %esi,%rsi
  movsd  (%r12,%rsi,8),%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  mov    0x18(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L184
  cs nopw 0x0(%rax,%rax,1)
L16:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L63:
  mov    %r12,%rax
  mov    0x58(%rsp),%rdx
  mov    0x38(%rsp),%rcx
  sub    %r14,%rax
  lea    -0x8(%rax,%r10,1),%rsi
  mov    %r14,%rax
  nopw   0x0(%rax,%rax,1)
L128:
  movsd  (%rsi,%rax,1),%xmm0
  mulsd  (%rdi),%xmm0
  add    $0x8,%rax
  add    %rcx,%rdi
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L128
  jmp    L184
L171:
  mov    %r14d,%edi
  lea    0x0(%r13,%rsi,8),%rsi
  mov    %rbx,%rax
  lea    (%rbx,%rdi,8),%rdi
  sub    %rbx,%rsi
  nopl   0x0(%rax)
L72:
  movsd  (%rsi,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdi,%rax
  jne    L72
  jmp    L180
```

assistant: ```c
void _sample_path(int *path, const double *alpha, const double *A, const double *pobs, const int N, const int T) {
  int i, t;
  double *psel = (double *)malloc(N * sizeof(double));
  srand(time(NULL));
  for (i = 0; i < N; i++) {
    psel[i] = alpha[(T - 1) * N + i];
  }
  _normalize(psel, N);
  path[T - 1] = _random_choice(psel, N);
  for (t = T - 2; t >= 0; t--) {
    for (i = 0; i < N; i++) {
      psel[i] = alpha[t * N + i] * A[i * N + path[t + 1]];
    }
    _normalize(psel, N);
    path[t] = _random_choice(psel, N);
  }
}
```