user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<smooth>:
  endbr64
  push   %r12
  mov    %rdx,%r8
  mov    %ecx,%r9d
  push   %rbp
  push   %rbx
  test   %ecx,%ecx
  jle    L63
  lea    -0x1(%rcx),%ecx
  lea    -0x1(%r9,%r9,1),%ebx
  pxor   %xmm2,%xmm2
  mov    %rdx,%r10
  lea    0x8(%rdi),%r11
  nopl   (%rax)
L24:
  mov    %ecx,%edx
  mov    %rdi,%rax
  movapd %xmm2,%xmm0
  add    $0x1,%ecx
  lea    (%r11,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L123:
  addsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L123
  pxor   %xmm1,%xmm1
  add    $0x8,%r10
  cvtsi2ss %ecx,%xmm1
  cvtss2sd %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%r10)
  cmp    %ebx,%ecx
  jne    L24
L63:
  mov    %esi,%ebp
  sub    %r9d,%ebp
  lea    -0x1(%rbp),%r10d
  cmp    %r10d,%r9d
  jge    L16
  movslq %r9d,%rax
  lea    (%r9,%r9,1),%r11d
  sub    %r9d,%ebp
  xor    %ecx,%ecx
  lea    (%r8,%rax,8),%rbx
  lea    -0x1(%r11),%eax
  pxor   %xmm2,%xmm2
  sub    $0x1,%ebp
  shl    $0x3,%rax
  mov    $0xfffffffffffffff8,%r12
  lea    0x8(%rdi,%rax,1),%rdx
  sub    %rax,%r12
  nopl   0x0(%rax,%rax,1)
L80:
  cmp    %r11d,%ecx
  jge    L95
  lea    (%r12,%rdx,1),%rax
  movapd %xmm2,%xmm0
  nopl   0x0(%rax)
L40:
  addsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L40
  mov    %r11d,%eax
  pxor   %xmm1,%xmm1
  sub    %ecx,%eax
  cvtsi2ss %eax,%xmm1
  cvtss2sd %xmm1,%xmm1
L54:
  divsd  %xmm1,%xmm0
  add    $0x1,%ecx
  add    $0x1,%r11d
  add    $0x8,%rbx
  add    $0x8,%rdx
  movsd  %xmm0,-0x8(%rbx)
  cmp    %ebp,%ecx
  jne    L80
L16:
  cmp    %r10d,%esi
  jle    L64
  movslq %r9d,%rax
  mov    %r10d,%ecx
  movslq %r10d,%r10
  mov    %esi,%ebx
  sub    %rax,%r10
  sub    %r9d,%ecx
  lea    (%r8,%rax,8),%r8
  sub    %r9d,%ebx
  lea    (%rdi,%r10,8),%r11
  pxor   %xmm2,%xmm2
  lea    -0x1(%rsi),%r9d
  add    $0x8,%rdi
  nop
L42:
  cmp    %ecx,%esi
  jle    L107
  mov    %r9d,%eax
  movapd %xmm2,%xmm0
  sub    %ecx,%eax
  add    %r10,%rax
  lea    (%rdi,%rax,8),%rdx
  mov    %r11,%rax
  nopw   0x0(%rax,%rax,1)
L96:
  addsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L96
  mov    %esi,%eax
  pxor   %xmm1,%xmm1
  sub    %ecx,%eax
  cvtsi2ss %eax,%xmm1
  cvtss2sd %xmm1,%xmm1
L20:
  divsd  %xmm1,%xmm0
  add    $0x1,%ecx
  add    $0x8,%r11
  movsd  %xmm0,(%r8,%r10,8)
  add    $0x1,%r10
  cmp    %ecx,%ebx
  jne    L42
L64:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L107:
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm0
  jmp    L20
  nopw   0x0(%rax,%rax,1)
L95:
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm0
  jmp    L54
```

assistant: ```c
void smooth(double *indata, int nmzs, double *outdata, int w) {
  int j, k, n;
  double av;
  for (j = 0; j < w; j++) {
    av = 0.0;
    n = 0;
    for (k = 0; k < j + w; k++) {
      av += indata[k];
      n++;
    }
    outdata[j] = av / (float)n;
  }
  for (j = w; j < nmzs - w - 1; j++) {
    av = 0.0;
    n = 0;
    for (k = j - w; k < j + w; k++) {
      av += indata[k];
      n++;
    }
    outdata[j] = av / (float)n;
  }
  for (j = nmzs - w - 1; j < nmzs; j++) {
    av = 0.0;
    n = 0;
    for (k = j - w; k < nmzs; k++) {
      av += indata[k];
      n++;
    }
    outdata[j] = av / (float)n;
  }
}
```