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

```asm
<imResize>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %esi,-0x78(%rbp)
  mov    %rdx,-0x80(%rbp)
  mov    %ecx,-0x84(%rbp)
  mov    %r8d,-0x88(%rbp)
  mov    %r9,-0x90(%rbp)
  mov    -0x84(%rbp),%eax
  cltq
  shl    $0x2,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x48(%rbp)
  mov    -0x84(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x40(%rbp)
  mov    -0x74(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x84(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L24
L15:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x70(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x60(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x60(%rbp),%xmm1
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x60(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x70(%rbp)
L24:
  mov    -0x70(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L15
  mov    -0x78(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x88(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x6c(%rbp)
  jmp    L37
L45:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x6c(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x68(%rbp)
  mov    -0x78(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x68(%rbp)
  je     L86
  mov    -0x68(%rbp),%eax
  add    $0x1,%eax
  jmp    L11
L86:
  mov    -0x68(%rbp),%eax
L11:
  mov    %eax,-0x64(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x68(%rbp),%xmm1
  movsd  -0x30(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x68(%rbp),%eax
  imul   -0x74(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x74(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L76
L67:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x74(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x60(%rbp)
  je     L60
  mov    -0x60(%rbp),%eax
  add    $0x1,%eax
  jmp    L7
L60:
  mov    -0x60(%rbp),%eax
L7:
  mov    %eax,-0x5c(%rbp)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x4c(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  mov    -0x4c(%rbp),%eax
  sub    -0x50(%rbp),%eax
  sub    -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x54(%rbp),%eax
  sub    -0x58(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x50(%rbp),%eax
  sub    -0x58(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x28(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x58(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  cvttsd2si %xmm0,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x70(%rbp)
L76:
  mov    -0x70(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L67
  addl   $0x1,-0x6c(%rbp)
L37:
  mov    -0x6c(%rbp),%eax
  cmp    -0x88(%rbp),%eax
  jl     L45
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

assistant: ```c
void imResize(int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map) {
  unsigned char *line_mapl, *line_maph;
  double t, u, src_x, src_y, factor;
  int fhh, fll, fhl, flh, xl, yl, xh, yh, x, y;
  int *XL = (int *)malloc(dst_width * sizeof(int));
  double *T = (double *)malloc(dst_width * sizeof(double));
  factor = (double)(src_width - 1) / (double)(dst_width - 1);
  for (x = 0; x < dst_width; x++) {
    src_x = x * factor;
    xl = (int)floor(src_x);
    T[x] = src_x - xl;
    XL[x] = xl;
  }
  factor = (double)(src_height - 1) / (double)(dst_height - 1);
  for (y = 0; y < dst_height; y++) {
    src_y = y * factor;
    yl = (int)floor(src_y);
    yh = (yl == src_height - 1) ? yl : yl + 1;
    u = src_y - yl;
    line_mapl = src_map + yl * src_width;
    line_maph = src_map + yh * src_width;
    for (x = 0; x < dst_width; x++) {
      xl = XL[x];
      xh = (xl == src_width - 1) ? xl : xl + 1;
      t = T[x];
      fll = line_mapl[xl];
      fhl = line_mapl[xh];
      flh = line_maph[xl];
      fhh = line_maph[xh];
      *(dst_map++) = (unsigned char)(u * t * (fhh - flh - fhl + fll) + t * (fhl - fll) + u * (flh - fll) + fll);
    }
  }
  free(XL);
  free(T);
}
```