user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<arotate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %ecx,%eax
  mov    %r8d,-0x60(%rbp)
  mov    %r9,-0x68(%rbp)
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x58(%rbp)
  mov    %dx,-0x54(%rbp)
  mov    %ax,-0x5c(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x58(%rbp),%xmm0
  movsd  D8(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,-0x38(%rbp)
  jmp    L40
L81:
  mov    -0x38(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  test   %edx,%edx
  jne    L92
  mov    -0x38(%rbp),%eax
  mov    %eax,%esi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L92:
  movl   $0x0,-0x34(%rbp)
  jmp    L49
L8:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x38(%rbp),%xmm1
  mulsd  -0x18(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movswl -0x54(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0x20(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movswl -0x54(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm0,%xmm1
  movswl -0x5c(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x20(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movswl -0x54(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movswl -0x5c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0x20(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movswl -0x5c(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x30(%rbp)
  movsd  -0x8(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x60(%rbp)
  jne    L103
  cmpl   $0x0,-0x30(%rbp)
  js     L25
  mov    -0x30(%rbp),%eax
  cltq
  cmp    %rax,0x10(%rbp)
  jle    L25
  cmpl   $0x0,-0x2c(%rbp)
  js     L25
  mov    -0x2c(%rbp),%eax
  cltq
  cmp    %rax,-0x68(%rbp)
  jg     L27
L25:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  movw   $0x96,(%rax)
  jmp    L55
L27:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%eax
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x50(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  add    %rdx,%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  jmp    L55
L103:
  mov    -0x68(%rbp),%rsi
  movsd  -0x8(%rbp),%xmm0
  mov    -0x10(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    0x10(%rbp),%rdx
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <bilinear_interpolate@plt>
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x50(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  add    %rdx,%rdx
  add    %rcx,%rdx
  mov    %ax,(%rdx)
L55:
  addl   $0x1,-0x34(%rbp)
L49:
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,0x10(%rbp)
  jg     L8
  addl   $0x1,-0x38(%rbp)
L40:
  mov    -0x38(%rbp),%eax
  cltq
  cmp    %rax,-0x68(%rbp)
  jg     L81
  mov    $0x1,%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D8
datatype: f64
name: parse_data
arguments: data_label: D12
datatype: string

tool: D8: 57.29577951

tool: D12: %d 

assistant: ```c
int arotate(the_image, out_image, angle, m, n, bilinear, rows, cols)
float angle;
int bilinear;
long cols, rows;
short **the_image, **out_image, m, n;
{
  double cosa, sina, radian_angle, tmpx, tmpy;
  int i, j, new_i, new_j;
  radian_angle = angle / 57.29577951;
  cosa = cos(radian_angle);
  sina = sin(radian_angle);
  printf("\n");
  for (i = 0; i < rows; i++) {
    if ((i % 10) == 0)
      printf("%d ", i);
    for (j = 0; j < cols; j++) {
      tmpx = (double)(j)*cosa - (double)(i)*sina - (double)(m)*cosa + (double)(m) + (double)(n)*sina;
      tmpy = (double)(i)*cosa + (double)(j)*sina - (double)(m)*sina - (double)(n)*cosa + (double)(n);
      new_j = tmpx;
      new_i = tmpy;
      if (bilinear == 0) {
        if (new_j < 0 || new_j >= cols || new_i < 0 || new_i >= rows)
          out_image[i][j] = 150;
        else
          out_image[i][j] = the_image[new_i][new_j];
      } else {
        out_image[i][j] = bilinear_interpolate(the_image, tmpx, tmpy, rows, cols);
      }
    }
  }
  return (1);
}
```