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

```asm
<_reproject_slice_c>:
  endbr64
  push   %r15
  mov    %esi,%eax
  mov    %ecx,%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x228,%rsp
  mov    %ecx,0xe8(%rsp)
  mov    0x260(%rsp),%rcx
  mov    %edx,0x12c(%rsp)
  mov    0x2a8(%rsp),%r13
  mov    %rcx,0x130(%rsp)
  mov    0x268(%rsp),%rcx
  mov    %r8d,0xec(%rsp)
  mov    %rcx,0x138(%rsp)
  mov    0x270(%rsp),%rcx
  mov    %r9d,0x100(%rsp)
  mov    %rcx,0x140(%rsp)
  mov    0x278(%rsp),%rcx
  mov    %rcx,0x148(%rsp)
  mov    0x280(%rsp),%rcx
  mov    %rcx,0x80(%rsp)
  mov    0x288(%rsp),%rcx
  mov    %rcx,0x88(%rsp)
  mov    0x290(%rsp),%rcx
  mov    %rcx,0x108(%rsp)
  mov    0x298(%rsp),%rcx
  mov    %rcx,0x90(%rsp)
  mov    0x2a0(%rsp),%rcx
  mov    %rcx,0x98(%rsp)
  mov    0x2b0(%rsp),%rcx
  mov    %rcx,0x10(%rsp)
  mov    0x2b8(%rsp),%rcx
  mov    %rcx,0x18(%rsp)
  mov    0x2c0(%rsp),%ecx
  mov    %fs:0x28,%rdx
  mov    %rdx,0x218(%rsp)
  xor    %edx,%edx
  cmp    %eax,%edi
  jge    L33
  cmp    %esi,%ebx
  jge    L33
  mov    %ebx,%edx
  movslq %edi,%r9
  sub    $0x1,%eax
  mov    %r8d,%r15d
  imul   %ecx,%edx
  sub    %edi,%eax
  mov    %r9,0xe0(%rsp)
  imul   0x2d0(%rsp),%ebx
  movslq %edx,%rsi
  add    %ecx,%edx
  movslq %edx,%rdx
  lea    (%r9,%rsi,1),%r8
  mov    %ebx,0x128(%rsp)
  add    %r9,%rdx
  shl    $0x3,%r8
  shl    $0x3,%rdx
  mov    %r8,0x110(%rsp)
  mov    %rdx,0x118(%rsp)
  lea    0x1(%r9,%rsi,1),%rdx
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,0x120(%rsp)
  movslq %ecx,%rax
  lea    0x0(,%rax,8),%rdi
  mov    %rax,0xc8(%rsp)
  neg    %rax
  mov    %rax,0xd8(%rsp)
  movslq 0x2c8(%rsp),%rax
  mov    %rdi,0xd0(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x50(%rsp)
  movslq 0x2d8(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x58(%rsp)
  lea    0x1d0(%rsp),%rax
  mov    %rax,0xf0(%rsp)
  lea    0x1f0(%rsp),%rax
  mov    %rax,0xf8(%rsp)
  lea    -0x1(%r15),%eax
  mov    %eax,0x104(%rsp)
L39:
  mov    0x110(%rsp),%rcx
  mov    0x130(%rsp),%rax
  add    %rcx,%rax
  mov    %rax,0xa0(%rsp)
  mov    0x138(%rsp),%rax
  add    %rcx,%rax
  mov    0x118(%rsp),%rcx
  mov    %rax,0xa8(%rsp)
  mov    0x140(%rsp),%rax
  add    %rcx,%rax
  mov    %rax,0xb0(%rsp)
  mov    0x148(%rsp),%rax
  add    %rcx,%rax
  mov    %rax,0xb8(%rsp)
  mov    0x128(%rsp),%eax
  mov    %eax,0xc4(%rsp)
  mov    0x12c(%rsp),%eax
  mov    %eax,0xc0(%rsp)
  nopw   0x0(%rax,%rax,1)
L24:
  mov    0xa0(%rsp),%rax
  mov    0xc8(%rsp),%rdi
  mov    0xf0(%rsp),%r15
  addl   $0x1,0xc0(%rsp)
  movupd (%rax,%rdi,8),%xmm3
  movupd (%rax),%xmm1
  mov    0xa8(%rsp),%rax
  movapd %xmm3,%xmm0
  movaps %xmm1,0x1d0(%rsp)
  movupd (%rax,%rdi,8),%xmm7
  movupd (%rax),%xmm5
  shufpd $0x1,%xmm3,%xmm0
  mov    %r15,%rdi
  movaps %xmm0,0x1e0(%rsp)
  xor    %eax,%eax
  movapd %xmm7,%xmm0
  movaps %xmm5,0x1f0(%rsp)
  shufpd $0x1,%xmm7,%xmm0
  movaps %xmm7,(%rsp)
  movaps %xmm0,0x200(%rsp)
  call   <min_4@plt>
  pxor   %xmm0,%xmm0
  mov    %r15,%rdi
  cvtsi2sd %eax,%xmm0
  addsd  D3(%rip),%xmm0
  xor    %eax,%eax
  cvttsd2si %xmm0,%ebx
  call   <max_4@plt>
  pxor   %xmm0,%xmm0
  mov    0xf8(%rsp),%r14
  cvtsi2sd %eax,%xmm0
  addsd  D3(%rip),%xmm0
  xor    %eax,%eax
  mov    %r14,%rdi
  cvttsd2si %xmm0,%r15d
  call   <min_4@plt>
  pxor   %xmm0,%xmm0
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm0
  addsd  D3(%rip),%xmm0
  xor    %eax,%eax
  cvttsd2si %xmm0,%ebp
  call   <max_4@plt>
  pxor   %xmm0,%xmm0
  mov    0xb0(%rsp),%r14
  cvtsi2sd %eax,%xmm0
  addsd  D3(%rip),%xmm0
  mov    $0x1,%eax
  cvttsd2si %xmm0,%ecx
  movsd  (%r14),%xmm0
  mov    %ecx,0x34(%rsp)
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x150(%rsp)
  movsd  0x8(%r14),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  mov    0xd8(%rsp),%r12
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x158(%rsp)
  movsd  0x8(%r14,%r12,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x160(%rsp)
  movsd  (%r14,%r12,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  mov    0xb8(%rsp),%r14
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x168(%rsp)
  movsd  (%r14),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x170(%rsp)
  movsd  0x8(%r14),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x178(%rsp)
  movsd  0x8(%r14,%r12,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x180(%rsp)
  movsd  (%r14,%r12,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  mov    0x34(%rsp),%ecx
  mov    0x100(%rsp),%edx
  cvtsi2sd %eax,%xmm0
  xor    %eax,%eax
  test   %ebx,%ebx
  cmovs  %eax,%ebx
  cmp    0xec(%rsp),%r15d
  cmovge 0x104(%rsp),%r15d
  test   %ebp,%ebp
  cmovns %ebp,%eax
  cmp    %edx,%ecx
  mov    %r15d,0x78(%rsp)
  mov    %eax,0x7c(%rsp)
  mov    %eax,%edi
  lea    -0x1(%rdx),%eax
  movsd  %xmm0,0x188(%rsp)
  cmovl  %ecx,%eax
  mov    %eax,0x34(%rsp)
  mov    %eax,%ecx
  cmp    %ebx,%r15d
  jl     L89
  mov    0x108(%rsp),%rdx
  movslq 0xc4(%rsp),%rax
  add    0xe0(%rsp),%rax
  lea    (%rdx,%rax,8),%rax
  mov    %rax,0x38(%rsp)
  cmp    %edi,%ecx
  jl     L89
  lea    0x1(%rdi),%eax
  movslq %ebx,%rbx
  lea    0x190(%rsp),%r14
  imul   0x2c8(%rsp),%eax
  mov    %rbx,0x60(%rsp)
  lea    0x1b0(%rsp),%r15
  imul   0x2d8(%rsp),%edi
  movslq %eax,%rcx
  sub    0x2c8(%rsp),%eax
  lea    (%rcx,%rbx,1),%rdx
  movslq %eax,%r12
  lea    0x170(%rsp),%rax
  shl    $0x3,%rdx
  mov    %rax,0x40(%rsp)
  sub    %rcx,%r12
  lea    0x150(%rsp),%rax
  mov    %rdx,0x70(%rsp)
  movslq %edi,%rdx
  add    %rbx,%rdx
  mov    %rax,0x48(%rsp)
  mov    %r14,%rax
  mov    %r12,%r14
  lea    0x0(,%rdx,8),%rdi
  mov    %r13,%r12
  mov    %rax,%r13
  mov    %rdi,0x68(%rsp)
  nopl   0x0(%rax)
L67:
  mov    0x70(%rsp),%rax
  mov    0x80(%rsp),%rbp
  mov    0x88(%rsp),%rbx
  mov    0x90(%rsp),%r10
  mov    0x98(%rsp),%r11
  add    %rax,%rbp
  add    %rax,%rbx
  mov    0x68(%rsp),%rax
  add    %rax,%r10
  add    %rax,%r11
  mov    0x7c(%rsp),%eax
  mov    %eax,(%rsp)
  nopl   (%rax)
L12:
  movsd  0x0(%rbp),%xmm0
  mov    $0x1,%eax
  mov    %r10,0x28(%rsp)
  mov    %r11,0x20(%rsp)
  addl   $0x1,(%rsp)
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x190(%rsp)
  movsd  0x8(%rbp),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x198(%rsp)
  movsd  0x8(%rbp,%r14,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x1a0(%rsp)
  movsd  0x0(%rbp,%r14,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x1a8(%rsp)
  movsd  (%rbx),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x1b0(%rsp)
  movsd  0x8(%rbx),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x1b8(%rsp)
  movsd  0x8(%rbx,%r14,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,0x1c0(%rsp)
  movsd  (%rbx,%r14,8),%xmm0
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  mov    %r15,%r9
  mov    %r13,%r8
  cvtsi2sd %eax,%xmm0
  mov    0x40(%rsp),%rcx
  mov    %r12,%rdi
  xor    %eax,%eax
  mov    0x48(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  movsd  %xmm0,0x1c8(%rsp)
  call   <_compute_overlap@plt>
  mov    0x10(%rsp),%rsi
  mov    %r15,%rcx
  mov    %r13,%rdx
  mov    0x18(%rsp),%rdi
  mov    %r15,%r9
  mov    %r13,%r8
  xor    %eax,%eax
  call   <_compute_overlap@plt>
  mov    0x18(%rsp),%rsi
  mov    0x38(%rsp),%rdx
  mov    0x28(%rsp),%r10
  movsd  (%r12),%xmm0
  divsd  (%rsi),%xmm0
  mulsd  (%rdx),%xmm0
  mov    0x20(%rsp),%r11
  addsd  (%r10),%xmm0
  mov    0x50(%rsp),%rdi
  mov    0x58(%rsp),%rcx
  mov    (%rsp),%eax
  add    %rdi,%rbp
  add    %rdi,%rbx
  movsd  %xmm0,(%r10)
  movsd  (%r12),%xmm0
  divsd  (%rsi),%xmm0
  addsd  (%r11),%xmm0
  add    %rcx,%r10
  movsd  %xmm0,(%r11)
  add    %rcx,%r11
  cmp    0x34(%rsp),%eax
  jle    L12
  addq   $0x1,0x60(%rsp)
  mov    0x60(%rsp),%rax
  addq   $0x8,0x70(%rsp)
  addq   $0x8,0x68(%rsp)
  cmp    %eax,0x78(%rsp)
  jge    L67
  mov    %r12,%r13
L89:
  mov    0xd0(%rsp),%rax
  mov    0x2d0(%rsp),%ecx
  add    %rax,0xa0(%rsp)
  mov    0xe8(%rsp),%ebx
  add    %rax,0xa8(%rsp)
  add    %rax,0xb0(%rsp)
  add    %rax,0xb8(%rsp)
  add    %ecx,0xc4(%rsp)
  cmp    %ebx,0xc0(%rsp)
  jne    L24
  addq   $0x8,0x110(%rsp)
  mov    0x110(%rsp),%rax
  addq   $0x1,0xe0(%rsp)
  addq   $0x8,0x118(%rsp)
  cmp    0x120(%rsp),%rax
  jne    L39
L33:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D3
datatype: byte[8]

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void _reproject_slice_c(int startx, int endx, int starty, int endy, int nx_out, int ny_out, double *xp_inout, double *yp_inout, double *xw_in, double *yw_in, double *xw_out, double *yw_out, double *array, double *array_new, double *weights, double *overlap, double *area_ratio, double *original, int col_in, int col_out, int col_array, int col_new) {
  int i, j, ii, jj, xmin, xmax, ymin, ymax;
  double ilon[4], ilat[4], olon[4], olat[4], minmax_x[4], minmax_y[4];
  for (i = startx; i < endx; ++i) {
    for (j = starty; j < endy; ++j) {
      minmax_x[0] = *(xp_inout + (j) * (col_in) + (i));
      minmax_x[1] = *(xp_inout + (j) * (col_in) + (i + 1));
      minmax_x[2] = *(xp_inout + (j + 1) * (col_in) + (i + 1));
      minmax_x[3] = *(xp_inout + (j + 1) * (col_in) + (i));
      minmax_y[0] = *(yp_inout + (j) * (col_in) + (i));
      minmax_y[1] = *(yp_inout + (j) * (col_in) + (i + 1));
      minmax_y[2] = *(yp_inout + (j + 1) * (col_in) + (i + 1));
      minmax_y[3] = *(yp_inout + (j + 1) * (col_in) + (i));
      xmin = (int)(min_4(minmax_x) + .5);
      xmax = (int)(max_4(minmax_x) + .5);
      ymin = (int)(min_4(minmax_y) + .5);
      ymax = (int)(max_4(minmax_y) + .5);
      ilon[0] = to_rad(*(xw_in + (j + 1) * (col_in) + (i)));
      ilon[1] = to_rad(*(xw_in + (j + 1) * (col_in) + (i + 1)));
      ilon[2] = to_rad(*(xw_in + (j) * (col_in) + (i + 1)));
      ilon[3] = to_rad(*(xw_in + (j) * (col_in) + (i)));
      ilat[0] = to_rad(*(yw_in + (j + 1) * (col_in) + (i)));
      ilat[1] = to_rad(*(yw_in + (j + 1) * (col_in) + (i + 1)));
      ilat[2] = to_rad(*(yw_in + (j) * (col_in) + (i + 1)));
      ilat[3] = to_rad(*(yw_in + (j) * (col_in) + (i)));
      xmin = xmin > 0 ? xmin : 0;
      xmax = (nx_out - 1) < xmax ? (nx_out - 1) : xmax;
      ymin = ymin > 0 ? ymin : 0;
      ymax = (ny_out - 1) < ymax ? (ny_out - 1) : ymax;
      for (ii = xmin; ii < xmax + 1; ++ii) {
        for (jj = ymin; jj < ymax + 1; ++jj) {
          olon[0] = to_rad(*(xw_out + (jj + 1) * (col_out) + (ii)));
          olon[1] = to_rad(*(xw_out + (jj + 1) * (col_out) + (ii + 1)));
          olon[2] = to_rad(*(xw_out + (jj) * (col_out) + (ii + 1)));
          olon[3] = to_rad(*(xw_out + (jj) * (col_out) + (ii)));
          olat[0] = to_rad(*(yw_out + (jj + 1) * (col_out) + (ii)));
          olat[1] = to_rad(*(yw_out + (jj + 1) * (col_out) + (ii + 1)));
          olat[2] = to_rad(*(yw_out + (jj) * (col_out) + (ii + 1)));
          olat[3] = to_rad(*(yw_out + (jj) * (col_out) + (ii)));
          _compute_overlap(overlap, area_ratio, ilon, ilat, olon, olat);
          _compute_overlap(original, area_ratio, olon, olat, olon, olat);
          *(array_new + (jj) * (col_new) + (ii)) += *(array + (j) * (col_array) + (i)) * (overlap[0] / original[0]);
          *(weights + (jj) * (col_new) + (ii)) += (overlap[0] / original[0]);
        }
      }
    }
  }
}
```