user: Translate the below assembly code into C programming language:

```asm
<moving_average>:
  endbr64
  push   %r14
  mov    %rsi,%r8
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  test   %ecx,%ecx
  jle    L6
  lea    -0x1(%rcx),%r12d
  cmp    $0x2,%r12d
  jbe    L108
  mov    %ecx,%edx
  mov    %rdi,%rax
  pxor   %xmm0,%xmm0
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L111:
  movdqu (%rax),%xmm3
  add    $0x10,%rax
  paddd  %xmm3,%xmm0
  cmp    %rdx,%rax
  jne    L111
  movdqa %xmm0,%xmm1
  mov    %r13d,%edx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%edx
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  test   $0x3,%r13b
  je     L82
L2:
  movslq %edx,%rcx
  lea    0x0(,%rcx,4),%rsi
  add    (%rdi,%rcx,4),%eax
  lea    0x1(%rdx),%ecx
  cmp    %ecx,%r13d
  jle    L82
  add    $0x2,%edx
  add    0x4(%rdi,%rsi,1),%eax
  cmp    %edx,%r13d
  jle    L82
  add    0x8(%rdi,%rsi,1),%eax
L82:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
L148:
  movslq %r13d,%rdx
  mov    %rdi,%rcx
  lea    0x0(,%rdx,4),%rsi
  lea    -0x4(%r8,%rsi,1),%rbx
  sub    %rsi,%rcx
  movss  %xmm0,(%rbx)
  cmp    %ebp,%r13d
  jge    L162
L34:
  sub    (%rcx,%rdx,4),%eax
  pxor   %xmm0,%xmm0
  add    (%rdi,%rdx,4),%eax
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%r8,%rdx,4)
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jg     L34
L162:
  mov    %r12d,%r14d
  test   %r12d,%r12d
  jle    L113
  lea    -0x2(%r13),%eax
  mov    %r8,%rdi
  xor    %esi,%esi
  lea    0x4(,%rax,4),%rdx
  call   <memset@plt>
  mov    %rax,%r8
L113:
  cmp    %r12d,%ebp
  jle    L128
  mov    %ebp,%eax
  pxor   %xmm2,%xmm2
  sub    %r13d,%eax
  cvtsi2ss %r13d,%xmm2
  lea    0x1(%rax),%ecx
  cmp    $0x2,%eax
  jbe    L125
  mov    %ecx,%edx
  movaps %xmm2,%xmm1
  mov    %rbx,%rax
  shr    $0x2,%edx
  shufps $0x0,%xmm1,%xmm1
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rbx,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L150:
  movups (%rax),%xmm0
  add    $0x10,%rax
  divps  %xmm1,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L150
  mov    %ecx,%eax
  and    $0xfffffffc,%eax
  lea    (%r12,%rax,1),%r14d
  cmp    %eax,%ecx
  je     L128
L125:
  movslq %r14d,%rax
  shl    $0x2,%rax
  lea    (%r8,%rax,1),%rdx
  movss  (%rdx),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rdx)
  lea    0x1(%r14),%edx
  cmp    %ebp,%edx
  jge    L128
  lea    0x4(%r8,%rax,1),%rdx
  add    $0x2,%r14d
  movss  (%rdx),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rdx)
  cmp    %r14d,%ebp
  jle    L128
  lea    0x8(%r8,%rax,1),%rax
  movss  (%rax),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rax)
L128:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L6:
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  lea    -0x1(%rcx),%r12d
  jmp    L148
L108:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L2
```

assistant: ```c
void moving_average(int *values, float *average, int length, int width) {
  int i;
  int add_value;
  add_value = 0;
  for (i = 0; i < width; i++) {
    add_value += values[i];
  }
  average[width - 1] = (float)add_value;
  for (i = width; i < length; i++) {
    add_value = add_value - values[i - width] + values[i];
    average[i] = (float)(add_value);
  }
  for (i = 0; i < width - 1; i++) {
    average[i] = 0.0f;
  }
  for (i = width - 1; i < length; i++) {
    average[i] /= (float)width;
  }
}
```