user: Converte this assembly snippet into its equivalent C code:

```asm
<expansion_sum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x38(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L40
L6:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x28(%rbp),%xmm0
  addss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  subss  -0x28(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x14(%rbp),%xmm0
  subss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x18(%rbp),%xmm0
  subss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x28(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4(%rbp),%xmm0
  addss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x20(%rbp)
L40:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L6
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  -0x28(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x1,-0x24(%rbp)
  jmp    L33
L2:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x28(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L44
L37:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x28(%rbp),%xmm0
  addss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  subss  -0x28(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x14(%rbp),%xmm0
  subss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x18(%rbp),%xmm0
  subss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x28(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4(%rbp),%xmm0
  addss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x20(%rbp)
L44:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L37
  addl   $0x1,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  -0x28(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L33:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L2
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  pop    %rbp
  ret
```

assistant: ```c
int expansion_sum(elen, e, flen, f, h)
int elen;
float *e;
int flen;
float *f;
float *h;
{
  float Q;
  float Qnew;
  int findex, hindex, hlast;
  float hnow;
  float bvirt;
  float avirt, bround, around;
  Q = f[0];
  for (hindex = 0; hindex < elen; hindex++) {
    hnow = e[hindex];
    Qnew = (float)(Q + hnow);
    bvirt = (float)(Qnew - Q);
    avirt = Qnew - bvirt;
    bround = hnow - bvirt;
    around = Q - avirt;
    h[hindex] = around + bround;
    Q = Qnew;
  }
  h[hindex] = Q;
  hlast = hindex;
  for (findex = 1; findex < flen; findex++) {
    Q = f[findex];
    for (hindex = findex; hindex <= hlast; hindex++) {
      hnow = h[hindex];
      Qnew = (float)(Q + hnow);
      bvirt = (float)(Qnew - Q);
      avirt = Qnew - bvirt;
      bround = hnow - bvirt;
      around = Q - avirt;
      h[hindex] = around + bround;
      Q = Qnew;
    }
    h[++hlast] = Q;
  }
  return hlast + 1;
}
```