user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<fitest_image_rotate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %rsi,-0xf0(%rbp)
  mov    %rdx,-0xf8(%rbp)
  mov    %rcx,-0x100(%rbp)
  mov    %r8,-0x108(%rbp)
  mov    %r9,-0x110(%rbp)
  movsd  %xmm0,-0x118(%rbp)
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xb0(%rbp)
  mov    -0xf0(%rbp),%rax
  mov    %rax,-0xa8(%rbp)
  cmpq   $0x0,-0xf8(%rbp)
  je     L123
  cmpq   $0x0,-0x100(%rbp)
  je     L123
  cmpq   $0x0,-0x108(%rbp)
  je     L123
  cmpq   $0x0,-0x110(%rbp)
  je     L123
  mov    -0x118(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xa0(%rbp)
  mov    -0x118(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x98(%rbp)
  mov    -0xf8(%rbp),%rax
  sub    $0x1,%rax
  test   %rax,%rax
  js     L232
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L46
L232:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L46:
  movsd  D31(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  mov    -0x100(%rbp),%rax
  sub    $0x1,%rax
  test   %rax,%rax
  js     L237
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L91
L237:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L91:
  movsd  D31(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  mov    -0x108(%rbp),%rax
  sub    $0x1,%rax
  test   %rax,%rax
  js     L330
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L61
L330:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L61:
  movsd  D31(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   D51(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  jmp    L105
L21:
  mov    -0x110(%rbp),%rax
  sub    $0x1,%rax
  test   %rax,%rax
  js     L287
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L190
L287:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L190:
  movsd  D31(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   D51(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  jmp    L54
L99:
  movsd  -0xd8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0xa0(%rbp),%xmm1
  movsd  -0xc0(%rbp),%xmm0
  mulsd  -0x98(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x90(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  -0xc0(%rbp),%xmm0
  mulsd  -0xa0(%rbp),%xmm0
  movsd  -0xd8(%rbp),%xmm1
  mulsd  -0x98(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x88(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0x80(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L41
  movsd  -0x78(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L41
  mov    -0x80(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %rax,-0x70(%rbp)
  mov    -0x80(%rbp),%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x78(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %rax,-0x60(%rbp)
  mov    -0x78(%rbp),%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %rax,-0x58(%rbp)
  mov    -0x68(%rbp),%rax
  cmp    -0xf8(%rbp),%rax
  jae    L41
  mov    -0x58(%rbp),%rax
  cmp    -0x100(%rbp),%rax
  jae    L41
  mov    -0x70(%rbp),%rax
  test   %rax,%rax
  js     L231
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L108
L231:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L108:
  movsd  -0x80(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,-0x50(%rbp)
  mov    -0x68(%rbp),%rax
  test   %rax,%rax
  js     L14
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L253
L14:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L253:
  subsd  -0x80(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x60(%rbp),%rax
  test   %rax,%rax
  js     L323
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L162
L323:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L162:
  movsd  -0x78(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  test   %rax,%rax
  js     L252
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L146
L252:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L146:
  subsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x70(%rbp),%rax
  imul   -0x100(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x70(%rbp),%rax
  imul   -0x100(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x68(%rbp),%rax
  imul   -0x100(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x68(%rbp),%rax
  imul   -0x100(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x70(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  je     L268
  movsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  jmp    L38
L268:
  movsd  -0x30(%rbp),%xmm0
L38:
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x70(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  je     L244
  movsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x28(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  jmp    L121
L244:
  movsd  -0x28(%rbp),%xmm0
L121:
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x60(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  je     L130
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  jmp    L80
L130:
  movsd  -0x10(%rbp),%xmm0
L80:
  mov    -0xd0(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movsd  %xmm0,(%rax)
L41:
  addq   $0x1,-0xd0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  movsd  D43(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  addq   $0x1,-0xb8(%rbp)
L54:
  mov    -0xb8(%rbp),%rax
  cmp    -0x110(%rbp),%rax
  jb     L99
  movsd  -0xd8(%rbp),%xmm1
  movsd  D43(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  addq   $0x1,-0xc8(%rbp)
L105:
  mov    -0xc8(%rbp),%rax
  cmp    -0x108(%rbp),%rax
  jb     L21
L123:
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D31
data_type: f64
name: extract_symbolic_data
arguments: data_tag: D51
data_type: byte[8]
name: extract_symbolic_data
arguments: data_tag: D43
data_type: f64

tool: D31: 2

tool: {"D51": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

tool: D43: 1

assistant: ```c
void fitest_image_rotate(double *src, double *dst, unsigned long size_x_src, unsigned long size_y_src, unsigned long size_x_dst, unsigned long size_y_dst, double ori) {
  double *m_src = (double *)src;
  double *m_dst = (double *)dst;
  if ((size_x_src > 0) && (size_y_src > 0) && (size_x_dst > 0) && (size_y_dst > 0)) {
    const double cos_ori = cos(ori);
    const double sin_ori = sin(ori);
    const double origin_x_src = (double)((size_x_src - 1)) / 2;
    const double origin_y_src = (double)((size_y_src - 1)) / 2;
    double u = -((double)((size_x_dst - 1)) / 2);
    unsigned long n = 0;
    for (unsigned long dst_x = 0; dst_x < size_x_dst; dst_x++) {
      double v = -((double)((size_y_dst - 1)) / 2);
      for (unsigned long dst_y = 0; dst_y < size_y_dst; dst_y++) {
        double x = u * cos_ori + v * sin_ori + origin_x_src;
        double y = v * cos_ori - u * sin_ori + origin_y_src;
        if ((x >= 0) && (y >= 0)) {
          unsigned long x0 = (unsigned long)(floor(x));
          unsigned long x1 = (unsigned long)(ceil(x));
          unsigned long y0 = (unsigned long)(floor(y));
          unsigned long y1 = (unsigned long)(ceil(y));
          if ((0 <= x0) && (x1 < size_x_src) && (0 <= y0) && (y1 < size_y_src)) {
            double dist_x0 = x - x0;
            double dist_x1 = x1 - x;
            double dist_y0 = y - y0;
            double dist_y1 = y1 - y;
            const double m00 = m_src[x0 * size_y_src + y0];
            const double m01 = m_src[x0 * size_y_src + y1];
            const double m10 = m_src[x1 * size_y_src + y0];
            const double m11 = m_src[x1 * size_y_src + y1];
            const double t0 = (x0 != x1) ? (dist_x1 * m00 + dist_x0 * m10) : m00;
            const double t1 = (x0 != x1) ? (dist_x1 * m01 + dist_x0 * m11) : m01;
            m_dst[n] = (y0 != y1) ? (dist_y1 * t0 + dist_y0 * t1) : t0;
          }
        }
        n++;
        v++;
      }
      u++;
    }
  }
}
```