user: 下面的汇编指令对应的C源代码是什么：

```asm
<rotateByBilinear>:
  endbr64
  push   %r15
  mov    %r9,%r11
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  movsd  (%r8),%xmm0
  movsd  D8(%rip),%xmm1
  mov    %rdi,0x50(%rsp)
  mov    0xf0(%rsp),%r15
  mov    %rsi,0x10(%rsp)
  mov    0xf8(%rsp),%rcx
  mov    %rdx,0x28(%rsp)
  mov    %r8,0x60(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  comisd %xmm1,%xmm0
  jb     L135
  nopl   (%rax)
L8:
  subsd  %xmm1,%xmm0
  comisd %xmm1,%xmm0
  jae    L8
  mov    0x60(%rsp),%rax
  movsd  %xmm0,(%rax)
L135:
  mov    0x10(%rsp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x1c(%rsp)
  mov    0x28(%rsp),%rax
  mov    (%rax),%esi
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %esi,%eax
  sar    %eax
  mov    %eax,0x5c(%rsp)
  mov    %eax,%r10d
  mov    (%r15),%eax
  mov    %eax,%edi
  sub    %edx,%edi
  mov    %edi,%edx
  shr    $0x1f,%edx
  add    %edi,%edx
  sar    %edx
  mov    %edx,0x68(%rsp)
  mov    %edx,%r8d
  mov    (%rcx),%edx
  mov    %edx,%edi
  sub    %esi,%edi
  mov    %edi,%esi
  shr    $0x1f,%esi
  add    %edi,%esi
  mov    %edx,%edi
  mov    %esi,%ebx
  sar    %ebx
  mov    %ebx,%esi
  sub    %ebx,%edi
  mov    %ebx,0x8c(%rsp)
  neg    %esi
  cmp    %edi,%esi
  jge    L35
  neg    %r8d
  xor    %r9d,%r9d
  mov    %r11,0x78(%rsp)
  sub    %r10d,%esi
  lea    0x90(%rsp),%rdi
  mov    %r8d,0x88(%rsp)
  mov    %rdi,0x80(%rsp)
  mov    %r9d,0x6c(%rsp)
  mov    %rcx,0x70(%rsp)
  mov    %esi,0x58(%rsp)
  mov    %r15,%rsi
  nopl   0x0(%rax)
L7:
  mov    0x88(%rsp),%ecx
  mov    %eax,%edi
  sub    0x68(%rsp),%edi
  xor    %r14d,%r14d
  mov    %rsi,%r15
  mov    %ecx,%ebx
  sub    0x1c(%rsp),%ebx
  mov    %ebx,0xc(%rsp)
  cmp    %ecx,%edi
  jle    L41
  nopl   (%rax)
L141:
  mov    0x60(%rsp),%r12
  movsd  (%r12),%xmm0
  call   <cos@plt>
  imul   0xc(%rsp),%eax
  movsd  (%r12),%xmm0
  mov    %eax,%ebx
  call   <sin@plt>
  mov    0x58(%rsp),%ebp
  pxor   %xmm2,%xmm2
  movsd  (%r12),%xmm0
  imul   %ebp,%eax
  add    %ebx,%eax
  add    0x1c(%rsp),%eax
  cvtsi2sd %eax,%xmm2
  mov    %eax,%ebx
  mov    %eax,0x18(%rsp)
  movsd  %xmm2,0x20(%rsp)
  call   <cos@plt>
  movsd  (%r12),%xmm0
  imul   %ebp,%eax
  mov    %eax,%ebp
  call   <sin@plt>
  imul   0xc(%rsp),%eax
  pxor   %xmm1,%xmm1
  movsd  0x20(%rsp),%xmm2
  subsd  %xmm2,%xmm2
  sub    %eax,%ebp
  add    0x5c(%rsp),%ebp
  cvtsi2sd %ebp,%xmm1
  lea    0x1(%rbp),%eax
  or     %ebp,%ebx
  mov    %eax,0x38(%rsp)
  mov    0x0(%r13),%eax
  mov    %ebx,%r12d
  xor    %ebx,%ebx
  subsd  %xmm1,%xmm1
  test   %eax,%eax
  jle    L24
  mov    %ebp,%r8d
  mov    %r15,%rdx
  mov    0x6c(%rsp),%ebp
  mov    0x78(%rsp),%r15
  mov    0x70(%rsp),%rcx
  jmp    L172
  nopw   0x0(%rax,%rax,1)
L9:
  mov    (%rcx),%eax
  mov    (%rdx),%esi
  imul   %eax,%esi
  imul   %r14d,%eax
  imul   %ebx,%esi
  add    $0x1,%ebx
  add    %ebp,%eax
  add    %esi,%eax
  cltq
  movl   $0x0,(%r15,%rax,4)
  cmp    %ebx,0x0(%r13)
  jle    L150
L172:
  test   %r12d,%r12d
  js     L9
  mov    0x10(%rsp),%rax
  mov    (%rax),%r9d
  cmp    %r9d,0x18(%rsp)
  jge    L9
  mov    0x28(%rsp),%rax
  mov    (%rax),%eax
  cmp    %eax,%r8d
  jge    L9
  mov    %r9d,%edi
  mov    0x18(%rsp),%r11d
  sub    $0x1,%r9d
  imul   %eax,%edi
  mov    %r11d,%esi
  imul   %eax,%esi
  imul   %ebx,%edi
  lea    (%r8,%rsi,1),%r10d
  mov    %esi,0x20(%rsp)
  mov    0x50(%rsp),%rsi
  add    %edi,%r10d
  movslq %r10d,%r10
  mov    (%rsi,%r10,4),%r10d
  mov    %r10d,0x90(%rsp)
  cmp    %r9d,%r11d
  je     L103
  mov    0x20(%rsp),%r11d
  lea    (%rax,%r11,1),%r9d
  sub    $0x1,%eax
  lea    (%r9,%r8,1),%r11d
  add    %edi,%r11d
  movslq %r11d,%r11
  mov    (%rsi,%r11,4),%r11d
  mov    %r11d,0x94(%rsp)
  cmp    %eax,%r8d
  je     L110
  mov    0x38(%rsp),%esi
  mov    0x20(%rsp),%eax
  mov    0x50(%rsp),%r10
  add    %esi,%eax
  add    %edi,%eax
  cltq
  mov    (%r10,%rax,4),%eax
  mov    %eax,0x98(%rsp)
  lea    (%r9,%rsi,1),%eax
  add    %edi,%eax
  cltq
  mov    (%r10,%rax,4),%r10d
L33:
  mov    0x80(%rsp),%rdi
  movapd %xmm2,%xmm0
  mov    %rcx,0x48(%rsp)
  mov    %rdx,0x40(%rsp)
  mov    %r8d,0x3c(%rsp)
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm2,0x20(%rsp)
  mov    %r10d,0x9c(%rsp)
  call   <bilinear@plt>
  mov    0x48(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  mov    %rax,%r9
  mov    0x3c(%rsp),%r8d
  movsd  0x30(%rsp),%xmm1
  mov    (%rcx),%eax
  movsd  0x20(%rsp),%xmm2
  mov    %eax,%esi
  imul   (%rdx),%esi
  imul   %r14d,%eax
  imul   %ebx,%esi
  add    $0x1,%ebx
  add    %ebp,%eax
  add    %esi,%eax
  cltq
  mov    %r9d,(%r15,%rax,4)
  cmp    %ebx,0x0(%r13)
  jg     L172
  nopl   (%rax)
L150:
  mov    %rdx,%r15
L24:
  addl   $0x1,0xc(%rsp)
  mov    (%r15),%eax
  add    $0x1,%r14d
  mov    0xc(%rsp),%edi
  mov    0x1c(%rsp),%edx
  mov    %eax,%esi
  sub    0x68(%rsp),%esi
  add    %edi,%edx
  cmp    %edx,%esi
  jg     L141
  mov    0x70(%rsp),%rcx
  mov    %r15,%rsi
  mov    (%rcx),%edx
L41:
  addl   $0x1,0x58(%rsp)
  mov    %edx,%r8d
  mov    0x58(%rsp),%ecx
  sub    0x8c(%rsp),%r8d
  add    0x5c(%rsp),%ecx
  addl   $0x1,0x6c(%rsp)
  cmp    %ecx,%r8d
  jg     L7
L35:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L95
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L110:
  mov    %r10d,0x98(%rsp)
  jmp    L33
  nopl   (%rax)
L103:
  sub    $0x1,%eax
  mov    %r10d,0x94(%rsp)
  cmp    %eax,%r8d
  je     L110
  mov    0x20(%rsp),%esi
  add    0x38(%rsp),%esi
  mov    0x50(%rsp),%rax
  add    %edi,%esi
  movslq %esi,%rsi
  mov    (%rax,%rsi,4),%eax
  mov    %eax,0x98(%rsp)
  jmp    L33
L95:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D8
type_infered: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x80,0x76,0x40]}

assistant: ```c
void rotateByBilinear(int *image, int *width, int *height, int *depth, double *angle, int *ret, int *new_width, int *new_height) {
  int x_center, y_center, x_diff, y_diff;
  int x, y, d;
  double x_src_d, y_src_d;
  int x_src, y_src;
  double x_weight, y_weight;
  while (*angle >= 360) {
    *angle = *angle - 360;
  }
  x_center = *width / 2;
  y_center = *height / 2;
  x_diff = (*new_width - *width) / 2;
  y_diff = (*new_height - *height) / 2;
  for (y = -1 * y_diff; y < (*new_height - y_diff); y++) {
    for (x = -1 * x_diff; x < (*new_width - x_diff); x++) {
      x_src_d = (x - x_center) * cos(*angle) + (y - y_center) * sin(*angle) + x_center;
      y_src_d = (y - y_center) * cos(*angle) - (x - x_center) * sin(*angle) + y_center;
      x_src = (int)x_src_d;
      y_src = (int)y_src_d;
      x_weight = x_src_d - x_src;
      y_weight = y_src_d - y_src;
      for (d = 0; d < *depth; d++) {
        if (x_src_d < 0 || y_src_d < 0 || x_src_d >= *width || y_src_d >= *height) {
          ret[((*new_height) * (x + x_diff) + (y + y_diff) + (*new_width) * (*new_height) * (d))] = 0;
        } else {
          int a[4];
          a[0] = image[((*height) * (x_src) + (y_src) + (*width) * (*height) * (d))];
          a[1] = (x_src == *width - 1) ? a[0] : image[((*height) * (x_src + 1) + (y_src) + (*width) * (*height) * (d))];
          a[2] = (y_src == *height - 1) ? a[0] : image[((*height) * (x_src) + (y_src + 1) + (*width) * (*height) * (d))];
          a[3] = ((x_src == *width - 1) || (y_src == *height - 1)) ? a[0] : image[((*height) * (x_src + 1) + (y_src + 1) + (*width) * (*height) * (d))];
          ret[((*new_height) * (x + x_diff) + (y + y_diff) + (*new_width) * (*new_height) * (d))] = (int)bilinear(a, x_weight, y_weight);
        }
      }
    }
  }
}
```