user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<upsample_component_line_lanczos>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8d,-0x44(%rbp)
  mov    %r9d,-0x48(%rbp)
  mov    -0x44(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x1,0x18(%rbp)
  jle    L34
  movl   $0x0,-0x14(%rbp)
  jmp    L78
L10:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  movss  (%rax),%xmm0
  movss  %xmm0,(%rdx)
  addl   $0x1,-0x14(%rbp)
L78:
  mov    -0x14(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L10
  movl   $0x0,-0x10(%rbp)
  jmp    L92
L42:
  mov    -0x10(%rbp),%eax
  imul   0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L74
L88:
  cmpl   $0x0,-0xc(%rbp)
  js     L57
  mov    -0xc(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jge    L57
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
L57:
  addl   $0x1,-0xc(%rbp)
  addl   $0x1,-0x8(%rbp)
L74:
  mov    -0x8(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L88
  addl   $0x1,-0x10(%rbp)
L92:
  mov    -0x10(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L42
  movl   $0x0,-0x14(%rbp)
  jmp    L30
L37:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L30:
  mov    -0x14(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L37
L34:
  nop
  pop    %rbp
  ret
```

assistant: ```c
void upsample_component_line_lanczos(const float *x_in_buff, float *x_out_buff, float *weight_x_out_buff, const float *x_contrib, const int x_contrib_size, const int width, const int xpos, const int xstep, const int compressed_width) {
  int i;
  int rpos;
  int wpos;
  int cpos;
  int weight_shift;
  weight_shift = 0 - ((x_contrib_size - 1) / 2);
  if (xstep > 1) {
    for (i = 0; i < width; i++)
      x_out_buff[i] = weight_x_out_buff[i] = 0;
    for (rpos = 0; rpos < compressed_width; rpos++) {
      wpos = (rpos * xstep) + weight_shift;
      for (cpos = 0; cpos < x_contrib_size; cpos++) {
        if ((wpos >= 0) && (wpos < width)) {
          weight_x_out_buff[wpos] += x_contrib[cpos];
          x_out_buff[wpos] += x_in_buff[rpos] * x_contrib[cpos];
        }
        wpos++;
      }
    }
    for (i = 0; i < width; i++)
      x_out_buff[i] = x_out_buff[i] / weight_x_out_buff[i];
  }
}
```